<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(function($,window,document){var StickUp=function(elem,opts){var lastScrollTop=0,scroll=0,scrollDir='',scrollDistance=0,active=false,bottom=false,hold=false,disabled=false,landscape=false,portrait=false,stickyHeight=0,outerHeight=0,currentOuterHeight=0,viewportHeight=0,scrollBottom=0,elementOffset=0,elementOffsetBottom=0,$element=$(),topMargin=0,offset=0,$placeholder=$('&lt;div style="margin-top:0;margin-bottom:0; padding:0"&gt;&lt;/div&gt;'),$parent=$(),stickpoints={top:0,bottom:0,custom:[]},left,options={scrollHide:false,lazyHeight:0,topMargin:"auto",keepInWrapper:false,wrapperSelector:'',zIndex:99,syncPosition:false,namespaceClass:"stuckElement",fixedClass:"isStuck",disableOn:function(){return true;}},getTopMargin=function(){if(options.topMargin==='auto'){return parseInt($element.css('marginTop'));}else{if(isNaN(options.topMargin)&amp;&amp;options.topMargin.search("px")&gt;0){return parseInt(options.topMargin.replace("px",""));}else if(!isNaN(parseInt(options.topMargin))){return parseInt(options.topMargin);}else{void 0;return 0;}}},unStick=function(){void 0;$placeholder.remove();$element.removeClass(options.fixedClass).css({maxWidth:"",marginTop:"",marginLeft:"",marginRight:"",position:"",top:"",left:"",right:"",bottom:"",width:""});active=false;bottom=false;hold=false;if(options.syncPosition)
syncMargins();},holdIt=function(forceBottom){void 0;$element.before($placeholder.css('height',outerHeight));var offsetParent=$placeholder.offsetParent();if(forceBottom){$element.css({position:"absolute"});var topOffset=($parent.offset().top+$parent.outerHeight())
-offsetParent.offset().top-currentOuterHeight
-parseInt($parent.css("paddingBottom"));}
void 0;void 0;$element.css({position:"absolute",marginTop:topMargin,bottom:"",left:$placeholder.position().left,top:forceBottom?topOffset:$element.offset().top-offsetParent.offset().top-topMargin});},stickIt=function(){void 0;active=true;$element.before($placeholder.css('height',outerHeight));$element.addClass(options.fixedClass);var topDistance=-offset;$element.css({marginTop:topMargin,position:"fixed",top:topDistance+'px'});},stickAtBottom=function(){void 0;$element.before($placeholder.css('height',outerHeight));$element.addClass(options.fixedClass);var bottomDistance=-offset;$element.css({marginTop:topMargin,position:"fixed",top:"",left:"",right:"",bottom:bottomDistance});},syncWidth=function(){if($placeholder.width()!==$element.outerWidth())
$element.outerWidth($placeholder.outerWidth());},syncPosition=function(){left=$placeholder.offset().left;if(left!==$element.offset().left);$element.offset({'left':left});},syncMargins=function(){$placeholder.css({'margin-left':$element.css('margin-left'),'margin-right':$element.css('margin-left')});$element.css({"margin-left":$placeholder.css('margin-left'),"margin-right":$placeholder.css('margin-right')});},stickUpScrollHandlerFn=function(event){if(!options.disableOn()){if(!disabled){void 0;unStick();disabled=true;}
return;}else if(disabled){disabled=false;}
if(options.keepInWrapper&amp;&amp;!$parent.is(':visible')){return;}
scroll=$(event.target).scrollTop();scrollDir=(scroll&gt;=lastScrollTop)?'down':'up';scrollDistance=Math.abs(lastScrollTop-scroll);viewportHeight=$(window).outerHeight();scrollBottom=scroll+viewportHeight;lastScrollTop=scroll;elementOffset=$element.offset().top;stickyHeight=parseInt($element.outerHeight()+topMargin)+parseInt($element.css('marginBottom'));if(!active&amp;&amp;!hold&amp;&amp;!bottom){outerHeight=parseInt($element.outerHeight(true));if(!bottom&amp;&amp;!hold)
stickpoints.top=parseInt($element.offset().top);else
stickpoints.top=parseInt($placeholder.offset().top);left=parseInt($element.offset().left)+5;}
currentOuterHeight=parseInt($element.outerHeight())+parseInt($element.css('margin-bottom'))+topMargin;if(options.keepInWrapper)
stickpoints.bottom=$parent.offset().top+$parent.outerHeight()-parseInt($parent.css('paddingBottom'));else
stickpoints.bottom=$(document).outerHeight();elementOffsetBottom=$element.offset().top+currentOuterHeight;if(stickyHeight&gt;viewportHeight){portrait=true;if(landscape){offset=0;if(hold)
holdIt();landscape=false;}
if(hold&amp;&amp;scrollDir==='up'&amp;&amp;scroll&lt;=elementOffset-topMargin){void 0;stickIt();active=true;bottom=false;hold=false;}
if(!active&amp;&amp;!bottom&amp;&amp;(!options.keepInWrapper||options.keepInWrapper&amp;&amp;scrollBottom&lt;=stickpoints.bottom)&amp;&amp;scrollBottom&gt;=elementOffsetBottom-topMargin){void 0;stickAtBottom();bottom=true;active=true;hold=false;}
if(!hold&amp;&amp;active&amp;&amp;bottom&amp;&amp;scrollDir==='up'||!hold&amp;&amp;active&amp;&amp;!bottom&amp;&amp;scrollDir==='down'&amp;&amp;elementOffsetBottom&gt;=scrollBottom){void 0;holdIt();active=false;bottom=false;hold=true;}
if(scrollBottom&gt;=stickpoints.bottom&amp;&amp;options.keepInWrapper&amp;&amp;(!bottom&amp;&amp;!hold||parseInt(elementOffsetBottom-topMargin)!==parseInt(stickpoints.bottom))){void 0;holdIt(true);active=false;bottom=true;hold=true;}}else{landscape=true;if(portrait){if(hold)
holdIt();portrait=false;}
if(options.scrollHide)
offset=stickyHeight+options.lazyHeight;else
offset=options.lazyHeight;if(!active&amp;&amp;!bottom&amp;&amp;scroll&gt;=stickpoints.top-topMargin+offset||bottom&amp;&amp;hold&amp;&amp;scroll&lt;=elementOffset-topMargin+offset){void 0;stickIt();active=true;bottom=false;hold=false;}
if(options.keepInWrapper&amp;&amp;parseInt(elementOffsetBottom-topMargin)!==parseInt(stickpoints.bottom)&amp;&amp;scroll&gt;=stickpoints.bottom-currentOuterHeight+offset){void 0;holdIt(true);active=false;bottom=true;hold=true;}
if(active){var topValue=parseInt($element.css('top'));if(scrollDir==='up'&amp;&amp;topValue!==0){var newTopValue=scrollDistance&gt;-topValue?0:topValue+scrollDistance;$element.css('top',newTopValue+'px');}else if(scrollDir==="down"&amp;&amp;topValue&gt;-offset){var newTopValue=scrollDistance&gt;offset+topValue?-offset:topValue-scrollDistance;$element.css('top',newTopValue+'px');}}}
if((active||hold||bottom)&amp;&amp;scroll&lt;=stickpoints.top-topMargin){void 0;unStick();}
if(active||hold||bottom)
syncWidth();if(options.syncPosition&amp;&amp;active||hold)
syncPosition();},stickUpResponsiveHandlerFn=function(event){if(hold){holdIt();bottom=false;}
void 0;stickUpScrollHandlerFn(event);};var initialize=function(elem,opts){$element=$(elem);$element.addClass(options.namespaceClass);if(opts){$.extend(true,options,opts);}
topMargin=(options.topMargin!==null)?getTopMargin():0;if(options.lazyHeight)
topMargin=topMargin+options.lazyHeight;if(options.keepInWrapper){if(options.wrapperSelector!=='')
$parent=$element.closest(options.wrapperSelector);if(!$parent.length)
$parent=$element.parent();}else{$parent=$('body');}
if(options.zIndex)
$element.css('z-index',options.zIndex);if(syncPosition){syncMargins();}
$(window).on('scroll.stickUp',stickUpScrollHandlerFn);$(window).on('resize.stickUp',stickUpResponsiveHandlerFn);stickUpScrollHandlerFn({target:document});};initialize.call(this,elem,opts);};$.fn.stickUp=function(options){return this.each(function(){new StickUp(this,options);});};}(jQuery,window,document));</pre></body></html>