/*! * 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 */(()=>{var s=Object.create,e=Object.defineProperty,o=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,n=(e,n)=>function(){return n||(0,e[t(e)[0]])((n={exports:{}}).exports,n),n.exports},r=(n,s,i,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of t(s))!a.call(n,c)&&c!==i&&e(n,c,{get:()=>s[c],enumerable:!(r=o(s,c))||r.enumerable});return n},c=(t,n,o)=>(o=t!=null?s(i(t)):{},r(n||!t||!t.__esModule?e(o,"default",{value:t,enumerable:!0}):o,t)),l=n({"ns-hugo-imp:/Users/aaro/Develop/retrostack/retrostack-app/assets/bakedbyclaire/themes/tasty/assets/js/headroom/headroom.js"(e,t){!function(n,s){"object"==typeof e&&"undefined"!=typeof t?t.exports=s():"function"==typeof define&&define.amd?define(s):(n=n||self).Headroom=s()}(e,function(){"use strict";function t(){return"undefined"!=typeof window}function s(e){return function(e){return e&&e.document&&function(e){return 9===e.nodeType}(e.document)}(e)?function(e){var s=e.document,t=s.body,n=s.documentElement;return{scrollHeight:function(){return Math.max(t.scrollHeight,n.scrollHeight,t.offsetHeight,n.offsetHeight,t.clientHeight,n.clientHeight)},height:function(){return e.innerHeight||n.clientHeight||t.clientHeight},scrollY:function(){return void 0!==e.pageYOffset?e.pageYOffset:(n||t.parentNode||t).scrollTop}}}(e):function(e){return{scrollHeight:function(){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},height:function(){return Math.max(e.offsetHeight,e.clientHeight)},scrollY:function(){return e.scrollTop}}}(e)}function o(e,t,n){var c,l,h=function(){var e,t=!1;try{e={get passive(){t=!0}},window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{t=!1}return t}(),r=!1,i=s(e),a=i.scrollY(),o={};function d(){var e=Math.round(i.scrollY()),s=i.height(),c=i.scrollHeight();o.scrollY=e,o.lastScrollY=a,o.direction=at.tolerance[o.direction],n(o),a=e,r=!1}function u(){r||(r=!0,l=requestAnimationFrame(d))}return c=!!h&&{passive:!0,capture:!1},e.addEventListener("scroll",u,c),d(),{destroy:function(){cancelAnimationFrame(l),e.removeEventListener("scroll",u,c)}}}function n(e){return e===Object(e)?e:{down:e,up:e}}function e(t,s){s=s||{},Object.assign(this,e.options,s),this.classes=Object.assign({},e.options.classes,s.classes),this.elem=t,this.tolerance=n(this.tolerance),this.offset=n(this.offset),this.initialised=!1,this.frozen=!1}return e.prototype={constructor:e,init:function(){return e.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(e){e.scrollTracker=o(e.scroller,{offset:e.offset,tolerance:e.tolerance},e.update.bind(e))},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(e){return"down"===e.direction&&!e.top&&e.toleranceExceeded},shouldPin:function(e){return"up"===e.direction&&e.toleranceExceeded||e.top},addClass:function(e){this.elem.classList.add.apply(this.elem.classList,this.classes[e].split(" "))},removeClass:function(e){this.elem.classList.remove.apply(this.elem.classList,this.classes[e].split(" "))},hasClass:function(e){return this.classes[e].split(" ").every(function(e){return this.classList.contains(e)},this.elem)},update:function(e){e.isOutOfBounds||!0!==this.frozen&&(e.top?this.top():this.notTop(),e.bottom?this.bottom():this.notBottom(),this.shouldUnpin(e)?this.unpin():this.shouldPin(e)&&this.pin())}},e.options={tolerance:{up:0,down:0},offset:0,scroller:t()?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"}},e.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),e})}}),d=n({""(e,t){var n,s,o,i,a,r=c(l()),d=document.querySelector(".navigation"),u=new r.default(d);u.init(),n=document.querySelector(".navbar-toggler"),n.addEventListener("click",function(e){e.preventDefault(),n.classList.toggle("is-active"),document.querySelector("body").classList.toggle("mobile-menu-active")}),a=document.querySelector(".search-btn"),s=document.querySelector(".search-container"),o=document.querySelector(".search-container input"),a.addEventListener("click",function(e){e.preventDefault(),s.classList.toggle("active"),s.classList.contains("active")?setTimeout(function(){o.focus()},400):o.blur()}),i=document.querySelector(".smooth-scroll"),i&&i.addEventListener("click",function(e){e.preventDefault();var t=document.querySelector(this.getAttribute("href")),n=t.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:n,behavior:"smooth"})}),!function(n,s){if("object"==typeof e&&"object"==typeof t)t.exports=s();else if("function"==typeof define&&define.amd)define([],s);else{var i,o=s();for(i in o)("object"==typeof e?e:n)[i]=o[i]}}(window,function(){return function(e){var n={};function t(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:s})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o,s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(o in e)t.d(s,o,function(t){return e[t]}.bind(null,o));return s},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";n.r(t);var l,s="fslightbox-",ie="".concat(s,"styles"),S="".concat(s,"cursor-grabbing"),i="".concat(s,"full-dimension"),o="".concat(s,"flex-centered"),v="".concat(s,"open"),A="".concat(s,"transform-transition"),p="".concat(s,"absoluted"),k="".concat(s,"slide-btn"),O="".concat(k,"-container"),m="".concat(s,"fade-in"),f="".concat(s,"fade-out"),r=m+"-strong",y=f+"-strong",oe="".concat(s,"opacity-"),ne="".concat(oe,"1"),a="".concat(s,"source");function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e){var t=e.stageIndexes,s=e.core.stageManager,n=e.props.sources.length-1;s.getPreviousSlideIndex=function(){return 0===t.current?n:t.current-1},s.getNextSlideIndex=function(){return t.current===n?0:t.current+1},s.updateStageIndexes=0===n?function(){}:1===n?function(){0===t.current?(t.next=1,delete t.previous):(t.previous=0,delete t.next)}:function(){t.previous=s.getPreviousSlideIndex(),t.next=s.getNextSlideIndex()},s.i=n<=2?function(){return!0}:function(e){var s,o=t.current;return 0===o&&e===n||o===n&&0===e||(s=o-e,-1===s||0===s||1===s)}}"object"===("undefined"==typeof document?"undefined":_(document))&&((l=document.createElement("style")).className=ie,l.appendChild(document.createTextNode(".fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}")),document.head.appendChild(l));function Q(e){var t,o,i=e.props,s=0,n={};if(this.getSourceTypeFromLocalStorageByUrl=function(e){return t[e]?t[e]:o(e)},this.handleReceivedSourceTypeForUrl=function(e,o){if(!1===n[o]&&(s--,"invalid"!==e?n[o]=e:delete n[o],0===s)){!function(e,t){for(var n in t)e[n]=t[n]}(t,n);try{localStorage.setItem("fslightbox-types",JSON.stringify(t))}catch{}}},o=function(e){s++,n[e]=!1},i.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{t=JSON.parse(localStorage.getItem("fslightbox-types"))}catch{}t||(t={},this.getSourceTypeFromLocalStorageByUrl=o)}}function q(e,t,n,s){var a,o=e.data,r=e.elements.sources,c=n/s,i=0;this.adjustSize=function(){if((i=o.maxSourceWidth/c)o.maxSourceHeight?o.maxSourceHeight:s,a()},a=function(){r[t].style.width=i*c+"px",r[t].style.height=i+"px"}}function V(e,t){var a=this,s=e.collections.sourceSizers,o=e.elements,n=o.sourceAnimationWrappers,c=o.sources,l=e.isl,d=e.resolve;function i(e,n){s[t]=d(q,[t,e,n]),s[t].adjustSize()}this.runActions=function(e,s){l[t]=!0,c[t].classList.add(ne),n[t].classList.add(r),n[t].removeChild(n[t].firstChild),i(e,s),a.runActions=i}}function H(e,t){var o,i=this,a=e.elements.sources,s=e.props,n=(0,e.resolve)(V,[t]);this.handleImageLoad=function(e){var t=e.target,s=t.naturalWidth,o=t.naturalHeight;n.runActions(s,o)},this.handleVideoLoad=function(e){var t=e.target,s=t.videoWidth,i=t.videoHeight;o=!0,n.runActions(s,i)},this.handleNotMetaDatedVideoLoad=function(){o||i.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var e=1920,t=1080;s.maxYoutubeDimensions&&(e=s.maxYoutubeDimensions.width,t=s.maxYoutubeDimensions.height),n.runActions(e,t)},this.handleCustomLoad=function(){var e=a[t],s=e.offsetWidth,o=e.offsetHeight;s&&o?n.runActions(s,o):setTimeout(i.handleCustomLoad)}}function c(e,t,n){var o=e.elements.sources,s=e.props.customClasses,i=s[t]?s[t]:"";o[t].className=n+" "+i}function d(e,t){var s,o=e.elements.sources,n=e.props.customAttributes;for(s in n[t])o[t].setAttribute(s,n[t][s])}function P(e,t){var o=e.collections.sourceLoadHandlers,s=e.elements,n=s.sources,i=s.sourceAnimationWrappers,r=e.props.sources;n[t]=document.createElement("img"),c(e,t,a),n[t].src=r[t],n[t].onload=o[t].handleImageLoad,d(e,t),i[t].appendChild(n[t])}function U(e,t){var s,o=e.collections.sourceLoadHandlers,i=e.elements,n=i.sources,h=i.sourceAnimationWrappers,r=e.props,l=r.sources,u=r.videosPosters;n[t]=document.createElement("video"),c(e,t,a),n[t].src=l[t],n[t].onloadedmetadata=function(e){o[t].handleVideoLoad(e)},n[t].controls=!0,d(e,t),u[t]&&(n[t].poster=u[t]),s=document.createElement("source"),s.src=l[t],n[t].appendChild(s),setTimeout(o[t].handleNotMetaDatedVideoLoad,3e3),h[t].appendChild(n[t])}function M(e,t){var o,r,l=e.collections.sourceLoadHandlers,i=e.elements,n=i.sources,u=i.sourceAnimationWrappers,h=e.props.sources;n[t]=document.createElement("iframe"),c(e,t,"".concat(a," ").concat(s,"youtube-iframe")),o=h[t],r=o.split("?")[1],n[t].src="https://www.youtube.com/embed/".concat(o.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)[2],"?").concat(r||""),n[t].allowFullscreen=!0,d(e,t),u[t].appendChild(n[t]),l[t].handleYoutubeLoad()}function T(e,t){var o=e.collections.sourceLoadHandlers,s=e.elements,n=s.sources,i=s.sourceAnimationWrappers,r=e.props.sources;n[t]=r[t],c(e,t,"".concat(n[t].className," ").concat(a)),i[t].appendChild(n[t]),o[t].handleCustomLoad()}function z(e,t){var a=e.elements,n=a.sources,i=a.sourceAnimationWrappers;e.props.sources,n[t]=document.createElement("div"),n[t].className="".concat(s,"invalid-file-wrapper ").concat(o),n[t].innerHTML="Invalid source",i[t].classList.add(r),i[t].removeChild(i[t].firstChild),i[t].appendChild(n[t])}function D(e){var t=e.collections,n=t.sourceLoadHandlers,s=t.sourcesRenderFunctions,o=e.core.sourceDisplayFacade,i=e.resolve;this.runActionsForSourceTypeAndIndex=function(t,a){var r;switch("invalid"!==t&&(n[a]=i(H,[a])),t){case"image":r=P;break;case"video":r=U;break;case"youtube":r=M;break;case"custom":r=T;break;default:r=z}s[a]=function(){return r(e,a)},o.displaySourcesWhichShouldBeDisplayed()}}function N(){var e,t,n,s={isUrlYoutubeOne:function(e){var t=document.createElement("a");return t.href=e,"www.youtube.com"===t.hostname||"youtu.be"===t.hostname},getTypeFromResponseContentType:function(e){return e.slice(0,e.indexOf("/"))}};function o(){if(4!==e.readyState){if(2===e.readyState){var t;switch(s.getTypeFromResponseContentType(e.getResponseHeader("content-type"))){case"image":t="image";break;case"video":t="video";break;default:t="invalid"}e.onreadystatechange=null,e.abort(),n(t)}}else n("invalid")}this.setUrlToCheck=function(e){t=e},this.getSourceType=function(i){if(s.isUrlYoutubeOne(t))return i("youtube");n=i,(e=new XMLHttpRequest).onreadystatechange=o,e.open("GET",t,!0),e.send()}}function L(e,t,n){var s=e.props,o=s.types,i=s.type,a=s.sources,r=e.resolve;this.getTypeSetByClientForIndex=function(e){var t;return o&&o[e]?t=o[e]:i&&(t=i),t},this.retrieveTypeWithXhrForIndex=function(e){var s=r(N);s.setUrlToCheck(a[e]),s.getSourceType(function(s){t.handleReceivedSourceTypeForUrl(s,a[e]),n.runActionsForSourceTypeAndIndex(s,e)})}}function R(e,t){var l=e.core.stageManager,r=e.elements,d=r.smw,u=r.sourceWrappersContainer,h=e.props,s=0,n=document.createElement("div");function a(e){n.style.transform="translateX(".concat(e+s,"px)"),s=0}function c(){return(1+h.slideDistance)*innerWidth}n.className="".concat(p," ").concat(i," ").concat(o),n.s=function(){n.style.display="flex"},n.h=function(){n.style.display="none"},n.a=function(){n.classList.add(A)},n.d=function(){n.classList.remove(A)},n.n=function(){n.style.removeProperty("transform")},n.v=function(e){return s=e,n},n.ne=function(){a(-c())},n.z=function(){a(0)},n.p=function(){a(c())},l.i(t)||n.h(),d[t]=n,u.appendChild(n),function(e,t){var o,a,i=e.elements,r=i.smw,c=i.sourceAnimationWrappers,n=document.createElement("div"),s=document.createElement("div");s.className="fslightboxl";for(o=0;o<3;o++)a=document.createElement("div"),s.appendChild(a);n.appendChild(s),r[t].appendChild(n),c[t]=n}(e,t)}function u(e,t,n,o){var a,i=document.createElementNS("http://www.w3.org/2000/svg","svg");return i.setAttributeNS(null,"width",t),i.setAttributeNS(null,"height",t),i.setAttributeNS(null,"viewBox",n),a=document.createElementNS("http://www.w3.org/2000/svg","path"),a.setAttributeNS(null,"class","".concat(s,"svg-path")),a.setAttributeNS(null,"d",o),i.appendChild(a),e.appendChild(i),i}function E(e,t){var n=document.createElement("div");return n.className="".concat(s,"toolbar-button ").concat(o),n.title=t,e.appendChild(n),n}function I(e,t){var n=document.createElement("div");n.className="".concat(s,"toolbar"),t.appendChild(n),function(e,t){var n,o=e.componentsServices,i=e.data,r=e.fs,a="M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",s=E(t);s.title="Enter fullscreen",n=u(s,"20px","0 0 18 18",a),o.ofs=function(){i.ifs=!0,s.title="Exit fullscreen",n.setAttributeNS(null,"width","24px"),n.setAttributeNS(null,"height","24px"),n.setAttributeNS(null,"viewBox","0 0 950 1024"),n.firstChild.setAttributeNS(null,"d","M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z")},o.xfs=function(){i.ifs=!1,s.title="Enter fullscreen",n.setAttributeNS(null,"width","20px"),n.setAttributeNS(null,"height","20px"),n.setAttributeNS(null,"viewBox","0 0 18 18"),n.firstChild.setAttributeNS(null,"d",a)},s.onclick=r.t}(e,n),function(e,t){var n=E(t,"Close");n.onclick=e.core.lightboxCloser.closeLightbox,u(n,"20px","0 0 24 24","M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z")}(e,n)}function B(e){var n=e.props.sources,i=e.elements.container,t=document.createElement("div");t.className="".concat(s,"nav"),i.appendChild(t),I(e,t),n.length>1&&function(e,t){var n,a,r,c,l=e.componentsServices,d=e.props.sources,i=(e.stageIndexes,document.createElement("div"));i.className="".concat(s,"slide-number-container"),n=document.createElement("div"),n.className=o,a=document.createElement("span"),l.setSlideNumber=function(e){return a.innerHTML=e},r=document.createElement("span"),r.className="".concat(s,"slash"),c=document.createElement("div"),c.innerHTML=d.length,i.appendChild(n),n.appendChild(a),n.appendChild(r),n.appendChild(c),t.appendChild(i),setTimeout(function(){n.offsetWidth>55&&(i.style.justifyContent="flex-start")})}(e,t)}function C(e,t,n,s){var a=e.elements.container,r=n.charAt(0).toUpperCase()+n.slice(1),i=document.createElement("div");i.className="".concat(O," ").concat(O,"-").concat(n),i.title="".concat(r," slide"),i.onclick=t,function(e,t){var n=document.createElement("div");n.className="".concat(k," ").concat(o),u(n,"20px","0 0 20 20",t),e.appendChild(n)}(i,s),a.appendChild(i)}function $(e){var t=e.core,s=t.lightboxCloser,n=t.slideChangeFacade,o=e.fs;this.listener=function(e){switch(e.key){case"Escape":s.closeLightbox();break;case"ArrowLeft":n.changeToPrevious();break;case"ArrowRight":n.changeToNext();break;case"F11":e.preventDefault(),o.t()}}}function W(e){var t=e.elements,n=e.sourcePointerProps,s=e.stageIndexes;function o(e,s){t.smw[e].v(n.swipedX)[s]()}this.runActionsForEvent=function(e){t.container.contains(t.slideSwipingHoverer)||t.container.appendChild(t.slideSwipingHoverer),a=t.container,i=S,(r=a.classList).contains(i)||r.add(i),n.swipedX=e.screenX-n.downScreenX;var i,a,r,c=s.previous,l=s.next;o(s.current,"z"),void 0!==c&&n.swipedX>0?o(c,"ne"):void 0!==l&&n.swipedX<0&&o(l,"p")}}function F(e){var n=e.props.sources,s=e.resolve,t=e.sourcePointerProps,o=s(W);1===n.length?this.listener=function(){t.swipedX=1}:this.listener=function(e){t.isPointering&&o.runActionsForEvent(e)}}function K(e){var i=e.core.slideIndexChanger,o=e.elements.smw,t=e.stageIndexes,s=e.sws;function n(e){var n=o[t.current];n.a(),n[e]()}function a(e,t){void 0!==e&&(o[e].s(),o[e][t]())}this.runPositiveSwipedXActions=function(){var e,r,o=t.previous;void 0===o?n("z"):(n("p"),r=t.next,i.changeTo(o),e=t.previous,s.d(e),s.b(r),n("z"),a(e,"ne"))},this.runNegativeSwipedXActions=function(){var e,r,o=t.next;void 0===o?n("z"):(n("ne"),r=t.previous,i.changeTo(o),e=t.next,s.d(e),s.b(r),n("z"),a(e,"p"))}}function x(e,t){e.contains(t)&&e.removeChild(t)}function Y(e){var o=e.core.lightboxCloser,t=e.elements,i=e.resolve,n=e.sourcePointerProps,s=i(K);this.runNoSwipeActions=function(){x(t.container,t.slideSwipingHoverer),n.isSourceDownEventTarget||o.closeLightbox(),n.isPointering=!1},this.runActions=function(){n.swipedX>0?s.runPositiveSwipedXActions():s.runNegativeSwipedXActions(),x(t.container,t.slideSwipingHoverer),t.container.classList.remove(S),n.isPointering=!1}}function G(e){var s=e.resolve,t=e.sourcePointerProps,n=s(Y);this.listener=function(){t.isPointering&&(t.swipedX?n.runActions():n.runNoSwipeActions())}}function X(e){var s=this,t=e.core,o=t.eventsDispatcher,i=t.globalEventsController,a=t.scrollbarRecompensor,r=e.data,n=e.elements,c=e.fs,l=e.props,d=e.sourcePointerProps;this.isLightboxFadingOut=!1,this.runActions=function(){s.isLightboxFadingOut=!0,n.container.classList.add(y),i.removeListeners(),l.exitFullscreenOnClose&&r.ifs&&c.x(),setTimeout(function(){s.isLightboxFadingOut=!1,d.isPointering=!1,n.container.classList.remove(y),document.documentElement.classList.remove(v),a.removeRecompense(),document.body.removeChild(n.container),o.dispatch("onClose")},270)}}function h(e,t){var n=e.classList;n.contains(t)&&n.remove(t)}function Z(e){var t,s=(t=e).core.eventsDispatcher,n=t.props;s.dispatch=function(e){n[e]&&n[e]()},function(e){var n=e.componentsServices,i=e.data,t=e.fs,s=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];function o(e){for(var t=0;tinnerHeight&&(document.body.style.marginRight=s.scrollbarWidth+"px")}t.addRecompense=function(){"complete"===document.readyState?n():addEventListener("load",function(){n(),t.addRecompense=n})},t.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(e),function(e){var n=e.core,t=n.slideChangeFacade,s=n.slideIndexChanger,o=n.stageManager;e.props.sources.length>1?(t.changeToPrevious=function(){s.jumpTo(o.getPreviousSlideIndex())},t.changeToNext=function(){s.jumpTo(o.getNextSlideIndex())}):(t.changeToPrevious=function(){},t.changeToNext=function(){})}(e),function(e){var d=e.componentsServices,o=e.core,i=o.slideIndexChanger,u=o.sourceDisplayFacade,r=o.stageManager,c=e.elements,n=c.smw,l=c.sourceAnimationWrappers,a=e.isl,t=e.stageIndexes,s=e.sws;i.changeTo=function(e){t.current=e,r.updateStageIndexes(),d.setSlideNumber(e+1),u.displaySourcesWhichShouldBeDisplayed()},i.jumpTo=function(e){var c,d=t.previous,o=t.current,u=t.next,h=a[o],p=a[e];i.changeTo(e);for(c=0;c1&&(n=(t=e).core.slideChangeFacade,C(t,n.changeToPrevious,"previous","M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"),C(t,n.changeToNext,"next","M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z")),function(e){for(var i,a,s=e.props.sources,o=e.resolve,r=o(Q),n=o(D),c=o(L,[r,n]),t=0;t0&&void 0!==arguments[0]?arguments[0]:0,s=o.previous,i=o.current,r=o.next;o.current=t,a.i||ee(e),h.updateStageIndexes(),a.i?(n.c(),n.a(),n.b(s),n.b(i),n.b(r),l.dispatch("onShow")):b(),m.displaySourcesWhichShouldBeDisplayed(),g.setSlideNumber(t+1),document.body.appendChild(c.container),document.documentElement.classList.add(v),f.addRecompense(),d.attachListeners(),u.runActions(),c.smw[o.current].n(),l.dispatch("onOpen")}}function w(){return(w=te()?Reflect.construct.bind():function(e,t,n){var o,s=[null];return s.push.apply(s,t),o=new(Function.bind.apply(e,s)),n&&j(o,n.prototype),o}).apply(null,arguments)}function te(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return n.unshift(e),w(t,se(n))},this.collections={sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={eventsDispatcher:{},globalEventsController:{},lightboxCloser:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},this.fs={},this.sws={},J(this),this.close=function(){return e.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},b(),window.refreshFsLightbox=function(){for(e in fsLightboxInstances){var e,t=fsLightboxInstances[e].props;fsLightboxInstances[e]=new FsLightbox,fsLightboxInstances[e].props=t,fsLightboxInstances[e].props.sources=[],fsLightboxInstances[e].elements.a=[]}b()}}])})}});d()})()