/*! For license information please see main.js.LICENSE.txt */
(()=>{var t={440:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var o=i(n(2));t.exports=o.default},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(9)),r=i(n(3)),s=n(4),a=function(){if("undefined"!=typeof window){var t=100,e=["scroll","resize","load"],n={history:[]},i={offset:{},threshold:0,test:s.inViewport},a=(0,o.default)((function(){n.history.forEach((function(t){n[t].check()}))}),t);e.forEach((function(t){return addEventListener(t,a)})),window.MutationObserver&&addEventListener("DOMContentLoaded",(function(){new MutationObserver(a).observe(document.body,{attributes:!0,childList:!0,subtree:!0})}));var c=function(t){if("string"==typeof t){var e=[].slice.call(document.querySelectorAll(t));return n.history.indexOf(t)>-1?n[t].elements=e:(n[t]=(0,r.default)(e,i),n.history.push(t)),n[t]}};return c.offset=function(t){if(void 0===t)return i.offset;var e=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(e(t)?function(e){return i.offset[e]=t}:function(n){return e(t[n])?i.offset[n]=t[n]:null}),i.offset},c.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?i.threshold=t:i.threshold},c.test=function(t){return"function"==typeof t?i.test=t:i.test},c.is=function(t){return i.test(t,i)},c.offset(0),c}};e.default=a()},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e,i){n(this,t),this.options=i,this.elements=e,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return i(t,[{key:"check",value:function(){var t=this;return this.elements.forEach((function(e){var n=t.options.test(e,t.options),i=t.current.indexOf(e),o=i>-1,r=!n&&o;n&&!o&&(t.current.push(e),t.emit("enter",e)),r&&(t.current.splice(i,1),t.emit("exit",e))})),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var n=this.handlers[t].length;--n>-1;)this.handlers[t][n](e);return this}}]),t}();e.default=function(t,e){return new o(t,e)}},function(t,e){"use strict";function n(t,e){var n=t.getBoundingClientRect(),i=n.top,o=n.right,r=n.bottom,s=n.left,a=n.width,c=n.height,u={t:r,r:window.innerWidth-s,b:window.innerHeight-i,l:o},f={x:e.threshold*a,y:e.threshold*c};return u.t>e.offset.top+f.y&&u.r>e.offset.right+f.x&&u.b>e.offset.bottom+f.y&&u.l>e.offset.left+f.x}Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=n},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){var i=n(5),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();t.exports=r},function(t,e,n){function i(t,e,n){function i(e){var n=g,i=_;return g=_=void 0,w=e,E=t.apply(i,n)}function f(t){return w=t,N=setTimeout(p,e),L?i(t):E}function l(t){var n=e-(t-x);return O?u(n,b-(t-w)):n}function d(t){var n=t-x;return void 0===x||n>=e||n<0||O&&t-w>=b}function p(){var t=r();return d(t)?h(t):void(N=setTimeout(p,l(t)))}function h(t){return N=void 0,C&&g?i(t):(g=_=void 0,E)}function v(){void 0!==N&&clearTimeout(N),w=0,g=x=_=N=void 0}function m(){return void 0===N?E:h(r())}function y(){var t=r(),n=d(t);if(g=arguments,_=this,x=t,n){if(void 0===N)return f(x);if(O)return N=setTimeout(p,e),i(x)}return void 0===N&&(N=setTimeout(p,e)),E}var g,_,b,E,N,x,w=0,L=!1,O=!1,C=!0;if("function"!=typeof t)throw new TypeError(a);return e=s(e)||0,o(n)&&(L=!!n.leading,b=(O="maxWait"in n)?c(s(n.maxWait)||0,e):b,C="trailing"in n?!!n.trailing:C),y.cancel=v,y.flush=m,y}var o=n(1),r=n(8),s=n(10),a="Expected a function",c=Math.max,u=Math.min;t.exports=i},function(t,e,n){var i=n(6),o=function(){return i.Date.now()};t.exports=o},function(t,e,n){function i(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError(s);return r(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),o(t,e,{leading:i,maxWait:e,trailing:a})}var o=n(7),r=n(1),s="Expected a function";t.exports=i},function(t,e){function n(t){return t}t.exports=n}])}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t,e=document.querySelector.bind(document),i=document.querySelectorAll.bind(document),o=n(440),r=n.n(o),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s.apply(this,arguments)},a=function(){function t(t){this.options=t,this.listeners={}}return t.prototype.on=function(t,e){var n=this.listeners[t]||[];this.listeners[t]=n.concat([e])},t.prototype.triggerEvent=function(t,e){var n=this;(this.listeners[t]||[]).forEach((function(t){return t({target:n,event:e})}))},t}();!function(t){t[t.Add=0]="Add",t[t.Remove=1]="Remove"}(t||(t={}));var c,u=function(){function e(){this.notifications=[]}return e.prototype.push=function(e){this.notifications.push(e),this.updateFn(e,t.Add,this.notifications)},e.prototype.splice=function(e,n){var i=this.notifications.splice(e,n)[0];return this.updateFn(i,t.Remove,this.notifications),i},e.prototype.indexOf=function(t){return this.notifications.indexOf(t)},e.prototype.onUpdate=function(t){this.updateFn=t},e}();!function(t){t.Dismiss="dismiss",t.Click="click"}(c||(c={}));var f={types:[{type:"success",className:"notyf__toast--success",backgroundColor:"#3dc763",icon:{className:"notyf__icon--success",tagName:"i"}},{type:"error",className:"notyf__toast--error",backgroundColor:"#ed3d3d",icon:{className:"notyf__icon--error",tagName:"i"}}],duration:2e3,ripple:!0,position:{x:"right",y:"bottom"},dismissible:!1},l=function(){function e(){this.notifications=[],this.events={},this.X_POSITION_FLEX_MAP={left:"flex-start",center:"center",right:"flex-end"},this.Y_POSITION_FLEX_MAP={top:"flex-start",center:"center",bottom:"flex-end"};var t=document.createDocumentFragment(),e=this._createHTMLElement({tagName:"div",className:"notyf"});t.appendChild(e),document.body.appendChild(t),this.container=e,this.animationEndEventName=this._getAnimationEndEventName(),this._createA11yContainer()}return e.prototype.on=function(t,e){var n;this.events=s(s({},this.events),((n={})[t]=e,n))},e.prototype.update=function(e,n){n===t.Add?this.addNotification(e):n===t.Remove&&this.removeNotification(e)},e.prototype.removeNotification=function(t){var e,n,i=this,o=this._popRenderedNotification(t);o&&((e=o.node).classList.add("notyf__toast--disappear"),e.addEventListener(this.animationEndEventName,n=function(t){t.target===e&&(e.removeEventListener(i.animationEndEventName,n),i.container.removeChild(e))}))},e.prototype.addNotification=function(t){var e=this._renderNotification(t);this.notifications.push({notification:t,node:e}),this._announce(t.options.message||"Notification")},e.prototype._renderNotification=function(t){var e,n=this._buildNotificationCard(t),i=t.options.className;return i&&(e=n.classList).add.apply(e,i.split(" ")),this.container.appendChild(n),n},e.prototype._popRenderedNotification=function(t){for(var e=-1,n=0;n<this.notifications.length&&e<0;n++)this.notifications[n].notification===t&&(e=n);if(-1!==e)return this.notifications.splice(e,1)[0]},e.prototype.getXPosition=function(t){var e;return(null===(e=null==t?void 0:t.position)||void 0===e?void 0:e.x)||"right"},e.prototype.getYPosition=function(t){var e;return(null===(e=null==t?void 0:t.position)||void 0===e?void 0:e.y)||"bottom"},e.prototype.adjustContainerAlignment=function(t){var e=this.X_POSITION_FLEX_MAP[this.getXPosition(t)],n=this.Y_POSITION_FLEX_MAP[this.getYPosition(t)],i=this.container.style;i.setProperty("justify-content",n),i.setProperty("align-items",e)},e.prototype._buildNotificationCard=function(t){var e=this,n=t.options,i=n.icon;this.adjustContainerAlignment(n);var o=this._createHTMLElement({tagName:"div",className:"notyf__toast"}),r=this._createHTMLElement({tagName:"div",className:"notyf__ripple"}),s=this._createHTMLElement({tagName:"div",className:"notyf__wrapper"}),a=this._createHTMLElement({tagName:"div",className:"notyf__message"});a.innerHTML=n.message||"";var u=n.background||n.backgroundColor;if(i){var f=this._createHTMLElement({tagName:"div",className:"notyf__icon"});if(("string"==typeof i||i instanceof String)&&(f.innerHTML=new String(i).valueOf()),"object"==typeof i){var l=i.tagName,d=void 0===l?"i":l,p=i.className,h=i.text,v=i.color,m=void 0===v?u:v,y=this._createHTMLElement({tagName:d,className:p,text:h});m&&(y.style.color=m),f.appendChild(y)}s.appendChild(f)}if(s.appendChild(a),o.appendChild(s),u&&(n.ripple?(r.style.background=u,o.appendChild(r)):o.style.background=u),n.dismissible){var g=this._createHTMLElement({tagName:"div",className:"notyf__dismiss"}),_=this._createHTMLElement({tagName:"button",className:"notyf__dismiss-btn"});g.appendChild(_),s.appendChild(g),o.classList.add("notyf__toast--dismissible"),_.addEventListener("click",(function(n){var i,o;null===(o=(i=e.events)[c.Dismiss])||void 0===o||o.call(i,{target:t,event:n}),n.stopPropagation()}))}o.addEventListener("click",(function(n){var i,o;return null===(o=(i=e.events)[c.Click])||void 0===o?void 0:o.call(i,{target:t,event:n})}));var b="top"===this.getYPosition(n)?"upper":"lower";return o.classList.add("notyf__toast--"+b),o},e.prototype._createHTMLElement=function(t){var e=t.tagName,n=t.className,i=t.text,o=document.createElement(e);return n&&(o.className=n),o.textContent=i||null,o},e.prototype._createA11yContainer=function(){var t=this._createHTMLElement({tagName:"div",className:"notyf-announcer"});t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),t.style.border="0",t.style.clip="rect(0 0 0 0)",t.style.height="1px",t.style.margin="-1px",t.style.overflow="hidden",t.style.padding="0",t.style.position="absolute",t.style.width="1px",t.style.outline="0",document.body.appendChild(t),this.a11yContainer=t},e.prototype._announce=function(t){var e=this;this.a11yContainer.textContent="",setTimeout((function(){e.a11yContainer.textContent=t}),100)},e.prototype._getAnimationEndEventName=function(){var t,e=document.createElement("_fake"),n={MozTransition:"animationend",OTransition:"oAnimationEnd",WebkitTransition:"webkitAnimationEnd",transition:"animationend"};for(t in n)if(void 0!==e.style[t])return n[t];return"animationend"},e}(),d=new(function(){function t(t){var e=this;this.dismiss=this._removeNotification,this.notifications=new u,this.view=new l;var n=this.registerTypes(t);this.options=s(s({},f),t),this.options.types=n,this.notifications.onUpdate((function(t,n){return e.view.update(t,n)})),this.view.on(c.Dismiss,(function(t){var n=t.target,i=t.event;e._removeNotification(n),n.triggerEvent(c.Dismiss,i)})),this.view.on(c.Click,(function(t){var e=t.target,n=t.event;return e.triggerEvent(c.Click,n)}))}return t.prototype.error=function(t){var e=this.normalizeOptions("error",t);return this.open(e)},t.prototype.success=function(t){var e=this.normalizeOptions("success",t);return this.open(e)},t.prototype.open=function(t){var e=this.options.types.find((function(e){return e.type===t.type}))||{},n=s(s({},e),t);this.assignProps(["ripple","position","dismissible"],n);var i=new a(n);return this._pushNotification(i),i},t.prototype.dismissAll=function(){for(;this.notifications.splice(0,1););},t.prototype.assignProps=function(t,e){var n=this;t.forEach((function(t){e[t]=null==e[t]?n.options[t]:e[t]}))},t.prototype._pushNotification=function(t){var e=this;this.notifications.push(t);var n=void 0!==t.options.duration?t.options.duration:this.options.duration;n&&setTimeout((function(){return e._removeNotification(t)}),n)},t.prototype._removeNotification=function(t){var e=this.notifications.indexOf(t);-1!==e&&this.notifications.splice(e,1)},t.prototype.normalizeOptions=function(t,e){var n={type:t};return"string"==typeof e?n.message=e:"object"==typeof e&&(n=s(s({},n),e)),n},t.prototype.registerTypes=function(t){var e=(t&&t.types||[]).slice();return f.types.map((function(t){var n=-1;e.forEach((function(e,i){e.type===t.type&&(n=i)}));var i=-1!==n?e.splice(n,1)[0]:{};return s(s({},t),i)})).concat(e)},t}())({duration:4e3,dismissible:!0,icon:!1});document.addEventListener("DOMContentLoaded",(function(){r()(".js-in-view").on("enter",(function(t){t.classList.add("inView")}));var t=i(".js-resource-filter");t&&t.forEach((function(e){e.addEventListener("click",(function(e){console.log("fds"),e.preventDefault();var n=e.currentTarget.dataset.filter,o=i(".js-resource-item");t.forEach((function(t){t.classList.remove("active")})),e.currentTarget.classList.add("active"),"all"===n?o.forEach((function(t){t.classList.remove("hidden")})):o.forEach((function(t){t.dataset.filter.includes(n)?t.classList.remove("hidden"):t.classList.add("hidden")}))}))})),i(".js-postload").forEach((function(t){t.classList.remove("js-postload")}));var n=0,o=e(".header"),s=o?o.clientHeight/3:0;window.addEventListener("scroll",(function(){var t=window.scrollY;Math.abs(n-t)<=5||(0===t?(o.classList.remove("nav-down"),o.classList.remove("nav-up")):t>n&&t>s?(o.classList.remove("nav-down"),o.classList.add("nav-up")):t+window.innerHeight<document.body.clientHeight&&(o.classList.add("nav-down"),o.classList.remove("nav-up")),n=t)}));var a=e("form.userform");a&&a.addEventListener("submit",(function(t){t.preventDefault(),fetch(a.getAttribute("action"),{method:"POST",body:new FormData(a)}).then((function(t){return t.json()})).then((function(t){d.success({message:t.message,icon:!1}),a.reset()})).catch((function(t){console.log(t)}))}))}))})()})();
//# sourceMappingURL=main.js.map