1function sameHeight(t){jQuery(t+" > div").css("height","auto"),maxheight=1,jQuery(t+" > div").each(function(){maxheight=jQuery(this).outerHeight()>maxheight?maxheight=jQuery(this).outerHeight():maxheight=maxheight}),jQuery(t+" > div").css("height",maxheight)}jQuery(document).ready(function(t){t("iframe").not(".CHECKFRONT_DROPLET, .webcam, .formiframe").wrap("<div class='videoWrapper1'></div>"),sameHeight(".sameHeight"),jQuery(".overlay").click(function(t){jQuery(".overlay").fadeOut(),jQuery(".secondary-nav").animate({right:"-300px"})}),jQuery(".sideMenuToggle").click(function(t){t.preventDefault(),jQuery(".overlay").fadeIn(),jQuery(".secondary-nav").animate({right:"0"})}),jQuery(".reviewsSliderOLD").owlCarousel({margin:40,nav:!0,loop:!0,responsive:{0:{items:1},800:{items:2}}}),jQuery(".menuToggle").click(function(t){t.preventDefault(),jQuery(".mob-nav").slideToggle()}),jQuery(".closeMenu").click(function(t){t.preventDefault(),jQuery(".mainNav").delay(500).animate({top:"-101%"}),jQuery(".mainNav ul li ").each(function(){jQuery(this).animate({"margin-top":"-20px",opacity:".3"},1e3)})}),jQuery(" .wp-block-group.bluebg").attr("data-aos","fade-up");var e=0;jQuery(".wp-block-gallery li").each(function(){jQuery(this).attr("data-aos-delay",e),e+=10}),jQuery(".faq-item h2").click(function(){jQuery(this).toggleClass("active"),jQuery(this).next(".faq-answer").slideToggle(),jQuery(this).hasClass("active")?jQuery(this).find("span").text("-"):jQuery(this).find("span").text("+")})}),jQuery(window).scroll(function(){height=jQuery(window).height()/2,jQuery(window).scrollTop()>height?jQuery(".header").hasClass("fixed")||(jQuery(".header").addClass("fixed"),jQuery(".header").css("top","-106px"),jQuery(".header").animate({top:"0"})):jQuery(".header").hasClass("fixed")&&jQuery(".header").removeClass("fixed")}),jQuery(window).resize(function(){sameHeight(".sameHeight")}),jQuery(window).load(function(){jQuery(".banner h1,.banner .wp-block-button").addClass("animated"),jQuery(".banner h1").addClass("fadeInLeft"),jQuery(".banner .wp-block-button").delay(1e3).addClass("fadeInRight"),jQuery(".banner").length>0&&jQuery(".banner").delay(1500).queue(function(t){jQuery(".banner").addClass("scroll"),t()})}),function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(n.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(n.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",l="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,l=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return t(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){t<=e&&t>s&&(s=Number(t))}),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;
vendor: 5,706 bytes, line 1
13!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},n.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},n.prototype.onDragEnd=function(e){var s=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy(function(t,a){return"left"===i&&e>a-30&&e<a+30?n=t:"right"===i&&e>a-o-30&&e<a-o+30?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==s?r[t+1]:a-o)&&(n="left"===i?t+1:t),-1===n},this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},n.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=s:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,n=1,o=e-1;return e===s?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))}
vendor: 4,125 bytes, line 1
1,n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=l&&s-n>0&&(i=s-n,t=s,this.reset(i))):this.settings.rewind?t=(t%(l+=1)+l)%l:t=Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===s?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},n.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t<i;case">":return s?t<i:t>i;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}}
vendor: 886 bytes, line 1
1,n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),h=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(h)}),this.register({type:n.Type.Event,name:e}),this.$element.trigger(h),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,h)),h},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===s
vendor: 8,872 bytes, line 1
1&&(this._states.current[e]=0),this._states.current[e]++},this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,s){return t.inArray(i,this._states.tags[e.name])===s},this)))},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},o))})),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={lazyLoad:!1,lazyLoadEager:0},n.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy(function(){this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("srcset",r):((n=new Image).onload=t.proxy(function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;t(e).on("load",function(){s._core.settings.autoHeight&&s.update()}),t(e).resize(function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout(function(){s.update()},250))})};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,function(e,i){o.push(t(i).height())}),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var s,n,o
vendor: 12,718 bytes, line 1
1=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",l="",h=this._core.settings,c=function(i){'<div class="owl-video-play-icon"></div>',s=h.lazyLoad?t("<div/>",{class:"owl-video-tn "+l,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t('<button role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy(function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)},this)),this._overrides)this._core[e]=t.proxy(this[e],this)},n.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<s;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},n.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},n.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,i){return t.start<=e&&t.end>=e},this)).pop()},n.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},n.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},n.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},n.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=n}
1(window.Zepto||window.jQuery,window,document),function(t,e,i,s){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,function(t,e){return t===s?e:null}).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){function n(e,i){var n=!1,o=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+a.join(o+" ")+o).split(" "),function(t,e){if(r[e]!==s)return n=!i||e,!1}),n}function o(t){return n(t,!0)}var r=t("<support>").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},h=function(){return!!n("transform")},c=function(){return!!n("perspective")},p=function(){return!!n("animation")};(function(){return!!n("transition")})()&&(t.support.transition=new String(o("transition")),t.support.transition.end=l.transition.end[t.support.transition]),p()&&(t.support.animation=new String(o("animation")),t.support.animation.end=l.animation.end[t.support.animation]),h()&&(t.support.transform=new String(o("transform")),t.support.transform3d=c())}(window.Zepto||window.jQuery,window,document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery||window.Zepto)}(function(t){var e,i,s,n,o,r,a=function(){},l=!!window.jQuery,h=t(window),c=function(t,i){e.ev.on("mfp"+t+".mfp",i)},p=function(e,i,s,n){var o=document.createElement("div");return o.className="mfp-"+e,s&&(o.innerHTML=s),n?i&&i.appendChild(o):(o=t(o),i&&o.appendTo(i)),o},d=function(i,s){e.ev.triggerHandler("mfp"+i,s),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(s)?s:[s]))},u=function(i){return i===r&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),r=i),e.currTemplate.closeBtn},m=function(){t.magnificPopup.instance||((e=new a).init(),t.magnificPopup.instance=e)};a.prototype={constructor:a,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=t(document),e.popupsCache={}},open:function(i){var n;if(!1===i.isObj){e.items=i.items.toArray(),e.index=0;var r,a=i.items;for(n=0;n<a.length;n++)if((r=a[n]).parsed&&(r=r.el[0]),r===i.el[0]){e.index=n;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(!e.isOpen){e.types=[],o="",i.mainEl&&i.mainEl.length?e.ev=i.mainEl.eq(0):e.ev=s,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=p("bg").on("click.mfp",function(){e.close()}),e.wrap=p("wrap").attr("tabindex",-1).on("click.mfp",function(t){e._checkIfClose(t.target)&&e.close()}),e.container=p("container",e.wrap)),e.contentContainer=p("content"),e.st.preloader&&(e.preloader=p("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(n=0;n<l.length;n++){var m=l[n];m=m.charAt(0).toUpperCase()+m.slice(1),e["init"+m].call(e)}d("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(c("MarkupParse",function(t,e,
1i,s){i.close_replaceWith=u(s.type)}),o+=" mfp-close-btn-in"):e.wrap.append(u())),e.st.alignTop&&(o+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:h.scrollTop(),position:"absolute"}),(!1===e.st.fixedBgPos||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:s.height(),position:"absolute"}),e.st.enableEscapeKey&&s.on("keyup.mfp",function(t){27===t.keyCode&&e.close()}),h.on("resize.mfp",function(){e.updateSize()}),e.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&e.wrap.addClass(o);var g=e.wH=h.height(),f={};if(e.fixedContentPos&&e._hasScrollBar(g)){var v=e._getScrollbarSize();v&&(f.marginRight=v)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):f.overflow="hidden");var y=e.st.mainClass;return e.isIE7&&(y+=" mfp-ie7"),y&&e._addClassToMFP(y),e.updateItemHTML(),d("BuildControls"),t("html").css(f),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP("mfp-ready"),e._setFocus()):e.bgOverlay.addClass("mfp-ready"),s.on("focusin.mfp",e._onFocusIn)},16),e.isOpen=!0,e.updateSize(g),d("Open"),i}e.updateItemHTML()},close:function(){e.isOpen&&(d("BeforeClose"),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP("mfp-removing"),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){d("Close");var i="mfp-removing mfp-ready ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var n={marginRight:""};e.isIE7?t("body, html").css("overflow",""):n.overflow="",t("html").css(n)}s.off("keyup.mfp focusin.mfp"),e.ev.off(".mfp"),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&!0!==e.currTemplate[e.currItem.type]||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,d("AfterClose")},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,s=window.innerHeight*i;e.wrap.css("height",s),e.wH=s}else e.wH=t||h.height();e.fixedContentPos||e.wrap.css("height",e.wH),d("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var s=i.type;if(d("BeforeChange",[e.currItem?e.currItem.type:"",s]),e.currItem=i,!e.currTemplate[s]){var o=!!e.st[s]&&e.st[s].markup;d("FirstMarkupParse",o),e.currTemplate[s]=!o||t(o)}n&&n!==i.type&&e.container.removeClass("mfp-"+n+"-holder");var r=e["get"+s.charAt(0).toUpperCase()+s.slice(1)](i,e.currTemplate[s]);e.appendContent(r,s),i.preloaded=!0,d("Change",i),n=i.type,e.container.prepend(e.contentContainer),d("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[i]?e.content.find(".mfp-close").length||e.content.append(u()):e.content=t:e.content="",d("BeforeAppend"),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var s,n=e.items[i];if(n.tagName?n={el:t(n)}:(s=n.type,n={data:n,src:n.src}),n.el){for(var o=e.types,r=0;r<o.length;r++)if(n.el.hasClass("mfp-"+o[r])){s=o[r];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=s||e.st.type||"inline",n.index=i,n.parsed=!0,e.items[i]=n,d("ElementParse",n),e.items[i]},addGroup:function(t,i){var s=function(s){s.mfpEl=this,e._openClick(s,t,i)};i||(i={});var n="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(n).on(n,s)):(i.isObj=!1,i.delegate?t.off(n).on(n,i.delegate,s):(i.items=t,t.off(n).on(n,s)))},_openClick:function(i,s,n){if((void 0!==n.midClick?n.midClick:t.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var o=void 0!==n.disableOn?n.disableOn:t.magnificPopup.defaults.disableOn;if(o)if(t.isFunction(o)){if(!o.call(e))return!0}else if(h.width()<o)return!0;
1i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),n.el=t(i.mfpEl),n.delegate&&(n.items=s.find(n.delegate)),e.open(n)}},updateStatus:function(t,s){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),s||"loading"!==t||(s=e.st.tLoading);var n={status:t,text:s};d("UpdateStatus",n),t=n.status,s=n.text,e.preloader.html(s),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass("mfp-prevent-close")){var s=e.st.closeOnContentClick,n=e.st.closeOnBgClick;if(s&&n)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(s)return!0}else if(n&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?s.height():document.body.scrollHeight)>(t||h.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,i,s){var n;s.data&&(i=t.extend(s.data,i)),d("MarkupParse",[e,i,s]),t.each(i,function(i,s){if(void 0===s||!1===s)return!0;if((n=i.split("_")).length>1){var o=e.find(".mfp-"+n[0]);if(o.length>0){var r=n[1];"replaceWith"===r?o[0]!==s[0]&&o.replaceWith(s):"img"===r?o.is("img")?o.attr("src",s):o.replaceWith(t("<img>").attr("src",s).attr("class",o.attr("class"))):o.attr(n[1],s)}}else e.find(".mfp-"+i).html(s)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:a.prototype,modules:[],open:function(e,i){return m(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){m();var s=t(this);if("string"==typeof i)if("open"===i){var n,o=l?s.data("magnificPopup"):s[0].magnificPopup,r=parseInt(arguments[1],10)||0;o.items?n=o.items[r]:(n=s,o.delegate&&(n=n.find(o.delegate)),n=n.eq(r)),e._openClick({mfpEl:n},s,o)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),l?s.data("magnificPopup",i):s[0].magnificPopup=i,e.addGroup(s,i);return s};var g,f,v,y=function(){v&&(f.after(v.addClass(g)).detach(),v=null)};t.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push("inline"),c("Close.inline",function(){y()})},getInline:function(i,s){if(y(),i.src){var n=e.st.inline,o=t(i.src);if(o.length){var r=o[0].parentNode;r&&r.tagName&&(f||(g=n.hiddenClass,f=p(g),g="mfp-"+g),v=o.after(f).detach().removeClass(g)),e.updateStatus("ready")}else e.updateStatus("error",n.tNotFound),o=t("<div>");return i.inlineElement=o,o}return e.updateStatus("ready"),e._parseMarkup(s,{},i),s}}});var _,w=function(){_&&t(document.body).removeClass(_)},x=function(){w(),e.req&&e.req.abort()};t.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push("ajax"),_=e.st.ajax.cursor,c("Close.ajax",x),c("BeforeChange.ajax",x)},getAjax:function(i){_&&t(document.body).addClass(_),e.updateStatus("loading");var s=t.extend({url:i.src,success:function(s,n,o){var r={data:s,xhr:o};d("ParseAjax",r),e.appendContent(t(r.data),"ajax"),i.finished=!0,w(),e._setFocus(),setTimeout(function(){e.wrap.addClass("mfp-ready")},16),e.updateStatus("ready"),d("AjaxContentAdded")},error:function(){w(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(s),""}}});var C,b=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;
1var s=e.st.image.titleSrc;if(s){if(t.isFunction(s))return s.call(e,i);if(i.el)return i.el.attr(s)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=e.st.image,s=".image";e.types.push("image"),c("Open"+s,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),c("Close"+s,function(){i.cursor&&t(document.body).removeClass(i.cursor),h.off("resize.mfp")}),c("Resize"+s,e.resizeImage),e.isLowIE&&c("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,C&&clearInterval(C),t.isCheckingImgSize=!1,d("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,s=t.img[0],n=function(o){C&&clearInterval(C),C=setInterval(function(){s.naturalWidth>0?e._onImageHasSize(t):(i>200&&clearInterval(C),3===++i?n(10):40===i?n(50):100===i&&n(500))},o)};n(1)},getImage:function(i,s){var n=0,o=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,d("ImageLoadComplete")):++n<200?setTimeout(o,100):r())},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=s.find(".mfp-img");if(l.length){var h=document.createElement("img");h.className="mfp-img",i.el&&i.el.find("img").length&&(h.alt=i.el.find("img").attr("alt")),i.img=t(h).on("load.mfploader",o).on("error.mfploader",r),h.src=i.src,l.is("img")&&(i.img=i.img.clone()),(h=i.img[0]).naturalWidth>0?i.hasSize=!0:h.width||(i.hasSize=!1)}return e._parseMarkup(s,{title:b(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(C&&clearInterval(C),i.loadError?(s.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(s.removeClass("mfp-loading"),e.updateStatus("ready")),s):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,s.addClass("mfp-loading"),e.findImageSize(i)),s)}}});var z;t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,s=".zoom";if(i.enabled&&e.supportsTransition){var n,o,r=i.duration,a=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),s="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=s,e.css(n),e},l=function(){e.content.css("visibility","visible")};c("BuildControls"+s,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void l();(o=a(t)).css(e._getOffset()),e.wrap.append(o),n=setTimeout(function(){o.css(e._getOffset(!0)),n=setTimeout(function(){l(),setTimeout(function(){o.remove(),t=o=null,d("ZoomAnimationEnded")},16)},r)},16)}}),c("BeforeClose"+s,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;o=a(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout(function(){o.css(e._getOffset())},16)}}),c("Close"+s,function(){e._allowZoom()&&(l(),o&&o.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var s,n=(s=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),o=parseInt(s.css("padding-top"),10),r=parseInt(s.css("padding-bottom"),10);n.top-=t(window).scrollTop()-o;var a={width:s.width(),height:(l?s.innerHeight():s[0].offsetHeight)-r-o};return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var T=function(t){if(e.currTemplate.iframe){var i=e.currTemplate.iframe.find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push("iframe"),c("BeforeChange",function(t,e,
1i){e!==i&&("iframe"===e?T():"iframe"===i&&T(!0))}),c("Close.iframe",function(){T()})},getIframe:function(i,s){var n=i.src,o=e.st.iframe;t.each(o.patterns,function(){if(n.indexOf(this.index)>-1)return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1});var r={};return o.srcAction&&(r[o.srcAction]=n),e._parseMarkup(s,r,i),e.updateStatus("ready"),s}}});var $=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},I=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,n=".mfp-gallery";if(e.direction=!0,!i||!i.enabled)return!1;o+=" mfp-gallery",c("Open"+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){if(e.items.length>1)return e.next(),!1}),s.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),c("UpdateStatus"+n,function(t,i){i.text&&(i.text=I(i.text,e.currItem.index,e.items.length))}),c("MarkupParse"+n,function(t,s,n,o){var r=e.items.length;n.counter=r>1?I(i.tCounter,o.index,r):""}),c("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var s=i.arrowMarkup,n=e.arrowLeft=t(s.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),o=e.arrowRight=t(s.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");n.click(function(){e.prev()}),o.click(function(){e.next()}),e.container.append(n.add(o))}}),c("Change"+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),c("Close"+n,function(){s.off(n),e.wrap.off("click"+n),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=$(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=$(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,s=Math.min(i[0],e.items.length),n=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?n:s);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?s:n);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=$(i),!e.items[i].preloaded){var s=e.items[i];s.parsed||(s=e.parseEl(i)),d("LazyLoad",s),"image"===s.type&&(s.img=t('<img class="mfp-img" />').on("load.mfploader",function(){s.hasSize=!0}).on("error.mfploader",function(){s.hasSize=!0,s.loadError=!0,d("LazyLoadError",s)}).attr("src",s.src)),s.preloaded=!0}}}});t.magnificPopup.registerModule("retina",{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;(i=isNaN(i)?i():i)>1&&(c("ImageHasSize.retina",function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),c("ElementParse.retina",function(e,s){s.src=t.replaceSrc(s,i)}))}}}}),m()}); 2 3/*! Magnific Popup - v1.1.0 - 2016-02-20 4* http://dimsemenov.com/plugins/magnific-popup/ 5* Copyright (c) 2016 Dmitry Semenov; */ 6;(function (factory) { 7if (typeof define === 'function' && define.amd) { 8 // AMD. Register as an anonymous module. 9 define(['jquery'], factory); 10 } else if (typeof exports === 'object') { 11 // Node/CommonJS 12 factory(require('jquery')); 13 } else { 14 // Browser globals 15 factory(window.jQuery || window.Zepto); 16 } 17 }(function($) { 18 19/*>>core*/ 20/** 21 * 22 * Magnific Popup Core JS file 23 * 24 */ 25 26 27/** 28 * Private static constants 29 */ 30var CLOSE_EVENT = 'Close', 31 BEFORE_CLOSE_EVENT = 'BeforeClose', 32 AFTER_CLOSE_EVENT = 'AfterClose', 33 BEFORE_APPEND_EVENT = 'BeforeAppend', 34 MARKUP_PARSE_EVENT = 'MarkupParse', 35 OPEN_EVENT = 'Open', 36 CHANGE_EVENT = 'Change', 37 NS = 'mfp', 38 EVENT_NS = '.' + NS, 39 READY_CLASS = 'mfp-ready', 40 REMOVING_CLASS = 'mfp-removing', 41 PREVENT_CLOSE_CLASS = 'mfp-prevent-close'; 42 43 44/** 45 * Private vars 46 */ 47/*jshint -W079 */ 48var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this' 49 MagnificPopup = function(){}, 50 _isJQ = !!(window.jQuery), 51 _prevStatus, 52 _window = $(window), 53 _document, 54 _prevContentType, 55 _wrapClasses, 56 _currPopupType; 57 58 59/** 60 * Private functions 61 */ 62var _mfpOn = function(name, f) { 63 mfp.ev.on(NS + name + EVENT_NS, f); 64 }, 65 _getEl = function(className, appendTo, html, raw) { 66 var el = document.createElement('div'); 67 el.className = 'mfp-'+className; 68 if(html) { 69 el.innerHTML = html; 70 } 71 if(!raw) { 72 el = $(el); 73 if(appendTo) { 74 el.appendTo(appendTo); 75 } 76 } else if(appendTo) { 77 appendTo.appendChild(el); 78 } 79 return el; 80 }, 81 _mfpTrigger = function(e, data) { 82 mfp.ev.triggerHandler(NS + e, data); 83 84 if(mfp.st.callbacks) { 85 // converts "mfpEventName" to "eventName" callback and triggers it if it's present 86 e = e.charAt(0).toLowerCase() + e.slice(1); 87 if(mfp.st.callbacks[e]) { 88 mfp.st.callbacks[e].apply(mfp, $.isArray(data) ? data : [data]); 89 } 90 } 91 }, 92 _getCloseBtn = function(type) { 93 if(type !== _currPopupType || !mfp.currTemplate.closeBtn) { 94 mfp.currTemplate.closeBtn = $( mfp.st.closeMarkup.replace('%title%', mfp.st.tClose ) ); 95 _currPopupType = type; 96 } 97 return mfp.currTemplate.closeBtn; 98 }, 99 // Initialize Magnific Popup only when called at least once 100 _checkInstance = function() { 101 if(!$.magnificPopup.instance) { 102 /*jshint -W020 */ 103 mfp = new MagnificPopup(); 104 mfp.init(); 105 $.magnificPopup.instance = mfp; 106 } 107 }, 108 // CSS transition detection, http://stackoverflow.com/questions/7264899/detect-css-transitions-using-javascript-and-without-modernizr 109 supportsTransitions = function() { 110 var s = document.createElement('p').style, // 's' for style. better to create an element if body yet to exist 111 v = ['ms','O','Moz','Webkit']; // 'v' for vendor 112 113 if( s['transition'] !== undefined ) { 114 return true; 115 } 116 117 while( v.length ) { 118 if( v.pop() + 'Transition' in s ) { 119 return true; 120 } 121 } 122 123 return false;
vendor: 24,193 bytes, lines 124-1226
124 }; 125 126 127 128/** 129 * Public functions 130 */ 131MagnificPopup.prototype = { 132 133 constructor: MagnificPopup, 134 135 /** 136 * Initializes Magnific Popup plugin. 137 * This function is triggered only once when $.fn.magnificPopup or $.magnificPopup is executed 138 */ 139 init: function() { 140 var appVersion = navigator.appVersion; 141 mfp.isLowIE = mfp.isIE8 = document.all && !document.addEventListener; 142 mfp.isAndroid = (/android/gi).test(appVersion); 143 mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion); 144 mfp.supportsTransition = supportsTransitions(); 145 146 // We disable fixed positioned lightbox on devices that don't handle it nicely. 147 // If you know a better way of detecting this - let me know. 148 mfp.probablyMobile = (mfp.isAndroid || mfp.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent) ); 149 _document = $(document); 150 151 mfp.popupsCache = {}; 152 }, 153 154 /** 155 * Opens popup 156 * @param data [description] 157 */ 158 open: function(data) { 159 160 var i; 161 162 if(data.isObj === false) { 163 // convert jQuery collection to array to avoid conflicts later 164 mfp.items = data.items.toArray(); 165 166 mfp.index = 0; 167 var items = data.items, 168 item; 169 for(i = 0; i < items.length; i++) { 170 item = items[i]; 171 if(item.parsed) { 172 item = item.el[0]; 173 } 174 if(item === data.el[0]) { 175 mfp.index = i; 176 break; 177 } 178 } 179 } else { 180 mfp.items = $.isArray(data.items) ? data.items : [data.items]; 181 mfp.index = data.index || 0; 182 } 183 184 // if popup is already opened - we just update the content 185 if(mfp.isOpen) { 186 mfp.updateItemHTML(); 187 return; 188 } 189 190 mfp.types = []; 191 _wrapClasses = ''; 192 if(data.mainEl && data.mainEl.length) { 193 mfp.ev = data.mainEl.eq(0); 194 } else { 195 mfp.ev = _document; 196 } 197 198 if(data.key) { 199 if(!mfp.popupsCache[data.key]) { 200 mfp.popupsCache[data.key] = {}; 201 } 202 mfp.currTemplate = mfp.popupsCache[data.key]; 203 } else { 204 mfp.currTemplate = {}; 205 } 206 207 208 209 mfp.st = $.extend(true, {}, $.magnificPopup.defaults, data ); 210 mfp.fixedContentPos = mfp.st.fixedContentPos === 'auto' ? !mfp.probablyMobile : mfp.st.fixedContentPos; 211 212 if(mfp.st.modal) { 213 mfp.st.closeOnContentClick = false; 214 mfp.st.closeOnBgClick = false; 215 mfp.st.showCloseBtn = false; 216 mfp.st.enableEscapeKey = false; 217 } 218 219 220 // Building markup 221 // main containers are created only once 222 if(!mfp.bgOverlay) { 223 224 // Dark overlay 225 mfp.bgOverlay = _getEl('bg').on('click'+EVENT_NS, function() { 226 mfp.close(); 227 }); 228 229 mfp.wrap = _getEl('wrap').attr('tabindex', -1).on('click'+EVENT_NS, function(e) { 230 if(mfp._checkIfClose(e.target)) { 231 mfp.close(); 232 } 233 }); 234 235 mfp.container = _getEl('container', mfp.wrap); 236 } 237 238 mfp.contentContainer = _getEl('content'); 239 if(mfp.st.preloader) { 240 mfp.preloader = _getEl('preloader', mfp.container, mfp.st.tLoading); 241 } 242 243 244 // Initializing modules 245 var modules = $.magnificPopup.modules; 246 for(i = 0; i < modules.length; i++) { 247 var n = modules[i]; 248 n = n.charAt(0).toUpperCase() + n.slice(1); 249 mfp['init'+n].call(mfp); 250 } 251 _mfpTrigger('BeforeOpen'); 252 253 254 if(mfp.st.showCloseBtn) { 255 // Close button 256 if(!mfp.st.closeBtnInside) { 257 mfp.wrap.append( _getCloseBtn() ); 258 } else { 259 _mfpOn(MARKUP_PARSE_EVENT, function(e, template, values, item) { 260 values.close_replaceWith = _getCloseBtn(item.type); 261 }); 262 _wrapClasses += ' mfp-close-btn-in'; 263 } 264 } 265 266 if(mfp.st.alignTop) { 267 _wrapClasses += ' mfp-align-top'; 268 } 269 270 271 272 if(mfp.fixedContentPos) { 273 mfp.wrap.css({ 274 overflow: mfp.st.overflowY, 275 overflowX: 'hidden', 276 overflowY: mfp.st.overflowY 277 }); 278 } else { 279 mfp.wrap.css({ 280 top: _window.scrollTop(), 281 position: 'absolute' 282 }); 283 } 284 if( mfp.st.fixedBgPos === false || (mfp.st.fixedBgPos === 'auto' && !mfp.fixedContentPos) ) { 285 mfp.bgOverlay.css({ 286 height: _document.height(), 287 position: 'absolute' 288 }); 289 } 290 291 292 293 if(mfp.st.enableEscapeKey) { 294 // Close on ESC key 295 _document.on('keyup' + EVENT_NS, function(e) { 296 if(e.keyCode === 27) { 297 mfp.close(); 298 } 299 }); 300 } 301 302 _window.on('resize' + EVENT_NS, function() { 303 mfp.updateSize(); 304 }); 305 306 307 if(!mfp.st.closeOnContentClick) { 308 _wrapClasses += ' mfp-auto-cursor'; 309 } 310 311 if(_wrapClasses) 312 mfp.wrap.addClass(_wrapClasses); 313 314 315 // this triggers recalculation of layout, so we get it once to not to trigger twice 316 var windowHeight = mfp.wH = _window.height(); 317 318 319 var windowStyles = {}; 320 321 if( mfp.fixedContentPos ) { 322 if(mfp._hasScrollBar(windowHeight)){ 323 var s = mfp._getScrollbarSize(); 324 if(s) { 325 windowStyles.marginRight = s; 326 } 327 } 328 } 329 330 if(mfp.fixedContentPos) { 331 if(!mfp.isIE7) { 332 windowStyles.overflow = 'hidden'; 333 } else { 334 // ie7 double-scroll bug 335 $('body, html').css('overflow', 'hidden'); 336 } 337 } 338 339 340 341 var classesToadd = mfp.st.mainClass; 342 if(mfp.isIE7) { 343 classesToadd += ' mfp-ie7'; 344 } 345 if(classesToadd) { 346 mfp._addClassToMFP( classesToadd ); 347 } 348 349 // add content 350 mfp.updateItemHTML(); 351 352 _mfpTrigger('BuildControls'); 353 354 // remove scrollbar, add margin e.t.c 355 $('html').css(windowStyles); 356 357 // add everything to DOM 358 mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || $(document.body) ); 359 360 // Save last focused element 361 mfp._lastFocusedEl = document.activeElement; 362 363 // Wait for next cycle to allow CSS transition 364 setTimeout(function() { 365 366 if(mfp.content) { 367 mfp._addClassToMFP(READY_CLASS); 368 mfp._setFocus(); 369 } else { 370 // if content is not defined (not loaded e.t.c) we add class only for BG 371 mfp.bgOverlay.addClass(READY_CLASS); 372 } 373 374 // Trap the focus in popup 375 _document.on('focusin' + EVENT_NS, mfp._onFocusIn); 376 377 }, 16); 378 379 mfp.isOpen = true; 380 mfp.updateSize(windowHeight); 381 _mfpTrigger(OPEN_EVENT); 382 383 return data; 384 }, 385 386 /** 387 * Closes the popup 388 */ 389 close: function() { 390 if(!mfp.isOpen) return; 391 _mfpTrigger(BEFORE_CLOSE_EVENT); 392 393 mfp.isOpen = false; 394 // for CSS3 animation 395 if(mfp.st.removalDelay && !mfp.isLowIE && mfp.supportsTransition ) { 396 mfp._addClassToMFP(REMOVING_CLASS); 397 setTimeout(function() { 398 mfp._close(); 399 }, mfp.st.removalDelay); 400 } else { 401 mfp._close(); 402 } 403 }, 404 405 /** 406 * Helper for close() function 407 */ 408 _close: function() { 409 _mfpTrigger(CLOSE_EVENT); 410 411 var classesToRemove = REMOVING_CLASS + ' ' + READY_CLASS + ' '; 412 413 mfp.bgOverlay.detach(); 414 mfp.wrap.detach(); 415 mfp.container.empty(); 416 417 if(mfp.st.mainClass) { 418 classesToRemove += mfp.st.mainClass + ' '; 419 } 420 421 mfp._removeClassFromMFP(classesToRemove); 422 423 if(mfp.fixedContentPos) { 424 var windowStyles = {marginRight: ''}; 425 if(mfp.isIE7) { 426 $('body, html').css('overflow', ''); 427 } else { 428 windowStyles.overflow = ''; 429 } 430 $('html').css(windowStyles); 431 } 432 433 _document.off('keyup' + EVENT_NS + ' focusin' + EVENT_NS); 434 mfp.ev.off(EVENT_NS); 435 436 // clean up DOM elements that aren't removed 437 mfp.wrap.attr('class', 'mfp-wrap').removeAttr('style'); 438 mfp.bgOverlay.attr('class', 'mfp-bg'); 439 mfp.container.attr('class', 'mfp-container'); 440 441 // remove close button from target element 442 if(mfp.st.showCloseBtn && 443 (!mfp.st.closeBtnInside || mfp.currTemplate[mfp.currItem.type] === true)) { 444 if(mfp.currTemplate.closeBtn) 445 mfp.currTemplate.closeBtn.detach(); 446 } 447 448 449 if(mfp.st.autoFocusLast && mfp._lastFocusedEl) { 450 $(mfp._lastFocusedEl).focus(); // put tab focus back 451 } 452 mfp.currItem = null; 453 mfp.content = null; 454 mfp.currTemplate = null; 455 mfp.prevHeight = 0; 456 457 _mfpTrigger(AFTER_CLOSE_EVENT); 458 }, 459 460 updateSize: function(winHeight) { 461 462 if(mfp.isIOS) { 463 // fixes iOS nav bars https://github.com/dimsemenov/Magnific-Popup/issues/2 464 var zoomLevel = document.documentElement.clientWidth / window.innerWidth; 465 var height = window.innerHeight * zoomLevel; 466 mfp.wrap.css('height', height); 467 mfp.wH = height; 468 } else { 469 mfp.wH = winHeight || _window.height(); 470 } 471 // Fixes #84: popup incorrectly positioned with position:relative on body 472 if(!mfp.fixedContentPos) { 473 mfp.wrap.css('height', mfp.wH); 474 } 475 476 _mfpTrigger('Resize'); 477 478 }, 479 480 /** 481 * Set content of popup based on current index 482 */ 483 updateItemHTML: function() { 484 var item = mfp.items[mfp.index]; 485 486 // Detach and perform modifications 487 mfp.contentContainer.detach(); 488 489 if(mfp.content) 490 mfp.content.detach(); 491 492 if(!item.parsed) { 493 item = mfp.parseEl( mfp.index ); 494 } 495 496 var type = item.type; 497 498 _mfpTrigger('BeforeChange', [mfp.currItem ? mfp.currItem.type : '', type]); 499 // BeforeChange event works like so: 500 // _mfpOn('BeforeChange', function(e, prevType, newType) { }); 501 502 mfp.currItem = item; 503 504 if(!mfp.currTemplate[type]) { 505 var markup = mfp.st[type] ? mfp.st[type].markup : false; 506 507 // allows to modify markup 508 _mfpTrigger('FirstMarkupParse', markup); 509 510 if(markup) { 511 mfp.currTemplate[type] = $(markup); 512 } else { 513 // if there is no markup found we just define that template is parsed 514 mfp.currTemplate[type] = true; 515 } 516 } 517 518 if(_prevContentType && _prevContentType !== item.type) { 519 mfp.container.removeClass('mfp-'+_prevContentType+'-holder'); 520 } 521 522 var newContent = mfp['get' + type.charAt(0).toUpperCase() + type.slice(1)](item, mfp.currTemplate[type]); 523 mfp.appendContent(newContent, type); 524 525 item.preloaded = true; 526 527 _mfpTrigger(CHANGE_EVENT, item); 528 _prevContentType = item.type; 529 530 // Append container back after its content changed 531 mfp.container.prepend(mfp.contentContainer); 532 533 _mfpTrigger('AfterChange'); 534 }, 535 536 537 /** 538 * Set HTML content of popup 539 */ 540 appendContent: function(newContent, type) { 541 mfp.content = newContent; 542 543 if(newContent) { 544 if(mfp.st.showCloseBtn && mfp.st.closeBtnInside && 545 mfp.currTemplate[type] === true) { 546 // if there is no markup, we just append close button element inside 547 if(!mfp.content.find('.mfp-close').length) { 548 mfp.content.append(_getCloseBtn()); 549 } 550 } else { 551 mfp.content = newContent; 552 } 553 } else { 554 mfp.content = ''; 555 } 556 557 _mfpTrigger(BEFORE_APPEND_EVENT); 558 mfp.container.addClass('mfp-'+type+'-holder'); 559 560 mfp.contentContainer.append(mfp.content); 561 }, 562 563 564 /** 565 * Creates Magnific Popup data object based on given data 566 * @param {int} index Index of item to parse 567 */ 568 parseEl: function(index) { 569 var item = mfp.items[index], 570 type; 571 572 if(item.tagName) { 573 item = { el: $(item) }; 574 } else { 575 type = item.type; 576 item = { data: item, src: item.src }; 577 } 578 579 if(item.el) { 580 var types = mfp.types; 581 582 // check for 'mfp-TYPE' class 583 for(var i = 0; i < types.length; i++) { 584 if( item.el.hasClass('mfp-'+types[i]) ) { 585 type = types[i]; 586 break; 587 } 588 } 589 590 item.src = item.el.attr('data-mfp-src'); 591 if(!item.src) { 592 item.src = item.el.attr('href'); 593 } 594 } 595 596 item.type = type || mfp.st.type || 'inline'; 597 item.index = index; 598 item.parsed = true; 599 mfp.items[index] = item; 600 _mfpTrigger('ElementParse', item); 601 602 return mfp.items[index]; 603 }, 604 605 606 /** 607 * Initializes single popup or a group of popups 608 */ 609 addGroup: function(el, options) { 610 var eHandler = function(e) { 611 e.mfpEl = this; 612 mfp._openClick(e, el, options); 613 }; 614 615 if(!options) { 616 options = {}; 617 } 618 619 var eName = 'click.magnificPopup'; 620 options.mainEl = el; 621 622 if(options.items) { 623 options.isObj = true; 624 el.off(eName).on(eName, eHandler); 625 } else { 626 options.isObj = false; 627 if(options.delegate) { 628 el.off(eName).on(eName, options.delegate , eHandler); 629 } else { 630 options.items = el; 631 el.off(eName).on(eName, eHandler); 632 } 633 } 634 }, 635 _openClick: function(e, el, options) { 636 var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick; 637 638 639 if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey || e.altKey || e.shiftKey ) ) { 640 return; 641 } 642 643 var disableOn = options.disableOn !== undefined ? options.disableOn : $.magnificPopup.defaults.disableOn; 644 645 if(disableOn) { 646 if($.isFunction(disableOn)) { 647 if( !disableOn.call(mfp) ) { 648 return true; 649 } 650 } else { // else it's number 651 if( _window.width() < disableOn ) { 652 return true; 653 } 654 } 655 } 656 657 if(e.type) { 658 e.preventDefault(); 659 660 // This will prevent popup from closing if element is inside and popup is already opened 661 if(mfp.isOpen) { 662 e.stopPropagation(); 663 } 664 } 665 666 options.el = $(e.mfpEl); 667 if(options.delegate) { 668 options.items = el.find(options.delegate); 669 } 670 mfp.open(options); 671 }, 672 673 674 /** 675 * Updates text on preloader 676 */ 677 updateStatus: function(status, text) { 678 679 if(mfp.preloader) { 680 if(_prevStatus !== status) { 681 mfp.container.removeClass('mfp-s-'+_prevStatus); 682 } 683 684 if(!text && status === 'loading') { 685 text = mfp.st.tLoading; 686 } 687 688 var data = { 689 status: status, 690 text: text 691 }; 692 // allows to modify status 693 _mfpTrigger('UpdateStatus', data); 694 695 status = data.status; 696 text = data.text; 697 698 mfp.preloader.html(text); 699 700 mfp.preloader.find('a').on('click', function(e) { 701 e.stopImmediatePropagation(); 702 }); 703 704 mfp.container.addClass('mfp-s-'+status); 705 _prevStatus = status; 706 } 707 }, 708 709 710 /* 711 "Private" helpers that aren't private at all 712 */ 713 // Check to close popup or not 714 // "target" is an element that was clicked 715 _checkIfClose: function(target) { 716 717 if($(target).hasClass(PREVENT_CLOSE_CLASS)) { 718 return; 719 } 720 721 var closeOnContent = mfp.st.closeOnContentClick; 722 var closeOnBg = mfp.st.closeOnBgClick; 723 724 if(closeOnContent && closeOnBg) { 725 return true; 726 } else { 727 728 // We close the popup if click is on close button or on preloader. Or if there is no content. 729 if(!mfp.content || $(target).hasClass('mfp-close') || (mfp.preloader && target === mfp.preloader[0]) ) { 730 return true; 731 } 732 733 // if click is outside the content 734 if( (target !== mfp.content[0] && !$.contains(mfp.content[0], target)) ) { 735 if(closeOnBg) { 736 // last check, if the clicked element is in DOM, (in case it's removed onclick) 737 if( $.contains(document, target) ) { 738 return true; 739 } 740 } 741 } else if(closeOnContent) { 742 return true; 743 } 744 745 } 746 return false; 747 }, 748 _addClassToMFP: function(cName) { 749 mfp.bgOverlay.addClass(cName); 750 mfp.wrap.addClass(cName); 751 }, 752 _removeClassFromMFP: function(cName) { 753 this.bgOverlay.removeClass(cName); 754 mfp.wrap.removeClass(cName); 755 }, 756 _hasScrollBar: function(winHeight) { 757 return ( (mfp.isIE7 ? _document.height() : document.body.scrollHeight) > (winHeight || _window.height()) ); 758 }, 759 _setFocus: function() { 760 (mfp.st.focus ? mfp.content.find(mfp.st.focus).eq(0) : mfp.wrap).focus(); 761 }, 762 _onFocusIn: function(e) { 763 if( e.target !== mfp.wrap[0] && !$.contains(mfp.wrap[0], e.target) ) { 764 mfp._setFocus(); 765 return false; 766 } 767 }, 768 _parseMarkup: function(template, values, item) { 769 var arr; 770 if(item.data) { 771 values = $.extend(item.data, values); 772 } 773 _mfpTrigger(MARKUP_PARSE_EVENT, [template, values, item] ); 774 775 $.each(values, function(key, value) { 776 if(value === undefined || value === false) { 777 return true; 778 } 779 arr = key.split('_'); 780 if(arr.length > 1) { 781 var el = template.find(EVENT_NS + '-'+arr[0]); 782 783 if(el.length > 0) { 784 var attr = arr[1]; 785 if(attr === 'replaceWith') { 786 if(el[0] !== value[0]) { 787 el.replaceWith(value); 788 } 789 } else if(attr === 'img') { 790 if(el.is('img')) { 791 el.attr('src', value); 792 } else { 793 el.replaceWith( $('<img>').attr('src', value).attr('class', el.attr('class')) ); 794 } 795 } else { 796 el.attr(arr[1], value); 797 } 798 } 799 800 } else { 801 template.find(EVENT_NS + '-'+key).html(value); 802 } 803 }); 804 }, 805 806 _getScrollbarSize: function() { 807 // thx David 808 if(mfp.scrollbarSize === undefined) { 809 var scrollDiv = document.createElement("div"); 810 scrollDiv.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;'; 811 document.body.appendChild(scrollDiv); 812 mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth; 813 document.body.removeChild(scrollDiv); 814 } 815 return mfp.scrollbarSize; 816 } 817 818}; /* MagnificPopup core prototype end */ 819 820 821 822 823/** 824 * Public static functions 825 */ 826$.magnificPopup = { 827 instance: null, 828 proto: MagnificPopup.prototype, 829 modules: [], 830 831 open: function(options, index) { 832 _checkInstance(); 833 834 if(!options) { 835 options = {}; 836 } else { 837 options = $.extend(true, {}, options); 838 } 839 840 options.isObj = true; 841 options.index = index || 0; 842 return this.instance.open(options); 843 }, 844 845 close: function() { 846 return $.magnificPopup.instance && $.magnificPopup.instance.close(); 847 }, 848 849 registerModule: function(name, module) { 850 if(module.options) { 851 $.magnificPopup.defaults[name] = module.options; 852 } 853 $.extend(this.proto, module.proto); 854 this.modules.push(name); 855 }, 856 857 defaults: { 858 859 // Info about options is in docs: 860 // http://dimsemenov.com/plugins/magnific-popup/documentation.html#options 861 862 disableOn: 0, 863 864 key: null, 865 866 midClick: false, 867 868 mainClass: '', 869 870 preloader: true, 871 872 focus: '', // CSS selector of input to focus after popup is opened 873 874 closeOnContentClick: false, 875 876 closeOnBgClick: true, 877 878 closeBtnInside: true, 879 880 showCloseBtn: true, 881 882 enableEscapeKey: true, 883 884 modal: false, 885 886 alignTop: false, 887 888 removalDelay: 0, 889 890 prependTo: null, 891 892 fixedContentPos: 'auto', 893 894 fixedBgPos: 'auto', 895 896 overflowY: 'auto', 897 898 closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', 899 900 tClose: 'Close (Esc)', 901 902 tLoading: 'Loading...', 903 904 autoFocusLast: true 905 906 } 907}; 908 909 910 911$.fn.magnificPopup = function(options) { 912 _checkInstance(); 913 914 var jqEl = $(this); 915 916 // We call some API method of first param is a string 917 if (typeof options === "string" ) { 918 919 if(options === 'open') { 920 var items, 921 itemOpts = _isJQ ? jqEl.data('magnificPopup') : jqEl[0].magnificPopup, 922 index = parseInt(arguments[1], 10) || 0; 923 924 if(itemOpts.items) { 925 items = itemOpts.items[index]; 926 } else { 927 items = jqEl; 928 if(itemOpts.delegate) { 929 items = items.find(itemOpts.delegate); 930 } 931 items = items.eq( index ); 932 } 933 mfp._openClick({mfpEl:items}, jqEl, itemOpts); 934 } else { 935 if(mfp.isOpen) 936 mfp[options].apply(mfp, Array.prototype.slice.call(arguments, 1)); 937 } 938 939 } else { 940 // clone options obj 941 options = $.extend(true, {}, options); 942 943 /* 944 * As Zepto doesn't support .data() method for objects 945 * and it works only in normal browsers 946 * we assign "options" object directly to the DOM element. FTW! 947 */ 948 if(_isJQ) { 949 jqEl.data('magnificPopup', options); 950 } else { 951 jqEl[0].magnificPopup = options; 952 } 953 954 mfp.addGroup(jqEl, options); 955 956 } 957 return jqEl; 958}; 959 960/*>>core*/ 961 962/*>>inline*/ 963 964var INLINE_NS = 'inline', 965 _hiddenClass, 966 _inlinePlaceholder, 967 _lastInlineElement, 968 _putInlineElementsBack = function() { 969 if(_lastInlineElement) { 970 _inlinePlaceholder.after( _lastInlineElement.addClass(_hiddenClass) ).detach(); 971 _lastInlineElement = null; 972 } 973 }; 974 975$.magnificPopup.registerModule(INLINE_NS, { 976 options: { 977 hiddenClass: 'hide', // will be appended with `mfp-` prefix 978 markup: '', 979 tNotFound: 'Content not found' 980 }, 981 proto: { 982 983 initInline: function() { 984 mfp.types.push(INLINE_NS); 985 986 _mfpOn(CLOSE_EVENT+'.'+INLINE_NS, function() { 987 _putInlineElementsBack(); 988 }); 989 }, 990 991 getInline: function(item, template) { 992 993 _putInlineElementsBack(); 994 995 if(item.src) { 996 var inlineSt = mfp.st.inline, 997 el = $(item.src); 998 999 if(el.length) { 1000 1001 // If target element has parent - we replace it with placeholder and put it back after popup is closed 1002 var parent = el[0].parentNode; 1003 if(parent && parent.tagName) { 1004 if(!_inlinePlaceholder) { 1005 _hiddenClass = inlineSt.hiddenClass; 1006 _inlinePlaceholder = _getEl(_hiddenClass); 1007 _hiddenClass = 'mfp-'+_hiddenClass; 1008 } 1009 // replace target inline element with placeholder 1010 _lastInlineElement = el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass); 1011 } 1012 1013 mfp.updateStatus('ready'); 1014 } else { 1015 mfp.updateStatus('error', inlineSt.tNotFound); 1016 el = $('<div>'); 1017 } 1018 1019 item.inlineElement = el; 1020 return el; 1021 } 1022 1023 mfp.updateStatus('ready'); 1024 mfp._parseMarkup(template, {}, item); 1025 return template; 1026 } 1027 } 1028}); 1029 1030/*>>inline*/ 1031 1032/*>>ajax*/ 1033var AJAX_NS = 'ajax', 1034 _ajaxCur, 1035 _removeAjaxCursor = function() { 1036 if(_ajaxCur) { 1037 $(document.body).removeClass(_ajaxCur); 1038 } 1039 }, 1040 _destroyAjaxRequest = function() { 1041 _removeAjaxCursor(); 1042 if(mfp.req) { 1043 mfp.req.abort(); 1044 } 1045 }; 1046 1047$.magnificPopup.registerModule(AJAX_NS, { 1048 1049 options: { 1050 settings: null, 1051 cursor: 'mfp-ajax-cur', 1052 tError: '<a href="%url%">The content</a> could not be loaded.' 1053 }, 1054 1055 proto: { 1056 initAjax: function() { 1057 mfp.types.push(AJAX_NS); 1058 _ajaxCur = mfp.st.ajax.cursor; 1059 1060 _mfpOn(CLOSE_EVENT+'.'+AJAX_NS, _destroyAjaxRequest); 1061 _mfpOn('BeforeChange.' + AJAX_NS, _destroyAjaxRequest); 1062 }, 1063 getAjax: function(item) { 1064 1065 if(_ajaxCur) { 1066 $(document.body).addClass(_ajaxCur); 1067 } 1068 1069 mfp.updateStatus('loading'); 1070 1071 var opts = $.extend({ 1072 url: item.src, 1073 success: function(data, textStatus, jqXHR) { 1074 var temp = { 1075 data:data, 1076 xhr:jqXHR 1077 }; 1078 1079 _mfpTrigger('ParseAjax', temp); 1080 1081 mfp.appendContent( $(temp.data), AJAX_NS ); 1082 1083 item.finished = true; 1084 1085 _removeAjaxCursor(); 1086 1087 mfp._setFocus(); 1088 1089 setTimeout(function() { 1090 mfp.wrap.addClass(READY_CLASS); 1091 }, 16); 1092 1093 mfp.updateStatus('ready'); 1094 1095 _mfpTrigger('AjaxContentAdded'); 1096 }, 1097 error: function() { 1098 _removeAjaxCursor(); 1099 item.finished = item.loadError = true; 1100 mfp.updateStatus('error', mfp.st.ajax.tError.replace('%url%', item.src)); 1101 } 1102 }, mfp.st.ajax.settings); 1103 1104 mfp.req = $.ajax(opts); 1105 1106 return ''; 1107 } 1108 } 1109}); 1110 1111/*>>ajax*/ 1112 1113/*>>image*/ 1114var _imgInterval, 1115 _getTitle = function(item) { 1116 if(item.data && item.data.title !== undefined) 1117 return item.data.title; 1118 1119 var src = mfp.st.image.titleSrc; 1120 1121 if(src) { 1122 if($.isFunction(src)) { 1123 return src.call(mfp, item); 1124 } else if(item.el) { 1125 return item.el.attr(src) || ''; 1126 } 1127 } 1128 return ''; 1129 }; 1130 1131$.magnificPopup.registerModule('image', { 1132 1133 options: { 1134 markup: '<div class="mfp-figure">'+ 1135 '<div class="mfp-close"></div>'+ 1136 '<figure>'+ 1137 '<div class="mfp-img"></div>'+ 1138 '<figcaption>'+ 1139 '<div class="mfp-bottom-bar">'+ 1140 '<div class="mfp-title"></div>'+ 1141 '<div class="mfp-counter"></div>'+ 1142 '</div>'+ 1143 '</figcaption>'+ 1144 '</figure>'+ 1145 '</div>', 1146 cursor: 'mfp-zoom-out-cur', 1147 titleSrc: 'title', 1148 verticalFit: true, 1149 tError: '<a href="%url%">The image</a> could not be loaded.' 1150 }, 1151 1152 proto: { 1153 initImage: function() { 1154 var imgSt = mfp.st.image, 1155 ns = '.image'; 1156 1157 mfp.types.push('image'); 1158 1159 _mfpOn(OPEN_EVENT+ns, function() { 1160 if(mfp.currItem.type === 'image' && imgSt.cursor) { 1161 $(document.body).addClass(imgSt.cursor); 1162 } 1163 }); 1164 1165 _mfpOn(CLOSE_EVENT+ns, function() { 1166 if(imgSt.cursor) { 1167 $(document.body).removeClass(imgSt.cursor); 1168 } 1169 _window.off('resize' + EVENT_NS); 1170 }); 1171 1172 _mfpOn('Resize'+ns, mfp.resizeImage); 1173 if(mfp.isLowIE) { 1174 _mfpOn('AfterChange', mfp.resizeImage); 1175 } 1176 }, 1177 resizeImage: function() { 1178 var item = mfp.currItem; 1179 if(!item || !item.img) return; 1180 1181 if(mfp.st.image.verticalFit) { 1182 var decr = 0; 1183 // fix box-sizing in ie7/8 1184 if(mfp.isLowIE) { 1185 decr = parseInt(item.img.css('padding-top'), 10) + parseInt(item.img.css('padding-bottom'),10); 1186 } 1187 item.img.css('max-height', mfp.wH-decr); 1188 } 1189 }, 1190 _onImageHasSize: function(item) { 1191 if(item.img) { 1192 1193 item.hasSize = true; 1194 1195 if(_imgInterval) { 1196 clearInterval(_imgInterval); 1197 } 1198 1199 item.isCheckingImgSize = false; 1200 1201 _mfpTrigger('ImageHasSize', item); 1202 1203 if(item.imgHidden) { 1204 if(mfp.content) 1205 mfp.content.removeClass('mfp-loading'); 1206 1207 item.imgHidden = false; 1208 } 1209 1210 } 1211 }, 1212 1213 /** 1214 * Function that loops until the image has size to display elements that rely on it asap 1215 */ 1216 findImageSize: function(item) { 1217 1218 var counter = 0, 1219 img = item.img[0], 1220 mfpSetInterval = function(delay) { 1221 1222 if(_imgInterval) { 1223 clearInterval(_imgInterval); 1224 } 1225 // decelerating interval that checks for size of an image 1226 _imgInterval = setInterval(function() {
1227 if(img.naturalWidth > 0) { 1228 mfp._onImageHasSize(item); 1229 return; 1230 } 1231 1232 if(counter > 200) { 1233 clearInterval(_imgInterval); 1234 } 1235 1236 counter++; 1237 if(counter === 3) { 1238 mfpSetInterval(10); 1239 } else if(counter === 40) { 1240 mfpSetInterval(50); 1241 } else if(counter === 100) { 1242 mfpSetInterval(500); 1243 } 1244 }, delay); 1245 }; 1246 1247 mfpSetInterval(1); 1248 }, 1249 1250 getImage: function(item, template) { 1251 1252 var guard = 0, 1253 1254 // image load complete handler 1255 onLoadComplete = function() { 1256 if(item) { 1257 if (item.img[0].complete) { 1258 item.img.off('.mfploader'); 1259 1260 if(item === mfp.currItem){ 1261 mfp._onImageHasSize(item); 1262 1263 mfp.updateStatus('ready'); 1264 } 1265 1266 item.hasSize = true; 1267 item.loaded = true; 1268 1269 _mfpTrigger('ImageLoadComplete'); 1270 1271 } 1272 else { 1273 // if image complete check fails 200 times (20 sec), we assume that there was an error. 1274 guard++; 1275 if(guard < 200) { 1276 setTimeout(onLoadComplete,100); 1277 } else { 1278 onLoadError(); 1279 } 1280 } 1281 } 1282 }, 1283 1284 // image error handler 1285 onLoadError = function() { 1286 if(item) { 1287 item.img.off('.mfploader'); 1288 if(item === mfp.currItem){ 1289 mfp._onImageHasSize(item); 1290 mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src) ); 1291 } 1292 1293 item.hasSize = true; 1294 item.loaded = true; 1295 item.loadError = true; 1296 } 1297 }, 1298 imgSt = mfp.st.image; 1299 1300 1301 var el = template.find('.mfp-img'); 1302 if(el.length) { 1303 var img = document.createElement('img'); 1304 img.className = 'mfp-img'; 1305 if(item.el && item.el.find('img').length) { 1306 img.alt = item.el.find('img').attr('alt'); 1307 } 1308 item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError); 1309 img.src = item.src; 1310 1311 // without clone() "error" event is not firing when IMG is replaced by new IMG
vendor: 8,584 bytes, lines 1312-1695
1312 // TODO: find a way to avoid such cloning 1313 if(el.is('img')) { 1314 item.img = item.img.clone(); 1315 } 1316 1317 img = item.img[0]; 1318 if(img.naturalWidth > 0) { 1319 item.hasSize = true; 1320 } else if(!img.width) { 1321 item.hasSize = false; 1322 } 1323 } 1324 1325 mfp._parseMarkup(template, { 1326 title: _getTitle(item), 1327 img_replaceWith: item.img 1328 }, item); 1329 1330 mfp.resizeImage(); 1331 1332 if(item.hasSize) { 1333 if(_imgInterval) clearInterval(_imgInterval); 1334 1335 if(item.loadError) { 1336 template.addClass('mfp-loading'); 1337 mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src) ); 1338 } else { 1339 template.removeClass('mfp-loading'); 1340 mfp.updateStatus('ready'); 1341 } 1342 return template; 1343 } 1344 1345 mfp.updateStatus('loading'); 1346 item.loading = true; 1347 1348 if(!item.hasSize) { 1349 item.imgHidden = true; 1350 template.addClass('mfp-loading'); 1351 mfp.findImageSize(item); 1352 } 1353 1354 return template; 1355 } 1356 } 1357}); 1358 1359/*>>image*/ 1360 1361/*>>zoom*/ 1362var hasMozTransform, 1363 getHasMozTransform = function() { 1364 if(hasMozTransform === undefined) { 1365 hasMozTransform = document.createElement('p').style.MozTransform !== undefined; 1366 } 1367 return hasMozTransform; 1368 }; 1369 1370$.magnificPopup.registerModule('zoom', { 1371 1372 options: { 1373 enabled: false, 1374 easing: 'ease-in-out', 1375 duration: 300, 1376 opener: function(element) { 1377 return element.is('img') ? element : element.find('img'); 1378 } 1379 }, 1380 1381 proto: { 1382 1383 initZoom: function() { 1384 var zoomSt = mfp.st.zoom, 1385 ns = '.zoom', 1386 image; 1387 1388 if(!zoomSt.enabled || !mfp.supportsTransition) { 1389 return; 1390 } 1391 1392 var duration = zoomSt.duration, 1393 getElToAnimate = function(image) { 1394 var newImg = image.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'), 1395 transition = 'all '+(zoomSt.duration/1000)+'s ' + zoomSt.easing, 1396 cssObj = { 1397 position: 'fixed', 1398 zIndex: 9999, 1399 left: 0, 1400 top: 0, 1401 '-webkit-backface-visibility': 'hidden' 1402 }, 1403 t = 'transition'; 1404 1405 cssObj['-webkit-'+t] = cssObj['-moz-'+t] = cssObj['-o-'+t] = cssObj[t] = transition; 1406 1407 newImg.css(cssObj); 1408 return newImg; 1409 }, 1410 showMainContent = function() { 1411 mfp.content.css('visibility', 'visible'); 1412 }, 1413 openTimeout, 1414 animatedImg; 1415 1416 _mfpOn('BuildControls'+ns, function() { 1417 if(mfp._allowZoom()) { 1418 1419 clearTimeout(openTimeout); 1420 mfp.content.css('visibility', 'hidden'); 1421 1422 // Basically, all code below does is clones existing image, puts in on top of the current one and animated it 1423 1424 image = mfp._getItemToZoom(); 1425 1426 if(!image) { 1427 showMainContent(); 1428 return; 1429 } 1430 1431 animatedImg = getElToAnimate(image); 1432 1433 animatedImg.css( mfp._getOffset() ); 1434 1435 mfp.wrap.append(animatedImg); 1436 1437 openTimeout = setTimeout(function() { 1438 animatedImg.css( mfp._getOffset( true ) ); 1439 openTimeout = setTimeout(function() { 1440 1441 showMainContent(); 1442 1443 setTimeout(function() { 1444 animatedImg.remove(); 1445 image = animatedImg = null; 1446 _mfpTrigger('ZoomAnimationEnded'); 1447 }, 16); // avoid blink when switching images 1448 1449 }, duration); // this timeout equals animation duration 1450 1451 }, 16); // by adding this timeout we avoid short glitch at the beginning of animation 1452 1453 1454 // Lots of timeouts... 1455 } 1456 }); 1457 _mfpOn(BEFORE_CLOSE_EVENT+ns, function() { 1458 if(mfp._allowZoom()) { 1459 1460 clearTimeout(openTimeout); 1461 1462 mfp.st.removalDelay = duration; 1463 1464 if(!image) { 1465 image = mfp._getItemToZoom(); 1466 if(!image) { 1467 return; 1468 } 1469 animatedImg = getElToAnimate(image); 1470 } 1471 1472 animatedImg.css( mfp._getOffset(true) ); 1473 mfp.wrap.append(animatedImg); 1474 mfp.content.css('visibility', 'hidden'); 1475 1476 setTimeout(function() { 1477 animatedImg.css( mfp._getOffset() ); 1478 }, 16); 1479 } 1480 1481 }); 1482 1483 _mfpOn(CLOSE_EVENT+ns, function() { 1484 if(mfp._allowZoom()) { 1485 showMainContent(); 1486 if(animatedImg) { 1487 animatedImg.remove(); 1488 } 1489 image = null; 1490 } 1491 }); 1492 }, 1493 1494 _allowZoom: function() { 1495 return mfp.currItem.type === 'image'; 1496 }, 1497 1498 _getItemToZoom: function() { 1499 if(mfp.currItem.hasSize) { 1500 return mfp.currItem.img; 1501 } else { 1502 return false; 1503 } 1504 }, 1505 1506 // Get element postion relative to viewport 1507 _getOffset: function(isLarge) { 1508 var el; 1509 if(isLarge) { 1510 el = mfp.currItem.img; 1511 } else { 1512 el = mfp.st.zoom.opener(mfp.currItem.el || mfp.currItem); 1513 } 1514 1515 var offset = el.offset(); 1516 var paddingTop = parseInt(el.css('padding-top'),10); 1517 var paddingBottom = parseInt(el.css('padding-bottom'),10); 1518 offset.top -= ( $(window).scrollTop() - paddingTop ); 1519 1520 1521 /* 1522 1523 Animating left + top + width/height looks glitchy in Firefox, but perfect in Chrome. And vice-versa. 1524 1525 */ 1526 var obj = { 1527 width: el.width(), 1528 // fix Zepto height+padding issue 1529 height: (_isJQ ? el.innerHeight() : el[0].offsetHeight) - paddingBottom - paddingTop 1530 }; 1531 1532 // I hate to do this, but there is no another option 1533 if( getHasMozTransform() ) { 1534 obj['-moz-transform'] = obj['transform'] = 'translate(' + offset.left + 'px,' + offset.top + 'px)'; 1535 } else { 1536 obj.left = offset.left; 1537 obj.top = offset.top; 1538 } 1539 return obj; 1540 } 1541 1542 } 1543}); 1544 1545 1546 1547/*>>zoom*/ 1548 1549/*>>iframe*/ 1550 1551var IFRAME_NS = 'iframe', 1552 _emptyPage = '//about:blank', 1553 1554 _fixIframeBugs = function(isShowing) { 1555 if(mfp.currTemplate[IFRAME_NS]) { 1556 var el = mfp.currTemplate[IFRAME_NS].find('iframe'); 1557 if(el.length) { 1558 // reset src after the popup is closed to avoid "video keeps playing after popup is closed" bug 1559 if(!isShowing) { 1560 el[0].src = _emptyPage; 1561 } 1562 1563 // IE8 black screen bug fix 1564 if(mfp.isIE8) { 1565 el.css('display', isShowing ? 'block' : 'none'); 1566 } 1567 } 1568 } 1569 }; 1570 1571$.magnificPopup.registerModule(IFRAME_NS, { 1572 1573 options: { 1574 markup: '<div class="mfp-iframe-scaler">'+ 1575 '<div class="mfp-close"></div>'+ 1576 '<iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe>'+ 1577 '</div>', 1578 1579 srcAction: 'iframe_src', 1580 1581 // we don't care and support only one default type of URL by default 1582 patterns: { 1583 youtube: { 1584 index: 'youtube.com', 1585 id: 'v=', 1586 src: '//www.youtube.com/embed/%id%?autoplay=1' 1587 }, 1588 vimeo: { 1589 index: 'vimeo.com/', 1590 id: '/', 1591 src: '//player.vimeo.com/video/%id%?autoplay=1' 1592 }, 1593 gmaps: { 1594 index: '//maps.google.', 1595 src: '%id%&output=embed' 1596 } 1597 } 1598 }, 1599 1600 proto: { 1601 initIframe: function() { 1602 mfp.types.push(IFRAME_NS); 1603 1604 _mfpOn('BeforeChange', function(e, prevType, newType) { 1605 if(prevType !== newType) { 1606 if(prevType === IFRAME_NS) { 1607 _fixIframeBugs(); // iframe if removed 1608 } else if(newType === IFRAME_NS) { 1609 _fixIframeBugs(true); // iframe is showing 1610 } 1611 }// else { 1612 // iframe source is switched, don't do anything 1613 //} 1614 }); 1615 1616 _mfpOn(CLOSE_EVENT + '.' + IFRAME_NS, function() { 1617 _fixIframeBugs(); 1618 }); 1619 }, 1620 1621 getIframe: function(item, template) { 1622 var embedSrc = item.src; 1623 var iframeSt = mfp.st.iframe; 1624 1625 $.each(iframeSt.patterns, function() { 1626 if(embedSrc.indexOf( this.index ) > -1) { 1627 if(this.id) { 1628 if(typeof this.id === 'string') { 1629 embedSrc = embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length, embedSrc.length); 1630 } else { 1631 embedSrc = this.id.call( this, embedSrc ); 1632 } 1633 } 1634 embedSrc = this.src.replace('%id%', embedSrc ); 1635 return false; // break; 1636 } 1637 }); 1638 1639 var dataObj = {}; 1640 if(iframeSt.srcAction) { 1641 dataObj[iframeSt.srcAction] = embedSrc; 1642 } 1643 mfp._parseMarkup(template, dataObj, item); 1644 1645 mfp.updateStatus('ready'); 1646 1647 return template; 1648 } 1649 } 1650}); 1651 1652 1653 1654/*>>iframe*/ 1655 1656/*>>gallery*/ 1657/** 1658 * Get looped index depending on number of slides 1659 */ 1660var _getLoopedId = function(index) { 1661 var numSlides = mfp.items.length; 1662 if(index > numSlides - 1) { 1663 return index - numSlides; 1664 } else if(index < 0) { 1665 return numSlides + index; 1666 } 1667 return index; 1668 }, 1669 _replaceCurrTotal = function(text, curr, total) { 1670 return text.replace(/%curr%/gi, curr + 1).replace(/%total%/gi, total); 1671 }; 1672 1673$.magnificPopup.registerModule('gallery', { 1674 1675 options: { 1676 enabled: false, 1677 arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', 1678 preload: [0,2], 1679 navigateByImgClick: true, 1680 arrows: true, 1681 1682 tPrev: 'Previous (Left arrow key)', 1683 tNext: 'Next (Right arrow key)', 1684 tCounter: '%curr% of %total%' 1685 }, 1686 1687 proto: { 1688 initGallery: function() { 1689 1690 var gSt = mfp.st.gallery, 1691 ns = '.mfp-gallery'; 1692 1693 mfp.direction = true; // true - next, false - prev 1694 1695 if(!gSt || !gSt.enabled ) return false;
1696 1697 _wrapClasses += ' mfp-gallery'; 1698 1699 _mfpOn(OPEN_EVENT+ns, function() { 1700 1701 if(gSt.navigateByImgClick) { 1702 mfp.wrap.on('click'+ns, '.mfp-img', function() { 1703 if(mfp.items.length > 1) { 1704 mfp.next(); 1705 return false; 1706 } 1707 }); 1708 } 1709 1710 _document.on('keydown'+ns, function(e) { 1711 if (e.keyCode === 37) { 1712 mfp.prev(); 1713 } else if (e.keyCode === 39) { 1714 mfp.next(); 1715 } 1716 }); 1717 }); 1718 1719 _mfpOn('UpdateStatus'+ns, function(e, data) { 1720 if(data.text) { 1721 data.text = _replaceCurrTotal(data.text, mfp.currItem.index, mfp.items.length); 1722 } 1723 }); 1724 1725 _mfpOn(MARKUP_PARSE_EVENT+ns, function(e, element, values, item) { 1726 var l = mfp.items.length; 1727 values.counter = l > 1 ? _replaceCurrTotal(gSt.tCounter, item.index, l) : ''; 1728 }); 1729 1730 _mfpOn('BuildControls' + ns, function() { 1731 if(mfp.items.length > 1 && gSt.arrows && !mfp.arrowLeft) { 1732 var markup = gSt.arrowMarkup, 1733 arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS), 1734 arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS); 1735 1736 arrowLeft.click(function() { 1737 mfp.prev(); 1738 }); 1739 arrowRight.click(function() { 1740 mfp.next(); 1741 }); 1742 1743 mfp.container.append(arrowLeft.add(arrowRight)); 1744 } 1745 }); 1746 1747 _mfpOn(CHANGE_EVENT+ns, function() { 1748 if(mfp._preloadTimeout) clearTimeout(mfp._preloadTimeout); 1749 1750 mfp._preloadTimeout = setTimeout(function() { 1751 mfp.preloadNearbyImages(); 1752 mfp._preloadTimeout = null; 1753 }, 16); 1754 }); 1755 1756 1757 _mfpOn(CLOSE_EVENT+ns, function() { 1758 _document.off(ns); 1759 mfp.wrap.off('click'+ns); 1760 mfp.arrowRight = mfp.arrowLeft = null; 1761 }); 1762 1763 }, 1764 next: function() { 1765 mfp.direction = true; 1766 mfp.index = _getLoopedId(mfp.index + 1); 1767 mfp.updateItemHTML(); 1768 }, 1769 prev: function() { 1770 mfp.direction = false; 1771 mfp.index = _getLoopedId(mfp.index - 1); 1772 mfp.updateItemHTML(); 1773 }, 1774 goTo: function(newIndex) { 1775 mfp.direction = (newIndex >= mfp.index); 1776 mfp.index = newIndex; 1777 mfp.updateItemHTML(); 1778 }, 1779 preloadNearbyImages: function() { 1780 var p = mfp.st.gallery.preload, 1781 preloadBefore = Math.min(p[0], mfp.items.length), 1782 preloadAfter = Math.min(p[1], mfp.items.length), 1783 i; 1784 1785 for(i = 1; i <= (mfp.direction ? preloadAfter : preloadBefore); i++) { 1786 mfp._preloadItem(mfp.index+i); 1787 } 1788 for(i = 1; i <= (mfp.direction ? preloadBefore : preloadAfter); i++) { 1789 mfp._preloadItem(mfp.index-i); 1790 } 1791 }, 1792 _preloadItem: function(index) { 1793 index = _getLoopedId(index); 1794 1795 if(mfp.items[index].preloaded) { 1796 return; 1797 } 1798 1799 var item = mfp.items[index]; 1800 if(!item.parsed) { 1801 item = mfp.parseEl( index ); 1802 } 1803 1804 _mfpTrigger('LazyLoad', item); 1805 1806 if(item.type === 'image') { 1807 item.img = $('<img class="mfp-img" />').on('load.mfploader', function() { 1808 item.hasSize = true; 1809 }).on('error.mfploader', function() { 1810 item.hasSize = true; 1811 item.loadError = true; 1812 _mfpTrigger('LazyLoadError', item); 1813 }).attr('src', item.src); 1814 } 1815 1816 1817 item.preloaded = true; 1818 } 1819 } 1820}); 1821 1822/*>>gallery*/ 1823 1824/*>>retina*/ 1825 1826var RETINA_NS = 'retina'; 1827 1828$.magnificPopup.registerModule(RETINA_NS, { 1829 options: { 1830 replaceSrc: function(item) { 1831 return item.src.replace(/\.\w+$/, function(m) { return '@2x' + m; }); 1832 }, 1833 ratio: 1 // Function or number. Set to 1 to disable. 1834 }, 1835 proto: { 1836 initRetina: function() { 1837 if(window.devicePixelRatio > 1) { 1838 1839 var st = mfp.st.retina, 1840 ratio = st.ratio; 1841 1842 ratio = !isNaN(ratio) ? ratio : ratio(); 1843 1844 if(ratio > 1) { 1845 _mfpOn('ImageHasSize' + '.' + RETINA_NS, function(e, item) { 1846 item.img.css({ 1847 'max-width': item.img[0].naturalWidth / ratio, 1848 'width': '100%' 1849 }); 1850 }); 1851 _mfpOn('ElementParse' + '.' + RETINA_NS, function(e, item) { 1852 item.src = st.replaceSrc(item, ratio); 1853 }); 1854 } 1855 } 1856 1857 } 1858 } 1859}); 1860 1861/*>>retina*/ 1862 _checkInstance(); })); 1863 1864 1865 1866jQuery(document).ready((e) => { 1867 console.log('trigger me first') 1868 1869 1870 1871 1872 jQuery('.cfwaypointer').waypoint(function(){ 1873 jQuery(this.element).each(function(){ 1874 var {widgetcontainer, cfcontainer, cfitemid, cfcategoryid, cfoptions, cfprovider} = jQuery(this).data() 1875 1876 1877 jQuery(`#${cfcontainer}`).append(` 1878 <script defer> 1879 new DROPLET.Widget ({ 1880 host: 'preseliventure.checkfront.co.uk', 1881 target: '${widgetcontainer}', 1882 item_id: '${cfitemid}', 1883 category_id: '${cfcategoryid}', 1884 options: '${cfoptions}', 1885 provider: '${cfprovider}' 1886 }).render(); 1887 </script> 1888 <noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript> 1889 `) 1890 1891 1892 }) 1893 }, { 1894 offset: '100%' 1895 }) 1896 1897 1898// jQuery('#CHECKFRONT_WIDGET_01').waypoint(function() { 1899// jQuery('#cfw_01').append(` 1900// <script defer> 1901// new DROPLET.Widget ({ 1902// host: 'preseliventure.checkfront.co.uk', 1903// target: 'CHECKFRONT_WIDGET_01', 1904// item_id: '36', 1905// category_id: '12', 1906// options: 'tabs', 1907// provider: 'droplet' 1908// }).render(); 1909// </script> 1910// <noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript> 1911// `) 1912// }, { 1913// offset: '100%' 1914// }); 1915 1916 1917// jQuery('#CHECKFRONT_WIDGET_02').waypoint(function() { 1918// jQuery('#cfw_02').append(` 1919// <script defer> 1920// new DROPLET.Widget ({ 1921// host: 'preseliventure.checkfront.co.uk', 1922// target: 'CHECKFRONT_WIDGET_02', 1923// item_id: '37', 1924// category_id: '12', 1925// options: 'tabs', 1926// provider: 'droplet' 1927// }).render(); 1928// </script><br><noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript> 1929// `) 1930// }, { 1931// offset: '100%' 1932// }); 1933// jQuery('#CHECKFRONT_WIDGET_03').waypoint(function() { 1934// jQuery('#cfw_03').append(` 1935// <script defer> 1936// new DROPLET.Widget ({ 1937// host: 'preseliventure.checkfront.co.uk', 1938// target: 'CHECKFRONT_WIDGET_03', 1939// item_id: '38', 1940// category_id: '12', 1941// options: 'tabs', 1942// provider: 'droplet' 1943// }).render(); 1944// </script><br><noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript> 1945// `) 1946// }, { 1947// offset: '100%' 1948// }); 1949// jQuery('#CHECKFRONT_WIDGET_04').waypoint(function() { 1950// jQuery('#cfw_04').append(` 1951// <script defer> 1952// new DROPLET.Widget ({ 1953// host: 'preseliventure.checkfront.co.uk', 1954// target: 'CHECKFRONT_WIDGET_04', 1955// item_id: '33', 1956// category_id: '12', 1957// options: 'tabs', 1958// provider: 'droplet' 1959// }).render(); 1960// </script><br><noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript> 1961// `) 1962// }, { 1963// offset: '100%' 1964// }); 1965// jQuery('#CHECKFRONT_WIDGET_05').waypoint(function() { 1966// jQuery('#cfw_05').append(` 1967// <script defer> 1968// new DROPLET.Widget ({ 1969// host: 'preseliventure.checkfront.co.uk', 1970// target: 'CHECKFRONT_WIDGET_05', 1971// item_id: '34', 1972// category_id: '12', 1973// options: 'tabs', 1974// provider: 'droplet' 1975// }).render(); 1976// </script><br><noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript>`) 1977// }, { 1978// offset: '100%' 1979// }); 1980// jQuery('#book').waypoint(function() { 1981// jQuery('#CHECKFRONT_WIDGET_06').append(` 1982// <script defer> 1983// new DROPLET.Widget ({ 1984// host: 'preseliventure.checkfront.co.uk', 1985// target: 'CHECKFRONT_WIDGET_06', 1986// item_id: '35', 1987// category_id: '12', 1988// options: 'tabs', 1989// provider: 'droplet' 1990// }).render(); 1991// </script><br><noscript><a href="https://preseliventure.checkfront.co.uk/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript>`) 1992// }, { 1993// offset: '100%' 1994// }); 1995}) 1996
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.