sanbartolo.gob.mx Open in urlscan Pro
198.135.48.112  Public Scan

URL: https://sanbartolo.gob.mx/SANBARTOLO/wp-content/themes/pathsoft/assets/js/script.min.js?ver=1.2.1626360082
Submission: On November 01 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(P,p){"use strict";function r(b,w,x,t,e){function i(){var n,s,r,a;y=1<P.devicePixelRatio,x=o(x),0<=w.delay&&setTimeout(function(){l(!0)},w.delay),(w.delay<0||w.combined)&&(t.e=(n=w.throttle,s=function(t){"resize"===t.type&&(E=z=-1),l(t.all)},a=0,function(t,e){function i(){a=+new Date,s.call(b,t)}var o=new Date-a;r&&clearTimeout(r),n<o||!w.enableThrottle||e?i():r=setTimeout(i,n-o)}),t.a=function(t){t=o(t),x.push.apply(x,t)},t.g=function(){return x=F(x).filter(function(){return!F(this).data(w.loadedName)})},t.f=function(t){for(var e=0;e<t.length;e++){var i=x.filter(function(){return this===t[e]});i.length&&l(!1,i)}},l(),F(w.appendScroll).on("scroll."+e+" resize."+e,t.e))}function o(t){for(var e=w.defaultImage,i=w.placeholder,o=w.imageBase,n=w.srcsetAttribute,s=w.loaderAttribute,r=w._f||{},a=0,l=(t=F(t).filter(function(){var t=F(this),e=C(this);return!t.data(w.handledName)&&(t.attr(w.attribute)||t.attr(n)||t.attr(s)||r[e]!==p)}).data("plugin_"+w.name,b)).length;a<l;a++){var d=F(t[a]),c=C(t[a]),u=d.attr(w.imageBaseAttribute)||o;c===$&&u&&d.attr(n)&&d.attr(n,h(d.attr(n),u)),r[c]===p||d.attr(s)||d.attr(s,r[c]),c===$&&e&&!d.attr(A)?d.attr(A,e):c===$||!i||d.css(L)&&"none"!==d.css(L)||d.css(L,"url('"+i+"')")}return t}function l(t,e){if(x.length){for(var i=e||x,o=!1,n=w.imageBase||"",s=w.srcsetAttribute,r=w.handledName,a=0;a<i.length;a++)if(t||e||(p=i[a],0,f=p.getBoundingClientRect(),m=w.scrollDirection,g=w.threshold,v=(0<=z?z:z=F(P).height())+g>f.top&&-g<f.bottom,y=(0<=E?E:E=F(P).width())+g>f.left&&-g<f.right,"vertical"===m?v:("horizontal"===m||v)&&y)){var l=F(i[a]),d=C(i[a]),c=l.attr(w.attribute),u=l.attr(w.imageBaseAttribute)||n,h=l.attr(w.loaderAttribute);l.data(r)||w.visibleOnly&&!l.is(":visible")||!((c||l.attr(s))&&(d===$&&(u+c!==l.attr(A)||l.attr(s)!==l.attr(I))||d!==$&&u+c!==l.css(L))||h)||(o=!0,l.data(r,!0),S(l,d,u,h))}var p,f,m,g,v,y;o&&(x=F(x).filter(function(){return!F(this).data(r)}))}else w.autoDestroy&&b.destroy()}function S(e,t,i,o){++v;var n=function(){g("onError",e),m(),n=F.noop};g("beforeLoad",e);var s=w.attribute,r=w.srcsetAttribute,a=w.sizesAttribute,l=w.retinaAttribute,d=w.removeAttribute,c=w.loadedName,u=e.attr(l);if(o){var h=function(){d&&e.removeAttr(w.loaderAttribute),e.data(c,!0),g(T,e),setTimeout(m,1),h=F.noop};e.off(k).one(k,n).one(_,h),g(o,e,function(t){t?(e.off(_),h()):(e.off(k),n())})||e.trigger(k)}else{var p=F(new Image);p.one(k,n).one(_,function(){e.hide(),t===$?e.attr(D,p.attr(D)).attr(I,p.attr(I)).attr(A,p.attr(A)):e.css(L,"url('"+p.attr(A)+"')"),e[w.effect](w.effectTime),d&&(e.removeAttr(s+" "+r+" "+l+" "+w.imageBaseAttribute),a!==D&&e.removeAttr(a)),e.data(c,!0),g(T,e),p.remove(),m()});var f=(y&&u?u:e.attr(s))||"";p.attr(D,e.attr(a)).attr(I,e.attr(r)).attr(A,f?i+f:null),p.complete&&p.trigger(_)}}function C(t){return t.tagName.toLowerCase()}function h(t,e){if(e){var i=t.split(",");t="";for(var o=0,n=i.length;o<n;o++)t+=e+i[o].trim()+(o!==n-1?",":"")}return t}function m(){--v,x.length||v||g("onFinishedAll")}function g(t,e,i){return(t=w[t])&&(t.apply(b,[].slice.call(arguments,1)),1)}var v=0,E=-1,z=-1,y=!1,T="afterLoad",_="load",k="error",$="img",A="src",I="srcset",D="sizes",L="background-image";"event"===w.bind||n?i():F(P).on(_+"."+e,i)}function d(t,e){var i=this,o=F.extend({},i.config,e),n={},s=o.name+"-"+ ++a;return i.config=function(t,e){return e===p?o[t]:(o[t]=e,i)},i.addItems=function(t){return n.a&&n.a("string"===F.type(t)?F(t):t),i},i.getItems=function(){return n.g?n.g():{}},i.update=function(t){return n.e&&n.e({},!t),i},i.force=function(t){return n.f&&n.f("string"===F.type(t)?F(t):t),i},i.loadAll=function(){return n.e&&n.e({all:!0},!0),i},i.destroy=function(){return F(o.appendScroll).off("."+s,n.e),F(P).off("."+s),n={},p},r(i,o,t,n,s),o.chainable?t:i}var F=P.jQuery||P.Zepto,a=0,n=!1;F.fn.Lazy=F.fn.lazy=function(t){return new d(this,t)},F.Lazy=F.lazy=function(t,e,i){if(F.isFunction(e)&&(i=e,e=[]),F.isFunction(i)){t=F.isArray(t)?t:[t],e=F.isArray(e)?e:[e];for(var o=d.prototype.config,n=o._f||(o._f={}),s=0,r=t.length;s<r;s++)o[t[s]]!==p&&!F.isFunction(o[t[s]])||(o[t[s]]=i);for(var a=0,l=e.length;a<l;a++)n[e[a]]=t[0]}},d.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:P,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:p,afterLoad:p,onError:p,onFinishedAll:p},F(P).on("load",function(){n=!0})}(window),function(s){function r(t,e,i){var o=t.prop("attributes"),n=s("<"+e+">");return s.each(o,function(t,e){"srcset"!==e.name&&e.name!==d||(e.value=l(e.value,i)),n.attr(e.name,e.value)}),t.replaceWith(n),n}function a(t,e,i){var o=s("<img>").one("load",function(){i(!0)}).one("error",function(){i(!1)}).appendTo(t).attr("src",e);o.complete&&o.load()}function l(t,e){if(e){var i=t.split(",");t="";for(var o=0,n=i.length;o<n;o++)t+=e+i[o].trim()+(o!==n-1?",":"")}return t}var d="data-src";s.lazy(["pic","picture"],["picture"],function(t,e){if("picture"===t[0].tagName.toLowerCase()){var i=t.find(d),o=t.find("data-img"),n=this.config("imageBase")||"";i.length?(i.each(function(){r(s(this),"source",n)}),1===o.length?((o=r(o,"img",n)).on("load",function(){e(!0)}).on("error",function(){e(!1)}),o.attr("src",o.attr(d)),this.config("removeAttribute")&&o.removeAttr(d)):t.attr(d)?(a(t,n+t.attr(d),e),this.config("removeAttribute")&&t.removeAttr(d)):e(!1)):t.attr("data-srcset")?(s("<source>").attr({media:t.attr("data-media"),sizes:t.attr("data-sizes"),type:t.attr("data-type"),srcset:l(t.attr("data-srcset"),n)}).appendTo(t),a(t,n+t.attr(d),e),this.config("removeAttribute")&&t.removeAttr(d+" data-srcset data-media data-sizes data-type")):e(!1)}else e(!1)})}(window.jQuery||window.Zepto),function(_){_.isScrollToFixed=function(t){return!!_(t).data("ScrollToFixed")},_.ScrollToFixed=function(t,e){var s=this;s.$el=_(t),s.el=t,s.$el.data("ScrollToFixed",s);var r,a,i,o,l=!1,d=s.$el,c=0,u=0,h=-1,p=-1,n=null;function f(){var t=s.options.limit;return t?"function"==typeof t?t.apply(d):t:0}function m(){return"fixed"===r}function g(){return"absolute"===r}function v(){return!(m()||g())}function y(){if(!m()){var t=d[0].getBoundingClientRect();n.css({display:d.css("display"),width:t.width,height:t.height,float:d.css("float")}),cssOptions={"z-index":s.options.zIndex,position:"fixed",top:-1==s.options.bottom?S():"",bottom:-1==s.options.bottom?"":s.options.bottom,"margin-left":"0px"},s.options.dontSetWidth||(cssOptions.width=d.css("width")),d.css(cssOptions),d.addClass(s.options.baseClassName),s.options.className&&d.addClass(s.options.className),r="fixed"}}function b(){var t=f(),e=u;s.options.removeOffsets&&(e="",t-=c),cssOptions={position:"absolute",top:t,left:e,"margin-left":"0px",bottom:""},s.options.dontSetWidth||(cssOptions.width=d.css("width")),d.css(cssOptions),r="absolute"}function w(){v()||(p=-1,n.css("display","none"),d.css({"z-index":o,width:"",position:a,left:"",top:i,"margin-left":""}),d.removeClass("scroll-to-fixed-fixed"),s.options.className&&d.removeClass(s.options.className),r=null)}function x(t){t!=p&&(d.css("left",u-t),p=t)}function S(){var t=s.options.marginTop;return t?"function"==typeof t?t.apply(d):t:0}function C(){if(_.isScrollToFixed(d)&&!d.is(":hidden")){var t=l,e=v();l?v()&&(c=d.offset().top,u=d.offset().left):(d.trigger("preUnfixed.ScrollToFixed"),w(),d.trigger("unfixed.ScrollToFixed"),p=-1,c=d.offset().top,u=d.offset().left,s.options.offsets&&(u+=d.offset().left-d.position().left),-1==h&&(h=u),r=d.css("position"),l=!0,-1!=s.options.bottom&&(d.trigger("preFixed.ScrollToFixed"),y(),d.trigger("fixed.ScrollToFixed")));var i=_(window).scrollLeft(),o=_(window).scrollTop(),n=f();s.options.minWidth&&_(window).width()<s.options.minWidth||s.options.maxWidth&&_(window).width()>s.options.maxWidth?v()&&t||(E(),d.trigger("preUnfixed.ScrollToFixed"),w(),d.trigger("unfixed.ScrollToFixed")):-1==s.options.bottom?0<n&&o>=n-S()?e||g()&&t||(E(),d.trigger("preAbsolute.ScrollToFixed"),b(),d.trigger("unfixed.ScrollToFixed")):o>=c-S()?(m()&&t||(E(),d.trigger("preFixed.ScrollToFixed"),y(),p=-1,d.trigger("fixed.ScrollToFixed")),x(i)):v()&&t||(E(),d.trigger("preUnfixed.ScrollToFixed"),w(),d.trigger("unfixed.ScrollToFixed")):0<n?o+_(window).height()-d.outerHeight(!0)>=n-(S()||-(s.options.bottom?s.options.bottom:0))?m()&&(E(),d.trigger("preUnfixed.ScrollToFixed"),("absolute"===a?b:w)(),d.trigger("unfixed.ScrollToFixed")):(m()||(E(),d.trigger("preFixed.ScrollToFixed"),y()),x(i),d.trigger("fixed.ScrollToFixed")):x(i)}}function E(){var t=d.css("position");"absolute"==t?d.trigger("postAbsolute.ScrollToFixed"):"fixed"==t?d.trigger("postFixed.ScrollToFixed"):d.trigger("postUnfixed.ScrollToFixed")}function z(t){d.is(":visible")?(l=!1,C()):w()}function T(t){window.requestAnimationFrame?requestAnimationFrame(C):C()}s.init=function(){s.options=_.extend({},_.ScrollToFixed.defaultOptions,e),o=d.css("z-index"),s.$el.css("z-index",s.options.zIndex),n=_("<div />"),r=d.css("position"),a=d.css("position"),d.css("float"),i=d.css("top"),v()&&s.$el.after(n),_(window).bind("resize.ScrollToFixed",z),_(window).bind("scroll.ScrollToFixed",T),"ontouchmove"in window&&_(window).bind("touchmove.ScrollToFixed",C),s.options.preFixed&&d.bind("preFixed.ScrollToFixed",s.options.preFixed),s.options.postFixed&&d.bind("postFixed.ScrollToFixed",s.options.postFixed),s.options.preUnfixed&&d.bind("preUnfixed.ScrollToFixed",s.options.preUnfixed),s.options.postUnfixed&&d.bind("postUnfixed.ScrollToFixed",s.options.postUnfixed),s.options.preAbsolute&&d.bind("preAbsolute.ScrollToFixed",s.options.preAbsolute),s.options.postAbsolute&&d.bind("postAbsolute.ScrollToFixed",s.options.postAbsolute),s.options.fixed&&d.bind("fixed.ScrollToFixed",s.options.fixed),s.options.unfixed&&d.bind("unfixed.ScrollToFixed",s.options.unfixed),s.options.spacerClass&&n.addClass(s.options.spacerClass),d.bind("resize.ScrollToFixed",function(){n.height(d.height())}),d.bind("scroll.ScrollToFixed",function(){d.trigger("preUnfixed.ScrollToFixed"),w(),d.trigger("unfixed.ScrollToFixed"),C()}),d.bind("detach.ScrollToFixed",function(t){var e;(e=(e=t)||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1,d.trigger("preUnfixed.ScrollToFixed"),w(),d.trigger("unfixed.ScrollToFixed"),_(window).unbind("resize.ScrollToFixed",z),_(window).unbind("scroll.ScrollToFixed",T),d.unbind(".ScrollToFixed"),n.remove(),s.$el.removeData("ScrollToFixed")}),z()},s.init()},_.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"},_.fn.scrollToFixed=function(t){return this.each(function(){new _.ScrollToFixed(this,t)})}}(jQuery),function(c){c.extend(c.easing,{spincrementEasing:function(t,e,i,o,n){return e===n?i+o:o*(1-Math.pow(2,-10*e/n))+i}}),c.fn.spincrement=function(t){function l(t,e){if(t=t.toFixed(e),0<e&&"."!==d.decimalPoint&&(t=t.replace(".",d.decimalPoint)),d.thousandSeparator)for(;i.test(t);)t=t.replace(i,"$1"+d.thousandSeparator+"$2");return t}var d=c.extend({from:0,to:null,decimalPlaces:null,decimalPoint:".",thousandSeparator:",",duration:1e3,leeway:50,easing:"spincrementEasing",fade:!0,complete:null},t),i=new RegExp(/^(-?[0-9]+)([0-9]{3})/);return this.each(function(){var e,i=c(this),t=d.from;if(i.attr("data-from")&&(t=parseFloat(i.attr("data-from"))),i.attr("data-to"))e=parseFloat(i.attr("data-to"));else if(null!==d.to)e=d.to;else{var o=-1<c.inArray(d.thousandSeparator,["\\","^","$","*","+","?","."])?"\\"+d.thousandSeparator:d.thousandSeparator,n=new RegExp(o,"g");e=parseFloat(i.text().replace(n,""))}var s,r=d.duration;if(d.leeway&&(r+=Math.round(d.duration*(2*Math.random()-1)*d.leeway/100)),i.attr("data-dp"))s=parseInt(i.attr("data-dp"),10);else if(null!==d.decimalPlaces)s=d.decimalPlaces;else{var a=i.text().indexOf(d.decimalPoint);s=-1<a?i.text().length-(a+1):0}i.css("counter",t),d.fade&&i.css("opacity",0),i.animate({counter:e,opacity:1},{easing:d.easing,duration:r,step:function(t){i.html(l(t*e,s))},complete:function(){i.css("counter",null),i.html(l(e,s)),d.complete&&d.complete(i)}})})}}(jQuery),function(){if("undefined"!=typeof window&&window.addEventListener){function h(){clearTimeout(t),t=setTimeout(e,100)}function p(t){function e(t){if(void 0!==t.protocol)var e=t;else(e=document.createElement("a")).href=t;return e.protocol.replace(/:/g,"")+e.host}if(window.XMLHttpRequest){var i=new XMLHttpRequest,o=e(location);t=e(t),i=void 0===i.withCredentials&&""!==t&&t!==o?XDomainRequest||void 0:XMLHttpRequest}return i}var t,f=Object.create(null),m=function(){},e=function(){function o(){0===--r&&(m(),function(){if(window.addEventListener("resize",h,!1),window.addEventListener("orientationchange",h,!1),window.MutationObserver){var t=new MutationObserver(h);t.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),m=function(){try{t.disconnect(),window.removeEventListener("resize",h,!1),window.removeEventListener("orientationchange",h,!1)}catch(t){}}}else document.documentElement.addEventListener("DOMSubtreeModified",h,!1),m=function(){document.documentElement.removeEventListener("DOMSubtreeModified",h,!1),window.removeEventListener("resize",h,!1),window.removeEventListener("orientationchange",h,!1)}}())}function t(t){return function(){!0!==f[t.base]&&(t.useEl.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+t.hash),t.useEl.hasAttribute("href")&&t.useEl.setAttribute("href","#"+t.hash))}}function e(i){return function(){var t=document.body,e=document.createElement("x");i.onload=null,e.innerHTML=i.responseText,(e=e.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",t.insertBefore(e,t.firstChild)),o()}}function i(t){return function(){t.onerror=null,t.ontimeout=null,o()}}var n,s,r=0;m();var a=document.getElementsByTagName("use");for(s=0;s<a.length;s+=1){try{var l=a[s].getBoundingClientRect()}catch(t){l=!1}var d=(n=a[s].getAttribute("href")||a[s].getAttributeNS("http://www.w3.org/1999/xlink","href")||a[s].getAttribute("xlink:href"))&&n.split?n.split("#"):["",""],c=d[0];d=d[1];var u=l&&0===l.left&&0===l.right&&0===l.top&&0===l.bottom;l&&0===l.width&&0===l.height&&!u?(a[s].hasAttribute("href")&&a[s].setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n),c.length&&(!0!==(n=f[c])&&setTimeout(t({useEl:a[s],base:c,hash:d}),0),void 0===n&&(void 0!==(d=p(c))&&(n=new d,(f[c]=n).onload=e(n),n.onerror=i(n),n.ontimeout=i(n),n.open("GET",c),n.send(),r+=1)))):u?c.length&&f[c]&&setTimeout(t({useEl:a[s],base:c,hash:d}),0):void 0===f[c]?f[c]=!0:f[c].onload&&(f[c].abort(),delete f[c].onload,f[c]=!0)}a="",r+=1,o()},i=function(){window.removeEventListener("load",i,!1),t=setTimeout(e,0)};"complete"!==document.readyState?window.addEventListener("load",i,!1):i()}}(),function(h){var p,f,m=h(window),o={},g=[],v=[],y=null,c="_open",b=[],w=null,u=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),x={_init:function(t){var e=h(t),i=e.data("popupoptions");v[t.id]=!1,g[t.id]=0,e.data("popup-initialized")||(e.attr("data-popup-initialized","true"),x._initonce(t)),i.autoopen&&setTimeout(function(){x.show(t,0)},0)},_initonce:function(i){var t,e,o,n,s=h(i),r=h("body"),a=s.data("popupoptions");y=parseInt(r.css("margin-right"),10),w=void 0!==document.body.style.webkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition||void 0!==document.body.style.OTransition||void 0!==document.body.style.transition,"tooltip"==a.type&&(a.background=!1,a.scrolllock=!1),a.backgroundactive&&(a.background=!1,a.blur=!1,a.scrolllock=!1),!a.scrolllock||void 0===p&&(n=(o=h('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body")).children(),p=n.innerWidth()-n.height(99).innerWidth(),o.remove());if(s.attr("id")||s.attr("id","j-popup-"+parseInt(1e8*Math.random(),10)),s.addClass("popup_content"),a.background&&!h("#"+i.id+"_background").length){r.append('<div id="'+i.id+'_background" class="popup_background"></div>');var l=h("#"+i.id+"_background");l.css({opacity:0,visibility:"hidden",backgroundColor:a.color,position:"fixed",top:0,right:0,bottom:0,left:0}),a.setzindex&&!a.autozindex&&l.css("z-index","100000"),a.transition&&l.css("transition",a.transition)}r.append(i),s.wrap('<div id="'+i.id+'_wrapper" class="popup_wrapper" />'),(t=h("#"+i.id+"_wrapper")).css({opacity:0,visibility:"hidden",position:"absolute"}),u&&t.css("cursor","pointer"),"overlay"==a.type&&t.css("overflow","auto"),s.css({opacity:0,visibility:"hidden",display:"inline-block"}),a.setzindex&&!a.autozindex&&t.css("z-index","100001"),a.outline||s.css("outline","none"),a.transition&&(s.css("transition",a.transition),t.css("transition",a.transition)),s.attr("aria-hidden",!0),"overlay"==a.type&&(s.css({textAlign:"left",position:"relative",verticalAlign:"middle"}),e={position:"fixed",width:"100%",height:"100%",top:0,left:0,textAlign:"center"},a.backgroundactive&&(e.position="absolute",e.height="0",e.overflow="visible"),t.css(e),t.append('<div class="popup_align" />'),h(".popup_align").css({display:"inline-block",verticalAlign:"middle",height:"100%"})),s.attr("role","dialog");var d=a.openelement?a.openelement:"."+i.id+c;h(d).each(function(t,e){h(e).attr("data-popup-ordinal",t),e.id||h(e).attr("id","open_"+parseInt(1e8*Math.random(),10))}),s.attr("aria-labelledby")||s.attr("aria-label")||s.attr("aria-labelledby",h(d).attr("id")),"hover"==a.action?(a.keepfocus=!1,h(d).on("mouseenter",function(t){x.show(i,h(this).data("popup-ordinal"))}),h(d).on("mouseleave",function(t){x.hide(i)})):h(document).on("click",d,function(t){t.preventDefault();var e=h(this).data("popup-ordinal");setTimeout(function(){x.show(i,e)},0)}),a.closebutton&&x.addclosebutton(i),a.detach?s.hide().detach():t.hide()},show:function(t,e){var i=h(t);if(!i.data("popup-visible")){i.data("popup-initialized")||x._init(t),i.attr("data-popup-initialized","true");var o=h("body"),n=i.data("popupoptions"),s=h("#"+t.id+"_wrapper"),r=h("#"+t.id+"_background");if(S(t,e,n.beforeopen),v[t.id]=e,setTimeout(function(){b.push(t.id)},0),n.autozindex){for(var a=document.getElementsByTagName("*"),l=a.length,d=0,c=0;c<l;c++){var u=h(a[c]).css("z-index");"auto"!==u&&d<(u=parseInt(u,10))&&(d=u)}g[t.id]=d,n.background&&0<g[t.id]&&h("#"+t.id+"_background").css({zIndex:g[t.id]+1}),0<g[t.id]&&s.css({zIndex:g[t.id]+2})}n.detach?(s.prepend(t),i.show()):s.show(),f=setTimeout(function(){s.css({visibility:"visible",opacity:1}),h("html").addClass("popup_visible").addClass("popup_visible_"+t.id),s.addClass("popup_wrapper_visible")},20),n.scrolllock&&(o.css("overflow","hidden"),o.height()>m.height()&&o.css("margin-right",y+p)),n.backgroundactive&&i.css({top:(m.height()-(i.get(0).offsetHeight+parseInt(i.css("margin-top"),10)+parseInt(i.css("margin-bottom"),10)))/2+"px"}),i.css({visibility:"visible",opacity:1}),n.background&&(r.css({visibility:"visible",opacity:n.opacity}),setTimeout(function(){r.css({opacity:n.opacity})},0)),i.data("popup-visible",!0),x.reposition(t,e),i.data("focusedelementbeforepopup",document.activeElement),n.keepfocus&&(i.attr("tabindex",-1),setTimeout(function(){"closebutton"===n.focuselement?h("#"+t.id+" ."+t.id+"_close:first").focus():n.focuselement?h(n.focuselement).focus():i.focus()},n.focusdelay)),h(n.pagecontainer).attr("aria-hidden",!0),i.attr("aria-hidden",!1),S(t,e,n.onopen),w?s.one("transitionend",function(){S(t,e,n.opentransitionend)}):S(t,e,n.opentransitionend),"tooltip"==n.type&&h(window).on("resize."+t.id,function(){x.reposition(t,e)})}},hide:function(e,t){var i=h.inArray(e.id,b);if(-1!==i){f&&clearTimeout(f);var o=h("body"),n=h(e),s=n.data("popupoptions"),r=h("#"+e.id+"_wrapper"),a=h("#"+e.id+"_background");n.data("popup-visible",!1),1===b.length?h("html").removeClass("popup_visible").removeClass("popup_visible_"+e.id):h("html").hasClass("popup_visible_"+e.id)&&h("html").removeClass("popup_visible_"+e.id),b.splice(i,1),r.hasClass("popup_wrapper_visible")&&r.removeClass("popup_wrapper_visible"),s.keepfocus&&!t&&setTimeout(function(){h(n.data("focusedelementbeforepopup")).is(":visible")&&n.data("focusedelementbeforepopup").focus()},0),r.css({visibility:"hidden",opacity:0}),n.css({visibility:"hidden",opacity:0}),s.background&&a.css({visibility:"hidden",opacity:0}),h(s.pagecontainer).attr("aria-hidden",!1),n.attr("aria-hidden",!0),S(e,v[e.id],s.onclose),w&&"0s"!==n.css("transition-duration")?n.one("transitionend",function(t){n.data("popup-visible")||(s.detach?n.hide().detach():r.hide()),s.scrolllock&&setTimeout(function(){o.css({overflow:"visible","margin-right":y})},10),S(e,v[e.id],s.closetransitionend)}):(s.detach?n.hide().detach():r.hide(),s.scrolllock&&setTimeout(function(){o.css({overflow:"visible","margin-right":y})},10),S(e,v[e.id],s.closetransitionend)),"tooltip"==s.type&&h(window).off("resize."+e.id)}},toggle:function(t,e){h(t).data("popup-visible")?x.hide(t):setTimeout(function(){x.show(t,e)},0)},reposition:function(t,e){var i=h(t),o=i.data("popupoptions"),n=h("#"+t.id+"_wrapper");h("#"+t.id+"_background");if(e=e||0,"tooltip"==o.type){var s;n.css({position:"absolute"});var r=(s=o.tooltipanchor?h(o.tooltipanchor):o.openelement?h(o.openelement).filter('[data-popup-ordinal="'+e+'"]'):h("."+t.id+c+'[data-popup-ordinal="'+e+'"]')).offset();"right"==o.horizontal?n.css("left",r.left+s.outerWidth()+o.offsetleft):"leftedge"==o.horizontal?n.css("left",r.left+s.outerWidth()-s.outerWidth()+o.offsetleft):"left"==o.horizontal?n.css("right",m.width()-r.left-o.offsetleft):"rightedge"==o.horizontal?n.css("right",m.width()-r.left-s.outerWidth()-o.offsetleft):n.css("left",r.left+s.outerWidth()/2-i.outerWidth()/2-parseFloat(i.css("marginLeft"))+o.offsetleft),"bottom"==o.vertical?n.css("top",r.top+s.outerHeight()+o.offsettop):"bottomedge"==o.vertical?n.css("top",r.top+s.outerHeight()-i.outerHeight()+o.offsettop):"top"==o.vertical?n.css("bottom",m.height()-r.top-o.offsettop):"topedge"==o.vertical?n.css("bottom",m.height()-r.top-i.outerHeight()-o.offsettop):n.css("top",r.top+s.outerHeight()/2-i.outerHeight()/2-parseFloat(i.css("marginTop"))+o.offsettop)}else"overlay"==o.type&&(o.horizontal?n.css("text-align",o.horizontal):n.css("text-align","center"),o.vertical?i.css("vertical-align",o.vertical):i.css("vertical-align","middle"))},addclosebutton:function(t){var e;e=h(t).data("popupoptions").closebuttonmarkup?h(o.closebuttonmarkup).addClass(t.id+"_close"):'<button class="popup_close '+t.id+'_close" title="Close" aria-label="Close"><span aria-hidden="true">×</span></button>',h(t).data("popup-initialized")&&h(t).append(e)}},S=function(t,e,i){var o,n,s=h(t).data("popupoptions");void 0!==s&&(o=s.openelement?s.openelement:"."+t.id+c,n=h(o+'[data-popup-ordinal="'+e+'"]'),"function"==typeof i&&i.call(h(t),t,n))};h(document).on("keydown",function(t){if(b.length){var e=b[b.length-1],i=document.getElementById(e);h(i).data("popupoptions").escape&&27==t.keyCode&&x.hide(i)}}),h(document).on("click",function(t){if(b.length){var e=b[b.length-1],i=document.getElementById(e),o=h(i).data("popupoptions").closeelement?h(i).data("popupoptions").closeelement:"."+i.id+"_close";h(t.target).closest(o).length&&(t.preventDefault(),x.hide(i)),h(i).data("popupoptions")&&h(i).data("popupoptions").blur&&!h(t.target).closest("#"+e).length&&2!==t.which&&h(t.target).is(":visible")&&(h(i).data("popupoptions").background?(x.hide(i),t.preventDefault()):x.hide(i,!0))}}),h(document).on("keydown",function(t){if(b.length&&9==t.which){var e=b[b.length-1],i=document.getElementById(e),o=h(i).find("*").filter("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(":visible"),n=h(":focus"),s=o.length,r=o.index(n);0===s?(h(i).focus(),t.preventDefault()):t.shiftKey?0===r&&(o.get(s-1).focus(),t.preventDefault()):r==s-1&&(o.get(0).focus(),t.preventDefault())}}),h.fn.popup=function(i){return this.each(function(){var t=h(this);if("object"==typeof i){var e=h.extend({},h.fn.popup.defaults,t.data("popupoptions"),i);t.data("popupoptions",e),o=t.data("popupoptions"),x._init(this)}else"string"==typeof i?(t.data("popupoptions")||(t.data("popupoptions",h.fn.popup.defaults),o=t.data("popupoptions")),x[i].call(this,this)):(t.data("popupoptions")||(t.data("popupoptions",h.fn.popup.defaults),o=t.data("popupoptions")),x._init(this))})},h.fn.popup.defaults={type:"overlay",autoopen:!1,background:!0,backgroundactive:!1,color:"black",opacity:"0.5",horizontal:"center",vertical:"middle",offsettop:0,offsetleft:0,escape:!0,blur:!0,setzindex:!0,autozindex:!1,scrolllock:!1,closebutton:!1,closebuttonmarkup:null,keepfocus:!0,focuselement:null,focusdelay:50,outline:!1,pagecontainer:null,detach:!1,openelement:null,closeelement:null,transition:null,tooltipanchor:null,beforeopen:null,onclose:null,onopen:null,opentransitionend:null,closetransitionend:null}}(jQuery),function(t,e){if("function"==typeof define&&define.amd)define(["module","exports"],e);else if("undefined"!=typeof exports)e(module,exports);else{var i={exports:{}};e(i,i.exports),t.autosize=i.exports}}(this,function(t,e){"use strict";var i,o,u="function"==typeof Map?new Map:(i=[],o=[],{has:function(t){return-1<i.indexOf(t)},get:function(t){return o[i.indexOf(t)]},set:function(t,e){-1===i.indexOf(t)&&(i.push(t),o.push(e))},delete:function(t){var e=i.indexOf(t);-1<e&&(i.splice(e,1),o.splice(e,1))}}),h=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){h=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function n(t){var e=u.get(t);e&&e.destroy()}function s(t){var e=u.get(t);e&&e.update()}var r=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((r=function(t){return t}).destroy=function(t){return t},r.update=function(t){return t}):((r=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return function(n){if(n&&n.nodeName&&"TEXTAREA"===n.nodeName&&!u.has(n)){var t,i=null,o=null,s=null,r=function(){n.clientWidth!==o&&c()},a=function(e){window.removeEventListener("resize",r,!1),n.removeEventListener("input",c,!1),n.removeEventListener("keyup",c,!1),n.removeEventListener("autosize:destroy",a,!1),n.removeEventListener("autosize:update",c,!1),Object.keys(e).forEach(function(t){n.style[t]=e[t]}),u.delete(n)}.bind(n,{height:n.style.height,resize:n.style.resize,overflowY:n.style.overflowY,overflowX:n.style.overflowX,wordWrap:n.style.wordWrap});n.addEventListener("autosize:destroy",a,!1),"onpropertychange"in n&&"oninput"in n&&n.addEventListener("keyup",c,!1),window.addEventListener("resize",r,!1),n.addEventListener("input",c,!1),n.addEventListener("autosize:update",c,!1),n.style.overflowX="hidden",n.style.wordWrap="break-word",u.set(n,{destroy:a,update:c}),"vertical"===(t=window.getComputedStyle(n,null)).resize?n.style.resize="none":"both"===t.resize&&(n.style.resize="horizontal"),i="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(i)&&(i=0),c()}function l(t){var e=n.style.width;n.style.width="0px",n.offsetWidth,n.style.width=e,n.style.overflowY=t}function d(){if(0!==n.scrollHeight){var t=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(n),e=document.documentElement&&document.documentElement.scrollTop;n.style.height="",n.style.height=n.scrollHeight+i+"px",o=n.clientWidth,t.forEach(function(t){t.node.scrollTop=t.scrollTop}),e&&(document.documentElement.scrollTop=e)}}function c(){d();var t=Math.round(parseFloat(n.style.height)),e=window.getComputedStyle(n,null),i="content-box"===e.boxSizing?Math.round(parseFloat(e.height)):n.offsetHeight;if(i<t?"hidden"===e.overflowY&&(l("scroll"),d(),i="content-box"===e.boxSizing?Math.round(parseFloat(window.getComputedStyle(n,null).height)):n.offsetHeight):"hidden"!==e.overflowY&&(l("hidden"),d(),i="content-box"===e.boxSizing?Math.round(parseFloat(window.getComputedStyle(n,null).height)):n.offsetHeight),s!==i){s=i;var o=h("autosize:resized");try{n.dispatchEvent(o)}catch(t){}}}}(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],n),t},r.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],s),t}),e.default=r,t.exports=e.default}),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var u=Array.prototype.slice,i=t.console,h=void 0===i?function(){}:function(t){i.error(t)};function o(d,n,c){(c=c||e||t.jQuery)&&(n.prototype.option||(n.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[d]=function(t){if("string"!=typeof t)return o=t,this.each(function(t,e){var i=c.data(e,d);i?(i.option(o),i._init()):(i=new n(e,o),c.data(e,d,i))}),this;var e,s,r,a,l,o,i=u.call(arguments,1);return r=i,l="$()."+d+'("'+(s=t)+'")',(e=this).each(function(t,e){var i=c.data(e,d);if(i){var o=i[s];if(o&&"_"!=s.charAt(0)){var n=o.apply(i,r);a=void 0===a?n:a}else h(l+" is not a valid method")}else h(d+" not initialized. Cannot call methods, i.e. "+l)}),void 0!==a?a:e},s(c))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n];o&&o[s]&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function y(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],w=b.length;function x(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var S,C=!1;return function o(t){if(function(){if(!C){C=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=x(t);S=200==Math.round(y(i.width)),o.isBoxSizeOuter=S,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=x(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<w;e++)t[b[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,s=0;s<w;s++){var r=b[s],a=e[r],l=parseFloat(a);i[r]=isNaN(l)?0:l}var d=i.paddingLeft+i.paddingRight,c=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,h=i.marginTop+i.marginBottom,p=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,m=n&&S,g=y(e.width);!1!==g&&(i.width=g+(m?0:d+p));var v=y(e.height);return!1!==v&&(i.height=v+(m?0:c+f)),i.innerWidth=i.width-(d+p),i.innerHeight=i.height-(c+f),i.outerWidth=i.width+u,i.outerHeight=i.height+h,i}}}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(d,s){var c={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;c.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},c.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},c.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,s(t,e))return t},c.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.filterFindElements=function(t,o){t=c.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(o){s(t,o)&&n.push(t);for(var e=t.querySelectorAll(o),i=0;i<e.length;i++)n.push(e[i])}else n.push(t)}),n},c.debounceMethod=function(t,e,o){o=o||100;var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){n.apply(i,e),delete i[s]},o)}},c.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=d.console;return c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l),n="data-"+t,e=document.querySelectorAll("["+n+"]"),i=document.querySelectorAll(".js-"+t),o=c.makeArray(e).concat(c.makeArray(i)),s=n+"-options",r=d.jQuery;o.forEach(function(t){var e,i=t.getAttribute(n)||t.getAttribute(s);try{e=i&&JSON.parse(i)}catch(e){return void(u&&u.error("Error parsing "+n+" on "+t.className+": "+e))}var o=new a(t,e);r&&r.data(t,l,o)})})},c}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=i(e,e.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var o=i.prototype;return o.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},o.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},o.getSize=function(){this.size=e(this.element)},o.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},o.updateTarget=o.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},o.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},o.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},o.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},o.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},o.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,o=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+o*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("fizzy-ui-utils")):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=i(e,e.fizzyUIUtils))}(window,function(t,e){return{startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var t=this.x;this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var o=0;o<t.length;o++){var n=t[o],s=0<e?i:0;n.wrapShift(s),e-=n.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}}}),function(r,a){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,o,n,s){return a(r,t,e,i,o,n,s)});else if("object"==typeof module&&module.exports)module.exports=a(r,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var t=r.Flickity;r.Flickity=a(r,r.EvEmitter,r.getSize,r.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}(window,function(o,t,e,a,i,r,n){var l=o.jQuery,s=o.getComputedStyle,d=o.console;function c(t,e){for(t=a.makeArray(t);t.length;)e.appendChild(t.shift())}var u=0,h={};function p(t,e){var i=a.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var o=h[this.element.flickityGUID];return o.option(e),o}l&&(this.$element=l(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e),this._create()}else d&&d.error("Bad element for Flickity: "+(i||t))}p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var f=p.prototype;a.extend(f,t.prototype),f._create=function(){var t=this.guid=++u;for(var e in this.element.flickityGUID=t,(h[t]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&o.addEventListener("resize",this),this.options.on){var i=this.options.on[e];this.on(e,i)}p.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){a.extend(this.options,t)},f.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},f._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new i(t,this)},this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(0<t){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var o=this.cells.length,n=t;n<o;n++){var s=this.cells[n];s.setPosition(e),e+=s.size.outerWidth,this.maxCellHeight=Math.max(s.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=o?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(t){t.forEach(function(t){t.getSize()})},f.updateSlides=function(){if(this.slides=[],this.cells.length){var o=new r(this);this.slides.push(o);var n="left"==this.originSide?"marginRight":"marginLeft",s=this._getCanCellFit();this.cells.forEach(function(t,e){if(o.cells.length){var i=o.outerWidth-o.firstMargin+(t.size.outerWidth-t.size[n]);s.call(this,e,i)||(o.updateTarget(),o=new r(this),this.slides.push(o)),o.addCell(t)}else o.addCell(t)},this),o.updateTarget(),this.updateSelectedSlide()}},f._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),o=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*o}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return f.setCellAlign=function(){var t=m[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},f._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},f._getGapCells=function(t,e,i){for(var o=[];0<t;){var n=this.cells[e];if(!n)break;o.push(n),e+=i,t-=n.size.outerWidth}return o},f._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",o=this.slideableWidth-this.getLastCell().size[i],n=o<this.size.innerWidth,s=this.cursorPosition+this.cells[0].size[e],r=o-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){t.target=n?o*this.cellAlign:(t.target=Math.max(t.target,s),Math.min(t.target,r))},this)}},f.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),l&&this.$element){var n=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var s=l.Event(e);s.type=t,n=s}this.$element.trigger(n,i)}},f.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=a.modulo(t,this.slides.length)),this.slides[t])){var o=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=o&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},f._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&1<e))return t;var i=a.modulo(t,e),o=Math.abs(i-this.selectedIndex),n=Math.abs(i+e-this.selectedIndex),s=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&n<o?t+=e:!this.isDragSelect&&s<o&&(t-=e),t<0?this.x-=this.slideableWidth:e<=t&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t&&this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},f.selectCell=function(t,e,i){var o=this.queryCell(t);if(o){var n=this.getCellSlideIndex(o);this.select(n,e,i)}},f.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},f.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},f.getCells=function(t){t=a.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getCell(t);e&&i.push(e)},this),i},f.getCellElements=function(){return this.cells.map(function(t){return t.element})},f.getParentCell=function(t){return this.getCell(t)||(t=a.getParent(t,".flickity-slider > *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(i<=1+2*t)return this.getCellElements();for(var o=[],n=e-t;n<=e+t;n++){var s=this.options.wrapAround?a.modulo(n,i):n,r=this.slides[s];r&&(o=o.concat(r.getCellElements()))}return o},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#\.]?[\d\/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},a.debounceMethod(p,"onresize",150),f.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=a.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},f.watchCSS=function(){this.options.watchCSS&&(-1!=s(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=p.keyboardHandlers[t.keyCode];i&&i.call(this)}},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},f.focus=function(){var t=o.pageYOffset;this.element.focus({preventScroll:!0}),o.pageYOffset!=t&&o.scrollTo(o.pageXOffset,t)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),o.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),l&&this.$element&&l.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete h[this.guid]},a.extend(f,n),p.data=function(t){var e=(t=a.getQueryElement(t))&&t.flickityGUID;return e&&h[e]},a.htmlInit(p,"flickity"),l&&l.bridget&&l.bridget("flickity",p),p.setJQuery=function(t){l=t},p.Cell=i,p.Slide=r,p}),function(e,i){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.Unipointer=i(e,e.EvEmitter)}(window,function(n,t){function e(){}var i=e.prototype=Object.create(t.prototype);i.bindStartEvent=function(t){this._bindStartEvent(t,!0)},i.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},i._bindStartEvent=function(t,e){var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",o="mousedown";n.PointerEvent?o="pointerdown":"ontouchstart"in n&&(o="touchstart"),t[i](o,this)},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},i.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},i.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},i.onpointerdown=function(t){this._pointerDown(t,t)},i._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},i.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return i._bindPostStartEvents=function(t){if(t){var e=o[t.type];e.forEach(function(t){n.addEventListener(t,this)},this),this._boundPointerEvents=e}},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){n.removeEventListener(t,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(t){this._pointerMove(t,t)},i.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},i.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},i._pointerMove=function(t,e){this.pointerMove(t,e)},i.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},i.onmouseup=function(t){this._pointerUp(t,t)},i.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},i.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},i._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=function(){},i.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},i.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},i._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},i.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e}),function(e,i){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("unipointer")):e.Unidragger=i(e,e.Unipointer)}(window,function(s,t){function e(){}var i=e.prototype=Object.create(t.prototype);i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",o=0;o<this.handles.length;o++){var n=this.handles[o];this._bindStartEvent(n,t),n[e]("click",this),s.PointerEvent&&(n.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var n={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},r={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=n[t.target.nodeName],i=r[t.target.type],o=!e||i;return o||this._pointerReset(),o},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},i._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},i.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},i.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e}),function(o,n){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return n(o,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(o,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):o.Flickity=n(o,o.Flickity,o.Unidragger,o.fizzyUIUtils)}(window,function(i,t,e,a){a.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var o=t.prototype;a.extend(o,e.prototype),o._touchActionValue="pan-y";var n="createTouch"in document,s=!1;o._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),n&&!s&&(i.addEventListener("touchmove",function(){}),s=!0)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o.pointerDown=function(t,e){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=l(),i.addEventListener("scroll",this),this._pointerDownDefault(t,e)):this._pointerDownDefault(t,e)},o._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var r={INPUT:!0,TEXTAREA:!0,SELECT:!0};function l(){return{x:i.pageXOffset,y:i.pageYOffset}}return o.pointerDownFocus=function(t){r[t.target.nodeName]||this.focus()},o._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,o=r[t.target.nodeName];e||i||o||t.preventDefault()},o.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},o.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},o.pointerDone=function(){i.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),i.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e]))},o.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},o.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var o=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var n=this.dragStartPosition+i.x*o;if(!this.options.wrapAround&&this.slides.length){var s=Math.max(-this.slides[0].target,this.dragStartPosition);n=s<n?.5*(n+s):n;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);n=n<r?.5*(n+r):n}this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},o.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var o=this.getRestingPosition();this.isFreeScrolling=-o>this.slides[0].target&&-o<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},o.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),o=this._getClosestResting(t,e,-1);return i.distance<o.distance?i.index:o.index},o._getClosestResting=function(t,e,i){for(var o=this.selectedIndex,n=1/0,s=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};s(e,n)&&(o+=i,n=e,null!==(e=this.getSlideDistance(-t,o)));)e=Math.abs(e);return{distance:n,index:o-i}},o.getSlideDistance=function(t,e){var i=this.slides.length,o=this.options.wrapAround&&1<i,n=o?a.modulo(e,i):e,s=this.slides[n];if(!s)return null;var r=o?this.slideableWidth*Math.floor(e/i):0;return t-(s.target+r)},o.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return 0<t&&0<e?1:t<0&&e<0?-1:0},o.staticClick=function(t,e){var i=this.getParentCell(t.target),o=i&&i.element,n=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,o,n])},o.onscroll=function(){var t=l(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(i))&&this._pointerDone()},t}),function(o,n){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return n(o,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(o,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(o,o.Flickity,o.Unipointer,o.fizzyUIUtils)}(window,function(t,e,i,o){"use strict";var n="http://www.w3.org/2000/svg";function s(t,e){this.direction=t,this.parent=e,this._create()}(s.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t=document.createElementNS(n,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e,i=document.createElementNS(n,"path"),o="string"!=typeof(e=this.parent.options.arrowShape)?"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50  L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z":e;return i.setAttribute("d",o),i.setAttribute("class","arrow"),this.isLeft||i.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(i),t},s.prototype.handleEvent=o.handleEvent,s.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&1<t.length)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},o.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s(-1,this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=s,e}),function(o,n){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return n(o,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(o,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(o,o.Flickity,o.Unipointer,o.fizzyUIUtils)}(window,function(t,e,i,o){function n(t){this.parent=t,this._create()}(n.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},n.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},n.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},n.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},n.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],o=this.dots.length,n=o+t,s=o;s<n;s++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(s+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},n.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},n.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},n.prototype.onTap=n.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},n.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=n,o.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var s=e.prototype;return s._createPageDots=function(){this.options.pageDots&&(this.pageDots=new n(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},s.activatePageDots=function(){this.pageDots.activate()},s.updateSelectedPageDots=function(){this.pageDots.updateSelected()},s.updatePageDots=function(){this.pageDots.setDots()},s.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=n,e}),function(t,o){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,e,i){return o(t,e,i)}):"object"==typeof module&&module.exports?module.exports=o(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):o(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function o(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(o.prototype=Object.create(t.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},o.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},o.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},o.prototype.clear=function(){clearTimeout(this.timeout)},o.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},o.prototype.unpause=function(){"paused"==this.state&&this.play()},o.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},o.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var n=i.prototype;return n._createPlayer=function(){this.player=new o(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},n.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},n.playPlayer=function(){this.player.play()},n.stopPlayer=function(){this.player.stop()},n.pausePlayer=function(){this.player.pause()},n.unpausePlayer=function(){this.player.unpause()},n.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},n.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},n.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=o,i}),function(i,o){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return o(i,t,e)}):"object"==typeof module&&module.exports?module.exports=o(i,require("./flickity"),require("fizzy-ui-utils")):o(i,i.Flickity,i.fizzyUIUtils)}(window,function(t,e,o){var i=e.prototype;return i.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var o=this.cells.length;e=void 0===e?o:e;var n,s,r=(n=i,s=document.createDocumentFragment(),n.forEach(function(t){s.appendChild(t.element)}),s),a=e==o;if(a)this.slider.appendChild(r);else{var l=this.cells[e].element;this.slider.insertBefore(r,l)}if(0===e)this.cells=i.concat(this.cells);else if(a)this.cells=this.cells.concat(i);else{var d=this.cells.splice(e,o-e);this.cells=this.cells.concat(i).concat(d)}this._sizeCells(i),this.cellChange(e,!0)}},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var e=this.getCells(t);if(e&&e.length){var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),o.removeFrom(this.cells,t)},this),this.cellChange(i,!0)}},i.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},i.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var o=this.getCell(i);o&&(this.selectedIndex=this.getCellSlideIndex(o)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(i,o){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return o(i,t,e)}):"object"==typeof module&&module.exports?module.exports=o(i,require("./flickity"),require("fizzy-ui-utils")):o(i,i.Flickity,i.fizzyUIUtils)}(window,function(t,e,s){"use strict";e.createMethods.push("_createLazyload");var i=e.prototype;function n(t,e){this.img=t,this.flickity=e,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=[];i.forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),o=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||o)return[t]}var n=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return s.makeArray(n)}(t);o=o.concat(e)}),o.forEach(function(t){new n(t,this)},this)}},n.prototype.handleEvent=s.handleEvent,n.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},n.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},n.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},n.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),o=i&&i.element;this.flickity.cellSizeChange(o),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,o)},e.LazyLoader=n,e}),function(t){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}((window,function(t){return t})),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(o,n){o.createMethods.push("_createAsNavFor");var t=o.prototype;return t._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},t.setNavCompanion=function(t){t=n.getQueryElement(t);var e=o.data(t);if(e&&e!=this){this.navCompanion=e;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()},e.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},t.navCompanionSelect=function(t){if(this.navCompanion){var e=this.navCompanion.selectedCells[0],i=this.navCompanion.cells.indexOf(e),o=i+this.navCompanion.selectedCells.length-1,n=Math.floor((o-i)*this.navCompanion.cellAlign+i);if(this.selectCell(n,!1,t),this.removeNavSelectedElements(),!(n>=this.cells.length)){var s=this.cells.slice(i,1+o);this.navSelectedElements=s.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},t.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})},t.activateAsNavFor=function(){this.navCompanionSelect(!0)},t.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},t.onNavStaticClick=function(t,e,i,o){"number"==typeof o&&this.navCompanion.selectCell(o)},t.deactivateAsNavFor=function(){this.removeNavSelectedElements()},t.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},o}),function(e,i){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){var s=e.jQuery,r=e.console;function a(t,e){for(var i in e)t[i]=e[i];return t}var l=Array.prototype.slice;function d(t,e,i){if(!(this instanceof d))return new d(t,e,i);var o,n=t;"string"==typeof t&&(n=document.querySelectorAll(t)),n?(this.elements=(o=n,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?l.call(o):[o]),this.options=a({},this.options),"function"==typeof e?i=e:a(this.options,e),i&&this.on("always",i),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(n||t))}(d.prototype=Object.create(t.prototype)).options={},d.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},d.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),o=0;o<i.length;o++){var n=i[o];this.addImage(n)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(o=0;o<s.length;o++){var r=s[o];this.addElementBackgroundImages(r)}}}};var c={1:!0,9:!0,11:!0};function i(t){this.img=t}function o(t,e){this.url=t,this.element=e,this.img=new Image}return d.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,o=i.exec(e.backgroundImage);null!==o;){var n=o&&o[2];n&&this.addBackground(n,t),o=i.exec(e.backgroundImage)}},d.prototype.addImage=function(t){var e=new i(t);this.images.push(e)},d.prototype.addBackground=function(t,e){var i=new o(t,e);this.images.push(i)},d.prototype.check=function(){var o=this;function e(t,e,i){setTimeout(function(){o.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},d.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},d.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(d.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((s=t).fn.imagesLoaded=function(t,e){return new d(this,t,e).jqDeferred.promise(s(this))})})(),d}),function(i,o){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return o(i,t,e)}):"object"==typeof module&&module.exports?module.exports=o(i,require("flickity"),require("imagesloaded")):i.Flickity=o(i,i.Flickity,i.imagesLoaded)}(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var o=e.prototype;return o._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},o.imagesLoaded=function(){if(this.options.imagesLoaded){var o=this;i(this.slider).on("progress",function(t,e){var i=o.getParentCell(e.img);o.cellSizeChange(i&&i.element),o.options.freeScroll||o.positionSliderAtSelected()})}},e}),function(i,o){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return o(i,t,e)}):"object"==typeof module&&module.exports?module.exports=o(i,require("flickity"),require("imagesloaded")):i.Flickity=o(i,i.Flickity,i.imagesLoaded)}(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var o=e.prototype;return o._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},o.imagesLoaded=function(){if(this.options.imagesLoaded){var o=this;i(this.slider).on("progress",function(t,e){var i=o.getParentCell(e.img);o.cellSizeChange(i&&i.element),o.options.freeScroll||o.positionSliderAtSelected()})}},e}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):e(t.Flickity,t.fizzyUIUtils)}(window,function(t,e){"use strict";t.createMethods.push("_createBgLazyLoad");var i=t.prototype;function o(t,e,i){this.element=t,this.url=e,this.img=new Image,this.flickity=i,this.load()}return i._createBgLazyLoad=function(){this.on("select",this.bgLazyLoad)},i.bgLazyLoad=function(){var t=this.options.bgLazyLoad;if(t)for(var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=0;o<i.length;o++){var n=i[o];this.bgLazyLoadElem(n);for(var s=n.querySelectorAll("[data-flickity-bg-lazyload]"),r=0;r<s.length;r++)this.bgLazyLoadElem(s[r])}},i.bgLazyLoadElem=function(t){var e=t.getAttribute("data-flickity-bg-lazyload");e&&new o(t,e,this)},o.prototype.handleEvent=e.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.element.removeAttribute("data-flickity-bg-lazyload")},o.prototype.onload=function(t){this.element.style.backgroundImage='url("'+this.url+'")',this.complete(t,"flickity-bg-lazyloaded")},o.prototype.onerror=function(t){this.complete(t,"flickity-bg-lazyerror")},o.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this),this.element.classList.add(e),this.flickity.dispatchEvent("bgLazyLoad",t,this.element)},t.BgLazyLoader=o,t}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):e(t.Flickity,t.fizzyUIUtils)}(this,function(t,a){var e=t.Slide,n=e.prototype.updateTarget;e.prototype.updateTarget=function(){if(n.apply(this,arguments),this.parent.options.fade){var i=this.target-this.x,o=this.cells[0].x;this.cells.forEach(function(t){var e=t.x-o-i;t.renderPosition(e)})}},e.prototype.setOpacity=function(e){this.cells.forEach(function(t){t.element.style.opacity=e})};var i=t.prototype;t.createMethods.push("_createFade"),i._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var o=i.updateSlides;i.updateSlides=function(){o.apply(this,arguments),this.options.fade&&this.slides.forEach(function(t,e){var i=e==this.selectedIndex?1:0;t.setOpacity(i)},this)},i.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},i.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},i.onDragEndFade=function(){this.didDragEnd=!0},i.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},i.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach(function(t){t.setOpacity("")}))};var s=i.positionSlider;i.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):s.apply(this,arguments)};var r=i.positionSliderAtSelected;i.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),r.apply(this,arguments)},i.fadeSlides=function(){if(!(this.slides.length<2)){var t=this.getFadeIndexes(),e=this.slides[t.a],i=this.slides[t.b],o=this.wrapDifference(e.target,i.target),n=this.wrapDifference(e.target,-this.x);n/=o,e.setOpacity(1-n),i.setOpacity(n);var s=t.a;this.isDragging&&(s=.5<n?t.a:t.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=s&&this.fadeHideIndex!=t.a&&this.fadeHideIndex!=t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=s}},i.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},i.getFadeDragWrapIndexes=function(){var t=this.slides.map(function(t,e){return this.getSlideDistance(-this.x,e)},this),e=t.map(function(t){return Math.abs(t)}),i=Math.min.apply(Math,e),o=e.indexOf(i),n=t[o],s=this.slides.length,r=0<=n?1:-1;return{a:o,b:a.modulo(o+r,s)}},i.getFadeDragLimitIndexes=function(){for(var t=0,e=0;e<this.slides.length-1;e++){var i=this.slides[e];if(-this.x<i.target)break;t=e}return{a:t,b:t+1}},i.wrapDifference=function(t,e){var i=e-t;if(!this.options.wrapAround)return i;var o=i+this.slideableWidth,n=i-this.slideableWidth;return Math.abs(o)<Math.abs(i)&&(i=o),Math.abs(n)<Math.abs(i)&&(i=n),i};var l=i._getWrapShiftCells;i._getWrapShiftCells=function(){this.options.fade||l.apply(this,arguments)};var d=i.shiftWrapCells;return i.shiftWrapCells=function(){this.options.fade||d.apply(this,arguments)},t}),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";function i(d,n,c){(c=c||e||t.jQuery)&&(n.prototype.option||(n.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[d]=function(t){if("string"!=typeof t)return o=t,this.each(function(t,e){var i=c.data(e,d);i?(i.option(o),i._init()):(i=new n(e,o),c.data(e,d,i))}),this;var e,s,r,a,l,o,i=u.call(arguments,1);return r=i,l="$()."+d+'("'+(s=t)+'")',(e=this).each(function(t,e){var i=c.data(e,d);if(i){var o=i[s];if(o&&"_"!=s.charAt(0)){var n=o.apply(i,r);a=void 0===a?n:a}else h(l+" is not a valid method")}else h(d+" not initialized. Cannot call methods, i.e. "+l)}),void 0!==a?a:e},o(c))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var u=Array.prototype.slice,n=t.console,h=void 0===n?function(){}:function(t){n.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n];o&&o[s]&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function v(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function b(t){if(function(){if(!C){C=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=y(t);w=200==Math.round(v(i.width)),b.isBoxSizeOuter=w,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<S;e++){t[x[e]]=0}return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var o=i.isBorderBox="border-box"==e.boxSizing,n=0;n<S;n++){var s=x[n],r=e[s],a=parseFloat(r);i[s]=isNaN(a)?0:a}var l=i.paddingLeft+i.paddingRight,d=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,u=i.marginTop+i.marginBottom,h=i.borderLeftWidth+i.borderRightWidth,p=i.borderTopWidth+i.borderBottomWidth,f=o&&w,m=v(e.width);!1!==m&&(i.width=m+(f?0:l+h));var g=v(e.height);return!1!==g&&(i.height=g+(f?0:d+p)),i.innerWidth=i.width-(l+h),i.innerHeight=i.height-(d+p),i.outerWidth=i.width+c,i.outerHeight=i.height+u,i}}var w,i="undefined"==typeof console?function(){}:function(t){console.error(t)},x=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],S=x.length,C=!1;return b}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(d,s){var c={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;c.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},c.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},c.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,s(t,e))return t},c.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.filterFindElements=function(t,o){t=c.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);s(t,o)&&n.push(t);for(var e=t.querySelectorAll(o),i=0;i<e.length;i++)n.push(e[i])}}),n},c.debounceMethod=function(t,e,o){o=o||100;var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){n.apply(i,e),delete i[s]},o)}},c.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=d.console;return c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l),n="data-"+t,e=document.querySelectorAll("["+n+"]"),i=document.querySelectorAll(".js-"+t),o=c.makeArray(e).concat(c.makeArray(i)),s=n+"-options",r=d.jQuery;o.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}var o=new a(e,t);r&&r.data(e,l,o)})})},c}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var o=document.documentElement.style,n="string"==typeof o.transition?"transition":"WebkitTransition",s="string"==typeof o.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:s,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"},l=i.prototype=Object.create(t.prototype);l.constructor=i,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t){e[a[i]||i]=t[i]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;-1!=o.indexOf("%")&&(s=s/100*a.width),-1!=n.indexOf("%")&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var l=o?"paddingTop":"paddingBottom",d=o?"top":"bottom",c=o?"bottom":"top",u=this.position.y+t[l];e[d]=this.getYValue(u),e[c]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!n||this.isTransitioning){var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;0}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var d="opacity,"+s.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var u={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(u)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){return n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(n,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o){return s(n,t,e,i,o)}):"object"==typeof module&&module.exports?module.exports=s(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=s(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(t,e,n,s,o){"use strict";function r(t,e){var i=s.getQueryElement(t);if(i){this.element=i,d&&(this.$element=d(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e);var o=++c;this.element.outlayerGUID=o,(u[o]=this)._create(),this._getOption("initLayout")&&this.layout()}else l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function i(){}var l=t.console,d=t.jQuery,c=0,u={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=r.prototype;s.extend(h,e.prototype),h.option=function(t){s.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=new i(e[n],this);o.push(s)}return o},h._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=n(this.element)},h._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):o instanceof HTMLElement&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var o=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,o.push(e)},this),this._processLayoutQueue(o)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];return i.length?(i=parseFloat(i))*(p[o]||1):0}(t),this.stagger)},h._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},h._getContainerSize=i,h._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},h._emitCompleteOnItems=function(e,t){function i(){n.dispatchEvent(e+"Complete",null,[t])}function o(){++r==s&&i()}var n=this,s=t.length;if(t&&s){var r=0;t.forEach(function(t){t.once(e,o)})}else i()},h.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),d)if(this.$element=this.$element||d(this.element),e){var n=d.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){s.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),s.makeArray(t)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=i,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},h.handleEvent=s.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},s.debounceMethod(r,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},h.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.reveal()})}},h.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.hide()})}},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=s.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getItem(t);e&&i.push(e)},this),i},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),s.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,d&&d.removeData(this.element,this.constructor.namespace)},r.data=function(t){var e=(t=s.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},r.create=function(t,e){var i=a(r);return i.defaults=s.extend({},r.defaults),s.extend(i.defaults,e),i.compatOptions=s.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=a(o),s.htmlInit(i,t),d&&d.bridget&&d.bridget(t,i),i};var p={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function o(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=o.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){n[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function i(){o.apply(this,arguments)}return(i.prototype=Object.create(n)).constructor=i,e&&(i.options=e),o.modes[i.prototype.namespace=t]=i},o}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,d){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],e=t&&t.element;this.columnWidth=e&&d(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,n=o/i,s=i-o%i;n=Math[s&&s<1?"round":"floor"](n),this.cols=Math.max(n,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=d(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var o=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),n={x:this.columnWidth*o.col,y:o.y},s=o.y+t.size.outerHeight,r=i+o.col,a=o.col;a<r;a++)this.colYs[a]=s;return n},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=1<t&&i+t>this.cols?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=d(t),i=this._getElementOffset(t),o=this._getOption("originLeft")?i.left:i.right,n=o+e.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var r=Math.floor(n/this.columnWidth);r-=n%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,l=s;l<=r;l++)this.colYs[l]=Math.max(a,this.colYs[l])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(r,a){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,o,n,s){return a(r,t,e,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=a(r,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):r.Isotope=a(r,r.Outlayer,r.getSize,r.matchesSelector,r.fizzyUIUtils,r.Isotope.Item,r.Isotope.LayoutMode)}(window,function(t,i,e,o,s,n,r){var a=t.jQuery,d=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},c=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=n,c.LayoutMode=r;var l=c.prototype;l._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++){t[e].id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var l=s(a);l&&i.push(a),l&&a.isHidden?o.push(a):l||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return o(t.element,e)}},l.updateSortData=function(t){var e;e=t?(t=s.makeArray(t),this.getItems(t)):this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=u(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var u=function(t){if("string"!=typeof t)return t;var e,i,o=d(t).split(" "),n=o[0],s=n.match(/^\[(.+)\]$/),r=s&&s[1],a=(i=n,(e=r)?function(t){return t.getAttribute(e)}:function(t){var e=t.querySelector(i);return e&&e.textContent}),l=c.sortDataParsers[o[1]];return l?function(t){return t&&l(a(t))}:function(t){return t&&a(t)}};c.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=s.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=(r=this.sortHistory,a=this.options.sortAscending,function(t,e){for(var i=0;i<r.length;i++){var o=r[i],n=t.sortData[o],s=e.sortData[o];if(s<n||n<s)return(s<n?1:-1)*((void 0!==a[o]?a[o]:a)?1:-1)}return 0});this.filteredItems.sort(e)}var r,a},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var h=l.remove;return l.remove=function(t){t=s.makeArray(t);var e=this.getItems(t);h.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var n=e[o];s.removeFrom(this.filteredItems,n)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},c}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.device=e():t.device=e()}(window,function(){return o={},n.m=i=[function(t,e,i){t.exports=i(1)},function(t,e,i){"use strict";i.r(e);var o="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},n=window.device,s={},r=[];window.device=s;var a=window.document.documentElement,l=window.navigator.userAgent.toLowerCase(),d=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function c(t,e){return-1!==t.indexOf(e)}function u(t){return c(l,t)}function h(t){return a.className.match(new RegExp(t,"i"))}function p(t){var e=null;h(t)||(e=a.className.replace(/^\s+|\s+$/g,""),a.className=e+" "+t)}function f(t){h(t)&&(a.className=a.className.replace(" "+t,""))}function m(){s.landscape()?(f("portrait"),p("landscape"),g("landscape")):(f("landscape"),p("portrait"),g("portrait")),b()}function g(t){for(var e in r)r[e](t)}s.macos=function(){return u("mac")},s.ios=function(){return s.iphone()||s.ipod()||s.ipad()},s.iphone=function(){return!s.windows()&&u("iphone")},s.ipod=function(){return u("ipod")},s.ipad=function(){var t="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return u("ipad")||t},s.android=function(){return!s.windows()&&u("android")},s.androidPhone=function(){return s.android()&&u("mobile")},s.androidTablet=function(){return s.android()&&!u("mobile")},s.blackberry=function(){return u("blackberry")||u("bb10")||u("rim")},s.blackberryPhone=function(){return s.blackberry()&&!u("tablet")},s.blackberryTablet=function(){return s.blackberry()&&u("tablet")},s.windows=function(){return u("windows")},s.windowsPhone=function(){return s.windows()&&u("phone")},s.windowsTablet=function(){return s.windows()&&u("touch")&&!s.windowsPhone()},s.fxos=function(){return(u("(mobile")||u("(tablet"))&&u(" rv:")},s.fxosPhone=function(){return s.fxos()&&u("mobile")},s.fxosTablet=function(){return s.fxos()&&u("tablet")},s.meego=function(){return u("meego")},s.cordova=function(){return window.cordova&&"file:"===location.protocol},s.nodeWebkit=function(){return"object"===o(window.process)},s.mobile=function(){return s.androidPhone()||s.iphone()||s.ipod()||s.windowsPhone()||s.blackberryPhone()||s.fxosPhone()||s.meego()},s.tablet=function(){return s.ipad()||s.androidTablet()||s.blackberryTablet()||s.windowsTablet()||s.fxosTablet()},s.desktop=function(){return!s.tablet()&&!s.mobile()},s.television=function(){for(var t=0;t<d.length;){if(u(d[t]))return!0;t++}return!1},s.portrait=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?c(screen.orientation.type,"portrait"):s.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90!==Math.abs(window.orientation):1<window.innerHeight/window.innerWidth},s.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?c(screen.orientation.type,"landscape"):s.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1},s.noConflict=function(){return window.device=n,this},s.ios()?s.ipad()?p("ios ipad tablet"):s.iphone()?p("ios iphone mobile"):s.ipod()&&p("ios ipod mobile"):s.macos()?p("macos desktop"):s.android()?s.androidTablet()?p("android tablet"):p("android mobile"):s.blackberry()?s.blackberryTablet()?p("blackberry tablet"):p("blackberry mobile"):s.windows()?s.windowsTablet()?p("windows tablet"):s.windowsPhone()?p("windows mobile"):p("windows desktop"):s.fxos()?s.fxosTablet()?p("fxos tablet"):p("fxos mobile"):s.meego()?p("meego mobile"):s.nodeWebkit()?p("node-webkit"):s.television()?p("television"):s.desktop()&&p("desktop"),s.cordova()&&p("cordova"),s.onChangeOrientation=function(t){"function"==typeof t&&r.push(t)};var v="resize";function y(t){for(var e=0;e<t.length;e++)if(s[t[e]]())return t[e];return"unknown"}function b(){s.orientation=y(["portrait","landscape"])}Object.prototype.hasOwnProperty.call(window,"onorientationchange")&&(v="orientationchange"),window.addEventListener?window.addEventListener(v,m,!1):window.attachEvent?window.attachEvent(v,m):window[v]=m,m(),s.type=y(["mobile","tablet","desktop"]),s.os=y(["ios","iphone","ipad","ipod","android","blackberry","macos","windows","fxos","meego","television"]),b(),e.default=s}],n.c=o,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0).default;function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var i,o}),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var i,o=document.createElement("style"),t=document.getElementsByTagName("script")[0];o.type="text/css",o.id="matchmediajs-test",t.parentNode.insertBefore(o,t),i="getComputedStyle"in window&&window.getComputedStyle(o,null)||o.currentStyle,e={matchMedium:function(t){var e="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return o.styleSheet?o.styleSheet.cssText=e:o.textContent=e,"1px"===i.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(d,c,t){"use strict";function e(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd&&define("picturefill",function(){return t}),"object"==typeof d&&(d.picturefill=t)}function n(t){for(var e,i,o,n,s,r=t||{},a=0,l=(e=r.elements||u.getAllElements()).length;a<l;a++)if(o=(i=e[a]).parentNode,s=n=void 0,"IMG"===i.nodeName.toUpperCase()&&(i[u.ns]||(i[u.ns]={}),r.reevaluate||!i[u.ns].evaluated)){if(o&&"PICTURE"===o.nodeName.toUpperCase()){if(u.removeVideoShim(o),!1===(n=u.getMatch(i,o)))continue}else n=void 0;(o&&"PICTURE"===o.nodeName.toUpperCase()||!u.sizesSupported&&i.srcset&&h.test(i.srcset))&&u.dodgeSrcset(i),n?(s=u.processSourceSet(n),u.applyBestCandidate(s,i)):(s=u.processSourceSet(i),void 0!==i.srcset&&!i[u.ns].srcset||u.applyBestCandidate(s,i)),i[u.ns].evaluated=!0}}if(d.HTMLPictureElement)e(function(){});else{c.createElement("picture");var o,i,u=d.picturefill||{},h=/\s+\+?\d+(e\d+)?w/;u.ns="picturefill",u.srcsetSupported="srcset"in t,u.sizesSupported="sizes"in t,u.curSrcSupported="currentSrc"in t,u.trim=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},u.makeUrl=(i=c.createElement("a"),function(t){return i.href=t,i.href}),u.restrictsMixedContent=function(){return"https:"===d.location.protocol},u.matchesMedia=function(t){return d.matchMedia&&d.matchMedia(t).matches},u.getDpr=function(){return d.devicePixelRatio||1},u.getWidthFromLength=function(t){var e;if(!t||-1<t.indexOf("%")!=0||!(0<parseFloat(t)||-1<t.indexOf("calc(")))return!1;t=t.replace("vw","%"),u.lengthEl||(u.lengthEl=c.createElement("div"),u.lengthEl.style.cssText="border:0;display:block;font-size:1em;left:0;margin:0;padding:0;position:absolute;visibility:hidden",u.lengthEl.className="helper-from-picturefill-js"),u.lengthEl.style.width="0px";try{u.lengthEl.style.width=t}catch(t){}return c.body.appendChild(u.lengthEl),(e=u.lengthEl.offsetWidth)<=0&&(e=!1),c.body.removeChild(u.lengthEl),e},u.detectTypeSupport=function(t,e){var i=new d.Image;return i.onerror=function(){u.types[t]=!1,n()},i.onload=function(){u.types[t]=1===i.width,n()},i.src=e,"pending"},u.types=u.types||{},u.initTypeDetects=function(){u.types["image/jpeg"]=!0,u.types["image/gif"]=!0,u.types["image/png"]=!0,u.types["image/svg+xml"]=c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),u.types["image/webp"]=u.detectTypeSupport("image/webp","data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")},u.verifyTypeSupport=function(t){var e=t.getAttribute("type");if(null===e||""===e)return!0;var i=u.types[e];return"string"==typeof i&&"pending"!==i?(u.types[e]=u.detectTypeSupport(e,i),"pending"):"function"==typeof i?(i(),"pending"):i},u.parseSize=function(t){var e=/(\([^)]+\))?\s*(.+)/g.exec(t);return{media:e&&e[1],length:e&&e[2]}},u.findWidthFromSourceSize=function(t){for(var e,i=u.trim(t).split(/\s*,\s*/),o=0,n=i.length;o<n;o++){var s=i[o],r=u.parseSize(s),a=r.length,l=r.media;if(a&&(!l||u.matchesMedia(l))&&(e=u.getWidthFromLength(a)))break}return e||Math.max(d.innerWidth||0,c.documentElement.clientWidth)},u.parseSrcset=function(t){for(var e=[];""!==t;){var i,o=(t=t.replace(/^\s+/g,"")).search(/\s/g),n=null;if(-1!==o){if(","!==(i=t.slice(0,o)).slice(-1)&&""!==i||(i=i.replace(/,+$/,""),n=""),t=t.slice(o+1),null===n){var s=t.indexOf(",");t=-1!==s?(n=t.slice(0,s),t.slice(s+1)):(n=t,"")}}else i=t,t="";(i||n)&&e.push({url:i,descriptor:n})}return e},u.parseDescriptor=function(t,e){var i,o=e||"100vw",n=t&&t.replace(/(^\s+|\s+$)/g,""),s=u.findWidthFromSourceSize(o);if(n)for(var r=n.split(" "),a=r.length-1;0<=a;a--){var l=r[a],d=l&&l.slice(l.length-1);if("h"!==d&&"w"!==d||u.sizesSupported){if("x"===d){var c=l&&parseFloat(l,10);i=c&&!isNaN(c)?c:1}}else i=parseFloat(parseInt(l,10)/s)}return i||1},u.getCandidatesFromSourceSet=function(t,e){for(var i=u.parseSrcset(t),o=[],n=0,s=i.length;n<s;n++){var r=i[n];o.push({url:r.url,resolution:u.parseDescriptor(r.descriptor,e)})}return o},u.dodgeSrcset=function(t){t.srcset&&(t[u.ns].srcset=t.srcset,t.srcset="",t.setAttribute("data-pfsrcset",t[u.ns].srcset))},u.processSourceSet=function(t){var e=t.getAttribute("srcset"),i=t.getAttribute("sizes"),o=[];return"IMG"===t.nodeName.toUpperCase()&&t[u.ns]&&t[u.ns].srcset&&(e=t[u.ns].srcset),e&&(o=u.getCandidatesFromSourceSet(e,i)),o},u.backfaceVisibilityFix=function(t){var e=t.style||{},i="webkitBackfaceVisibility"in e,o=e.zoom;i&&(e.zoom=".999",i=t.offsetWidth,e.zoom=o)},u.setIntrinsicSize=(o={},function(t,e){var i;t[u.ns]&&!d.pfStopIntrinsicSize&&(void 0===t[u.ns].dims&&(t[u.ns].dims=t.getAttribute("width")||t.getAttribute("height")),t[u.ns].dims||(e.url in o?s(t,o[e.url],e.resolution):((i=c.createElement("img")).onload=function(){if(o[e.url]=i.width,!o[e.url])try{c.body.appendChild(i),o[e.url]=i.width||i.offsetWidth,c.body.removeChild(i)}catch(t){}t.src===e.url&&s(t,o[e.url],e.resolution),t=null,i.onload=null,i=null},i.src=e.url)))}),u.applyBestCandidate=function(t,e){var i,o,n;t.sort(u.ascendingSort),n=t[(o=t.length)-1];for(var s=0;s<o;s++)if((i=t[s]).resolution>=u.getDpr()){n=i;break}n&&(n.url=u.makeUrl(n.url),e.src!==n.url&&(u.restrictsMixedContent()&&"http:"===n.url.substr(0,"http:".length).toLowerCase()?void 0!==window.console&&console.warn("Blocked mixed content image "+n.url):(e.src=n.url,u.curSrcSupported||(e.currentSrc=e.src),u.backfaceVisibilityFix(e))),u.setIntrinsicSize(e,n))},u.ascendingSort=function(t,e){return t.resolution-e.resolution},u.removeVideoShim=function(t){var e=t.getElementsByTagName("video");if(e.length){for(var i=e[0],o=i.getElementsByTagName("source");o.length;)t.insertBefore(o[0],i);i.parentNode.removeChild(i)}},u.getAllElements=function(){for(var t=[],e=c.getElementsByTagName("img"),i=0,o=e.length;i<o;i++){var n=e[i];("PICTURE"===n.parentNode.nodeName.toUpperCase()||null!==n.getAttribute("srcset")||n[u.ns]&&null!==n[u.ns].srcset)&&t.push(n)}return t},u.getMatch=function(t,e){for(var i,o=e.childNodes,n=0,s=o.length;n<s;n++){var r=o[n];if(1===r.nodeType){if(r===t)return i;if("SOURCE"===r.nodeName.toUpperCase()){null!==r.getAttribute("src")&&console.warn("The `src` attribute is invalid on `picture` `source` element; instead, use `srcset`.");var a=r.getAttribute("media");if(r.getAttribute("srcset")&&(!a||u.matchesMedia(a))){var l=u.verifyTypeSupport(r);if(!0===l){i=r;break}if("pending"===l)return!1}}}}return i},function(){function t(){clearTimeout(i),i=setTimeout(e,60)}function e(){n({reevaluate:!0})}u.initTypeDetects(),n();var i,o=setInterval(function(){return n(),/^loaded|^i|^c/.test(c.readyState)?void clearInterval(o):void 0},250);d.addEventListener?d.addEventListener("resize",t,!1):d.attachEvent&&d.attachEvent("onresize",t)}(),n._=u,e(n)}function s(t,e,i){e&&t.setAttribute("width",parseInt(e/i,10))}}(window,window.document,new window.Image),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(m){!function(){"use strict";function e(t,e){if(this.el=t,this.$el=m(t),this.s=m.extend({},i,e),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=m(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(m(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var i={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};e.prototype.init=function(){var t=this;t.s.preload>t.$items.length&&(t.s.preload=t.$items.length);var e=window.location.hash;0<e.indexOf("lg="+this.s.galleryId)&&(t.index=parseInt(e.split("&slide=")[1],10),m("body").addClass("lg-from-hash"),m("body").hasClass("lg-on")||(setTimeout(function(){t.build(t.index)}),m("body").addClass("lg-on"))),t.s.dynamic?(t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||0,m("body").hasClass("lg-on")||setTimeout(function(){t.build(t.index),m("body").addClass("lg-on")})):t.$items.on("click.lgcustom",function(e){try{e.preventDefault(),e.preventDefault()}catch(t){e.returnValue=!1}t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||t.$items.index(this),m("body").hasClass("lg-on")||(t.build(t.index),m("body").addClass("lg-on"))})},e.prototype.build=function(t){var e=this;e.structure(),m.each(m.fn.lightGallery.modules,function(t){e.modules[t]=new m.fn.lightGallery.modules[t](e.el)}),e.slide(t,!1,!1,!1),e.s.keyPress&&e.keyPress(),1<e.$items.length?(e.arrow(),setTimeout(function(){e.enableDrag(),e.enableSwipe()},50),e.s.mousewheel&&e.mousewheel()):e.$slide.on("click.lg",function(){e.$el.trigger("onSlideClick.lg")}),e.counter(),e.closeGallery(),e.$el.trigger("onAfterOpen.lg"),e.$outer.on("mousemove.lg click.lg touchstart.lg",function(){e.$outer.removeClass("lg-hide-items"),clearTimeout(e.hideBartimeout),e.hideBartimeout=setTimeout(function(){e.$outer.addClass("lg-hide-items")},e.s.hideBarsDelay)}),e.$outer.trigger("mousemove.lg")},e.prototype.structure=function(){var t,e="",i="",o=0,n="",s=this;for(m("body").append('<div class="lg-backdrop"></div>'),m(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),o=0;o<this.$items.length;o++)e+='<div class="lg-item"></div>';if(this.s.controls&&1<this.$items.length&&(i='<div class="lg-actions"><button class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(n='<div class="lg-sub-html"></div>'),t='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+e+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+i+n+"</div></div>",m("body").append(t),this.$outer=m(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),s.setTop(),m(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){s.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&1<this.$items.length&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var r=this.$outer.find(".lg-inner");r.css("transition-timing-function",this.s.cssEasing),r.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){m(".lg-backdrop").addClass("in")}),setTimeout(function(){s.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=m(window).scrollTop()},e.prototype.setTop=function(){if("100%"!==this.s.height){var t=m(window).height(),e=(t-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg");t>=parseInt(this.s.height,10)?i.css("top",e+"px"):i.css("top","0px")}},e.prototype.doCss=function(){return!!function(){var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],e=document.documentElement,i=0;for(i=0;i<t.length;i++)if(t[i]in e.style)return 1}()},e.prototype.isVideo=function(t,e){var i;if(i=this.s.dynamic?this.s.dynamicEl[e].html:this.$items.eq(e).attr("data-html"),!t)return i?{html5:!0}:(console.error("lightGallery :- data-src is not pvovided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var o=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),n=t.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),s=t.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),r=t.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return o?{youtube:o}:n?{vimeo:n}:s?{dailymotion:s}:r?{vk:r}:void 0},e.prototype.counter=function(){this.s.counter&&m(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},e.prototype.addHtml=function(t){var e,i,o=null;if(this.s.dynamic?this.s.dynamicEl[t].subHtmlUrl?e=this.s.dynamicEl[t].subHtmlUrl:o=this.s.dynamicEl[t].subHtml:(i=this.$items.eq(t)).attr("data-sub-html-url")?e=i.attr("data-sub-html-url"):(o=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!o&&(o=i.attr("title")||i.find("img").first().attr("alt"))),!e)if(null!=o){var n=o.substring(0,1);"."!==n&&"#"!==n||(o=this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(o).html():m(o).html())}else o="";".lg-sub-html"===this.s.appendSubHtmlTo?e?this.$outer.find(this.s.appendSubHtmlTo).load(e):this.$outer.find(this.s.appendSubHtmlTo).html(o):e?this.$slide.eq(t).load(e):this.$slide.eq(t).append(o),null!=o&&(""===o?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[t])},e.prototype.preload=function(t){var e=1,i=1;for(e=1;e<=this.s.preload&&!(e>=this.$items.length-t);e++)this.loadContent(t+e,!1,0);for(i=1;i<=this.s.preload&&!(t-i<0);i++)this.loadContent(t-i,!1,0)},e.prototype.loadContent=function(e,t,i){function o(t){for(var e=[],i=[],o=0;o<t.length;o++){var n=t[o].split(" ");""===n[0]&&n.splice(0,1),i.push(n[0]),e.push(n[1])}for(var s=m(window).width(),r=0;r<e.length;r++)if(parseInt(e[r],10)>s){a=i[r];break}}var n,a,s,r,l,d,c=this,u=!1;l=c.s.dynamic?(c.s.dynamicEl[e].poster&&(u=!0,s=c.s.dynamicEl[e].poster),d=c.s.dynamicEl[e].html,a=c.s.dynamicEl[e].src,c.s.dynamicEl[e].responsive&&o(c.s.dynamicEl[e].responsive.split(",")),r=c.s.dynamicEl[e].srcset,c.s.dynamicEl[e].sizes):(c.$items.eq(e).attr("data-poster")&&(u=!0,s=c.$items.eq(e).attr("data-poster")),d=c.$items.eq(e).attr("data-html"),a=c.$items.eq(e).attr("href")||c.$items.eq(e).attr("data-src"),c.$items.eq(e).attr("data-responsive")&&o(c.$items.eq(e).attr("data-responsive").split(",")),r=c.$items.eq(e).attr("data-srcset"),c.$items.eq(e).attr("data-sizes"));var h=!1;c.s.dynamic?c.s.dynamicEl[e].iframe&&(h=!0):"true"===c.$items.eq(e).attr("data-iframe")&&(h=!0);var p=c.isVideo(a,e);if(!c.$slide.eq(e).hasClass("lg-loaded")){if(h)c.$slide.eq(e).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+c.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+a+'"  allowfullscreen="true"></iframe></div></div>');else if(u){var f;f=p&&p.youtube?"lg-has-youtube":p&&p.vimeo?"lg-has-vimeo":"lg-has-html5",c.$slide.eq(e).prepend('<div class="lg-video-cont '+f+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+s+'" /></div></div>')}else p?(c.$slide.eq(e).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),c.$el.trigger("hasVideo.lg",[e,a,d])):c.$slide.eq(e).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+a+'" /></div>');if(c.$el.trigger("onAferAppendSlide.lg",[e]),n=c.$slide.eq(e).find(".lg-object"),l&&n.attr("sizes",l),r){n.attr("srcset",r);try{picturefill({elements:[n[0]]})}catch(t){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&c.addHtml(e),c.$slide.eq(e).addClass("lg-loaded")}c.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){var t=0;i&&!m("body").hasClass("lg-from-hash")&&(t=i),setTimeout(function(){c.$slide.eq(e).addClass("lg-complete"),c.$el.trigger("onSlideItemLoad.lg",[e,i||0])},t)}),p&&p.html5&&!u&&c.$slide.eq(e).addClass("lg-complete"),!0===t&&(c.$slide.eq(e).hasClass("lg-complete")?c.preload(e):c.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){c.preload(e)}))},e.prototype.slide=function(t,e,i,o){var n=this.$outer.find(".lg-current").index(),s=this;if(!s.lGalleryOn||n!==t){var r=this.$slide.length,a=s.lGalleryOn?this.s.speed:0;if(!s.lgBusy){var l,d,c;if(this.s.download)(l=s.s.dynamic?!1!==s.s.dynamicEl[t].downloadUrl&&(s.s.dynamicEl[t].downloadUrl||s.s.dynamicEl[t].src):"false"!==s.$items.eq(t).attr("data-download-url")&&(s.$items.eq(t).attr("data-download-url")||s.$items.eq(t).attr("href")||s.$items.eq(t).attr("data-src")))?(m("#lg-download").attr("href",l),s.$outer.removeClass("lg-hide-download")):s.$outer.addClass("lg-hide-download");if(this.$el.trigger("onBeforeSlide.lg",[n,t,e,i]),s.lgBusy=!0,clearTimeout(s.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){s.addHtml(t)},a),this.arrowDisable(t),o||(t<n?o="prev":n<t&&(o="next")),e)this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),2<r?(d=t-1,c=t+1,(0===t&&n===r-1||t===r-1&&0===n)&&(c=0,d=r-1)):(d=0,c=1),"prev"===o?s.$slide.eq(c).addClass("lg-next-slide"):s.$slide.eq(d).addClass("lg-prev-slide"),s.$slide.eq(t).addClass("lg-current");else s.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===o?(this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(n).addClass("lg-next-slide")):(this.$slide.eq(t).addClass("lg-next-slide"),this.$slide.eq(n).addClass("lg-prev-slide")),setTimeout(function(){s.$slide.removeClass("lg-current"),s.$slide.eq(t).addClass("lg-current"),s.$outer.removeClass("lg-no-trans")},50);s.lGalleryOn?(setTimeout(function(){s.loadContent(t,!0,0)},this.s.speed+50),setTimeout(function(){s.lgBusy=!1,s.$el.trigger("onAfterSlide.lg",[n,t,e,i])},this.s.speed)):(s.loadContent(t,!0,s.s.backdropDuration),s.lgBusy=!1,s.$el.trigger("onAfterSlide.lg",[n,t,e,i])),s.lGalleryOn=!0,this.s.counter&&m("#lg-counter-current").text(t+1)}s.index=t}},e.prototype.goToNextSlide=function(t){var e=this,i=e.s.loop;t&&e.$slide.length<3&&(i=!1),e.lgBusy||(e.index+1<e.$slide.length?(e.index++,e.$el.trigger("onBeforeNextSlide.lg",[e.index]),e.slide(e.index,t,!1,"next")):i?(e.index=0,e.$el.trigger("onBeforeNextSlide.lg",[e.index]),e.slide(e.index,t,!1,"next")):e.s.slideEndAnimatoin&&!t&&(e.$outer.addClass("lg-right-end"),setTimeout(function(){e.$outer.removeClass("lg-right-end")},400)))},e.prototype.goToPrevSlide=function(t){var e=this,i=e.s.loop;t&&e.$slide.length<3&&(i=!1),e.lgBusy||(0<e.index?(e.index--,e.$el.trigger("onBeforePrevSlide.lg",[e.index,t]),e.slide(e.index,t,!1,"prev")):i?(e.index=e.$items.length-1,e.$el.trigger("onBeforePrevSlide.lg",[e.index,t]),e.slide(e.index,t,!1,"prev")):e.s.slideEndAnimatoin&&!t&&(e.$outer.addClass("lg-left-end"),setTimeout(function(){e.$outer.removeClass("lg-left-end")},400)))},e.prototype.keyPress=function(){var e=this;1<this.$items.length&&m(window).on("keyup.lg",function(t){1<e.$items.length&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))}),m(window).on("keydown.lg",function(t){!0===e.s.escKey&&27===t.keyCode&&(t.preventDefault(),e.$outer.hasClass("lg-thumb-open")?e.$outer.removeClass("lg-thumb-open"):e.destroy())})},e.prototype.arrow=function(){var t=this;this.$outer.find(".lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){t.goToNextSlide()})},e.prototype.arrowDisable=function(t){!this.s.loop&&this.s.hideControlOnEnd&&(t+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),0<t?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},e.prototype.setTranslate=function(t,e,i){this.s.useLeft?t.css("left",e):t.css({transform:"translate3d("+e+"px, "+i+"px, 0px)"})},e.prototype.touchMove=function(t,e){var i=e-t;15<Math.abs(i)&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),i,0),this.setTranslate(m(".lg-prev-slide"),-this.$slide.eq(this.index).width()+i,0),this.setTranslate(m(".lg-next-slide"),this.$slide.eq(this.index).width()+i,0))},e.prototype.touchEnd=function(t){var e=this;"lg-slide"!==e.s.mode&&e.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){e.$outer.removeClass("lg-dragging"),t<0&&Math.abs(t)>e.s.swipeThreshold?e.goToNextSlide(!0):0<t&&Math.abs(t)>e.s.swipeThreshold?e.goToPrevSlide(!0):Math.abs(t)<5&&e.$el.trigger("onSlideClick.lg"),e.$slide.removeAttr("style")}),setTimeout(function(){e.$outer.hasClass("lg-dragging")||"lg-slide"===e.s.mode||e.$outer.removeClass("lg-slide")},e.s.speed+100)},e.prototype.enableSwipe=function(){var e=this,i=0,o=0,n=!1;e.s.enableSwipe&&e.doCss()&&(e.$slide.on("touchstart.lg",function(t){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(t.preventDefault(),e.manageSwipeClass(),i=t.originalEvent.targetTouches[0].pageX)}),e.$slide.on("touchmove.lg",function(t){e.$outer.hasClass("lg-zoomed")||(t.preventDefault(),o=t.originalEvent.targetTouches[0].pageX,e.touchMove(i,o),n=!0)}),e.$slide.on("touchend.lg",function(){e.$outer.hasClass("lg-zoomed")||(n?(n=!1,e.touchEnd(o-i)):e.$el.trigger("onSlideClick.lg"))}))},e.prototype.enableDrag=function(){var e=this,i=0,o=0,n=!1,s=!1;e.s.enableDrag&&e.doCss()&&(e.$slide.on("mousedown.lg",function(t){e.$outer.hasClass("lg-zoomed")||e.lgBusy||m(t.target).text().trim()||(t.preventDefault(),e.manageSwipeClass(),i=t.pageX,n=!0,e.$outer.scrollLeft+=1,--e.$outer.scrollLeft,e.$outer.removeClass("lg-grab").addClass("lg-grabbing"),e.$el.trigger("onDragstart.lg"))}),m(window).on("mousemove.lg",function(t){n&&(s=!0,o=t.pageX,e.touchMove(i,o),e.$el.trigger("onDragmove.lg"))}),m(window).on("mouseup.lg",function(t){s?(s=!1,e.touchEnd(o-i),e.$el.trigger("onDragend.lg")):(m(t.target).hasClass("lg-object")||m(t.target).hasClass("lg-video-play"))&&e.$el.trigger("onSlideClick.lg"),n&&(n=!1,e.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},e.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.s.loop&&2<this.$slide.length&&(0===this.index?e=this.$slide.length-1:this.index===this.$slide.length-1&&(t=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),-1<e&&this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(t).addClass("lg-next-slide")},e.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",function(t){t.deltaY&&(0<t.deltaY?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())})},e.prototype.closeGallery=function(){var e=this,i=!1;this.$outer.find(".lg-close").on("click.lg",function(){e.destroy()}),e.s.closable&&(e.$outer.on("mousedown.lg",function(t){i=!!(m(t.target).is(".lg-outer")||m(t.target).is(".lg-item ")||m(t.target).is(".lg-img-wrap"))}),e.$outer.on("mousemove.lg",function(){i=!1}),e.$outer.on("mouseup.lg",function(t){(m(t.target).is(".lg-outer")||m(t.target).is(".lg-item ")||m(t.target).is(".lg-img-wrap")&&i)&&(e.$outer.hasClass("lg-dragging")||e.destroy())}))},e.prototype.destroy=function(t){var e=this;t||(e.$el.trigger("onBeforeClose.lg"),m(window).scrollTop(e.prevScrollTop)),t&&(e.s.dynamic||this.$items.off("click.lg click.lgcustom"),m.removeData(e.el,"lightGallery")),this.$el.off(".lg.tm"),m.each(m.fn.lightGallery.modules,function(t){e.modules[t]&&e.modules[t].destroy()}),this.lGalleryOn=!1,clearTimeout(e.hideBartimeout),this.hideBartimeout=!1,m(window).off(".lg"),m("body").removeClass("lg-on lg-from-hash"),e.$outer&&e.$outer.removeClass("lg-visible"),m(".lg-backdrop").removeClass("in"),setTimeout(function(){e.$outer&&e.$outer.remove(),m(".lg-backdrop").remove(),t||e.$el.trigger("onCloseAfter.lg")},e.s.backdropDuration+50)},m.fn.lightGallery=function(t){return this.each(function(){if(m.data(this,"lightGallery"))try{m(this).data("lightGallery").init()}catch(t){console.error("lightGallery has not initiated properly")}else m.data(this,"lightGallery",new e(this,t))})},m.fn.lightGallery.modules={}}()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(i){!function(){"use strict";function t(t){return this.core=i(t).data("lightGallery"),this.$el=i(t),!(this.core.$items.length<2)&&(this.core.s=i.extend({},e,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)}var e={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"};t.prototype.init=function(){var t=this;t.core.s.autoplayControls&&t.controls(),t.core.s.progressBar&&t.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),t.progress(),t.core.s.autoplay&&t.$el.one("onSlideItemLoad.lg.tm",function(){t.startlAuto()}),t.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){t.interval&&(t.cancelAuto(),t.canceledOnTouch=!0)}),t.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!t.interval&&t.canceledOnTouch&&(t.startlAuto(),t.canceledOnTouch=!1)})},t.prototype.progress=function(){var t,e,i=this;i.$el.on("onBeforeSlide.lg.tm",function(){i.core.s.progressBar&&i.fromAuto&&(t=i.core.$outer.find(".lg-progress-bar"),e=i.core.$outer.find(".lg-progress"),i.interval&&(e.removeAttr("style"),t.removeClass("lg-start"),setTimeout(function(){e.css("transition","width "+(i.core.s.speed+i.core.s.pause)+"ms ease 0s"),t.addClass("lg-start")},20))),i.fromAuto||i.core.s.fourceAutoplay||i.cancelAuto(),i.fromAuto=!1})},t.prototype.controls=function(){var t=this;i(this.core.s.appendAutoplayControlsTo).append('<span class="lg-autoplay-button lg-icon"></span>'),t.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){i(t.core.$outer).hasClass("lg-show-autoplay")?(t.cancelAuto(),t.core.s.fourceAutoplay=!1):t.interval||(t.startlAuto(),t.core.s.fourceAutoplay=t.fourceAutoplayTemp)})},t.prototype.startlAuto=function(){var t=this;t.core.$outer.find(".lg-progress").css("transition","width "+(t.core.s.speed+t.core.s.pause)+"ms ease 0s"),t.core.$outer.addClass("lg-show-autoplay"),t.core.$outer.find(".lg-progress-bar").addClass("lg-start"),t.interval=setInterval(function(){t.core.index+1<t.core.$items.length?t.core.index++:t.core.index=0,t.fromAuto=!0,t.core.slide(t.core.index,!1,!1,"next")},t.core.s.speed+t.core.s.pause)},t.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},t.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},i.fn.lightGallery.modules.autoplay=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(o){!function(){"use strict";function e(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function t(t){return this.core=o(t).data("lightGallery"),this.$el=o(t),this.core.s=o.extend({},i,this.core.s),this.init(),this}var i={fullScreen:!0};t.prototype.init=function(){var t="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;t='<span class="lg-fullscreen lg-icon"></span>',this.core.$outer.find(".lg-toolbar").append(t),this.fullScreen()}},t.prototype.requestFullscreen=function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()},t.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},t.prototype.fullScreen=function(){var t=this;o(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){t.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){e()?t.exitFullscreen():t.requestFullscreen()})},t.prototype.destroy=function(){e()&&this.exitFullscreen(),o(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},o.fn.lightGallery.modules.fullscreen=t}()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(r){!function(){"use strict";function t(t){return this.core=r(t).data("lightGallery"),this.$el=r(t),this.core.s=r.extend({},e,this.core.s),this.core.s.pager&&1<this.core.$items.length&&this.init(),this}var e={pager:!1};t.prototype.init=function(){var o,t,e,i=this,n="";if(i.core.$outer.find(".lg").append('<div class="lg-pager-outer"></div>'),i.core.s.dynamic)for(var s=0;s<i.core.s.dynamicEl.length;s++)n+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+i.core.s.dynamicEl[s].thumb+'" /></div></span>';else i.core.$items.each(function(){i.core.s.exThumbImage?n+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+r(this).attr(i.core.s.exThumbImage)+'" /></div></span>':n+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+r(this).find("img").attr("src")+'" /></div></span>'});(t=i.core.$outer.find(".lg-pager-outer")).html(n),(o=i.core.$outer.find(".lg-pager-cont")).on("click.lg touchend.lg",function(){var t=r(this);i.core.index=t.index(),i.core.slide(i.core.index,!1,!0,!1)}),t.on("mouseover.lg",function(){clearTimeout(e),t.addClass("lg-pager-hover")}),t.on("mouseout.lg",function(){e=setTimeout(function(){t.removeClass("lg-pager-hover")})}),i.core.$el.on("onBeforeSlide.lg.tm",function(t,e,i){o.removeClass("lg-pager-active"),o.eq(i).addClass("lg-pager-active")})},t.prototype.destroy=function(){},r.fn.lightGallery.modules.pager=t}()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(d){!function(){"use strict";function t(t){return this.core=d(t).data("lightGallery"),this.core.s=d.extend({},e,this.core.s),this.$el=d(t),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this}var e={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHeight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0};t.prototype.init=function(){var t=this;this.core.s.thumbnail&&1<this.core.$items.length&&(this.core.s.showThumbByDefault&&setTimeout(function(){t.core.$outer.addClass("lg-thumb-open")},700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},t.prototype.build=function(){function e(t,e,i){var o,n=r.core.isVideo(t,i)||{},s="";n.youtube||n.vimeo||n.dailymotion?n.youtube?o=r.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+n.youtube[1]+"/"+r.core.s.youtubeThumbSize+".jpg":e:n.vimeo?r.core.s.loadVimeoThumbnail?(o="//i.vimeocdn.com/video/error_"+l+".jpg",s=n.vimeo[1]):o=e:n.dailymotion&&(o=r.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+n.dailymotion[1]:e):o=e,a+='<div data-vimeo-id="'+s+'" class="lg-thumb-item" style="width:'+r.core.s.thumbWidth+"px; height: "+r.core.s.thumbHeight+"; margin-right: "+r.core.s.thumbMargin+'px"><img src="'+o+'" /></div>',s=""}var t,r=this,a="",l="";switch(this.core.s.vimeoThumbSize){case"thumbnail_large":l="640";break;case"thumbnail_medium":l="200x150";break;case"thumbnail_small":l="100x75"}if(r.core.$outer.addClass("lg-has-thumb"),r.core.$outer.find(".lg").append('<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>'),r.$thumbOuter=r.core.$outer.find(".lg-thumb-outer"),r.thumbOuterWidth=r.$thumbOuter.width(),r.core.s.animateThumb&&r.core.$outer.find(".lg-thumb").css({width:r.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&r.$thumbOuter.css("height",r.core.s.thumbContHeight+"px"),r.core.s.dynamic)for(var i=0;i<r.core.s.dynamicEl.length;i++)e(r.core.s.dynamicEl[i].src,r.core.s.dynamicEl[i].thumb,i);else r.core.$items.each(function(t){r.core.s.exThumbImage?e(d(this).attr("href")||d(this).attr("data-src"),d(this).attr(r.core.s.exThumbImage),t):e(d(this).attr("href")||d(this).attr("data-src"),d(this).find("img").attr("src"),t)});r.core.$outer.find(".lg-thumb").html(a),(t=r.core.$outer.find(".lg-thumb-item")).each(function(){var e=d(this),t=e.attr("data-vimeo-id");t&&d.getJSON("//www.vimeo.com/api/v2/video/"+t+".json?callback=?",{format:"json"},function(t){e.find("img").attr("src",t[0][r.core.s.vimeoThumbSize])})}),t.eq(r.core.index).addClass("active"),r.core.$el.on("onBeforeSlide.lg.tm",function(){t.removeClass("active"),t.eq(r.core.index).addClass("active")}),t.on("click.lg touchend.lg",function(){var t=d(this);setTimeout(function(){(!r.thumbClickable||r.core.lgBusy)&&r.core.doCss()||(r.core.index=t.index(),r.core.slide(r.core.index,!1,!0,!1))},50)}),r.core.$el.on("onBeforeSlide.lg.tm",function(){r.animateThumb(r.core.index)}),d(window).on("resize.lg.thumb orientationchange.lg.thumb",function(){setTimeout(function(){r.animateThumb(r.core.index),r.thumbOuterWidth=r.$thumbOuter.width()},200)})},t.prototype.setTranslate=function(t){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+t+"px, 0px, 0px)"})},t.prototype.animateThumb=function(t){var e=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){var i;switch(this.core.s.currentPagerPosition){case"left":i=0;break;case"middle":i=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":i=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*t-1-i,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(e.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||e.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||e.css("left",-this.left+"px"),this.setTranslate(this.left)}},t.prototype.enableThumbDrag=function(){var e=this,i=0,o=0,n=!1,s=!1,r=0;e.$thumbOuter.addClass("lg-grab"),e.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),i=t.pageX,n=!0,e.core.$outer.scrollLeft+=1,--e.core.$outer.scrollLeft,e.thumbClickable=!1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),d(window).on("mousemove.lg.thumb",function(t){n&&(r=e.left,s=!0,o=t.pageX,e.$thumbOuter.addClass("lg-dragging"),(r-=o-i)>e.thumbTotalWidth-e.thumbOuterWidth&&(r=e.thumbTotalWidth-e.thumbOuterWidth),r<0&&(r=0),e.setTranslate(r))}),d(window).on("mouseup.lg.thumb",function(){s?(s=!1,e.$thumbOuter.removeClass("lg-dragging"),e.left=r,Math.abs(o-i)<e.core.s.swipeThreshold&&(e.thumbClickable=!0)):e.thumbClickable=!0,n&&(n=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))})},t.prototype.enableThumbSwipe=function(){var e=this,i=0,o=0,n=!1,s=0;e.core.$outer.find(".lg-thumb").on("touchstart.lg",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),i=t.originalEvent.targetTouches[0].pageX,e.thumbClickable=!1)}),e.core.$outer.find(".lg-thumb").on("touchmove.lg",function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),o=t.originalEvent.targetTouches[0].pageX,n=!0,e.$thumbOuter.addClass("lg-dragging"),s=e.left,(s-=o-i)>e.thumbTotalWidth-e.thumbOuterWidth&&(s=e.thumbTotalWidth-e.thumbOuterWidth),s<0&&(s=0),e.setTranslate(s))}),e.core.$outer.find(".lg-thumb").on("touchend.lg",function(){e.thumbTotalWidth>e.thumbOuterWidth&&n?(n=!1,e.$thumbOuter.removeClass("lg-dragging"),Math.abs(o-i)<e.core.s.swipeThreshold&&(e.thumbClickable=!0),e.left=s):e.thumbClickable=!0})},t.prototype.toogle=function(){var t=this;t.core.s.toogleThumb&&(t.core.$outer.addClass("lg-can-toggle"),t.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>'),t.core.$outer.find(".lg-toogle-thumb").on("click.lg",function(){t.core.$outer.toggleClass("lg-thumb-open")}))},t.prototype.thumbkeyPress=function(){var e=this;d(window).on("keydown.lg.thumb",function(t){38===t.keyCode?(t.preventDefault(),e.core.$outer.addClass("lg-thumb-open")):40===t.keyCode&&(t.preventDefault(),e.core.$outer.removeClass("lg-thumb-open"))})},t.prototype.destroy=function(){this.core.s.thumbnail&&1<this.core.$items.length&&(d(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},d.fn.lightGallery.modules.Thumbnail=t}()}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(h){!function(){"use strict";function t(t){return this.core=h(t).data("lightGallery"),this.$el=h(t),this.core.s=h.extend({},e,this.core.s),this.videoLoaded=!1,this.init(),this}var e={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}};t.prototype.init=function(){var o=this;o.core.$el.on("hasVideo.lg.tm",function(t,e,i,o){var n=this;if(n.core.$slide.eq(e).find(".lg-video").append(n.loadVideo(i,"lg-object",!0,e,o)),o)if(n.core.s.videojs)try{videojs(n.core.$slide.eq(e).find(".lg-html5").get(0),n.core.s.videojsOptions,function(){!n.videoLoaded&&n.core.s.autoplayFirstVideo&&this.play()})}catch(t){console.error("Make sure you have included videojs")}else!n.videoLoaded&&n.core.s.autoplayFirstVideo&&n.core.$slide.eq(e).find(".lg-html5").get(0).play()}.bind(this)),o.core.$el.on("onAferAppendSlide.lg.tm",function(t,e){var i=this.core.$slide.eq(e).find(".lg-video-cont");i.hasClass("lg-has-iframe")||(i.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}.bind(this)),o.core.doCss()&&1<o.core.$items.length&&(o.core.s.enableSwipe||o.core.s.enableDrag)?o.core.$el.on("onSlideClick.lg.tm",function(){var t=o.core.$slide.eq(o.core.index);o.loadVideoOnclick(t)}):o.core.$slide.on("click.lg",function(){o.loadVideoOnclick(h(this))}),o.core.$el.on("onBeforeSlide.lg.tm",function(t,e,i){var o,n=this,s=n.core.$slide.eq(e),r=s.find(".lg-youtube").get(0),a=s.find(".lg-vimeo").get(0),l=s.find(".lg-dailymotion").get(0),d=s.find(".lg-vk").get(0),c=s.find(".lg-html5").get(0);if(r)r.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(a)try{$f(a).api("pause")}catch(t){console.error("Make sure you have included froogaloop2 js")}else if(l)l.contentWindow.postMessage("pause","*");else if(c)if(n.core.s.videojs)try{videojs(c).pause()}catch(t){console.error("Make sure you have included videojs")}else c.pause();d&&h(d).attr("src",h(d).attr("src").replace("&autoplay","&noplay")),o=n.core.s.dynamic?n.core.s.dynamicEl[i].src:n.core.$items.eq(i).attr("href")||n.core.$items.eq(i).attr("data-src");var u=n.core.isVideo(o,i)||{};(u.youtube||u.vimeo||u.dailymotion||u.vk)&&n.core.$outer.addClass("lg-hide-download")}.bind(this)),o.core.$el.on("onAfterSlide.lg.tm",function(t,e){o.core.$slide.eq(e).removeClass("lg-video-playing")}),o.core.s.autoplayFirstVideo&&o.core.$el.on("onAferAppendSlide.lg.tm",function(t,e){if(!o.core.lGalleryOn){var i=o.core.$slide.eq(e);setTimeout(function(){o.loadVideoOnclick(i)},100)}})},t.prototype.loadVideo=function(t,e,i,o,n){var s="",r=1,a="",l=this.core.isVideo(t,o)||{};if(i&&(r=!this.videoLoaded&&this.core.s.autoplayFirstVideo?1:0),l.youtube)a="?wmode=opaque&autoplay="+r+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(a=a+"&"+h.param(this.core.s.youtubePlayerParams)),s='<iframe class="lg-video-object lg-youtube '+e+'" width="560" height="315" src="//www.youtube.com/embed/'+l.youtube[1]+a+'" frameborder="0" allowfullscreen></iframe>';else if(l.vimeo)a="?autoplay="+r+"&api=1",this.core.s.vimeoPlayerParams&&(a=a+"&"+h.param(this.core.s.vimeoPlayerParams)),s='<iframe class="lg-video-object lg-vimeo '+e+'" width="560" height="315"  src="//player.vimeo.com/video/'+l.vimeo[1]+a+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(l.dailymotion)a="?wmode=opaque&autoplay="+r+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(a=a+"&"+h.param(this.core.s.dailymotionPlayerParams)),s='<iframe class="lg-video-object lg-dailymotion '+e+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+l.dailymotion[1]+a+'" frameborder="0" allowfullscreen></iframe>';else if(l.html5){var d=n.substring(0,1);"."!==d&&"#"!==d||(n=h(n).html()),s=n}else l.vk&&(a="&autoplay="+r,this.core.s.vkPlayerParams&&(a=a+"&"+h.param(this.core.s.vkPlayerParams)),s='<iframe class="lg-video-object lg-vk '+e+'" width="560" height="315" src="//vk.com/video_ext.php?'+l.vk[1]+a+'" frameborder="0" allowfullscreen></iframe>');return s},t.prototype.loadVideoOnclick=function(i){var o=this;if(i.find(".lg-object").hasClass("lg-has-poster")&&i.find(".lg-object").is(":visible"))if(i.hasClass("lg-has-video")){var t=i.find(".lg-youtube").get(0),e=i.find(".lg-vimeo").get(0),n=i.find(".lg-dailymotion").get(0),s=i.find(".lg-html5").get(0);if(t)t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(e)try{$f(e).api("play")}catch(i){console.error("Make sure you have included froogaloop2 js")}else if(n)n.contentWindow.postMessage("play","*");else if(s)if(o.core.s.videojs)try{videojs(s).play()}catch(i){console.error("Make sure you have included videojs")}else s.play();i.addClass("lg-video-playing")}else{i.addClass("lg-video-playing lg-has-video");var r,a,l=function(t,e){if(i.find(".lg-video").append(o.loadVideo(t,"",!1,o.core.index,e)),e)if(o.core.s.videojs)try{videojs(o.core.$slide.eq(o.core.index).find(".lg-html5").get(0),o.core.s.videojsOptions,function(){this.play()})}catch(t){console.error("Make sure you have included videojs")}else o.core.$slide.eq(o.core.index).find(".lg-html5").get(0).play()};a=o.core.s.dynamic?(r=o.core.s.dynamicEl[o.core.index].src,o.core.s.dynamicEl[o.core.index].html):(r=o.core.$items.eq(o.core.index).attr("href")||o.core.$items.eq(o.core.index).attr("data-src"),o.core.$items.eq(o.core.index).attr("data-html")),l(r,a);var d=i.find(".lg-object");i.find(".lg-video").append(d),i.find(".lg-video-object").hasClass("lg-html5")||(i.removeClass("lg-complete"),i.find(".lg-video-object").on("load.lg error.lg",function(){i.addClass("lg-complete")}))}},t.prototype.destroy=function(){this.videoLoaded=!1},h.fn.lightGallery.modules.video=t}()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(u){!function(){"use strict";function t(t){return this.core=u(t).data("lightGallery"),this.core.s=u.extend({},o,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=u(window).width()/2,this.pageY=u(window).height()/2+u(window).scrollTop()),this}var e,i,o={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:(e=!1,(i=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./))&&parseInt(i[2],10)<54&&(e=!0),e)};t.prototype.init=function(){var r=this,t='<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-icon"></span>';r.core.s.actualSize&&(t+='<span id="lg-actual-size" class="lg-icon"></span>'),r.core.s.useLeftForZoom?r.core.$outer.addClass("lg-use-left-for-zoom"):r.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(t),r.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(t,e,i){var o=r.core.s.enableZoomAfter+i;u("body").hasClass("lg-from-hash")&&i?o=0:u("body").removeClass("lg-from-hash"),r.zoomabletimeout=setTimeout(function(){r.core.$slide.eq(e).addClass("lg-zoomable")},o+30)});function e(t){var e=r.core.$outer.find(".lg-current .lg-image"),i=(u(window).width()-e.prop("offsetWidth"))/2,o=(u(window).height()-e.prop("offsetHeight"))/2+u(window).scrollTop(),n=(t-1)*(r.pageX-i),s=(t-1)*(r.pageY-o);e.css("transform","scale3d("+t+", "+t+", 1)").attr("data-scale",t),r.core.s.useLeftForZoom?e.parent().css({left:-n+"px",top:-s+"px"}).attr("data-x",n).attr("data-y",s):e.parent().css("transform","translate3d(-"+n+"px, -"+s+"px, 0)").attr("data-x",n).attr("data-y",s)}function a(){1<l?r.core.$outer.addClass("lg-zoomed"):r.resetZoom(),l<1&&(l=1),e(l)}function o(t,e,i,o){var n,s=e.prop("offsetWidth");n=r.core.s.dynamic?r.core.s.dynamicEl[i].width||e[0].naturalWidth||s:r.core.$items.eq(i).attr("data-width")||e[0].naturalWidth||s,r.core.$outer.hasClass("lg-zoomed")?l=1:s<n&&(l=n/s||2),o?(r.pageX=u(window).width()/2,r.pageY=u(window).height()/2+u(window).scrollTop()):(r.pageX=t.pageX||t.originalEvent.targetTouches[0].pageX,r.pageY=t.pageY||t.originalEvent.targetTouches[0].pageY),a(),setTimeout(function(){r.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)}var l=1,n=!1;r.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(t,e){var i=r.core.$slide.eq(e).find(".lg-image");i.on("dblclick",function(t){o(t,i,e)}),i.on("touchstart",function(t){n?(clearTimeout(n),n=null,o(t,i,e)):n=setTimeout(function(){n=null},300),t.preventDefault()})}),u(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){r.pageX=u(window).width()/2,r.pageY=u(window).height()/2+u(window).scrollTop(),e(l)}),u("#lg-zoom-out").on("click.lg",function(){r.core.$outer.find(".lg-current .lg-image").length&&(l-=r.core.s.scale,a())}),u("#lg-zoom-in").on("click.lg",function(){r.core.$outer.find(".lg-current .lg-image").length&&(l+=r.core.s.scale,a())}),u("#lg-actual-size").on("click.lg",function(t){o(t,r.core.$slide.eq(r.core.index).find(".lg-image"),r.core.index,!0)}),r.core.$el.on("onBeforeSlide.lg.tm",function(){l=1,r.resetZoom()}),r.zoomDrag(),r.zoomSwipe()},t.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=u(window).width()/2,this.pageY=u(window).height()/2+u(window).scrollTop()},t.prototype.zoomSwipe=function(){var n=this,s={},r={},a=!1,l=!1,d=!1;n.core.$slide.on("touchstart.lg",function(t){if(n.core.$outer.hasClass("lg-zoomed")){var e=n.core.$slide.eq(n.core.index).find(".lg-object");d=e.prop("offsetHeight")*e.attr("data-scale")>n.core.$outer.find(".lg").height(),((l=e.prop("offsetWidth")*e.attr("data-scale")>n.core.$outer.find(".lg").width())||d)&&(t.preventDefault(),s={x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY})}}),n.core.$slide.on("touchmove.lg",function(t){if(n.core.$outer.hasClass("lg-zoomed")){var e,i,o=n.core.$slide.eq(n.core.index).find(".lg-img-wrap");t.preventDefault(),a=!0,r={x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY},n.core.$outer.addClass("lg-zoom-dragging"),i=d?-Math.abs(o.attr("data-y"))+(r.y-s.y):-Math.abs(o.attr("data-y")),e=l?-Math.abs(o.attr("data-x"))+(r.x-s.x):-Math.abs(o.attr("data-x")),(15<Math.abs(r.x-s.x)||15<Math.abs(r.y-s.y))&&(n.core.s.useLeftForZoom?o.css({left:e+"px",top:i+"px"}):o.css("transform","translate3d("+e+"px, "+i+"px, 0)"))}}),n.core.$slide.on("touchend.lg",function(){n.core.$outer.hasClass("lg-zoomed")&&a&&(a=!1,n.core.$outer.removeClass("lg-zoom-dragging"),n.touchendZoom(s,r,l,d))})},t.prototype.zoomDrag=function(){var n=this,s={},r={},a=!1,l=!1,d=!1,c=!1;n.core.$slide.on("mousedown.lg.zoom",function(t){var e=n.core.$slide.eq(n.core.index).find(".lg-object");c=e.prop("offsetHeight")*e.attr("data-scale")>n.core.$outer.find(".lg").height(),d=e.prop("offsetWidth")*e.attr("data-scale")>n.core.$outer.find(".lg").width(),n.core.$outer.hasClass("lg-zoomed")&&u(t.target).hasClass("lg-object")&&(d||c)&&(t.preventDefault(),s={x:t.pageX,y:t.pageY},a=!0,n.core.$outer.scrollLeft+=1,--n.core.$outer.scrollLeft,n.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),u(window).on("mousemove.lg.zoom",function(t){if(a){var e,i,o=n.core.$slide.eq(n.core.index).find(".lg-img-wrap");l=!0,r={x:t.pageX,y:t.pageY},n.core.$outer.addClass("lg-zoom-dragging"),i=c?-Math.abs(o.attr("data-y"))+(r.y-s.y):-Math.abs(o.attr("data-y")),e=d?-Math.abs(o.attr("data-x"))+(r.x-s.x):-Math.abs(o.attr("data-x")),n.core.s.useLeftForZoom?o.css({left:e+"px",top:i+"px"}):o.css("transform","translate3d("+e+"px, "+i+"px, 0)")}}),u(window).on("mouseup.lg.zoom",function(t){a&&(a=!1,n.core.$outer.removeClass("lg-zoom-dragging"),!l||s.x===r.x&&s.y===r.y||(r={x:t.pageX,y:t.pageY},n.touchendZoom(s,r,d,c)),l=!1),n.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},t.prototype.touchendZoom=function(t,e,i,o){var n=this,s=n.core.$slide.eq(n.core.index).find(".lg-img-wrap"),r=n.core.$slide.eq(n.core.index).find(".lg-object"),a=-Math.abs(s.attr("data-x"))+(e.x-t.x),l=-Math.abs(s.attr("data-y"))+(e.y-t.y),d=(n.core.$outer.find(".lg").height()-r.prop("offsetHeight"))/2,c=Math.abs(r.prop("offsetHeight")*Math.abs(r.attr("data-scale"))-n.core.$outer.find(".lg").height()+d),u=(n.core.$outer.find(".lg").width()-r.prop("offsetWidth"))/2,h=Math.abs(r.prop("offsetWidth")*Math.abs(r.attr("data-scale"))-n.core.$outer.find(".lg").width()+u);(15<Math.abs(e.x-t.x)||15<Math.abs(e.y-t.y))&&(o&&(l<=-c?l=-c:-d<=l&&(l=-d)),i&&(a<=-h?a=-h:-u<=a&&(a=-u)),o?s.attr("data-y",Math.abs(l)):l=-Math.abs(s.attr("data-y")),i?s.attr("data-x",Math.abs(a)):a=-Math.abs(s.attr("data-x")),n.core.s.useLeftForZoom?s.css({left:a+"px",top:l+"px"}):s.css("transform","translate3d("+a+"px, "+l+"px, 0)"))},t.prototype.destroy=function(){var t=this;t.core.$el.off(".lg.zoom"),u(window).off(".lg.zoom"),t.core.$slide.off(".lg.zoom"),t.core.$el.off(".lg.tm.zoom"),t.resetZoom(),clearTimeout(t.zoomabletimeout),t.zoomabletimeout=!1},u.fn.lightGallery.modules.zoom=t}()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(i){!function(){"use strict";function t(t){return this.core=i(t).data("lightGallery"),this.core.s=i.extend({},e,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this}var e={hash:!0};t.prototype.init=function(){var e,o=this;o.core.$el.on("onAfterSlide.lg.tm",function(t,e,i){history.replaceState?history.replaceState(null,null,window.location.pathname+window.location.search+"#lg="+o.core.s.galleryId+"&slide="+i):window.location.hash="lg="+o.core.s.galleryId+"&slide="+i}),i(window).on("hashchange.lg.hash",function(){e=window.location.hash;var t=parseInt(e.split("&slide=")[1],10);-1<e.indexOf("lg="+o.core.s.galleryId)?o.core.slide(t,!1,!1):o.core.lGalleryOn&&o.core.destroy()})},t.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},i.fn.lightGallery.modules.hash=t}()}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(n){!function(){"use strict";function t(t){return this.core=n(t).data("lightGallery"),this.core.s=n.extend({},e,this.core.s),this.core.s.share&&this.init(),this}var e={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"};t.prototype.init=function(){var o=this,t='<span id="lg-share" class="lg-icon"><ul class="lg-dropdown" style="position: absolute;">';t+=o.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",t+=o.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",t+=o.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",t+=o.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",t+="</ul></span>",this.core.$outer.find(".lg-toolbar").append(t),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),n("#lg-share").on("click.lg",function(){o.core.$outer.toggleClass("lg-dropdown-active")}),n("#lg-dropdown-overlay").on("click.lg",function(){o.core.$outer.removeClass("lg-dropdown-active")}),o.core.$el.on("onAfterSlide.lg.tm",function(t,e,i){setTimeout(function(){n("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o.getSahreProps(i,"facebookShareUrl")||window.location.href)),n("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+o.getSahreProps(i,"tweetText")+"&url="+encodeURIComponent(o.getSahreProps(i,"twitterShareUrl")||window.location.href)),n("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(o.getSahreProps(i,"googleplusShareUrl")||window.location.href)),n("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(o.getSahreProps(i,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(o.getSahreProps(i,"src"))+"&description="+o.getSahreProps(i,"pinterestText"))},100)})},t.prototype.getSahreProps=function(t,e){var i="";if(this.core.s.dynamic)i=this.core.s.dynamicEl[t][e];else{var o=this.core.$items.eq(t).attr("href"),n=this.core.$items.eq(t).data(e);i="src"===e&&o||n}return i},t.prototype.destroy=function(){},n.fn.lightGallery.modules.share=t}()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(h){function e(t){var e=t||window.event,i=v.call(arguments,1),o=0,n=0,s=0,r=0,a=0,l=0;if((t=h.event.fix(e)).type="mousewheel","detail"in e&&(s=-1*e.detail),"wheelDelta"in e&&(s=e.wheelDelta),"wheelDeltaY"in e&&(s=e.wheelDeltaY),"wheelDeltaX"in e&&(n=-1*e.wheelDeltaX),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=-1*s,s=0),o=0===s?n:s,"deltaY"in e&&(o=s=-1*e.deltaY),"deltaX"in e&&(n=e.deltaX,0===s&&(o=-1*n)),0!==s||0!==n){if(1===e.deltaMode){var d=h.data(this,"mousewheel-line-height");o*=d,s*=d,n*=d}else if(2===e.deltaMode){var c=h.data(this,"mousewheel-page-height");o*=c,s*=c,n*=c}if(r=Math.max(Math.abs(s),Math.abs(n)),(!g||r<g)&&(f(e,g=r)&&(g/=40)),f(e,r)&&(o/=40,n/=40,s/=40),o=Math[1<=o?"floor":"ceil"](o/g),n=Math[1<=n?"floor":"ceil"](n/g),s=Math[1<=s?"floor":"ceil"](s/g),y.settings.normalizeOffset&&this.getBoundingClientRect){var u=this.getBoundingClientRect();a=t.clientX-u.left,l=t.clientY-u.top}return t.deltaX=n,t.deltaY=s,t.deltaFactor=g,t.offsetX=a,t.offsetY=l,t.deltaMode=0,i.unshift(t,o,n,s),m&&clearTimeout(m),m=setTimeout(p,200),(h.event.dispatch||h.event.handle).apply(this,i)}}function p(){g=null}function f(t,e){return y.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var m,g,t=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],v=Array.prototype.slice;if(h.event.fixHooks)for(var o=t.length;o;)h.event.fixHooks[t[--o]]=h.event.mouseHooks;var y=h.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e;h.data(this,"mousewheel-line-height",y.getLineHeight(this)),h.data(this,"mousewheel-page-height",y.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],e,!1);else this.onmousewheel=null;h.removeData(this,"mousewheel-line-height"),h.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var e=h(t),i=e["offsetParent"in h.fn?"offsetParent":"parent"]();return i.length||(i=h("body")),parseInt(i.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(t){return h(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};h.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});