`).insertAfter(a(this)).on(m,b);var h={relatedTarget:this};if(f.trigger(d=a.Event(`show.bs.dropdown`,h)),d.isDefaultPrevented())return;e.trigger(n).attr(j,`true`),f.toggleClass(i).trigger(`shown.bs.dropdown`,h)};return !o}},g.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(l)){var e=c(d),g=e.hasClass(i);if(!g&&p!=b.which||g&&p==b.which)return p==b.which&&e.find(f).trigger(n),d.trigger(m);var h=` li:not(.divider):visible a`,j=e.find(q+ h+ `, [role="listbox"]`+ h);if(j.length){var k=j.index(b.target);38==b.which&&k>r&&k--,40==b.which&&k{a.stopPropagation()})).on(s,f,g.prototype.toggle).on(t,f,g.prototype.keydown).on(t,q,g.prototype.keydown).on(t,`[role="listbox"]`,g.prototype.keydown)})(jQuery),+(a=>{let e=`bs.modal`,g=0,l=`in`,w=`padding-right`,i=`modal-open`,n=1,f=null,o=`bsTransitionEnd`,s=`resize.bs.modal`,k=`fade`,q=`focusin.bs.modal`,j=`click.dismiss.bs.modal`,p=`focus`,h=`show.bs.modal`,u=``,t=`hidden.bs.modal`,r=`keydown.dismiss.bs.modal`,m=`aria-hidden`,v=`height`;function b(b,d){return this.each(function(){var f=a(this),g=f.data(e),h=a.extend({},c.DEFAULTS,f.data(),`object`==typeof b&&b);g||f.data(e,g=new c(this,h)),`string`==typeof b?g[b](d):h.show&&g.show(d)})}`use strict`;var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$backdrop=this.isShown=f,this.scrollbarWidth=g,this.options.remote&&this.$element.find(`.modal-content`).load(this.options.remote,a.proxy(function(){this.$element.trigger(`loaded.bs.modal`)},this))};c.VERSION=`3.3.2`,c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!g,keyboard:!g,show:!g},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event(h,{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!g,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass(i),this.escape(),this.resize(),this.$element.on(j,`[data-dismiss="modal"]`,a.proxy(this.hide,this)),this.backdrop((()=>{var e=a.support.transition&&d.$element.hasClass(k);d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(g),d.options.backdrop&&d.adjustBackdrop(),d.adjustDialog(),e&&d.$element[g].offsetWidth,d.$element.addClass(l).attr(m,!n),d.enforceFocus();var f=a.Event(`shown.bs.modal`,{relatedTarget:b});e?d.$element.find(`.modal-dialog`).one(o,(()=>{d.$element.trigger(p).trigger(f)})).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger(p).trigger(f)})))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event(`hide.bs.modal`),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!n,this.escape(),this.resize(),a(document).off(q),this.$element.removeClass(l).attr(m,!g).off(j),a.support.transition&&this.$element.hasClass(k)?this.$element.one(o,a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off(q).on(q,a.proxy(function(a){this.$element[g]===a.target||this.$element.has(a.target).length||this.$element.trigger(p)},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on(r,a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off(r)},c.prototype.resize=function(){this.isShown?a(window).on(s,a.proxy(this.handleUpdate,this)):a(window).off(s)},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop((()=>{a.$body.removeClass(i),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger(t)}))},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=f},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass(k)?k:u;if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(``).prependTo(this.$element).on(j,a.proxy(function(a){a.target===a.currentTarget&&(`static`==this.options.backdrop?this.$element[g].focus.call(this.$element[g]):this.hide.call(this))},this)),f&&this.$backdrop[g].offsetWidth,this.$backdrop.addClass(l),!b)return;f?this.$backdrop.one(o,b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass(l);var h=(()=>{d.removeBackdrop(),b&&b()});a.support.transition&&this.$element.hasClass(k)?this.$backdrop.one(o,h).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):h()}else b&&b()},c.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},c.prototype.adjustBackdrop=function(){this.$backdrop.css(v,g).css(v,this.$element[g].scrollHeight)},c.prototype.adjustDialog=function(){var a=this.$element[g].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:u,paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:u})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:u,paddingRight:u})},c.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css(w)||g,10);this.bodyIsOverflowing&&this.$body.css(w,a+ this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css(w,u)},c.prototype.measureScrollbar=function(){var a=document.createElement(`div`);a.className=`modal-scrollbar-measure`,this.$body.append(a);var b=a.offsetWidth- a.clientWidth;return this.$body[g].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on(`click.bs.modal.data-api`,`[data-toggle="modal"]`,function(c){var d=a(this),f=d.attr(`href`),g=a(d.attr(`data-target`)||f&&f.replace(/.*(?=#[^\s]+$)/,u)),i=g.data(e)?`toggle`:a.extend({remote:!/#/.test(f)&&f},g.data(),d.data());d.is(`a`)&&c.preventDefault(),g.one(h,(a=>{a.isDefaultPrevented()||g.one(t,(()=>{d.is(`:visible`)&&d.trigger(p)}))})),b.call(g,i,this)})})(jQuery),+(a=>{let f=`string`,D=`title`,p=`in`,q=`out`,h=0,x=`bsTransitionEnd`,g=null,z=10,o=`bs.`,u=`bottom`,k=``,e=`bs.tooltip`,E=`data-original-title`,n=`.`,C=2,j=1,v=`right`,s=`fade`,m=`hover`,l=`manual`,i=`top`,r=`aria-describedby`,t=`function`,w=`left`,F=Math,B=Math.round,A=isNaN,y=parseInt;function b(b){return this.each(function(){var d=a(this),g=d.data(e),h=`object`==typeof b&&b;(g||`destroy`!=b)&&(g||d.data(e,g=new c(this,h)),f==typeof b&&g[b]())})}`use strict`;var c=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=g,this.init(`tooltip`,a,b)};c.VERSION=`3.3.2`,c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!h,placement:i,selector:!j,template:``,trigger:`hover focus`,title:k,delay:h,html:!j,container:!j,viewport:{selector:`body`,padding:h}},c.prototype.init=function(b,c,d){this.enabled=!h,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport);for(var e=this.options.trigger.split(` `),f=e.length;f--;){var g=e[f];if(`click`==g)this.$element.on(`click.`+ this.type,this.options.selector,a.proxy(this.toggle,this));else if(l!=g){var i=m==g?`mouseenter`:`focusin`,j=m==g?`mouseleave`:`focusout`;this.$element.on(i+ n+ this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(j+ n+ this.type,this.options.selector,a.proxy(this.leave,this))}};this.options.selector?(this._options=a.extend({},this.options,{trigger:l,selector:k})):this.fixTitle()},c.prototype.getDefaults=(()=>c.DEFAULTS),c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&`number`==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,((a,d)=>{c[a]!=d&&(b[a]=d)})),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data(o+ this.type);return c&&c.$tip&&c.$tip.is(`:visible`)?void (c.hoverState=p):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data(o+ this.type,c)),clearTimeout(c.timeout),c.hoverState=p,c.options.delay&&c.options.delay.show?void (c.timeout=setTimeout((()=>{p==c.hoverState&&c.show()}),c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data(o+ this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data(o+ this.type,c)),clearTimeout(c.timeout),c.hoverState=q,c.options.delay&&c.options.delay.hide?void (c.timeout=setTimeout((()=>{q==c.hoverState&&c.hide()}),c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event(`show.bs.`+ this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[h].ownerDocument.documentElement,this.$element[h]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),j=this.getUID(this.type);this.setContent(),f.attr(`id`,j),this.$element.attr(r,j),this.options.animation&&f.addClass(s);var l=t==typeof this.options.placement?this.options.placement.call(this,f[h],this.$element[h]):this.options.placement,m=/\s?auto?\s?/i,n=m.test(l);n&&(l=l.replace(m,k)||i),f.detach().css({top:h,left:h,display:`block`}).addClass(l).data(o+ this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var p=this.getPosition(),y=f[h].offsetWidth,z=f[h].offsetHeight;if(n){var A=l,B=this.options.container?a(this.options.container):this.$element.parent(),C=this.getPosition(B);l=u==l&&p.bottom+ z>C.bottom?i:i==l&&p.top- zC.width?w:w==l&&p.left- y{var a=e.hoverState;e.$element.trigger(`shown.bs.`+ e.type),e.hoverState=g,q==a&&e.leave(e)});a.support.transition&&this.$tip.hasClass(s)?f.one(x,E).emulateTransitionEnd(c.TRANSITION_DURATION):E()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[h].offsetWidth,f=d[h].offsetHeight,g=y(d.css(`margin-top`),z),j=y(d.css(`margin-left`),z);A(g)&&(g=h),A(j)&&(j=h),b.top=b.top+ g,b.left=b.left+ j,a.offset.setOffset(d[h],a.extend({using:(a=>{d.css({top:B(a.top),left:B(a.left)})})},b),h),d.addClass(p);var k=d[h].offsetWidth,l=d[h].offsetHeight;i==c&&l!=f&&(b.top=b.top+ f- l);var m=this.getViewportAdjustedDelta(c,b,k,l);m.left?(b.left+=m.left):(b.top+=m.top);var n=/top|bottom/.test(c),o=n?C*m.left- e+ k:C*m.top- f+ l,q=n?`offsetWidth`:`offsetHeight`;d.offset(b),this.replaceArrow(o,d[h][q],n)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?w:i,50*(j- a/b)+ `%`).css(c?i:w,k)},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(`.tooltip-inner`)[this.options.html?`html`:`text`](b),a.removeClass(`fade in top bottom left right`)},c.prototype.hide=function(b){var d=(()=>{p!=e.hoverState&&f.detach(),e.$element.removeAttr(r).trigger(`hidden.bs.`+ e.type),b&&b()});var e=this,f=this.tip(),i=a.Event(`hide.bs.`+ this.type);return this.$element.trigger(i),i.isDefaultPrevented()?void h:(f.removeClass(p),a.support.transition&&this.$tip.hasClass(s)?f.one(x,d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=g,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr(D)||f!=typeof a.attr(E))&&a.attr(E,a.attr(D)||k).attr(D,k)},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[h],d=`BODY`==c.tagName,e=c.getBoundingClientRect();g==e.width&&(e=a.extend({},e,{width:e.right- e.left,height:e.bottom- e.top}));var f=d?{top:h,left:h}:b.offset(),i={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},j=d?{width:a(window).width(),height:a(window).height()}:g;return a.extend({},e,i,j,f)},c.prototype.getCalculatedOffset=((a,b,c,d)=>u==a?{top:b.top+ b.height,left:b.left+ b.width/C- c/C}:i==a?{top:b.top- d,left:b.left+ b.width/C- c/C}:w==a?{top:b.top+ b.height/C- d/C,left:b.left- c}:{top:b.top+ b.height/C- d/C,left:b.left+ b.width}),c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:h,left:h};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||h,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var i=b.top- f- g.scroll,j=b.top+ f- g.scroll+ d;ig.top+ g.height&&(e.top=g.top+ g.height- j)}else{var k=b.left- f,l=b.left+ f+ c;kg.width&&(e.left=g.left+ g.width- l)};return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr(E)||(t==typeof c.title?c.title.call(b[h]):c.title)},c.prototype.getUID=(a=>{do a+=~~(1000000*F.random());while(document.getElementById(a));return a}),c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(`.tooltip-arrow`)},c.prototype.enable=function(){this.enabled=!h},c.prototype.disable=function(){this.enabled=!j},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data(o+ this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data(o+ this.type,c))),c.tip().hasClass(p)?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide((()=>{a.$element.off(n+ a.type).removeData(o+ a.type)}))};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}})(jQuery),+(a=>{let f=`string`,g=`.popover-title`,i=`text`,h=`html`,e=`bs.popover`;function b(b){return this.each(function(){var d=a(this),g=d.data(e),h=`object`==typeof b&&b;(g||`destroy`!=b)&&(g||d.data(e,g=new c(this,h)),f==typeof b&&g[b]())})}`use strict`;var c=function(a,b){this.init(`popover`,a,b)};if(!a.fn.tooltip)throw new Error(`Popover requires tooltip.js`);c.VERSION=`3.3.2`,c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:`right`,trigger:`click`,content:``,template:``}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=(()=>c.DEFAULTS),c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(g)[this.options.html?h:i](b),a.find(`.popover-content`).children().detach().end()[this.options.html?f==typeof c?h:`append`:i](c),a.removeClass(`fade top bottom left right in`),a.find(g).html()||a.find(g).hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr(`data-content`)||(`function`==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(`.arrow`)},c.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}})(jQuery),+(a=>{let g=0,i=1,f=null,j=`active`,h=`bs.scrollspy`,e=`body`;function b(c,d){var h=a.proxy(this.process,this);this.$body=a(e),this.$scrollElement=a(a(c).is(e)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||``)+ ` .nav li > a`,this.offsets=[],this.targets=[],this.activeTarget=f,this.scrollHeight=g,this.$scrollElement.on(`scroll.bs.scrollspy`,h),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data(h),f=`object`==typeof c&&c;e||d.data(h,e=new b(this,f)),`string`==typeof c&&e[c]()})}`use strict`;b.VERSION=`3.3.2`,b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[g].scrollHeight||Math.max(this.$body[g].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=`offset`,c=g;a.isWindow(this.$scrollElement[g])||(b=`position`,c=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data(`target`)||d.attr(`href`),g=/^#./.test(e)&&a(e);return g&&g.length&&g.is(`:visible`)&&[[g[b]().top+ c,e]]||f}).sort(((a,b)=>a[g]- b[g])).each(function(){d.offsets.push(this[g]),d.targets.push(this[i])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+ this.options.offset,c=this.getScrollHeight(),d=this.options.offset+ c- this.$scrollElement.height(),e=this.offsets,h=this.targets,j=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return j!=(a=h[h.length- i])&&this.activate(a);if(j&&b=e[a]&&(!e[a+ i]||b<=e[a+ i])&&this.activate(h[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+ `[data-target="`+ b+ `"],`+ this.selector+ `[href="`+ b+ `"]`,d=a(c).parents(`li`).addClass(j);d.parent(`.dropdown-menu`).length&&(d=d.closest(`li.dropdown`).addClass(j)),d.trigger(`activate.bs.scrollspy`)},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,`.active`).removeClass(j)};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on(`load.bs.scrollspy.data-api`,(()=>{a(`[data-spy="scroll"]`).each(function(){var b=a(this);c.call(b,b.data())})}))})(jQuery),+(a=>{let i=0,j=`[data-toggle="tab"]`,l=`in`,f=`bs.tab`,g=`li`,m=`fade`,k=`aria-expanded`,h=`active`,n=`click.bs.tab.data-api`;function b(b){return this.each(function(){var d=a(this),e=d.data(f);e||d.data(f,e=new c(this)),`string`==typeof b&&e[b]()})}`use strict`;var c=function(b){this.element=a(b)};c.VERSION=`3.3.2`,c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest(`ul:not(.dropdown-menu)`),d=b.data(`target`);if(d||(d=b.attr(`href`),d=d&&d.replace(/.*(?=#[^\s]*$)/,``)),!b.parent(g).hasClass(h)){var e=c.find(`.active:last a`),f=a.Event(`hide.bs.tab`,{relatedTarget:b[i]}),j=a.Event(`show.bs.tab`,{relatedTarget:e[i]});if(e.trigger(f),b.trigger(j),!j.isDefaultPrevented()&&!f.isDefaultPrevented()){var k=a(d);this.activate(b.closest(g),c),this.activate(k,k.parent(),(()=>{e.trigger({type:`hidden.bs.tab`,relatedTarget:b[i]}),b.trigger({type:`shown.bs.tab`,relatedTarget:e[i]})}))}}},c.prototype.activate=((b,d,e)=>{var f=(()=>{g.removeClass(h).find(`> .dropdown-menu > .active`).removeClass(h).end().find(j).attr(k,!1),b.addClass(h).find(j).attr(k,!i),n?(b[i].offsetWidth,b.addClass(l)):b.removeClass(m),b.parent(`.dropdown-menu`)&&b.closest(`li.dropdown`).addClass(h).end().find(j).attr(k,!i),e&&e()});var g=d.find(`> .active`),n=e&&a.support.transition&&(g.length&&g.hasClass(m)||!!d.find(`> .fade`).length);g.length&&n?g.one(`bsTransitionEnd`,f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass(l)});var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),`show`)};a(document).on(n,j,e).on(n,`[data-toggle="pill"]`,e)})(jQuery),+(a=>{let m=``,e=`bs.affix`,k=`affix`,f=`object`,l=`function`,i=1,n=`.bs.affix`,g=null,h=`top`,j=`bottom`;function b(b){return this.each(function(){var d=a(this),g=d.data(e),h=f==typeof b&&b;g||d.data(e,g=new c(this,h)),`string`==typeof b&&g[b]()})}`use strict`;var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on(`scroll.bs.affix.data-api`,a.proxy(this.checkPosition,this)).on(`click.bs.affix.data-api`,a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=this.unpin=this.pinnedOffset=g,this.checkPosition()};c.VERSION=`3.3.2`,c.RESET=`affix affix-top affix-bottom`,c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),k=this.$target.height();if(g!=c&&h==this.affixed)return c>e?h:!i;if(j==this.affixed)return g!=c?e+ this.unpin<=f.top?!i:j:a- d>=e+ k?!i:j;var l=g==this.affixed,m=l?e:f.top,n=l?k:b;return g!=c&&c>=e?h:g!=d&&m+ n>=a- d?j:!i},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass(k);var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top- a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),i)},c.prototype.checkPosition=function(){if(this.$element.is(`:visible`)){var b=this.$element.height(),d=this.options.offset,e=d.top,i=d.bottom,o=a(`body`).height();f!=typeof d&&(i=e=d),l==typeof e&&(e=d.top(this.$element)),l==typeof i&&(i=d.bottom(this.$element));var p=this.getState(o,b,e,i);if(this.affixed!=p){g!=this.unpin&&this.$element.css(h,m);var q=k+ (p?`-`+ p:m),r=a.Event(q+ n);if(this.$element.trigger(r),r.isDefaultPrevented())return;this.affixed=p,this.unpin=j==p?this.getPinnedOffset():g,this.$element.removeClass(c.RESET).addClass(q).trigger(q.replace(k,`affixed`)+ n)};j==p&&this.$element.offset({top:o- b- i})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on(`load`,(()=>{a(`[data-spy="affix"]`).each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},g!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),g!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})}))})(jQuery)