vendor: 14,995 bytes, lines 1-6
1/*! 2 * Glide.js v3.4.1 3 * (c) 2013-2019 JÄdrzej ChaÅubek <[email protected]> (http://jedrzejchalubek.com/) 4 * Released under the MIT License. 5 */ 6if(function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Glide=e()}(this,(function(){"use strict";var t={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perTouch:!1,touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{direction:{ltr:"glide--ltr",rtl:"glide--rtl"},slider:"glide--slider",carousel:"glide--carousel",swipeable:"glide--swipeable",dragging:"glide--dragging",cloneSlide:"glide__slide--clone",activeNav:"glide__bullet--active",activeSlide:"glide__slide--active",disabledArrow:"glide__arrow--disabled"}};function e(t){console.error("[Glide warn]: "+t)}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},o=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}}(),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(i):void 0};function a(t){return parseInt(t)}function u(t){return"string"==typeof t}function c(t){var e=void 0===t?"undefined":n(t);return"function"===e||"object"===e&&!!t}function l(t){return"function"==typeof t}function d(t){return void 0===t}function f(t){return t.constructor===Array}function h(t,e,n){Object.defineProperty(t,e,n)}function p(t,e){var n=r({},t,e);return e.hasOwnProperty("classes")&&(n.classes=r({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=r({},t.classes.direction,e.classes.direction))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=r({},t.breakpoints,e.breakpoints)),n}var m=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.events=e,this.hop=e.hasOwnProperty}return o(t,[{key:"on",value:function(t,e){if(f(t))for(var n=0;n<t.length;n++)this.on(t[n],e);this.hop.call(this.events,t)||(this.events[t]=[]);var i=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][i]}}}},{key:"emit",value:function(t,e){if(f(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);this.hop.call(this.events,t)&&this.events[t].forEach((function(t){t(e||{})}))}}]),t}(),v=function(){function n(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,n),this._c={},this._t=[],this._e=new m,this.disabled=!1,this.selector=e,this.settings=p(t,o),this.index=this.settings.startAt}return o(n,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),c(t)?this._c=function(t,n,i){var o={};for(var r in n)l(n[r])?o[r]=n[r](t,o,i):e("Extension must be a function");for(var s in o)l(o[s].mount)&&o[s].mount();return o}(this,t,this._e):e("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return f(t)?this._t=t:e("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=p(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){c(t)?this._o=t:e("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=a(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),n}();function g(){return(new Date).getTime()}function y(t,e,n){var i=void 0,o=void 0,r=void 0,s=void 0,a=0;n||(n={});var u=function(){a=!1===n.leading?0:g(),i=null,s=t.apply(o,r),i||(o=r=null)},c=function(){var c=g();a||!1!==n.leading||(a=c);var l=e-(c-a);return o=this,r=arguments,l<=0||l>e?(i&&(clearTimeout(i),i=null),a=c,s=t.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(u,l)),s};return c.cancel=function(){clearTimeout(i),a=0,i=o=r=null},c}var b={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function w(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function _(t){return!!(t&&t instanceof window.HTMLElement)}var k='[data-glide-el="track"]';var S=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.listeners=e}return o(t,[{key:"on",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];u(t)&&(t=[t]);for(var o=0;o<t.length;o++)this.listeners[t[o]]=n,e.addEventListener(t[o],this.listeners[t[o]],i)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.removeEventListener(t[i],this.listeners[t[i]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),t}();var E=["ltr","rtl"],L={">":"<","<":">","=":"="};function C(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function T(t,e){return{modify:function(n){return n+e.Gaps.value*t.index}}}function x(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function O(t,e){return{modify:function(n){if(t.settings.focusAt>=0){var i=e.Peek.value;return c(i)?n-i.before:n-i}return n}}}function A(t,e){return{modify:function(n){var i=e.Gaps.value,o=e.Sizes.width,r=t.settings.focusAt,s=e.Sizes.slideWidth;return"center"===r?n-(o/2-s/2):n-s*r-i*r}}}var H=!1;try{var M=Object.defineProperty({},"passive",{get:function(){H=!0}});window.addEventListener("testPassive",null,M),window.removeEventListener("testPassive",null,M)}catch(t){}var P=H,j=["touchstart","mousedown"],B=["touchmove","mousemove"],D=["touchend","touchcancel","mouseup","mouseleave"],I=["mousedown","mousemove","mouseup","mouseleave"];function R(t){return c(t)?(n=t,Object.keys(n).sort().reduce((function(t,e){return t[e]=n[e],t[e],t}),{})):(e("Breakpoints option must be an object"),{});var n}var z={Html:function(t,n){var i={mount:function(){this.root=t.selector,this.track=this.root.querySelector(k),this.slides=Array.prototype.slice.call(this.wrapper.children).filter((function(e){return!e.classList.contains(t.settings.classes.cloneSlide)}))}};return h(i,"root",{get:function(){return i._r},set:function(t){u(t)&&(t=document.querySelector(t)),_(t)?i._r=t:e("Root element must be a existing Html node")}}),h(i,"track",{get:function(){return i._t},set:function(t){_(t)?i._t=t:e("Could not find track element. Please use "+k+" attribute.")}}),h(i,"wrapper",{get:function(){return i.track.children[0]}}),i},Translate:function(t,n,i){var o={set:function(i){var o=function(t,n,i){var o=[T,x,O,A].concat(t._t,[C]);return{mutate:function(r){for(var s=0;s<o.length;s++){var a=o[s];l(a)&&l(a().modify)?r=a(t,n,i).modify(r):e("Transformer should be a function that returns an object with `modify()` method")}return r}}}(t,n).mutate(i);n.Html.wrapper.style.transform="translate3d("+-1*o+"px, 0px, 0px)"},remove:function(){n.Html.wrapper.style.transform=""}};return i.on("move",(function(e){var r=n.Gaps.value,s=n.Sizes.length,a=n.Sizes.slideWidth;return t.isType("carousel")&&n.Run.isOffset("<")?(n.Transition.after((function(){i.emit("translate.jump"),o.set(a*(s-1))})),o.set(-a-r*s)):t.isType("carousel")&&n.Run.isOffset(">")?(n.Transition.after((function(){i.emit("translate.jump"),o.set(0)})),o.set(a*s+r*s)):o.set(e.movement)})),i.on("destroy",(function(){o.remove()})),o},Transition:function(t,e,n){var i=!1,o={compose:function(e){var n=t.settings;return i?e+" 0ms "+n.animationTimingFunc:e+" "+this.duration+"ms "+n.animationTimingFunc},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout((function(){t()}),this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return h(o,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){o.set()})),n.on(["build.before","resize","translate.jump"],(function(){o.disable()})),n.on("run",(function(){o.enable()})),n.on("destroy",(function(){o.remove()})),o},Direction:function(t,n,i){var o={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(L[e]):t},is:function(t){return this.value===t},addClass:function(){n.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){n.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return h(o,"value",{get:function(){return o._v},set:function(t){E.indexOf(t)>-1?o._v=t:e("Direction value must be `ltr` or `rtl`")}}),i.on(["destroy","update"],(function(){o.removeClass()})),i.on("update",(function(){o.mount()})),i.on(["build.before","update"],(function(){o.addClass()})),o},Peek:function(t,e,n){var i={mount:function(){this.value=t.settings.peek}};return h(i,"value",{get:function(){return i._v},set:function(t){c(t)?(t.before=a(t.before),t.after=a(t.after)):t=a(t),i._v=t}}),h(i,"reductor",{get:function(){var e=i.value,n=t.settings.perView;return c(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],(function(){i.mount()})),i},Sizes:function(t,e,n){var i={setupSlides:function(){for(var t=this.slideWidth+"px",n=e.Html.slides,i=0;i<n.length;i++)n[i].style.width=t},setupWrapper:function(t){e.Html.wrapper.style.width=this.wrapperSize+"px"},remove:function(){for(var t=e.Html.slides,n=0;n<t.length;n++)t[n].style.width="";e.Html.wrapper.style.width=""}};return h(i,"length",{get:function(){return e.Html.slides.length}}),h(i,"width",{get:function(){return e.Html.root.offsetWidth}}),h(i,"wrapperSize",{get:function(){return i.slideWidth*i.length+e.Gaps.grow+e.Clones.grow}}),h(i,"slideWidth",{get:function(){return i.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],(function(){i.setupSlides(),i.setupWrapper()})),n.on("destroy",(function(){i.remove()})),i},Gaps:function(t,e,n){var i={apply:function(t){for(var n=0,i=t.length;n<i;n++){var o=t[n].style,r=e.Direction.value;o[b[r][0]]=0!==n?this.value/2+"px":"",n!==t.length-1?o[b[r][1]]=this.value/2+"px":o[b[r][1]]=""}},remove:function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].style;i.marginLeft="",i.marginRight=""}}};return h(i,"value",{get:function(){return a(t.settings.gap)}}),h(i,"grow",{get:function(){return i.value*(e.Sizes.length-1)}}),h(i,"reductor",{get:function(){var e=t.settings.perView;return i.value*(e-1)/e}}),n.on(["build.after","update"],y((function(){i.apply(e.Html.wrapper.children)}),30)),n.on("destroy",(function(){i.remove(e.Html.wrapper.children)})),i},Move:function(t,e,n){var i={mount:function(){this._o=0},make:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=i,n.emit("move",{movement:this.value}),e.Transition.after((function(){n.emit("move.after",{movement:t.value})}))}};return h(i,"offset",{get:function(){return i._o},set:function(t){i._o=d(t)?0:a(t)}}),h(i,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),h(i,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],(function(){i.make()})),i},Clones:function(t,e,n){var i={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=e.Html.slides,o=t.settings,r=o.perView,s=o.classes,a=r+ +!!t.settings.peek,u=i.slice(0,a),c=i.slice(-a),l=0;l<Math.max(1,Math.floor(r/i.length));l++){for(var d=0;d<u.length;d++){var f=u[d].cloneNode(!0);f.classList.add(s.cloneSlide),n.push(f)}for(var h=0;h<c.length;h++){var p=c[h].cloneNode(!0);p.classList.add(s.cloneSlide),n.unshift(p)}}return n},append:function(){for(var t=this.items,n=e.Html,i=n.wrapper,o=n.slides,r=Math.floor(t.length/2),s=t.slice(0,r).reverse(),a=t.slice(r,t.length),u=e.Sizes.slideWidth+"px",c=0;c<a.length;c++)i.appendChild(a[c]);for(var l=0;l<s.length;l++)i.insertBefore(s[l],o[0]);for(var d=0;d<t.length;d++)t[d].style.width=u},remove:function(){for(var t=this.items,n=0;n<t.length;n++)e.Html.wrapper.removeChild(t[n])}};return h(i,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*i.items.length}}),n.on("update",(function(){i.remove(),i.mount(),i.append()})),n.on("build.before",(function(){t.isType("carousel")&&i.append()})),n.on("destroy",(function(){i.remove()})),i},Resize:function(t,e,n){var i=new S,o={mount:function(){this.bind()},bind:function(){i.on("resize",window,y((function(){n.emit("resize")}),t.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",(function(){o.unbind(),i.destroy()})),o},Build:function(t,e,n){var i={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes[t.settings.type])},activeClass:function(){var n=t.settings.classes,i=e.Html.slides[t.index];i&&(i.classList.add(n.activeSlide),w(i).forEach((function(t){t.classList.remove(n.activeSlide)})))},removeClasses:function(){var n=t.settings.classes;e.Html.root.classList.remove(n[t.settings.type]),e.Html.slides.forEac
6h((function(t){t.classList.remove(n.activeSlide)}))}};return n.on(["destroy","update"],(function(){i.removeClasses()})),n.on(["resize","update"],(function(){i.mount()})),n.on("move.after",(function(){i.activeClass()})),i},Run:function(t,n,i){var o={mount:function(){this._o=!1},make:function(e){var o=this;t.disabled||(t.disable(),this.move=e,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),n.Transition.after((function(){o.isStart()&&i.emit("run.start",o.move),o.isEnd()&&i.emit("run.end",o.move),(o.isOffset("<")||o.isOffset(">"))&&(o._o=!1,i.emit("run.offset",o.move)),i.emit("run.after",o.move),t.enable()})))},calculate:function(){var n=this.move,i=this.length,o=n.steps,r=n.direction,s="number"==typeof a(o)&&0!==a(o);switch(r){case">":">"===o?t.index=i:this.isEnd()?t.isType("slider")&&!t.settings.rewind||(this._o=!0,t.index=0):s?t.index+=Math.min(i-t.index,-a(o)):t.index++;break;case"<":"<"===o?t.index=0:this.isStart()?t.isType("slider")&&!t.settings.rewind||(this._o=!0,t.index=i):s?t.index-=Math.min(t.index,a(o)):t.index--;break;case"=":t.index=o;break;default:e("Invalid direction pattern ["+r+o+"] has been used")}},isStart:function(){return 0===t.index},isEnd:function(){return t.index===this.length},isOffset:function(t){return this._o&&this.move.direction===t}};return h(o,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?a(e)?a(e):e:0}}}),h(o,"length",{get:function(){var e=t.settings,i=n.Html.slides.length;return t.isType("slider")&&"center"!==e.focusAt&&e.bound?i-1-(a(e.perView)-1)+a(e.focusAt):i-1}}),h(o,"offset",{get:function(){return this._o}}),o},Swipe:function(t,e,n){var i=new S,o=0,r=0,s=0,u=!1,c=!!P&&{passive:!0},l={mount:function(){this.bindSwipeStart()},start:function(e){if(!u&&!t.disabled){this.disable();var i=this.touches(e);o=null,r=a(i.pageX),s=a(i.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(i){if(!t.disabled){var u=t.settings,c=u.touchAngle,l=u.touchRatio,d=u.classes,f=this.touches(i),h=a(f.pageX)-r,p=a(f.pageY)-s,m=Math.abs(h<<2),v=Math.abs(p<<2),g=Math.sqrt(m+v),y=Math.sqrt(v);if(!(180*(o=Math.asin(y/g))/Math.PI<c))return!1;i.stopPropagation(),e.Move.make(h*parseFloat(l)),e.Html.root.classList.add(d.dragging),n.emit("swipe.move")}},end:function(i){if(!t.disabled){var s=t.settings,u=this.touches(i),c=this.threshold(i),l=u.pageX-r,d=180*o/Math.PI,f=Math.round(l/e.Sizes.slideWidth);this.enable(),l>c&&d<s.touchAngle?(s.perTouch&&(f=Math.min(f,a(s.perTouch))),e.Direction.is("rtl")&&(f=-f),e.Run.make(e.Direction.resolve("<"+f))):l<-c&&d<s.touchAngle?(s.perTouch&&(f=Math.max(f,-a(s.perTouch))),e.Direction.is("rtl")&&(f=-f),e.Run.make(e.Direction.resolve(">"+f))):e.Move.make(),e.Html.root.classList.remove(s.classes.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,o=t.settings;o.swipeThreshold&&i.on(j[0],e.Html.wrapper,(function(t){n.start(t)}),c),o.dragThreshold&&i.on(j[1],e.Html.wrapper,(function(t){n.start(t)}),c)},unbindSwipeStart:function(){i.off(j[0],e.Html.wrapper,c),i.off(j[1],e.Html.wrapper,c)},bindSwipeMove:function(){var n=this;i.on(B,e.Html.wrapper,y((function(t){n.move(t)}),t.settings.throttle),c)},unbindSwipeMove:function(){i.off(B,e.Html.wrapper,c)},bindSwipeEnd:function(){var t=this;i.on(D,e.Html.wrapper,(function(e){t.end(e)}))},unbindSwipeEnd:function(){i.off(D,e.Html.wrapper)},touches:function(t){return I.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return I.indexOf(e.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return u=!1,e.Transition.enable(),this},disable:function(){return u=!0,e.Transition.disable(),this}};return n.on("build.after",(function(){e.Html.root.classList.add(t.settings.classes.swipeable)})),n.on("destroy",(function(){l.unbindSwipeStart(),l.unbindSwipeMove(),l.unbindSwipeEnd(),i.destroy()})),l},Images:function(t,e,n){var i=new S,o={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",(function(){o.unbind(),i.destroy()})),o},Anchors:function(t,e,n){var i=new S,o=!1,r=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){r&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(r=!0,!o){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1,this.items[t].setAttribute("data-href",this.items[t].getAttribute("href")),this.items[t].removeAttribute("href");o=!0}return this},attach:function(){if(r=!1,o){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0,this.items[t].setAttribute("href",this.items[t].getAttribute("data-href"));o=!1}return this}};return h(s,"items",{get:function(){return s._a}}),n.on("swipe.move",(function(){s.detach()})),n.on("swipe.end",(function(){e.Transition.after((function(){s.attach()}))})),n.on("destroy",(function(){s.attach(),s.unbind(),i.destroy()})),s},Controls:function(t,e,n){var i=new S,o=!!P&&{passive:!0},r={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="
6controls[nav]"]'),this._c=e.Html.root.querySelectorAll('[data-glide-el^="controls"]'),this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var n=t.settings,i=e[t.index];i&&(i.classList.add(n.classes.activeNav),w(i).forEach((function(t){t.classList.remove(n.classes.activeNav)})))},removeClass:function(e){var n=e[t.index];n&&n.classList.remove(t.settings.classes.activeNav)},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)i.on("click",t[e],this.click),i.on("touchstart",t[e],this.click,o)},unbind:function(t){for(var e=0;e<t.length;e++)i.off(["click","touchstart"],t[e])},click:function(t){t.preventDefault(),e.Run.make(e.Direction.resolve(t.currentTarget.getAttribute("data-glide-dir")))}};return h(r,"items",{get:function(){return r._c}}),n.on(["mount.after","move.after"],(function(){r.setActive()})),n.on("destroy",(function(){r.removeBindings(),r.removeActive(),i.destroy()})),r},Keyboard:function(t,e,n){var i=new S,o={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(t){39===t.keyCode&&e.Run.make(e.Direction.resolve(">")),37===t.keyCode&&e.Run.make(e.Direction.resolve("<"))}};return n.on(["destroy","update"],(function(){o.unbind()})),n.on("update",(function(){o.mount()})),n.on("destroy",(function(){i.destroy()})),o},Autoplay:function(t,e,n){var i=new S,o={mount:function(){this.start(),t.settings.hoverpause&&this.bind()},start:function(){var n=this;t.settings.autoplay&&d(this._i)&&(this._i=setInterval((function(){n.stop(),e.Run.make(">"),n.start()}),this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",e.Html.root,(function(){t.stop()})),i.on("mouseout",e.Html.root,(function(){t.start()}))},unbind:function(){i.off(["mouseover","mouseout"],e.Html.root)}};return h(o,"time",{get:function(){var n=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return a(n||t.settings.autoplay)}}),n.on(["destroy","update"],(function(){o.unbind()})),n.on(["run.before","pause","destroy","swipe.start","update"],(function(){o.stop()})),n.on(["run.after","play","swipe.end"],(function(){o.start()})),n.on("update",(function(){o.mount()})),n.on("destroy",(function(){i.destroy()})),o},Breakpoints:function(t,e,n){var i=new S,o=t.settings,s=R(o.breakpoints),a=r({},o),u={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: "+e+"px)").matches)return t[e];return a}};return r(o,u.match(s)),i.on("resize",window,y((function(){t.settings=p(o,u.match(s))}),t.settings.throttle)),n.on("update",(function(){s=R(s),a=r({},o)})),n.on("destroy",(function(){i.off("resize",window)})),u}},N=function(t){function e(){return i(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"mount",this).call(this,r({},z,t))}}]),e}(v);return N})),$(document).ready((function(){lazyLoadUpdateAll(),initStickySubscribe()})),"undefined"!=typeof countryCode&&"CO"===countryCode){const t=function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga.event",event_category:"web",event_action:"ad_load_start",event_label:"ad_load_start_ad_area_60",event_non_interaction:1})};window.addEventListener("DOMContentLoaded",(e=>{null!==document.getElementById("rek60")?.offsetParent&&t()}))}function initStickySubscribe(){const t=document.getElementById("sticky-subscribe"),e=document.querySelector("#page-footer");let n=!1;if(!t||!e)return;new IntersectionObserver((t=>{t.forEach((t=>{n=t.isIntersecting}))}),{root:null,threshold:0}).observe(e),window.addEventListener("scroll",throttleFn((()=>{!n&&window.scrollY>25?t.classList.add("shown"):t.classList.remove("shown")}),500))}const ShopContentTextHandler=new function(){this.init=function(){this.holder=document.getElementById("main-text-tabs"),this.holder&&(this.menuElements=this.holder.getElementsByClassName("menu-link"),this.menuContent=document.querySelectorAll(".tab-panel-slide"),this.menuContent&&this.menuContent.length>0&&(this.menuContent[0].style.display="block",this.menuElements&&this.menuElements.length>0&&(this.menuElements[0].classList.add("active"),this.menuElements[0].parentElement.setAttribute("aria-selected","true"))))},this.openTab=function(t,e){var n,i,o;for(i=document.getElementsByClassName("tab-panel-slide"),n=0;n<i.length;n++)i[n].style.display="none";for(o=document.getElementsByClassName("menu-link"),n=0;n<o.length;n++)o[n].className=o[n].className.replace(" active",""),o[n].parentElement.setAttribute("aria-selected","false");document.getElementById(e).style.display="block",t.currentTarget.className+=" active",t.currentTarget.parentElement.setAttribute("aria-selected","true")}};function removeQueryParam(t){const e=window.location.protocol+"//"+window.location.host+window.location.pathname,n=new URLSearchParams(window.location.search);n.delete(t);const i=e+"?"+n.toString();history.replaceState(null,"",i)}function adExperimentOriginalpageOpen(){const t=new URLSearchParams(document.location.search).get("ref");"brochureAB"===t?(adExperimentGaEventAB(),removeQueryParam("ref")):"brochure"===t&&(adExperimentGaEvent(),removeQueryParam("ref")),document.removeEventListener("visibilitychange",adExperimentVisibility)}function adExperimentVisibility(){"visible"===document.visibilityState&&null!==new URLSearchParams(document.location.search).get("ref")&&adExperimentOriginalpageOpen()}function adExperimentGaEvent(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga.event",event_category:"web",event_action:"view",event_label:"leaflet_next_page_original_window_open",event_non_interaction:1})}function adExperimentGaEventAB(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga.event",event_category:"web",event_action:"view",event_label:"ad_experiment_original_page_open",event_non_interaction:1})}function trackDetailBrochureClickMain(t,e){window.dataLayer.push({event:"ga4.leaflet_click",event_data:{clickLeafletId:t,placement:"shop_grid_primary"}})}ShopContentTextHandler.init(),document.addEventListener("visibilitychange",adExperimentVisibility),function(){const t={BE:"https://cdn.nuload.net/folderbode_be/ad.js",BG:"https://cdn.nuload.net/broshurko_bg/ad.js",CO:"https://cdn.nuload.net/ofertero_com_co/ad.js",CY:"https://cdn.nuload.net/fylladiomat_com_cy/ad.js",DE:"https://cdn.nuload.net/prospektmaschine_de/ad.js",KR:"https://cdn.nuload.net/oferlo_kr/ad.js",NL:"https://cdn.nuload.net/folderbode_nl/ad.js",PE:"https://cdn.nuload.net/ofertero_pe/ad.js",PT:"https://cdn.nuload.net/panfleteiro_pt/ad.js",RS:"https://cdn.nuload.net/oferlo_rs/a
6d.js",SI:"https://cdn.nuload.net/letakonosa_si/ad.js",SK:"https://cdn.nuload.net/letakomat_sk/ad.js",US:"https://cdn.nuload.net/offermate_us/ad.js",ZA:"https://cdn.nuload.net/latestspecials_co_za/ad.js"};if(!countryCode||!t[countryCode])return;if(["SK"].includes(countryCode)){const t=/Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<=1024||screen.width<=1024;if(t&&e)return}const e=document.createElement("script");e.type="module",e.src=t[countryCode],document.head.appendChild(e),addSpecificYieldClass(),observeShopThumbsLoad(addSpecificYieldClass)}();const anchorAds=document.querySelectorAll(".anchor-ads");function addSpecificYieldClass(){document.querySelectorAll(".page-body > .letaky-grid .brochure-thumb a, .page-body > .tcl-tiles-grid .brochure-thumb a").forEach((t=>t.classList.add("nu-reward")))}function displayOffersBrochureThumb(){try{const t=document.getElementById("offers-thumb-tmpl");if(!t||"undefined"!=typeof noCurrentBrochureMessageIsRendered)return;const e=t.content.cloneNode(!0),n=document.getElementById(`shop-${shop_id}-brochures-prepend`);if(!n)throw new Error("Brochure grid was not found!");const i=n.querySelectorAll(":scope > .brochure-thumb:not(.offers-thumb)"),o=i[i.length-1],r=n.classList.contains("tcl-tiles-grid")?i.length<4:1===i.length;if(o&&r)return void o.after(e);n.appendChild(e)}catch(t){console.error("displayOffersBrochureThumb: ",t)}}async function trackMissingLeaflet(){const t=document.querySelectorAll(".skeleton-loader.done .brochure-thumb:not(.offers-thumb)");if(t.length&&"3"!==t[0].dataset.brochureType)return;const e=!!t.length&&"3"===t[0].dataset.brochureType,n=Number.parseInt(document.getElementById("national-brochures-count")?.value)>0||e?"all_brochures_filtered":"empty_data_from_api";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ga4.missing_leaflet_shop",event_data:{type:n,shopOriginalId:"undefined"==typeof shop_id?-1:shop_id}}),"undefined"!=typeof is_offers&&is_offers&&window.dataLayer.push({event:"ga4.sign_up_popup_show",event_data:{event_source:"missing_leaflet_shop"}});await GeolocationManager.resetIpGeolocationOncePerDay("missing_leaflet_shop","shopInit.trackMissingLeaflet")}document.addEventListener("DOMContentLoaded",(function(t){anchorAds.forEach((t=>{!0!==Boolean(CookieManager.getCookie(t.id))?t.style.display="block":t.remove()}))})),anchorAds.forEach((t=>{t.addEventListener("click",(function(e){let n=Boolean(CookieManager.getCookie(t.id));const i=t.querySelector("button"),o=new URLSearchParams(window.location.search),r=Number.parseInt(t.dataset.page?t.dataset.page:-1);if(r>0){Number.parseInt(o.get("page"))}e.target===i&&0>r&&!0!==n&&t.remove(),CookieManager.setCookie(t.id,!0)}))})),document.addEventListener("DOMContentLoaded",(async function(){"CL"===countryCode&&(addSpecificYieldClass(),observeShopThumbsLoad(addSpecificYieldClass)),window.backButton=new BackButton(shop_id,shop_category_id),window.exitPage=new ExitPage(shop_id,shop_category_id,"shop"),observeShopThumbsLoad(displayOffersBrochureThumb),await renderAjaxShopFavorites(),observeShopThumbsLoad((()=>setTimeout((()=>{trackMissingLeaflet().catch((t=>bconsole.error("TrackMissingLeafletError: "+t,"frontend-error",1,!0)))}),1e3)))}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.