import{aT as z,af as L}from"./CSGWN0Ke.js";var b={exports:{}};/*!
 * headroom.js v0.12.0 - Give your page some headroom. Hide your header until you need it
 * Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js
 * License: MIT
 */(function(H,Y){(function(c,h){H.exports=h()})(z,function(){function c(){return typeof window<"u"}function h(){var t=!1;try{var o={get passive(){t=!0}};window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{t=!1}return t}function T(){return!!(c()&&(function(){}).bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function w(t){return t.nodeType===9}function y(t){return t&&t.document&&w(t.document)}function x(t){var o=t.document,e=o.body,r=o.documentElement;return{scrollHeight:function(){return Math.max(e.scrollHeight,r.scrollHeight,e.offsetHeight,r.offsetHeight,e.clientHeight,r.clientHeight)},height:function(){return t.innerHeight||r.clientHeight||e.clientHeight},scrollY:function(){return t.pageYOffset!==void 0?t.pageYOffset:(r||e.parentNode||e).scrollTop}}}function B(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}function E(t){return y(t)?x(t):B(t)}function O(t,o,e){var r=h(),d,u=!1,a=E(t),l=a.scrollY(),s={};function p(){var i=Math.round(a.scrollY()),g=a.height(),C=a.scrollHeight();s.scrollY=i,s.lastScrollY=l,s.direction=i>l?"down":"up",s.distance=Math.abs(i-l),s.isOutOfBounds=i<0||i+g>C,s.top=i<=o.offset[s.direction],s.bottom=i+g>=C,s.toleranceExceeded=s.distance>o.tolerance[s.direction],e(s),l=i,u=!1}function m(){u||(u=!0,d=requestAnimationFrame(p))}var v=r?{passive:!0,capture:!1}:!1;return t.addEventListener("scroll",m,v),p(),{destroy:function(){cancelAnimationFrame(d),t.removeEventListener("scroll",m,v)}}}function f(t){return t===Object(t)?t:{down:t,up:t}}function n(t,o){o=o||{},Object.assign(this,n.options,o),this.classes=Object.assign({},n.options.classes,o.classes),this.elem=t,this.tolerance=f(this.tolerance),this.offset=f(this.offset),this.initialised=!1,this.frozen=!1}return n.prototype={constructor:n,init:function(){return n.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=O(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){(this.hasClass("pinned")||!this.hasClass("unpinned"))&&(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){var o=t.direction==="down";return o&&!t.top&&t.toleranceExceeded},shouldPin:function(t){var o=t.direction==="up";return o&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(o){return this.classList.contains(o)},this.elem)},update:function(t){t.isOutOfBounds||this.frozen!==!0&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},n.options={tolerance:{up:0,down:0},offset:0,scroller:c()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},n.cutsTheMustard=T(),n})})(b);var S=b.exports;const j=L(S);export{j as H};