vendor: 6,333 bytes, line 1
1void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t,e,i){function s(i){var s=e.console;o[i]||(o[i]=!0,t.migrateWarnings.push(i),s&&s.warn&&!t.migrateMute&&(s.warn("JQMIGRATE: "+i),t.migrateTrace&&s.trace&&s.trace()))}function n(e,n,o,a){if(Object.defineProperty)try{return Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){return s(a),o},set:function(t){s(a),o=t}}),i}catch(t){}t._definePropertyBroken=!0,e[n]=o}var o={};t.migrateWarnings=[],!t.migrateMute&&e.console&&e.console.log&&e.console.log("JQMIGRATE: Logging is active"),t.migrateTrace===i&&(t.migrateTrace=!0),t.migrateReset=function(){o={},t.migrateWarnings.length=0},"BackCompat"===document.compatMode&&s("jQuery is not compatible with Quirks Mode");var a=t("<input/>",{size:1}).attr("size")&&t.attrFn,r=t.attr,l=t.attrHooks.value&&t.attrHooks.value.get||function(){return null},c=t.attrHooks.value&&t.attrHooks.value.set||function(){return i},d=/^(?:input|button)$/i,u=/^[238]$/,h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,p=/^(?:checked|selected)$/i;n(t,"attrFn",a||{},"jQuery.attrFn is deprecated"),t.attr=function(e,n,o,l){var c=n.toLowerCase(),f=e&&e.nodeType;return l&&(4>r.length&&s("jQuery.fn.attr( props, pass ) is deprecated"),e&&!u.test(f)&&(a?n in a:t.isFunction(t.fn[n])))?t(e)[n](o):("type"===n&&o!==i&&d.test(e.nodeName)&&e.parentNode&&s("Can't change the 'type' of an input or button in IE 6/7/8"),!t.attrHooks[c]&&h.test(c)&&(t.attrHooks[c]={get:function(e,s){var n,o=t.prop(e,s);return!0===o||"boolean"!=typeof o&&(n=e.getAttributeNode(s))&&!1!==n.nodeValue?s.toLowerCase():i},set:function(e,i,s){var n;return!1===i?t.removeAttr(e,s):(n=t.propFix[s]||s,n in e&&(e[n]=!0),e.setAttribute(s,s.toLowerCase())),s}},p.test(c)&&s("jQuery.fn.attr('"+c+"') may use property instead of attribute")),r.call(t,e,n,o))},t.attrHooks.value={get:function(t,e){var i=(t.nodeName||"").toLowerCase();return"button"===i?l.apply(this,arguments):("input"!==i&&"option"!==i&&s("jQuery.fn.attr('value') no longer gets properties"),e in t?t.value:null)},set:function(t,e){var n=(t.nodeName||"").toLowerCase();return"button"===n?c.apply(this,arguments):("input"!==n&&"option"!==n&&s("jQuery.fn.attr('value', val) no longer sets properties"),t.value=e,i)}};var f,m,g=t.fn.init,v=t.parseJSON,b=/^([^<]*)(<[\w\W]+>)([^>]*)$/;t.fn.init=function(e,i,n){var o;return e&&"string"==typeof e&&!t.isPlainObject(i)&&(o=b.exec(t.trim(e)))&&o[0]&&("<"!==e.charAt(0)&&s("$(html) HTML strings must start with '<' character"),o[3]&&s("$(html) HTML text after last tag is ignored"),"#"===o[0].charAt(0)&&(s("HTML string cannot start with a '#' character"),t.error("JQMIGRATE: Invalid selector string (XSS)")),i&&i.context&&(i=i.context),t.parseHTML)?g.call(this,t.parseHTML(o[2],i,!0),i,n):g.apply(this,arguments)},t.fn.init.prototype=t.fn,t.parseJSON=function(t){return t||null===t?v.apply(this,arguments):(s("jQuery.parseJSON requires a valid JSON string"),null)},t.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},t.browser||(f=t.uaMatch(navigator.userAgent),m={},f.browser&&(m[f.browser]=!0,m.version=f.version),m.chrome?m.webkit=!0:m.webkit&&(m.safari=!0),t.browser=m),n(t,"browser",t.browser,"jQuery.browser is deprecated"),t.sub=function(){function e(t,i){return new e.fn.init(t,i)}t.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(s,n){return n&&n instanceof t&&!(n instanceof e)&&(n=e(n)),t.fn.init.call(this,s,n,i)},e.fn.init.prototype=e.fn;var i=e(document);return s("jQuery.sub() is deprecated"),e},t.ajaxSetup({converters:{"text json":t.parseJSON}});var y=t.fn.data;t.fn.data=function(e){var n,o,a=this[0];return!a||"events"!==e||1!==arguments.length||(n=t.data(a,e),o=t._data(a,e),n!==i&&n!==o||o===i)?y.apply(this,arguments):(s("Use of jQuery.fn.data('events') is deprecated"),o)};var w=/\/(java|ecma)script/i,_=t.fn.andSelf||t.fn.addBack;t.fn.andSelf=function(){return s("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),_.apply(this,arguments)},t.clean||(t.clean=function(e,n,o,a){n=n||document,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,s("jQuery.clean() is deprecated");var r,l,c,d,u=[];if(t.merge(u,t.buildFragment(e,n).childNodes),o)for(c=function(t){return!t.type||w.test(t.type)?a?a.push(t.parentNode?t.parentNode.removeChild(t):t):o.appendChild(t):i},r=0;null!=(l=u[r]);r++)t.nodeName(l,"script")&&c(l)||(o.appendChild(l),l.getElementsByTagName!==i&&(d=t.grep(t.merge([],l.getElementsByTagName("script")),c),u.splice.apply(u,[r+1,0].concat(d)),r+=d.length));return u});var x=t.event.add,C=t.event.remove,k=t.event.trigger,j=t.fn.toggle,$=t.fn.live,T=t.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",I=RegExp("\\b(?:"+S+")\\b"),D=/(?:^|\s)hover(\.\S+|)\b/,P=function(e){return"string"!=typeof e||t.event.special.hover?e:(D.test(e)&&s("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(D,"mouseenter$1 mouseleave$1"))};t.event.props&&"attrChange"!==t.event.props[0]&&t.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),t.event.dispatch&&n(t.event,"handle",t.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),t.event.add=function(t,e,i,n,o){t!==document&&I.test(e)&&s("AJAX events should be attached to document: "+e),x.call(this,t,P(e||""),i,n,o)},t.event.remove=function(t,e,i,s,n){C.call(this,t,P(e)||"",i,s,n)},t.fn.error=function(){var t=Array.prototype.slice.call(arguments,0);return s("jQuery.fn.error() is deprecated"),t.splice(0,0,"error"),arguments.length?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this)},t.fn.toggle=function(e,i){if(!t.isFunction(e)||!t.isFunction(i))return j.apply(this,arguments);s("jQuery.fn.toggle(handler, handler...) is deprecated");var n=arguments,o=e.guid||t.guid++,a=0,r=function(i){var s=(t._data(this,"lastToggle"+e.guid)||0)%a;return t._data(this,"lastToggle"+e.guid,s+1),i.preventDefault(),n[s].apply(this,arguments)||!1};for(r.guid=o;n.length>a;)n[a++].guid=o;return this.click(r)}
vendor: 15,976 bytes, line 1
1,t.fn.live=function(e,i,n){return s("jQuery.fn.live() is deprecated"),$?$.apply(this,arguments):(t(this.context).on(e,this.selector,i,n),this)},t.fn.die=function(e,i){return s("jQuery.fn.die() is deprecated"),T?T.apply(this,arguments):(t(this.context).off(e,this.selector||"**",i),this)},t.event.trigger=function(t,e,i,n){return i||I.test(t)||s("Global events are undocumented and deprecated"),k.call(this,t,e,i||document,n)},t.each(S.split("|"),function(e,i){t.event.special[i]={setup:function(){var e=this;return e!==document&&(t.event.add(document,i+"."+t.guid,function(){t.event.trigger(i,null,e,!0)}),t._data(this,i,t.guid++)),!1},teardown:function(){return this!==document&&t.event.remove(document,i+"."+t._data(this,i)),!1}}})}(jQuery,window),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t($||require("jquery")):t(jQuery)}(function(t){"use strict";function e(e,i){this.element=e,this.options=t.extend({},n,i);var s=this.options.locale;void 0!==this.options.locales[s]&&t.extend(this.options,this.options.locales[s]),this.init()}function i(e){if(!t(e.target).parents().hasClass("jq-selectbox")&&"OPTION"!=e.target.nodeName&&t("div.jq-selectbox.opened").length){var i=t("div.jq-selectbox.opened"),n=t("div.jq-selectbox__search input",i),o=t("div.jq-selectbox__dropdown",i);i.find("select").data("_"+s).options.onSelectClosed.call(i),n.length&&n.val("").keyup(),o.hide().find("li.sel").addClass("selected"),i.removeClass("focused opened dropup dropdown")}}var s="styler",n={idSuffix:"-styler",filePlaceholder:"Файл не вÑбÑан",fileBrowse:"ÐбзоÑ...",fileNumber:"ÐÑбÑано Ñайлов: %s",selectPlaceholder:"ÐÑбеÑиÑе...",selectSearch:!1,selectSearchLimit:10,selectSearchNotFound:"Совпадений не найдено",selectSearchPlaceholder:"ÐоиÑк...",selectVisibleOptions:0,singleSelectzIndex:"100",selectSmartPositioning:!0,locale:"ru",locales:{en:{filePlaceholder:"No file selected",fileBrowse:"Browse...",fileNumber:"Selected files: %s",selectPlaceholder:"Select...",selectSearchNotFound:"No matches found",selectSearchPlaceholder:"Search..."}},onSelectOpened:function(){},onSelectClosed:function(){},onFormStyled:function(){}};e.prototype={init:function(){function e(){void 0!==s.attr("id")&&""!==s.attr("id")&&(this.id=s.attr("id")+n.idSuffix),this.title=s.attr("title"),this.classes=s.attr("class"),this.data=s.data()}var s=t(this.element),n=this.options,o=!(!navigator.userAgent.match(/(iPad|iPhone|iPod)/i)||navigator.userAgent.match(/(Windows\sPhone)/i)),a=!(!navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/(Windows\sPhone)/i));if(s.is(":checkbox")){var r=function(){var i=new e,n=t('<div class="jq-checkbox"><div class="jq-checkbox__div"></div></div>').attr({id:i.id,title:i.title}).addClass(i.classes).data(i.data);s.css({position:"absolute",zIndex:"-1",opacity:0,margin:0,padding:0}).after(n).prependTo(n),n.attr("unselectable","on").css({"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none",display:"inline-block",position:"relative",overflow:"hidden"}),s.is(":checked")&&n.addClass("checked"),s.is(":disabled")&&n.addClass("disabled"),n.click(function(t){t.preventDefault(),n.is(".disabled")||(s.is(":checked")?(s.prop("checked",!1),n.removeClass("checked")):(s.prop("checked",!0),n.addClass("checked")),s.focus().change())}),s.closest("label").add('label[for="'+s.attr("id")+'"]').on("click.styler",function(e){t(e.target).is("a")||t(e.target).closest(n).length||(n.triggerHandler("click"),e.preventDefault())}),s.on("change.styler",function(){s.is(":checked")?n.addClass("checked"):n.removeClass("checked")}).on("keydown.styler",function(t){32==t.which&&n.click()}).on("focus.styler",function(){n.is(".disabled")||n.addClass("focused")}).on("blur.styler",function(){n.removeClass("focused")})};r(),s.on("refresh",function(){s.closest("label").add('label[for="'+s.attr("id")+'"]').off(".styler"),s.off(".styler").parent().before(s).remove(),r()})}else if(s.is(":radio")){var l=function(){var i=new e,n=t('<div class="jq-radio"><div class="jq-radio__div"></div></div>').attr({id:i.id,title:i.title}).addClass(i.classes).data(i.data);s.css({position:"absolute",zIndex:"-1",opacity:0,margin:0,padding:0}).after(n).prependTo(n),n.attr("unselectable","on").css({"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none",display:"inline-block",position:"relative"}),s.is(":checked")&&n.addClass("checked"),s.is(":disabled")&&n.addClass("disabled"),t.fn.commonParents=function(){var e=this;return e.first().parents().filter(function(){return t(this).find(e).length===e.length})},t.fn.commonParent=function(){return t(this).commonParents().first()},n.click(function(e){if(e.preventDefault(),!n.is(".disabled")){var i=t('input[name="'+s.attr("name")+'"]');i.commonParent().find(i).prop("checked",!1).parent().removeClass("checked"),s.prop("checked",!0).parent().addClass("checked"),s.focus().change()}}),s.closest("label").add('label[for="'+s.attr("id")+'"]').on("click.styler",function(e){t(e.target).is("a")||t(e.target).closest(n).length||(n.triggerHandler("click"),e.preventDefault())}),s.on("change.styler",function(){s.parent().addClass("checked")}).on("focus.styler",function(){n.is(".disabled")||n.addClass("focused")}).on("blur.styler",function(){n.removeClass("focused")})};l(),s.on("refresh",function(){s.closest("label").add('label[for="'+s.attr("id")+'"]').off(".styler"),s.off(".styler").parent().before(s).remove(),l()})}else if(s.is(":file")){s.css({position:"absolute",top:0,right:0,margin:0,padding:0,opacity:0,fontSize:"100px"});var c=function(){var i=new e,o=s.data("placeholder");void 0===o&&(o=n.filePlaceholder);var a=s.data("browse");void 0!==a&&""!==a||(a=n.fileBrowse);var r=t('<div class="jq-file"><div class="jq-file__name">'+o+'</div><div class="jq-file__browse">'+a+"</div></div>").css({display:"inline-block",position:"relative",overflow:"hidden"}).attr({id:i.id,title:i.title}).addClass(i.classes).data(i.data);s.after(r).appendTo(r),s.is(":disabled")&&r.addClass("disabled"),s.on("change.styler",function(){var e=s.val(),i=t("div.jq-file__name",r);if(s.is("[multiple]")){e="";var a=s[0].files.length;if(a>0){var l=s.data("number");void 0===l&&(l=n.fileNumber),l=l.replace("%s",a),e=l}}i.text(e.replace(/.+[\\\/]/,"")),""===e?(i.text(o),r.removeClass("changed")):r.addClass("changed")}).on("focus.styler",function(){r.addClass("focused")}).on("blur.styler",function(){r.removeClass("focused")}).on("click.styler",function(){r.removeClass("focused")})};c(),s.on("refresh",function(){s.off(".styler").parent().before(s).remove(),c()})}else if(s.is('input[type="number"]')){var d=function(){var i=new e,n=t('<div class="jq-number"><div class="jq-number__spin minus"></div><div class="jq-number__spin plus"></div></div>').attr({id:i.id,title:i.title}).addClass(i.classes).data(i.data);s.after(n).prependTo(n).wrap('<div class="jq-number__field"></div>'),s.is(":disabled")&&n.addClass("disabled");var o,a,r,l=null,c=null;void 0!==s.attr("min")&&(o=s.attr("min")),void 0!==s.attr("max")&&(a=s.attr("max")),r=void 0!==s.attr("step")&&t.isNumeric(s.attr("step"))?Number(s.attr("step")):Number(1);var d=function(e){var i,n=s.val();t.isNumeric(n)||(n=0,s.val("0")),e.is(".minus")?i=Number(n)-r:e.is(".plus")&&(i=Number(n)+r);var l=(r.toString().split(".")[1]||[]).length;if(l>0){for(var c="1";c.length<=l;)c+="0";i=Math.round(i*c)/c}t.isNumeric(o)&&t.isNumeric(a)?i>=o&&a>=i&&s.val(i):t.isNumeric(o)&&!t.isNumeric(a)?i>=o&&s.val(i):!t.isNumeric(o)&&t.isNumeric(a)?a>=i&&s.val(i):s.val(i)};n.is(".disabled")||(n.on("mousedown","div.jq-number__spin",function(){var e=t(this);d(e),l=setTimeout(function(){c=setInterval(function(){d(e)},40)},350)}).on("mouseup mouseout","div.jq-number__spin",function(){clearTimeout(l),clearInterval(c)}).on("mouseup","div.jq-number__spin",function(){s.change()}),s.on("focus.styler",function(){n.addClass("focused")}).on("blur.styler",function(){n.removeClass("focused")}))};d(),s.on("refresh",function(){s.off(".styler").closest(".jq-number").before(s).remove(),d()})}else if(s.is("select")){var u=function(){function r(e){e.off("mousewheel DOMMouseScroll").on("mousewheel DOMMouseScroll",function(e){var i=null;"mousewheel"==e.type?i=-1*e.originalEvent.wheelDelta:"DOMMouseScroll"==e.type&&(i=40*e.originalEvent.detail),i&&(e.stopPropagation(),e.preventDefault(),t(this).scrollTop(i+t(this).scrollTop()))})}function l(){for(var t=0;t<u.length;t++){var e=u.eq(t),i="",s="",o="",a="",r="",l="",c="",d="",p="";e.prop("selected")&&(s="selected sel"),e.is(":disabled")&&(s="disabled"),e.is(":selected:disabled")&&(s="selected sel disabled"),void 0!==e.attr("id")&&""!==e.attr("id")&&(a=' id="'+e.attr("id")+n.idSuffix+'"'),void 0!==e.attr("title")&&""!==u.attr("title")&&(r=' title="'+e.attr("title")+'"'),void 0!==e.attr("class")&&(c=" "+e.attr("class"),p=' data-jqfs-class="'+e.attr("class")+'"');var f=e.data();for(var m in f)""!==f[m]&&(l+=" data-"+m+'="'+f[m]+'"');s+c!==""&&(o=' class="'+s+c+'"'),i="<li"+p+l+o+r+a+">"+e.html()+"</li>",e.parent().is("optgroup")&&(void 0!==e.parent().attr("class")&&(d=" "+e.parent().attr("class")),i="<li"+p+l+' class="'+s+c+" option"+d+'"'+r+a+">"+e.html()+"</li>",e.is(":first-child")&&(i='<li class="optgroup'+d+'">'+e.parent().attr("label")+"</li>"+i)),h+=i}}function c(){var a=new e,c="",d=s.data("placeholder"),p=s.data("search"),f=s.data("search-limit"),m=s.data("search-not-found"),g=s.data("search-placeholder"),v=s.data("z-index"),b=s.data("smart-positioning");void 0===d&&(d=n.selectPlaceholder),void 0!==p&&""!==p||(p=n.selectSearch),void 0!==f&&""!==f||(f=n.selectSearchLimit),void 0!==m&&""!==m||(m=n.selectSearchNotFound),void 0===g&&(g=n.selectSearchPlaceholder),void 0!==v&&""!==v||(v=n.singleSelectzIndex),void 0!==b&&""!==b||(b=n.selectSmartPositioning);var y=t('<div class="jq-selectbox jqselect"><div class="jq-selectbox__select" style="position: relative"><div class="jq-selectbox__select-text"></div><div class="jq-selectbox__trigger"><div class="jq-selectbox__trigger-arrow"></div></div></div></div>').css({display:"inline-block",position:"relative",zIndex:v}).attr({id:a.id,title:a.title}).addClass(a.classes).data(a.data);s.css({margin:0,padding:0}).after(y).prependTo(y);var w=t("div.jq-selectbox__select",y),_=t("div.jq-selectbox__select-text",y),x=u.filter(":selected");l(),p&&(c='<div class="jq-selectbox__search"><input type="search" autocomplete="off" placeholder="'+g+'"></div><div class="jq-selectbox__not-found">'+m+"</div>");var C=t('<div class="jq-selectbox__dropdown" style="position: absolute">'+c+'<ul style="position: relative; list-style: none; overflow: auto; overflow-x: hidden">'+h+"</ul></div>");y.append(C);var k=t("ul",C),j=t("li",C),$=t("input",C),T=t("div.jq-selectbox__not-found",C).hide();j.length<f&&$.parent().hide(),""===u.first().text()&&u.first().is(":selected")&&!1!==d?_.text(d).addClass("placeholder"):_.text(x.text());var S=0,I=0;if(j.css({display:"inline-block"}),j.each(function(){var e=t(this);e.innerWidth()>S&&(S=e.innerWidth(),I=e.width())}),j.css({display:""}),_.is(".placeholder")&&_.width()>S)_.width(_.width());else{var D=y.clone().appendTo("body").width("auto"),P=D.outerWidth();D.remove(),P==y.outerWidth()&&_.width(I)}S>y.width()&&C.width(S),""===u.first().text()&&""!==s.data("placeholder")&&j.first().hide(),s.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:0});var M=y.outerHeight(!0),z=$.parent().outerHeight(!0)||0,A=k.css("max-height"),E=j.filter(".selected");if(E.length<1&&j.first().addClass("selected sel"),void 0===j.data("li-height")){var O=j.outerHeight();!1!==d&&(O=j.eq(1).outerHeight()),j.data("li-height",O)}var F=C.css("top");if("auto"==C.css("left")&&C.css({left:0}),"auto"==C.css("top")&&(C.css({top:M}),F=M),C.hide(),E.length&&(u.first().text()!=x.text()&&y.addClass("changed"),y.data("jqfs-class",E.data("jqfs-class")),y.addClass(E.data("jqfs-class"))),s.is(":disabled"))return y.addClass("disabled"),!1;w.click(function(){if(t("div.jq-selectbox").filter(".opened").length&&n.onSelectClosed.call(t("div.jq-selectbox").filter(".opened")),s.focus(),!o){var e=t(window),i=j.data("li-height"),a=y.offset().top,l=e.height()-M-(a-e.scrollTop()),c=s.data("visible-options");void 0!==c&&""!==c||(c=n.selectVisibleOptions);var d=5*i,h=i*c;c>0&&6>c&&(d=h),0===c&&(h="auto");var p=function(){C.height("auto").css({bottom:"auto",top:F});var t=function(){k.css("max-height",Math.floor((l-20-z)/i)*i)};t(),k.css("max-height",h),"none"!=A&&k.css("max-height",A),l<C.outerHeight()+20&&t()},f=function(){C.height("auto").css({top:"auto",bottom:F});var t=function(){k.css("max-height",Math.floor((a-e.scrollTop()-20-z)/i)*i)};t(),k.css("max-height",h),"none"!=A&&k.css("max-height",A),a-e.scrollTop()-20<C.outerHeight()+20&&t()};!0===b||1===b?l>d+z+20?(p(),y.removeClass("dropup").addClass("dropdown")):(f(),y.removeClass("dropdown").addClass("dropup")):!1===b||0===b?l>d+z+20&&(p(),y.removeClass("dropup").addClass("dropdown")):(C.height("auto").css({bottom:"auto",top:F}),k.css("max-height",h),"none"!=A&&k.css("max-height",A)),y.offset().left+C.outerWidth()>e.width()&&C.css({left:"auto",right:0}),t("div.jqselect").css({zIndex:v-1}).removeClass("opened"),y.css({zIndex:v}),C.is(":hidden")?(t("div.jq-selectbox__dropdown:visible").hide(),C.show(),y.addClass("opened focused"),n.onSelectOpened.call(y)):(C.hide(),y.removeClass("opened dropup dropdown"),t("div.jq-selectbox").filter(".opened").length&&n.onSelectClosed.call(y)),$.length&&($.val("").keyup(),T.hide(),$.keyup(function(){var e=t(this).val();j.each(function(){t(this).html().match(new RegExp(".*?"+e+".*?","i"))?t(this).show():t(this).hide()}),""===u.first().text()&&""!==s.data("placeholder")&&j.first().hide(),j.filter(":visible").length<1?T.show():T.hide()})),j.filter(".selected").length&&(""===s.val()?k.scrollTop(0):(k.innerHeight()/i%2!=0&&(i/=2),k.scrollTop(k.scrollTop()+j.filter(".selected").position().top-k.innerHeight()/2+i))),r(k)}}),j.hover(function(){t(this).siblings().removeClass("selected")});var L=j.filter(".selected").text();j.filter(":not(.disabled):not(.optgroup)").click(function(){s.focus();var e=t(this),i=e.text();if(!e.is(".selected")){var o=e.index();o-=e.prevAll(".optgroup").length,e.addClass("selected sel").siblings().removeClass("selected sel"),u.prop("selected",!1).eq(o).prop("selected",!0),L=i,_.text(i),y.data("jqfs-class")&&y.removeClass(y.data("jqfs-class")),y.data("jqfs-class",e.data("jqfs-class")),y.addClass(e.data("jqfs-class")),s.change()}C.hide(),y.removeClass("opened dropup dropdown"),n.onSelectClosed.call(y)}),C.mouseout(function(){t("li.sel",C).addClass("selected")}),s.on("change.styler",function(){_.text(u.filter(":selected").text()).removeClass("placeholder"),j.removeClass("selected sel").not(".optgroup").eq(s[0].selectedIndex).addClass("selected sel"),u.first().text()!=j.filter(".selected").text()?y.addClass("changed"):y.removeClass("changed")}).on("focus.styler",function(){y.addClass("focused"),t("div.jqselect").not(".focused").removeClass("opened dropup dropdown").find("div.jq-selectbox__dropdown").hide()}).on("blur.styler",function(){y.removeClass("focused")}).on("keydown.styler keyup.styler",function(t){var e=j.data("li-height");""===s.val()?_.text(d).addClass("placeholder"):_.text(u.filter(":selected").text()),j.removeClass("selected sel").not(".optgroup").eq(s[0].selectedIndex).addClass("selected sel"),38!=t.which&&37!=t.which&&33!=t.which&&36!=t.which||(""===s.val()?k.scrollTop(0):k.scrollTop(k.scrollTop()+j.filter(".selected").position().top)),40!=t.which&&39!=t.which&&34!=t.which&&35!=t.which||k.scrollTop(k.scrollTop()+j.filter(".selected").position().top-k.innerHeight()+e),13==t.which&&(t.preventDefault(),C.hide(),y.removeClass("opened dropup dropdown"),n.onSelectClosed.call(y))}).on("keydown.styler",function(t){32==t.which&&(t.preventDefault(),w.click())}
1),i.registered||(t(document).on("click",i),i.registered=!0)}function d(){var i=new e,n=t('<div class="jq-select-multiple jqselect"></div>').css({display:"inline-block",position:"relative"}).attr({id:i.id,title:i.title}).addClass(i.classes).data(i.data);s.css({margin:0,padding:0}).after(n),l(),n.append("<ul>"+h+"</ul>");var o=t("ul",n).css({position:"relative","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}),a=t("li",n).attr("unselectable","on"),c=s.attr("size"),d=o.outerHeight(),p=a.outerHeight();void 0!==c&&c>0?o.css({height:p*c}):o.css({height:4*p}),d>n.height()&&(o.css("overflowY","scroll"),r(o),a.filter(".selected").length&&o.scrollTop(o.scrollTop()+a.filter(".selected").position().top)),s.prependTo(n).css({position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:0}),s.is(":disabled")?(n.addClass("disabled"),u.each(function(){t(this).is(":selected")&&a.eq(t(this).index()).addClass("selected")})):(a.filter(":not(.disabled):not(.optgroup)").click(function(e){s.focus();var i=t(this);if(e.ctrlKey||e.metaKey||i.addClass("selected"),e.shiftKey||i.addClass("first"),e.ctrlKey||e.metaKey||e.shiftKey||i.siblings().removeClass("selected first"),(e.ctrlKey||e.metaKey)&&(i.is(".selected")?i.removeClass("selected first"):i.addClass("selected first"),i.siblings().removeClass("first")),e.shiftKey){var n=!1,o=!1;i.siblings().removeClass("selected").siblings(".first").addClass("selected"),i.prevAll().each(function(){t(this).is(".first")&&(n=!0)}),i.nextAll().each(function(){t(this).is(".first")&&(o=!0)}),n&&i.prevAll().each(function(){return!t(this).is(".selected")&&void t(this).not(".disabled, .optgroup").addClass("selected")}),o&&i.nextAll().each(function(){return!t(this).is(".selected")&&void t(this).not(".disabled, .optgroup").addClass("selected")}),1==a.filter(".selected").length&&i.addClass("first")}u.prop("selected",!1),a.filter(".selected").each(function(){var e=t(this),i=e.index();e.is(".option")&&(i-=e.prevAll(".optgroup").length),u.eq(i).prop("selected",!0)}),s.change()}),u.each(function(e){t(this).data("optionIndex",e)}),s.on("change.styler",function(){a.removeClass("selected");var e=[];u.filter(":selected").each(function(){e.push(t(this).data("optionIndex"))}),a.not(".optgroup").filter(function(i){return t.inArray(i,e)>-1}).addClass("selected")}).on("focus.styler",function(){n.addClass("focused")}).on("blur.styler",function(){n.removeClass("focused")}),d>n.height()&&s.on("keydown.styler",function(t){38!=t.which&&37!=t.which&&33!=t.which||o.scrollTop(o.scrollTop()+a.filter(".selected").position().top-p),40!=t.which&&39!=t.which&&34!=t.which||o.scrollTop(o.scrollTop()+a.filter(".selected:last").position().top-o.innerHeight()+2*p)}))}var u=t("option",s),h="";if(s.is("[multiple]")){if(a||o)return;d()}else c()};u(),s.on("refresh",function(){s.off(".styler").parent().before(s).remove(),u()})}else s.is(":reset")&&s.on("click",function(){setTimeout(function(){s.closest("form").find("input, select").trigger("refresh")},1)})},destroy:function(){var e=t(this.element);e.is(":checkbox")||e.is(":radio")?(e.removeData("_"+s).off(".styler refresh").removeAttr("style").parent().before(e).remove(),e.closest("label").add('label[for="'+e.attr("id")+'"]').off(".styler")):e.is('input[type="number"]')?e.removeData("_"+s).off(".styler refresh").closest(".jq-number").before(e).remove():(e.is(":file")||e.is("select"))&&e.removeData("_"+s).off(".styler refresh").removeAttr("style").parent().before(e).remove()}},t.fn[s]=function(i){var n=arguments;if(void 0===i||"object"==typeof i)return this.each(function(){t.data(this,"_"+s)||t.data(this,"_"+s,new e(this,i))}).promise().done(function(){var e=t(this[0]).data("_"+s);e&&e.options.onFormStyled.call()}),this;if("string"==typeof i&&"_"!==i[0]&&"init"!==i){var o;return this.each(function(){var a=t.data(this,"_"+s);a instanceof e&&"function"==typeof a[i]&&(o=a[i].apply(a,Array.prototype.slice.call(n,1)))}),void 0!==o?o:this}},i.registered=!1}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){"use strict";function e(t){if(t instanceof Date)return t;if(String(t).match(a))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}function i(t){var e=t.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(e)}function s(t){return function(e){var s=e.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(s)for(var o=0,a=s.length;o<a;++o){var r=s[o].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),c=i(r[0]),d=r[1]||"",u=r[3]||"",h=null;r=r[2],l.hasOwnProperty(r)&&(h=l[r],h=Number(t[h])),null!==h&&("!"===d&&(h=n(u,h)),""===d&&h<10&&(h="0"+h.toString()),e=e.replace(c,h.toString()))}return e=e.replace(/%%/,"%")}}function n(t,e){var i="s",s="";return t&&(t=t.replace(/(:|;
1|\s)/gi,"").split(/\,/),1===t.length?i=t[0]:(s=t[0],i=t[1])),Math.abs(e)>1?i:s}var o=[],a=[],r={precision:100,elapse:!1,defer:!1};a.push(/^[0-9]*$/.source),a.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),a.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),a=new RegExp(a.join("|"));var l={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},c=function(e,i,s){this.el=e,this.$el=t(e),this.interval=null,this.offset={},this.options=t.extend({},r),this.instanceNumber=o.length,o.push(this),this.$el.data("countdown-instance",this.instanceNumber),s&&("function"==typeof s?(this.$el.on("update.countdown",s),this.$el.on("stoped.countdown",s),this.$el.on("finish.countdown",s)):this.options=t.extend({},r,s)),this.setFinalDate(i),!1===this.options.defer&&this.start()};t.extend(c.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),o[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=e(t)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var e,i=void 0!==t._data(this.el,"events"),s=new Date;e=this.finalDate.getTime()-s.getTime(),e=Math.ceil(e/1e3),e=!this.options.elapse&&e<0?0:Math.abs(e),this.totalSecsLeft!==e&&i&&(this.totalSecsLeft=e,this.elapsed=s>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-s.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(e){var i=t.Event(e+".countdown");i.finalDate=this.finalDate,i.elapsed=this.elapsed,i.offset=t.extend({},this.offset),i.strftime=s(this.offset),this.$el.trigger(i)}}),t.fn.countdown=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){var i=t(this).data("countdown-instance");if(void 0!==i){var s=o[i],n=e[0];c.prototype.hasOwnProperty(n)?s[n].apply(s,e.slice(1)):null===String(n).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(s.setFinalDate.call(s,n),s.start()):t.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,n))}else new c(this,e[0],e[1])})}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function i(t){return r.raw?t:decodeURIComponent(t)}function s(t){return e(r.json?JSON.stringify(t):String(t))}function n(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(a," ")),r.json?JSON.parse(t):t}catch(t){}}function o(e,i){var s=r.raw?e:n(e);return t.isFunction(i)?i(s):s}var a=/\+/g,r=t.cookie=function(n,a,l){if(void 0!==a&&!t.isFunction(a)){if(l=t.extend({},r.defaults,l),"number"==typeof l.expires){var c=l.expires,d=l.expires=new Date;d.setTime(+d+864e5*c)}return document.cookie=[e(n),"=",s(a),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var u=n?void 0:{},h=document.cookie?document.cookie.split("; "):[],p=0,f=h.length;p<f;p++){var m=h[p].split("="),g=i(m.shift()),v=m.join("=");if(n&&n===g){u=o(v,a);break}n||void 0===(v=o(v))||(u[g]=v)}return u};r.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!t.cookie(e))}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(t){var e,i,s,n,o,a,r="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",h="mfp",p="."+h,f="mfp-ready",m="mfp-removing",g="mfp-prevent-close",v=function(){},b=!!window.jQuery,y=t(window),w=function(t,i){e.ev.on(h+t+p,i)},_=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},x=function(i,s){e.ev.triggerHandler(h+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]))},C=function(i){return i===a&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),a=i),e.currTemplate.closeBtn},k=function(){t.magnificPopup.instance||(e=new v,e.init(),t.magnificPopup.instance=e)},j=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};v.prototype={constructor:v,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=j(),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;
1if(!1===i.isObj){e.items=i.items.toArray(),e.index=0;var a,r=i.items;for(n=0;n<r.length;n++)if(a=r[n],a.parsed&&(a=a.el[0]),a===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)return void e.updateItemHTML();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=_("bg").on("click"+p,function(){e.close()}),e.wrap=_("wrap").attr("tabindex",-1).on("click"+p,function(t){e._checkIfClose(t.target)&&e.close()}),e.container=_("container",e.wrap)),e.contentContainer=_("content"),e.st.preloader&&(e.preloader=_("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(n=0;n<l.length;n++){var u=l[n];u=u.charAt(0).toUpperCase()+u.slice(1),e["init"+u].call(e)}x("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(w(c,function(t,e,i,s){i.close_replaceWith=C(s.type)}),o+=" mfp-close-btn-in"):e.wrap.append(C())),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:y.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"+p,function(t){27===t.keyCode&&e.close()}),y.on("resize"+p,function(){e.updateSize()}),e.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&e.wrap.addClass(o);var h=e.wH=y.height(),m={};if(e.fixedContentPos&&e._hasScrollBar(h)){var g=e._getScrollbarSize();g&&(m.marginRight=g)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):m.overflow="hidden");var v=e.st.mainClass;return e.isIE7&&(v+=" mfp-ie7"),v&&e._addClassToMFP(v),e.updateItemHTML(),x("BuildControls"),t("html").css(m),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP(f),e._setFocus()):e.bgOverlay.addClass(f),s.on("focusin"+p,e._onFocusIn)},16),e.isOpen=!0,e.updateSize(h),x(d),i},close:function(){e.isOpen&&(x(l),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(m),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){x(r);var i=m+" "+f+" ";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"+p+" focusin"+p),e.ev.off(p),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,x("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||y.height();e.fixedContentPos||e.wrap.css("height",e.wH),x("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(x("BeforeChange",[e.currItem?e.currItem.type:"",s]),e.currItem=i,!e.currTemplate[s]){var o=!!e.st[s]&&e.st[s].markup;x("FirstMarkupParse",o),e.currTemplate[s]=!o||t(o)}n&&n!==i.type&&e.container.removeClass("mfp-"+n+"-holder");var a=e["get"+s.charAt(0).toUpperCase()+s.slice(1)](i,e.currTemplate[s]);e.appendContent(a,s),i.preloaded=!0,x(u,i),n=i.type,e.container.prepend(e.contentContainer),x("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(C()):e.content=t:e.content="",x("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,a=0;a<o.length;a++)if(n.el.hasClass("mfp-"+o[a])){s=o[a];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,x("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(y.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};x("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(g)){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||y.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){return i.target===e.wrap[0]||t.contains(e.wrap[0],i.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,i,s){var n;s.data&&(i=t.extend(s.data,i)),x(c,[e,i,s]),t.each(i,function(i,s){if(void 0===s||!1===s)return!0;if(n=i.split("_"),n.length>1){var o=e.find(p+"-"+n[0]);if(o.length>0){var a=n[1];"replaceWith"===a?o[0]!==s[0]&&o.replaceWith(s):"img"===a?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(p+"-"+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:v.prototype,modules:[],open:function(e,i){return k(),e=e?t.extend(!0,{},e):{},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){k();var s=t(this);if("string"==typeof i)if("open"===i){var n,o=b?s.data("magnificPopup"):s[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?n=o.items[a]:(n=s,o.delegate&&(n=n.find(o.delegate)),n=n.eq(a)),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),b?s.data("magnificPopup",i):s[0].magnificPopup=i,e.addGroup(s,i);return s};var $,T,S,I="inline",D=function(){S&&(T.after(S.addClass($)).detach(),S=null)};t.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(I),w(r+"."+I,function(){D()})},getInline:function(i,s){if(D(),i.src){var n=e.st.inline,o=t(i.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(T||($=n.hiddenClass,T=_($),$="mfp-"+$),S=o.after(T).detach().removeClass($)),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 P,M="ajax",z=function(){P&&t(document.body).removeClass(P)},A=function(){z(),e.req&&e.req.abort()};t.magnificPopup.registerModule(M,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(M),P=e.st.ajax.cursor,w(r+"."+M,A),w("BeforeChange."+M,A)},getAjax:function(i){P&&t(document.body).addClass(P),e.updateStatus("loading");var s=t.extend({url:i.src,success:function(s,n,o){var a={data:s,xhr:o};x("ParseAjax",a),e.appendContent(t(a.data),M),i.finished=!0,z(),e._setFocus(),setTimeout(function(){e.wrap.addClass(f)},16),e.updateStatus("ready"),x("AjaxContentAdded")},error:function(){z(),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 E,O=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"),w(d+s,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),w(r+s,function(){i.cursor&&t(document.body).removeClass(i.cursor),y.off("resize"+p)}),w("Resize"+s,e.resizeImage),e.isLowIE&&w("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,E&&clearInterval(E),t.isCheckingImgSize=!1,x("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){E&&clearInterval(E),E=setInterval(function(){return s.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(E),i++,void(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,x("ImageLoadComplete")):(n++,200>n?setTimeout(o,100):a()))},a=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},r=e.st.image,l=s.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",o).on("error.mfploader",a),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(s,{title:O(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(E&&clearInterval(E),i.loadError?(s.addClass("mfp-loading"),e.updateStatus("error",r.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 F,L=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};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,a=i.duration,c=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},d=function(){e.content.css("visibility","visible")};w("BuildControls"+s,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void d();o=c(t),o.css(e._getOffset()),e.wrap.append(o),n=setTimeout(function(){o.css(e._getOffset(!0)),n=setTimeout(function(){d(),setTimeout(function(){o.remove(),t=o=null,x("ZoomAnimationEnded")},16)},a)},16)}}),w(l+s,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=a,!t){if(!(t=e._getItemToZoom()))return;o=c(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout(function(){o.css(e._getOffset())},16)}}),w(r+s,function(){e._allowZoom()&&(d(),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;s=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var n=s.offset(),o=parseInt(s.css("padding-top"),10),a=parseInt(s.css("padding-bottom"),10);n.top-=t(window).scrollTop()-o;var r={width:s.width(),height:(b?s.innerHeight():s[0].offsetHeight)-a-o};return L()?r["-moz-transform"]=r.transform="translate("+n.left+"px,"+n.top+"px)":(r.left=n.left,r.top=n.top),r}}});var N="iframe",H="//about:blank",W=function(t){if(e.currTemplate[N]){var i=e.currTemplate[N].find("iframe");i.length&&(t||(i[0].src=H),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(N,{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(N),w("BeforeChange",function(t,e,
vendor: 44,711 bytes, line 1
1i){e!==i&&(e===N?W():i===N&&W(!0))}),w(r+"."+N,function(){W()})},getIframe:function(i,s){var n=i.src,o=e.st.iframe;t.each(o.patterns,function(){return n.indexOf(this.index)>-1?(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):void 0});var a={};return o.srcAction&&(a[o.srcAction]=n),e._parseMarkup(s,a,i),e.updateStatus("ready"),s}}});var R=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},B=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";return e.direction=!0,!(!i||!i.enabled)&&(o+=" mfp-gallery",w(d+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),s.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),w("UpdateStatus"+n,function(t,i){i.text&&(i.text=B(i.text,e.currItem.index,e.items.length))}),w(c+n,function(t,s,n,o){var a=e.items.length;n.counter=a>1?B(i.tCounter,o.index,a):""}),w("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(g),o=e.arrowRight=t(s.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(g);n.click(function(){e.prev()}),o.click(function(){e.next()}),e.container.append(n.add(o))}}),w(u+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void w(r+n,function(){s.off(n),e.wrap.off("click"+n),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=R(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=R(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=R(i),!e.items[i].preloaded){var s=e.items[i];s.parsed||(s=e.parseEl(i)),x("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,x("LazyLoadError",s)}).attr("src",s.src)),s.preloaded=!0}}}});var q="retina";t.magnificPopup.registerModule(q,{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&&(w("ImageHasSize."+q,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),w("ElementParse."+q,function(e,s){s.src=t.replaceSrc(s,i)}))}}}}),k()}),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),a=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,r="",l="";for(a/=2;a>0;)e.push(this.normalize(e.length/2,!0)),r+=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,a-=1;this._clones=e,t(r).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,a=this.coordinates(this.current())+o,r=a+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,"<=",a)&&this.op(t,">",r)||this.op(e,"<",a)&&this.op(e,">",r))&&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(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t,e,i;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))}),n=t.extend({},this.options,i[s]),"function"==typeof n.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;3!==e.which&&(t.support.transform?(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),s={x:s[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=30,a=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy(function(t,l){return"left"===i&&e>l-o&&e<l+o?n=t:"right"===i&&e>l-a-o&&e<l-a+o?n=t+1:this.op(e,"<",l)&&this.op(e,">",r[t+1]!==s?r[t+1]:l-a)&&(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))},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),a=this._items.length,r=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>a/2&&(n+=-1*o*a),t=i+n,(s=((t-r)%a+a)%a+r)!==t&&s-n<=l&&s-n>0&&(i=s-n,t=s,this.reset(i))):this.settings.rewind?(l+=1,t=(t%l+l)%l):t=Math.max(r,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(){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));for(var s in 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}},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,a){var r={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),c=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},r,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(c)}),this.register({type:n.Type.Event,name:e}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===s&&(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.originalEvent||t||e.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,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;e.clearInterval(this._interval);for(t in 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,n=i.center&&Math.ceil(i.items/2)||i.items,o=i.center&&-1*n||0,a=(e.property&&e.property.value!==s?e.property.value:this._core.current())+o,r=this._core.clones().length,l=t.proxy(function(t,e){this.load(e)},this);for(i.lazyLoadEager>0&&(n+=i.lazyLoadEager,i.loop&&(a-=i.lazyLoadEager,n++));o++<n;)this.load(r/2+this._core.relative(a)),r&&t.each(this._core.clones(this._core.relative(a)),l),a++}},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),a=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:a},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:a},"lazy")},this)).attr("src",a):o.is("source")?o.one("load.owl.lazy",t.proxy(function(){this._core.trigger("loaded",{element:o,url:a},"lazy")},this)).attr("srcset",a):(n=new Image,n.onload=t.proxy(function(){o.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:a},"lazy")},this),n.src=a)},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=[],a=0;t.each(n,function(e,i){o.push(t(i).height())}),a=Math.max.apply(null,o),a<=1&&s&&this._previousHeight&&(a=this._previousHeight),this._previousHeight=a,this._core.$stage.parent().height(a).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=function(){return 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,a=t.attr("href");if(!a)throw new Error("Missing video URL.");if(s=a.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+)?/),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[a]={type:i,id:s,width:n,height:o},e.attr("data-video",a),this.thumbnail(t,this._videos[a])},n.prototype.thumbnail=function(e,i){var s,n,o,a=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),l="src",c="",d=this._core.settings,u=function(i){n='<div class="owl-video-play-icon"></div>',s=d.lazyLoad?t("<div/>",{class:"owl-video-tn "+c,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after(n)};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:a})),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),r.length)return u(r.attr(l)),r.remove(),!1;"youtube"===i.type?(o="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(o)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,u(o)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t.framegrab_url,u(o)}})},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),n=s.closest("."+this._core.settings.itemClass),o=this._videos[n.attr("data-video")],a=o.width||"100%",r=o.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),i.attr("height",r),i.attr("width",a),"youtube"===o.type?i.attr("src","//www.youtube.com/embed/"+o.id+"?autoplay=1&rel=0&v="+o.id):"vimeo"===o.type?i.attr("src","//player.vimeo.com/video/"+o.id+"?autoplay=1"):"vzaar"===o.type&&i.attr("src","//view.vzaar.com/"+o.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(n.find(".owl-video")),this._playing=n.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;this._core.$element.off("click.owl.video");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.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,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(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(a)),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;this.stop();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.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;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));for(e in this._overrides)this._core[e]=t.proxy(this[e],this)},n.prototype.destroy=function(){var t,e,i,s,n;n=this._core.settings;for(t in 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,s=this._core.clones().length/2,n=s+this._core.items().length,o=this._core.maximum(!0),a=this._core.settings,r=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if("page"!==a.slideBy&&(a.slideBy=Math.min(a.slideBy,a.items)),a.dots||"page"==a.slideBy)for(this._pages=[],t=s,e=0,i=0;t<n;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(o,t-s),end:t-s+r-1}),Math.min(o,t-s)===o)break;e=0,++i}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),n=this._core.$stage.children(),o=this._hashes[i]&&n.index(this._hashes[i]);o!==s&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)},this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,s;t(e).off("hashchange.owl.navigation");for(i in 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+" "+r.join(o+" ")+o).split(" "),function(t,e){if(a[e]!==s)return n=!i||e,!1}),n}function o(t){return n(t,!0)}var a=t("<support>").get(0).style,r="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"}}},c={csstransforms:function(){return!!n("transform")},csstransforms3d:function(){return!!n("perspective")},csstransitions:function(){return!!n("transition")},cssanimations:function(){return!!n("animation")}};c.csstransitions()&&(t.support.transition=new String(o("transition")),t.support.transition.end=l.transition.end[t.support.transition]),c.cssanimations()&&(t.support.animation=new String(o("animation")),t.support.animation.end=l.animation.end[t.support.animation]),c.csstransforms()&&(t.support.transform=new String(o("transform")),t.support.transform3d=c.csstransforms3d())}(window.Zepto||window.jQuery,window,document),function(t){function e(t,e){return e.autoStop&&(e.circular?e.autoStop:Math.min(t,e.autoStop))}function i(t){this.id&&(this.id+=t)}t.jCarouselLite={version:"1.9.3",curr:0},t.fn.anim=void 0!==t.fn.velocity?t.fn.velocity:t.fn.animate,t.fn.jCarouselLite=function(s){var n=t.extend(!0,{},t.fn.jCarouselLite.defaults,s),o=Math.ceil,a=Math.abs;return this.each(function(){function s(){return p.slice(m).slice(0,M)}function r(e,i){if(_)return!1;i=i||{};var o=m,a=e>m,r=void 0!==i.speed?i.speed:n.speed,l=i.offset||0;return n.beforeStart&&n.beforeStart.call(T,s(),a,i),n.circular?(e>m&&e>f-M?(e-=m,m%=D,e=m+e,S.css(x,-m*w.liSize-l)):e<m&&e<0&&(m+=D,e+=D,S.css(x,-m*w.liSize-l)),m=e+e%1):(e<0?e=0:e>f-z&&(e=f-z),m=e,0===m&&n.first&&n.first.call(this,s(),a),m===f-z&&n.last&&n.last.call(this,s(),a),n.btnPrev&&n.$btnPrev.toggleClass(n.btnDisabledClass,0===m),n.btnNext&&n.$btnNext.toggleClass(n.btnDisabledClass,m===f-z)),B(m,F),t.jCarouselLite.curr=m,o!==m||i.force?(_=!0,C[x]=-m*w.liSize,S.anim(C,r,n.easing,function(){n.afterEnd&&n.afterEnd.call(T,s(),a,i),_=!1}),m):(n.afterEnd&&n.afterEnd.call(T,s(),a,i),m)}var l,c,d,u,h,p,f,m,g,v,b,y="ontouchend"in document,w={div:{},ul:{},li:{}},_=!1,x=n.vertical?"top":"left",C={},k=n.vertical?"height":"width",j=n.vertical?"outerHeight":"outerWidth",$=this,T=t(this),S=T.find(n.containerSelector).eq(0),I=S.children(n.itemSelector),D=I.length,P=n.visible,M=o(P),z=Math.floor(P),A=Math.min(n.start,D-1),E=1,O=0,F={},L={},N={},H=n.vertical?"y":"x",W=n.vertical?"x":"y";if(!1!==n.init.call(this,n,I)){var R=function(){l&&l.length&&(l.remove(),c.remove()),I=S.children(n.liSelector),D=I.length,l=I.slice(D-M).clone(!0).each(i),c=I.slice(0,M).clone(!0).each(i),S.prepend(l).append(c),p=S.children(n.liSelector),f=p.length};
1T.data("dirjc",E),T.data(x+"jc",T.css(x)),n.circular?(R(),A+=M,O=M):(p=S.children(n.liSelector),f=p.length),n.btnGo&&n.btnGo.length&&(b=t(t.isArray(n.btnGo)&&"string"==typeof n.btnGo[0]?n.btnGo.join():n.btnGo),b.each(function(e){t(this).bind("click.jc",function(t){t.preventDefault();var i={btnGo:this,btnGoIndex:e};return r(n.circular?P+e:e,i)})}),F.go=1);var B=function(t,e){t=o(t),p.filter("."+n.activeClass).removeClass(n.activeClass),p.eq(t).addClass(n.activeClass);var i=(t-O)%D,s=i+z;return e.go&&(b.removeClass(n.activeClass).removeClass(n.visibleClass),b.eq(i).addClass(n.activeClass),b.slice(i,i+z).addClass(n.visibleClass),s>b.length&&b.slice(0,s-b.length).addClass(n.visibleClass)),e.pager&&(d.removeClass(n.activeClass),d.eq(o(i/P)).addClass(n.activeClass)),i};m=A,t.jCarouselLite.curr=m;var q=function(t){var e,i,s;return t?(w.div[k]="",w.li={width:"",height:""},w):(e=p[j](!0),i=e*f,s=e*P,w.div[k]=s+"px",w.ul[k]=i+"px",w.ul[x]=-m*e+"px",w.li={width:p.width(),height:p.height()},w.liSize=e,w)},Y=function(e){var i,s,o={div:{visibility:"visible",position:"relative",zIndex:2,left:"0"},ul:{margin:"0",padding:"0",position:"relative",listStyleType:"none",zIndex:1},li:{overflow:n.vertical?"hidden":"visible",float:n.vertical?"none":"left"}};e&&(i=q(!0),T.css(i.div),S.css(i.ul),p.css(i.li)),i=q(),n.autoCSS&&t.extend(!0,i,o),n.autoWidth&&(s=parseInt(T.css(k),10),w.liSize=s/n.visible,i.li[k]=w.liSize-(p[j](!0)-parseInt(p.css(k),10)),i.ul[k]=w.liSize*f+"px",i.ul[x]=-m*w.liSize+"px",i.div[k]=s),n.autoCSS&&(p.css(i.li),S.css(i.ul),T.css(i.div))};Y();var U=0,V=e(D,n),Z="number"==typeof n.auto?n.auto:n.scroll,K=function(){$.setAutoAdvance=setTimeout(function(){(!V||V>U)&&(E=T.data("dirjc"),r(m+E*Z,{auto:!0}),U++,K())},n.timeout)};if(t.each(["btnPrev","btnNext"],function(e,i){n[i]&&(n["$"+i]=t.isFunction(n[i])?n[i].call(T[0]):t(n[i]),n["$"+i].bind("click.jc",function(t){t.preventDefault();var i=0===e?m-n.scroll:m+n.scroll;return n.directional&&T.data("dirjc",e?1:-1),r(i)}))}),n.circular||(n.btnPrev&&0===A&&n.$btnPrev.addClass(n.btnDisabledClass),n.btnNext&&A+z>=f&&n.$btnNext.addClass(n.btnDisabledClass)),n.autoPager){u=o(D/P),d=[];for(var Q=0;Q<u;Q++)d.push('<li><a href="#">'+(Q+1)+"</a></li>");d.length>1&&(d=t("<ul>"+d.join("")+"</ul>").appendTo(n.autoPager).find("li"),d.find("a").each(function(e){t(this).bind("click.jc",function(t){t.preventDefault();var i=e*P;return n.circular&&(i+=P),r(i)})}),F.pager=1)}B(A,F),n.mouseWheel&&T.mousewheel&&T.bind("mousewheel.jc",function(t,e){return r(e>0?m-n.scroll:m+n.scroll)}),n.pause&&n.auto&&!y&&T.bind("mouseenter.jc",function(){T.trigger("pauseCarousel.jc")}).bind("mouseleave.jc",function(){T.trigger("resumeCarousel.jc")}),n.auto&&K(),t.jCarouselLite.vis=s,T.bind("go.jc",function(t,e,i){void 0===e&&(e="+=1");var s="string"==typeof e&&/(\+=|-=)(\d+)/.exec(e);s?e="-="===s[1]?m-1*s[2]:m+1*s[2]:e+=A,r(e,i)}).bind("startCarousel.jc",function(){clearTimeout($.setAutoAdvance),$.setAutoAdvance=void 0,T.trigger("go","+="+n.scroll),K(),T.removeData("pausedjc").removeData("stoppedjc")}).bind("resumeCarousel.jc",function(t,e){if(!$.setAutoAdvance){clearTimeout($.setAutoAdvance),$.setAutoAdvance=void 0;var i=T.data("stoppedjc");!e&&i||(K(),T.removeData("pausedjc"),i&&T.removeData("stoppedjc"))}}).bind("pauseCarousel.jc",function(){clearTimeout($.setAutoAdvance),$.setAutoAdvance=void 0,T.data("pausedjc",!0)}).bind("stopCarousel.jc",function(){clearTimeout($.setAutoAdvance),$.setAutoAdvance=void 0,T.data("stoppedjc",!0)}).bind("refreshCarousel.jc",function(t,e){e&&n.circular&&R(),Y(n.autoCSS)}).bind("endCarousel.jc",function(){$.setAutoAdvance&&(clearTimeout($.setAutoAdvance),$.setAutoAdvance=void 0),n.btnPrev&&n.$btnPrev.addClass(n.btnDisabledClass).unbind(".jc"),n.btnNext&&n.$btnNext.addClass(n.btnDisabledClass).unbind(".jc"),n.btnGo&&t.each(n.btnGo,function(e,i){t(i).unbind(".jc")}),n.circular&&(p.slice(0,M).remove(),p.slice(-M).remove()),t.each([x+"jc","pausedjc","stoppedjc","dirjc"],function(t,e){T.removeData(e)}),T.unbind(".jc")}),v={touchstart:function(t){N.x=0,N.y=0,L.x=t.targetTouches[0].pageX,L.y=t.targetTouches[0].pageY,L[x]=parseFloat(S.css(x)),L.time=+new Date},touchmove:function(t){1===t.targetTouches.length?(N.x=t.targetTouches[0].pageX,N.y=t.targetTouches[0].pageY,C[x]=L[x]+(N[H]-L[H]),S.css(C),n.preventTouchWindowScroll&&t.preventDefault()):(N.x=L.x,N.y=L.y)},touchend:function(){if(N.x){var t=L[H]-N[H],e=a(t),i=e>n.swipeThresholds[H],s=a(L[W]-N[W])<n.swipeThresholds[W],o=+new Date-L.time,r=o<n.swipeThresholds.time,l=t>0?"+=":"-=",c=l+n.scroll,d={force:!0};r&&i&&s?d.speed=n.speed/2:!r&&e<w.liSize/2||!i||r&&!s?c="+=0":!r&&e>w.liSize/2&&(c=Math.round(e/w.liSize),c=l+(c>n.visible?n.visible:c),d.offset=t),T.trigger("go.jc",[c,d]),N={}}},handle:function(t){t=t.originalEvent,v[t.type](t)}}
1,y&&n.swipe&&T.bind("touchstart.jc touchmove.jc touchend.jc",v.handle),n.responsive&&(g=n.autoCSS,t(window).bind("resize",function(){g&&(S.width(2*S.width()),g=!1),clearTimeout(h),h=setTimeout(function(){T.trigger("refreshCarousel.jc",[!0]),g=n.autoCSS},100)}))}}),this},t.fn.jCarouselLite.defaults={containerSelector:"ul",itemSelector:"li",btnPrev:null,btnNext:null,btnGo:null,autoPager:null,btnDisabledClass:"disabled",activeClass:"active",visibleClass:"vis",mouseWheel:!1,speed:200,easing:null,timeout:4e3,auto:!1,directional:!1,autoStop:!1,pause:!0,vertical:!1,circular:!0,visible:3,start:0,scroll:1,autoCSS:!0,responsive:!1,autoWidth:!1,swipe:!0,swipeThresholds:{x:80,y:40,time:150},preventTouchWindowScroll:!0,init:function(){},first:null,last:null,beforeStart:null,afterEnd:null}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()}(this,function(){"use strict";return function(t,e,i,s){var n={features:null,bind:function(t,e,i,s){var n=(s?"remove":"add")+"EventListener";e=e.split(" ");for(var o=0;o<e.length;o++)e[o]&&t[n](e[o],i,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var i=document.createElement(e||"div");return t&&(i.className=t),i},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,i){n.bind(t,e,i,!0)},removeClass:function(t,e){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){n.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var i=t.firstChild;i;){if(n.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(t,e,i){for(var s=t.length;s--;)if(t[s][i]===e)return s;return-1},extend:function(t,e,i){for(var s in e)if(e.hasOwnProperty(s)){if(i&&t.hasOwnProperty(s))continue;t[s]=e[s]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(n.features)return n.features;var t=n.createEl(),e=t.style,i="",s={};if(s.oldIE=document.all&&!document.addEventListener,s.touch="ontouchstart"in window,window.requestAnimationFrame&&(s.raf=window.requestAnimationFrame,s.caf=window.cancelAnimationFrame),s.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!s.pointerEvent){var o=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&a<8&&(s.isOldIOSPhone=!0)}var r=o.match(/Android\s([0-9\.]*)/),l=r?r[1]:0;l=parseFloat(l),l>=1&&(l<4.4&&(s.isOldAndroid=!0),s.androidVersion=l),s.isMobileOpera=/opera mini|o
1pera mobi/i.test(o)}for(var c,d,u=["transform","perspective","animationName"],h=["","webkit","Moz","ms","O"],p=0;p<4;p++){i=h[p];for(var f=0;f<3;f++)c=u[f],d=i+(i?c.charAt(0).toUpperCase()+c.slice(1):c),!s[c]&&d in e&&(s[c]=d);i&&!s.raf&&(i=i.toLowerCase(),s.raf=window[i+"RequestAnimationFrame"],s.raf&&(s.caf=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]))}if(!s.raf){var m=0;s.raf=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-m)),s=window.setTimeout(function(){t(e+i)},i);return m=e+i,s},s.caf=function(t){clearTimeout(t)}}return s.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,n.features=s,s}};n.detectFeatures(),n.features.oldIE&&(n.bind=function(t,e,i,s){e=e.split(" ");for(var n,o=(s?"detach":"attach")+"Event",a=function(){i.handleEvent.call(i)},r=0;r<e.length;r++)if(n=e[r])if("object"==typeof i&&i.handleEvent){if(s){if(!i["oldIE"+n])return!1}else i["oldIE"+n]=a;t[o]("on"+n,i["oldIE"+n])}else t[o]("on"+n,i)});var o=this,a=25,r=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t?1:e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};n.extend(l,s);var c,d,u,h,p,f,m,g,v,b,y,w,_,x,C,k,j,$,T,S,I,D,P,M,z,A,E,O,F,L,N,H,W,R,B,q,Y,U,V,Z,K,Q,G,X,J,tt,et,it,st,nt,ot,at,rt,lt,ct,dt,ut,ht=function(){return{x:0,y:0}},pt=ht(),ft=ht(),mt=ht(),gt={},vt=0,bt={},yt=ht(),wt=0,_t=!0,xt=[],Ct={},kt=!1,jt=function(t,e){n.extend(o,e.publicMethods),xt.push(t)},$t=function(t){var e=ti();return t>e-1?t-e:t<0?e+t:t},Tt={},St=function(t,e){return Tt[t]||(Tt[t]=[]),Tt[t].push(e)},It=function(t){var e=Tt[t];if(e){var i=Array.prototype.slice.call(arguments);i.shift();for(var s=0;s<e.length;s++)e[s].apply(o,i)}},Dt=function(){return(new Date).getTime()},Pt=function(t){ct=t,o.bg.style.opacity=t*l.bgOpacity},Mt=function(t,e,i,s,n){(!kt||n&&n!==o.currItem)&&(s/=n?n.fitRatio:o.currItem.fitRatio),t[D]=w+e+"px, "+i+"px"+_+" scale("+s+")"},zt=function(t){nt&&(t&&(b>o.currItem.fitRatio?kt||(hi(o.currItem,!1,!0),kt=!0):kt&&(hi(o.currItem),kt=!1)),Mt(nt,mt.x,mt.y,b))},At=function(t){t.container&&Mt(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Et=function(t,e){e[D]=w+t+"px, 0px"+_},Ot=function(t,e){if(!l.loop&&e){var i=h+(yt.x*vt-t)/yt.x,s=Math.round(t-ye.x);(i<0&&s>0||i>=ti()-1&&s<0)&&(t=ye.x+s*l.mainScrollEndFriction)}ye.x=t,Et(t,p)},Ft=function(t,e){var i=we[t]-bt[t];return ft[t]+pt[t]+i-i*(e/y)},Lt=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Nt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Ht=null,Wt=function(){Ht&&(n.unbind(document,"mousemove",Wt),n.addClass(t,"pswp--has_mouse"),l.mouseUsed=!0,It("mouseUsed")),Ht=setTimeout(function(){Ht=null},100)},Rt=function(){n.bind(document,"keydown",o),N.transform&&n.bind(o.scrollWrap,"click",o),l.mouseUsed||n.bind(document,"mousemove",Wt),n.bind(window,"resize scroll orientationchange",o),It("bindEvents")},Bt=function(){n.unbind(window,"resize scroll orientationchange",o),n.unbind(window,"scroll",v.scroll),n.unbind(document,"keydown",o),n.unbind(document,"mousemove",Wt),N.transform&&n.unbind(o.scrollWrap,"click",o),V&&n.unbind(window,m,o),clearTimeout(H),It("unbindEvents")},qt=function(t,e){var i=li(o.currItem,gt,t);return e&&(st=i),i},Yt=function(t){return t||(t=o.currItem),t.initialZoomLevel},Ut=function(t){return t||(t=o.currItem),t.w>0?l.maxSpreadZoom:1},Vt=function(t,e,i,s){return s===o.currItem.initialZoomLevel?(i[t]=o.currItem.initialPosition[t],!0):(i[t]=Ft(t,s),i[t]>e.min[t]?(i[t]=e.min[t],!0):i[t]<e.max[t]&&(i[t]=e.max[t],!0))},Zt=function(){if(D){var e=N.perspective&&!M;return w="translate"+(e?"3d(":"("),void(_=N.perspective?", 0px)":")")}D="left",n.addClass(t,"pswp--ie"),Et=function(t,e){e.left=t+"px"},At=function(t){var e=t.fitRatio>1?1:t.fitRatio,i=t.container.style,s=e*t.w,n=e*t.h;i.width=s+"px",i.height=n+"px",i.left=t.initialPosition.x+"px",i.top=t.initialPosition.y+"px"},zt=function(){if(nt){var t=nt,e=o.currItem,i=e.fitRatio>1?1:e.fitRatio,s=i*e.w,n=i*e.h;
1t.width=s+"px",t.height=n+"px",t.left=mt.x+"px",t.top=mt.y+"px"}}},Kt=function(t){var e="";l.escKey&&27===t.keyCode?e="close":l.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,o[e]()))},Qt=function(t){t&&(Q||K||ot||Y)&&(t.preventDefault(),t.stopPropagation())},Gt=function(){o.setScrollOffset(0,n.getScrollY())},Xt={},Jt=0,te=function(t){Xt[t]&&(Xt[t].raf&&A(Xt[t].raf),Jt--,delete Xt[t])},ee=function(t){Xt[t]&&te(t),Xt[t]||(Jt++,Xt[t]={})},ie=function(){for(var t in Xt)Xt.hasOwnProperty(t)&&te(t)},se=function(t,e,i,s,n,o,a){var r,l=Dt();ee(t);var c=function(){if(Xt[t]){if((r=Dt()-l)>=s)return te(t),o(i),void(a&&a());o((i-e)*n(r/s)+e),Xt[t].raf=z(c)}};c()},ne={shout:It,listen:St,viewportSize:gt,options:l,isMainScrollAnimating:function(){return ot},getZoomLevel:function(){return b},getCurrentIndex:function(){return h},isDragging:function(){return V},isZooming:function(){return tt},setScrollOffset:function(t,e){bt.x=t,L=bt.y=e,It("updateScrollOffset",bt)},applyZoomPan:function(t,e,i,s){mt.x=e,mt.y=i,b=t,zt(s)},init:function(){if(!c&&!d){var i;o.framework=n,o.template=t,o.bg=n.getChildByClass(t,"pswp__bg"),E=t.className,c=!0,N=n.detectFeatures(),z=N.raf,A=N.caf,D=N.transform,F=N.oldIE,o.scrollWrap=n.getChildByClass(t,"pswp__scroll-wrap"),o.container=n.getChildByClass(o.scrollWrap,"pswp__container"),p=o.container.style,o.itemHolders=k=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}],k[0].el.style.display=k[2].el.style.display="none",Zt(),v={resize:o.updateSize,orientationchange:function(){clearTimeout(H),H=setTimeout(function(){gt.x!==o.scrollWrap.clientWidth&&o.updateSize()},500)},scroll:Gt,keydown:Kt,click:Qt};var s=N.isOldIOSPhone||N.isOldAndroid||N.isMobileOpera;for(N.animationName&&N.transform&&!s||(l.showAnimationDuration=l.hideAnimationDuration=0),i=0;i<xt.length;i++)o["init"+xt[i]]();if(e){(o.ui=new e(o,n)).init()}It("firstUpdate"),h=h||l.index||0,(isNaN(h)||h<0||h>=ti())&&(h=0),o.currItem=Je(h),(N.isOldIOSPhone||N.isOldAndroid)&&(_t=!1),t.setAttribute("aria-hidden","false"),l.modal&&(_t?t.style.position="fixed":(t.style.position="absolute",t.style.top=n.getScrollY()+"px")),void 0===L&&(It("initialLayout"),L=O=n.getScrollY());var a="pswp--open ";for(l.mainClass&&(a+=l.mainClass+" "),l.showHideOpacity&&(a+="pswp--animate_opacity "),a+=M?"pswp--touch":"pswp--notouch",a+=N.animationName?" pswp--css_animation":"",a+=N.svg?" pswp--svg":"",n.addClass(t,a),o.updateSize(),f=-1,wt=null,i=0;i<r;i++)Et((i+f)*yt.x,k[i].el.style);F||n.bind(o.scrollWrap,g,o),St("initialZoomInEnd",function(){o.setContent(k[0],h-1),o.setContent(k[2],h+1),k[0].el.style.display=k[2].el.style.display="block",l.focus&&t.focus(),Rt()}),o.setContent(k[1],h),o.updateCurrItem(),It("afterInit"),_t||(x=setInterval(function(){Jt||V||tt||b!==o.currItem.initialZoomLevel||o.updateSize()},1e3)),n.addClass(t,"pswp--visible")}},close:function(){c&&(c=!1,d=!0,It("close"),Bt(),ii(o.currItem,null,!0,o.destroy))},destroy:function(){It("destroy"),Ke&&clearTimeout(Ke),t.setAttribute("aria-hidden","true"),t.className=E,x&&clearInterval(x),n.unbind(o.scrollWrap,g,o),n.unbind(window,"scroll",o),je(),ie(),Tt=null},panTo:function(t,e,i){i||(t>st.min.x?t=st.min.x:t<st.max.x&&(t=st.max.x),e>st.min.y?e=st.min.y:e<st.max.y&&(e=st.max.y)),mt.x=t,mt.y=e,zt()},handleEvent:function(t){t=t||window.event,v[t.type]&&v[t.type](t)},goTo:function(t){t=$t(t);var e=t-h;wt=e,h=t,o.currItem=Je(h),vt-=e,Ot(yt.x*vt),ie(),ot=!1,o.updateCurrItem()},next:function(){o.goTo(h+1)},prev:function(){o.goTo(h-1)},updateCurrZoomItem:function(t){if(t&&It("beforeChange",0),k[1].el.children.length){var e=k[1].el.children[0];nt=n.hasClass(e,"pswp__zoom-wrap")?e.style:null}else nt=null;st=o.currItem.bounds,y=b=o.currItem.initialZoomLevel,mt.x=st.center.x,mt.y=st.center.y,t&&It("afterChange")},invalidateCurrItems:function(){C=!0;for(var t=0;t<r;t++)k[t].item&&(k[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==wt){var e,i=Math.abs(wt);if(!(t&&i<2)){o.currItem=Je(h),kt=!1,It("beforeChange",wt),i>=r&&(f+=wt+(wt>0?-r:r),i=r);for(var s=0;s<i;s++)wt>0?(e=k.shift(),k[r-1]=e,f++,Et((f+2)*yt.x,e.el.style),o.setContent(e,h-i+s+1+1)):(e=k.pop(),k.unshift(e),f--,Et(f*yt.x,e.el.style),o.setContent(e,h+i-s-1-1));if(nt&&1===Math.abs(wt)){var n=Je(j);n.initialZoomLevel!==b&&(li(n,gt),hi(n),At(n))}wt=0,o.updateCurrZoomItem(),j=h,It("afterChange")}}},updateSize:function(e){if(!_t&&l.modal){var i=n.getScrollY();if(L!==i&&(t.style.top=i+"px",L=i),!e&&Ct.x===window.innerWidth&&Ct.y===window.innerHeight)return;Ct.x=window.innerWidth,Ct.y=window.innerHeight,t.style.height=Ct.y+"px"}if(gt.x=o.scrollWrap.clientWidth,gt.y=o.scrollWrap.clientHeight,Gt(),yt.x=gt.x+Math.round(gt.x*l.spacing),yt.y=gt.y,Ot(yt.x*vt),It("beforeResize"),void 0!==f){for(var s,a,c,d=0;d<r;d++)s=k[d],Et((d+f)*yt.x,s.el.style),c=h+d-1,l.loop&&ti()>2&&(c=$t(c)),a=Je(c),a&&(C||a.needsUpdate||!a.bounds)?(o.cleanSlide(a),o.setContent(s,c),1===d&&(o.currItem=a,o.updateCurrZoomItem(!0)),a.needsUpdate=!1):-1===s.index&&c>=0&&o.setContent(s,c),a&&a.container&&(li(a,gt),hi(a),At(a));C=!1}y=b=o.currItem.initialZoomLevel,st=o.currItem.bounds,st&&(mt.x=st.center.x,mt.y=st.center.y,zt(!0)),It("resize")}
vendor: 5,936 bytes, line 1
1,zoomTo:function(t,e,i,s,o){e&&(y=b,we.x=Math.abs(e.x)-mt.x,we.y=Math.abs(e.y)-mt.y,Lt(ft,mt));var a=qt(t,!1),r={};Vt("x",a,r,t),Vt("y",a,r,t);var l=b,c={x:mt.x,y:mt.y};Nt(r);var d=function(e){1===e?(b=t,mt.x=r.x,mt.y=r.y):(b=(t-l)*e+l,mt.x=(r.x-c.x)*e+c.x,mt.y=(r.y-c.y)*e+c.y),o&&o(e),zt(1===e)};i?se("customZoomTo",0,1,i,s||n.easing.sine.inOut,d):d(1)}},oe=30,ae=10,re={},le={},ce={},de={},ue={},he=[],pe={},fe=[],me={},ge=0,ve=ht(),be=0,ye=ht(),we=ht(),_e=ht(),xe=function(t,e){return t.x===e.x&&t.y===e.y},Ce=function(t,e){return Math.abs(t.x-e.x)<a&&Math.abs(t.y-e.y)<a},ke=function(t,e){return me.x=Math.abs(t.x-e.x),me.y=Math.abs(t.y-e.y),Math.sqrt(me.x*me.x+me.y*me.y)},je=function(){G&&(A(G),G=null)},$e=function(){V&&(G=z($e),Re())},Te=function(){return!("fit"===l.scaleMode&&b===o.currItem.initialZoomLevel)},Se=function(t,e){return!(!t||t===document)&&!(t.getAttribute("class")&&t.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(e(t)?t:Se(t.parentNode,e))},Ie={},De=function(t,e){return Ie.prevent=!Se(t.target,l.isClickableElement),It("preventDragEvent",t,e,Ie),Ie.prevent},Pe=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},Me=function(t,e,i){i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y)},ze=function(t,e,i){if(t-R>50){var s=fe.length>2?fe.shift():{};s.x=e,s.y=i,fe.push(s),R=t}},Ae=function(){var t=mt.y-o.currItem.initialPosition.y;return 1-Math.abs(t/(gt.y/2))},Ee={},Oe={},Fe=[],Le=function(t){for(;Fe.length>0;)Fe.pop();return P?(ut=0,he.forEach(function(t){0===ut?Fe[0]=t:1===ut&&(Fe[1]=t),ut++})):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Fe[0]=Pe(t.touches[0],Ee),t.touches.length>1&&(Fe[1]=Pe(t.touches[1],Oe))):(Ee.x=t.pageX,Ee.y=t.pageY,Ee.id="",Fe[0]=Ee),Fe},Ne=function(t,e){var i,s,n,a,r=mt[t]+e[t],c=e[t]>0,d=ye.x+e.x,u=ye.x-pe.x;return i=r>st.min[t]||r<st.max[t]?l.panEndFriction:1,r=mt[t]+e[t]*i,!l.allowPanToNext&&b!==o.currItem.initialZoomLevel||(nt?"h"!==at||"x"!==t||K||(c?(r>st.min[t]&&(i=l.panEndFriction,st.min[t]-r,s=st.min[t]-ft[t]),(s<=0||u<0)&&ti()>1?(a=d,u<0&&d>pe.x&&(a=pe.x)):st.min.x!==st.max.x&&(n=r)):(r<st.max[t]&&(i=l.panEndFriction,r-st.max[t],s=ft[t]-st.max[t]),(s<=0||u>0)&&ti()>1?(a=d,u>0&&d<pe.x&&(a=pe.x)):st.min.x!==st.max.x&&(n=r))):a=d,"x"!==t)?void(ot||X||b>o.currItem.fitRatio&&(mt[t]+=e[t]*i)):(void 0!==a&&(Ot(a,!0),X=a!==pe.x),st.min.x!==st.max.x&&(void 0!==n?mt.x=n:X||(mt.x+=e.x*i)),void 0!==a)},He=function(t){if(!("mousedown"===t.type&&t.button>0)){if(Xe)return void t.preventDefault();if(!U||"mousedown"!==t.type){if(De(t,!0)&&t.preventDefault(),It("pointerDown"),P){var e=n.arraySearch(he,t.pointerId,"id");e<0&&(e=he.length),he[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var i=Le(t),s=i.length;J=null,ie(),V&&1!==s||(V=rt=!0,n.bind(window,m,o),q=dt=lt=Y=X=Q=Z=K=!1,at=null,It("firstTouchStart",i),Lt(ft,mt),pt.x=pt.y=0,Lt(de,i[0]),Lt(ue,de),pe.x=yt.x*vt,fe=[{x:de.x,y:de.y}],R=W=Dt(),qt(b,!0),je(),$e()),!tt&&s>1&&!ot&&!X&&(y=b,K=!1,tt=Z=!0,pt.y=pt.x=0,Lt(ft,mt),Lt(re,i[0]),Lt(le,i[1]),Me(re,le,_e),we.x=Math.abs(_e.x)-mt.x,we.y=Math.abs(_e.y)-mt.y,et=it=ke(re,le))}}},We=function(t){if(t.preventDefault(),P){var e=n.arraySearch(he,t.pointerId,"id");if(e>-1){var i=he[e];i.x=t.pageX,i.y=t.pageY}}if(V){var s=Le(t);if(at||Q||tt)J=s;else if(ye.x!==yt.x*vt)at="h";else{var o=Math.abs(s[0].x-de.x)-Math.abs(s[0].y-de.y);Math.abs(o)>=ae&&(at=o>0?"h":"v",J=s)}}},Re=function(){if(J){var t=J.length;if(0!==t)if(Lt(re,J[0]),ce.x=re.x-de.x,ce.y=re.y-de.y,tt&&t>1){if(de.x=re.x,de.y=re.y,!ce.x&&!ce.y&&xe(J[1],le))return;Lt(le,J[1]),K||(K=!0,It("zoomGestureStarted"));var e=ke(re,le),i=Ve(e);i>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(dt=!0);var s=1,n=Yt(),a=Ut();if(i<n)if(l.pinchToClose&&!dt&&y<=o.currItem.initialZoomLevel){var r=n-i,c=1-r/(n/1.2);Pt(c),It("onPinchClose",c),lt=!0}else s=(n-i)/n,s>1&&(s=1),i=n-s*(n/3);else i>a&&(s=(i-a)/(6*n),s>1&&(s=1),i=a+s*n);s<0&&(s=0),et=e,Me(re,le,ve),pt.x+=ve.x-_e.x,pt.y+=ve.y-_e.y,Lt(_e,ve),mt.x=Ft("x",i),mt.y=Ft("y",i),q=i>b,b=i,zt()}else{if(!at)return;if(rt&&(rt=!1,Math.abs(ce.x)>=ae&&(ce.x-=J[0].x-ue.x),Math.abs(ce.y)>=ae&&(ce.y-=J[0].y-ue.y)),de.x=re.x,de.y=re.y,0===ce.x&&0===ce.y)return;if("v"===at&&l.closeOnVerticalDrag&&!Te()){pt.y+=ce.y,mt.y+=ce.y;var d=Ae();return Y=!0,It("onVerticalDrag",d),Pt(d),void zt()}ze(Dt(),re.x,re.y),Q=!0,st=o.currItem.bounds;var u=Ne("x",ce);u||(Ne("y",ce),Nt(mt),zt())}}},Be=function(t){if(N.isOldAndroid){if(U&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(U),U=setTimeout(function(){U=0},600))}It("pointerUp"),De(t,!1)&&t.preventDefault();var e;if(P){var i=n.arraySearch(he,t.pointerId,"id");if(i>-1)if(e=he.splice(i,1)[0],navigator.msPointerEnabled){var s={4:"mouse",2:"touch",3:"pen"};e.type=s[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}var a,r=Le(t),c=r.length;if("mouseup"===t.type&&(c=0),2===c)return J=null,!0;1===c&&Lt(ue,r[0]),0!==c||at||ot||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),It("touchRelease",t,e));var d=-1;if(0===c&&(V=!1,n.unbind(window,m,o),je(),tt?d=0:-1!==be&&(d=Dt()-be)),be=1===c?Dt():-1,a=-1!==d&&d<150?"zoom":"swipe",tt&&c<2&&(tt=!1,1===c&&(a="zoomPointerUp"),It("zoomGestureEnded")),J=null,Q||K||ot||Y)if(ie(),B||(B=qe()),B.calculateSwipeSpeed("x"),Y){var u=Ae();if(u<l.verticalDragRange)o.close();else{var h=mt.y,p=ct;se("verticalDrag",0,1,300,n.easing.cubic.out,function(t){mt.y=(o.currItem.initialPosition.y-h)*t+h,Pt((1-p)*t+p),zt()}),It("onVerticalDrag",1)}}else{if((X||ot)&&0===c){var f=Ue(a,B);if(f)return;a="zoomPointerUp"}if(!ot)return"swipe"!==a?void Ze():void(!X&&b>o.currItem.fitRatio&&Ye(B))}},qe=function(){var t,e,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(s){fe.length>1?(t=Dt()-R+50,e=fe[fe.length-2][s]):(t=Dt()-W,e=ue[s]),i.lastFlickOffset[s]=de[s]-e,i.lastFlickDist[s]=Math.abs(i.lastFlickOffset[s]),i.lastFlickDist[s]>20?i.lastFlickSpeed[s]=i.lastFlickOffset[s]/t:i.lastFlickSpeed[s]=0,Math.abs(i.lastFlickSpeed[s])<.1&&(i.lastFlickSpeed[s]=0),i.slowDownRatio[s]=.95,i.slowDownRatioReverse[s]=1-i.slowDownRatio[s],i.speedDecelerationRatio[s]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(mt[t]>st.min[t]?i.backAnimDestination[t]=st.min[t]:mt[t]<st.max[t]&&(i.backAnimDestination[t]=st.max[t]),void 0!==i.backAnimDestination[t]&&(i.slowDownRatio[t]=.7,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatioAbs[t]<.05&&(i.lastFlickSpeed[t]=0,i.backAnimStarted[t]=!0,se("bounceZoomPan"+t,mt[t],i.backAnimDestination[t],e||300,n.easing.sine.out,function(e){mt[t]=e,zt()}))))},calculateAnimOffset:function(t){i.backAnimStarted[t]||(i.speedDecelerationRatio[t]=i.speedDecelerationRatio[t]*(i.slowDownRatio[t]+i.slowDownRatioReverse[t]-i.slowDownRatioReverse[t]*i.timeDiff/10),i.speedDecelerationRatioAbs[t]=Math.abs(i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]),i.distanceOffset[t]=i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]*i.timeDiff,mt[t]+=i.distanceOffset[t])},panAnimLoop:function(){if(Xt.zoomPan&&(Xt.zoomPan.raf=z(i.panAnimLoop),i.now=Dt(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),zt(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05))return mt.x=Math.round(mt.x),mt.y=Math.round(mt.y),zt(),void te("zoomPan")}};return i},Ye=function(t){return t.calculateSwipeSpeed("y"),st=o.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05?(t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0):(ee("zoomPan"),t.lastNow=Dt(),void t.panAnimLoop())},Ue=function(t,e){var i;ot||(ge=h);var s;if("swipe"===t){var a=de.x-ue.x,r=e.lastFlickDist.x<10;a>oe&&(r||e.lastFlickOffset.x>20)?s=-1:a<-oe&&(r||e.lastFlickOffset.x<-20)&&(s=1)}var c;s&&(h+=s,h<0?(h=l.loop?ti()-1:0,c=!0):h>=ti()&&(h=l.loop?0:ti()-1,c=!0),c&&!l.loop||(wt+=s,vt-=s,i=!0));var d,u=yt.x*vt,p=Math.abs(u-ye.x);return i||u>ye.x==e.lastFlickSpeed.x>0?(d=Math.abs(e.lastFlickSpeed.x)>0?p/Math.abs(e.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,ge===h&&(i=!1),ot=!0,It("mainScrollAnimStart"),se("mainScroll",ye.x,u,d,n.easing.cubic.out,Ot,function(){ie(),ot=!1,ge=-1,(i||ge!==h)&&o.updateCurrItem(),It("mainScrollAnimComplete")}),i&&o.updateCurrItem(!0),i},Ve=function(t){return 1/it*t*y},Ze=function(){var t=b,e=Yt(),i=Ut();b<e?t=e:b>i&&(t=i);var s,a=ct;return lt&&!q&&!dt&&b<e?(o.close(),!0):(lt&&(s=function(t){Pt((1-a)*t+a)}),o.zoomTo(t,0,200,n.easing.cubic.out,s),!0)};jt("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,i,s,n){$=t+e,T=t+i,S=t+s,I=n?t+n:""};P=N.pointerEvent,P&&N.touch&&(N.touch=!1),P?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):N.touch?(t("touch","start","move","end","cancel"),M=!0):t("mouse","down","move","up"),m=T+" "+S+" "+I,g=$,P&&!M&&(M=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),o.likelyTouchDevice=M,v[$]=He,v[T]=We,v[S]=Be,I&&(v[I]=v[S]),N.touch&&(g+=" mousedown",m+=" mousemove mouseup",v.mousedown=v[$],v.mousemove=v[T],v.mouseup=v[S]),M||(l.allowPanToNext=!1)}}});var Ke,Qe,Ge,Xe,Je,ti,ei,ii=function(e,i,s,a){Ke&&clearTimeout(Ke),Xe=!0,Ge=!0;var r;e.initialLayout?(r=e.initialLayout,e.initialLayout=null):r=l.getThumbBoundsFn&&l.getThumbBoundsFn(h);var c=s?l.hideAnimationDuration:l.showAnimationDuration,d=function(){te("initialZoom"),s?(o.template.removeAttribute("style"),o.bg.removeAttribute("style")):(Pt(1),i&&(i.style.display="block"),n.addClass(t,"pswp--animated-in"),It("initialZoom"+(s?"OutEnd":"InEnd"))),a&&a(),Xe=!1};if(!c||!r||void 0===r.x)return It("initialZoom"+(s?"Out":"In")),b=e.initialZoomLevel,Lt(mt,e.initialPosition),zt(),t.style.opacity=s?0:1,Pt(1),void(c?setTimeout(function(){d()},c):d());!function(){var i=u,a=!o.currItem.src||o.currItem.loadError||l.showHideOpacity;e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),s||(b=r.w/e.w,mt.x=r.x,mt.y=r.y-O,o[a?"template":"bg"].style.opacity=.001,zt()),ee("initialZoom"),s&&!i&&n.removeClass(t,"pswp--animated-in"),a&&(s?n[(i?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout(function(){n.addClass(t,"pswp--animate_opacity")},30)),Ke=setTimeout(function(){if(It("initialZoom"+(s?"Out":"In")),s){var o=r.w/e.w,l={x:mt.x,y:mt.y},u=b,h=ct,p=function(e){1===e?(b=o,mt.x=r.x,mt.y=r.y-L):(b=(o-u)*e+u,mt.x=(r.x-l.x)*e+l.x,mt.y=(r.y-L-l.y)*e+l.y),zt(),a?t.style.opacity=1-e:Pt(h-e*h)};i?se("initialZoom",0,1,c,n.easing.cubic.out,p,d):(p(1),Ke=setTimeout(d,c+20))}else b=e.initialZoomLevel,Lt(mt,e.initialPosition),zt(),Pt(1),a?t.style.opacity=1:Pt(1),Ke=setTimeout(d,c+20)},s?25:90)}()},si={},ni=[],oi={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Qe.length}},ai=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}}
1,ri=function(t,e,i){var s=t.bounds;s.center.x=Math.round((si.x-e)/2),s.center.y=Math.round((si.y-i)/2)+t.vGap.top,s.max.x=e>si.x?Math.round(si.x-e):s.center.x,s.max.y=i>si.y?Math.round(si.y-i)+t.vGap.top:s.center.y,s.min.x=e>si.x?0:s.center.x,s.min.y=i>si.y?t.vGap.top:s.center.y},li=function(t,e,i){if(t.src&&!t.loadError){var s=!i;if(s&&(t.vGap||(t.vGap={top:0,bottom:0}),It("parseVerticalMargin",t)),si.x=e.x,si.y=e.y-t.vGap.top-t.vGap.bottom,s){var n=si.x/t.w,o=si.y/t.h;t.fitRatio=n<o?n:o;var a=l.scaleMode;"orig"===a?i=1:"fit"===a&&(i=t.fitRatio),i>1&&(i=1),t.initialZoomLevel=i,t.bounds||(t.bounds=ai())}if(!i)return;return ri(t,t.w*i,t.h*i),s&&i===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=ai(),t.initialPosition=t.bounds.center,t.bounds},ci=function(t,e,i,s,n,a){e.loadError||s&&(e.imageAppended=!0,hi(e,s,e===o.currItem&&kt),i.appendChild(s),a&&setTimeout(function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)},500))},di=function(t){t.loading=!0,t.loaded=!1;var e=t.img=n.createEl("pswp__img","img"),i=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=i,e.onerror=function(){t.loadError=!0,i()},e.src=t.src,e},ui=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=l.errorMsg.replace("%url%",t.src),!0},hi=function(t,e,i){if(t.src){e||(e=t.container.lastChild);var s=i?t.w:Math.round(t.w*t.fitRatio),n=i?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=s+"px",t.placeholder.style.height=n+"px"),e.style.width=s+"px",e.style.height=n+"px"}},pi=function(){if(ni.length){for(var t,e=0;e<ni.length;e++)t=ni[e],t.holder.index===t.index&&ci(t.index,t.item,t.baseDiv,t.img,!1,t.clearPlaceholder);ni=[]}};jt("Controller",{publicMethods:{lazyLoadItem:function(t){t=$t(t);var e=Je(t);e&&(!e.loaded&&!e.loading||C)&&(It("gettingData",t,e),e.src&&di(e))},initController:function(){n.extend(l,oi,!0),o.items=Qe=i,Je=o.getItemAt,ti=l.getNumItemsFn,ei=l.loop,ti()<3&&(l.loop=!1),St("beforeChange",function(t){var e,i=l.preload,s=null===t||t>=0,n=Math.min(i[0],ti()),a=Math.min(i[1],ti());for(e=1;e<=(s?a:n);e++)o.lazyLoadItem(h+e);for(e=1;e<=(s?n:a);e++)o.lazyLoadItem(h-e)}),St("initialLayout",function(){o.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(h)}),St("mainScrollAnimComplete",pi),St("initialZoomInEnd",pi),St("destroy",function(){for(var t,e=0;e<Qe.length;e++)t=Qe[e],t.container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);ni=null})},getItemAt:function(t){return t>=0&&void 0!==Qe[t]&&Qe[t]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!M||l.mouseUsed||screen.width>1200},setContent:function(t,e){l.loop&&(e=$t(e));var i=o.getItemAt(t.index);i&&(i.container=null);var s,a=o.getItemAt(e);if(!a)return void(t.el.innerHTML="");It("gettingData",e,a),t.index=e,t.item=a;var r=a.container=n.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?r.appendChild(a.html):r.innerHTML=a.html),ui(a),li(a,gt),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&(s=n.createEl("pswp__img","img"),s.style.opacity=1,s.src=a.src,hi(a,s),ci(e,a,r,s,!0));else{if(a.loadComplete=function(i){if(c){if(t&&t.index===e){if(ui(i,!0))return i.loadComplete=i.img=null,li(i,gt),At(i),void(t.index===h&&o.updateCurrZoomItem());i.imageAppended?!Xe&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):N.transform&&(ot||Xe)?ni.push({item:i,baseDiv:r,img:i.img,index:e,holder:t,clearPlaceholder:!0}):ci(e,i,r,i.img,ot||Xe,!0)}i.loadComplete=null,i.img=null,It("imageLoadComplete",e,i)}},n.features.transform){var d="pswp__img pswp__img--placeholder";d+=a.msrc?"":" pswp__img--placeholder--blank";var u=n.createEl(d,a.msrc?"img":"");a.msrc&&(u.src=a.msrc),hi(a,u),r.appendChild(u),a.placeholder=u}a.loading||di(a),o.allowProgressiveImg()&&(!Ge&&N.transform?ni.push({item:a,baseDiv:r,img:a.img,index:e,holder:t}):ci(e,a,r,a.img,!0,!0))}Ge||e!==h?At(a):(nt=r.style,ii(a,s||a.img)),t.el.innerHTML="",t.el.appendChild(r)},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var fi,mi={}
1,gi=function(t,e,i){var s=document.createEvent("CustomEvent"),n={origEvent:t,target:t.target,releasePoint:e,pointerType:i||"touch"};s.initCustomEvent("pswpTap",!0,!0,n),t.target.dispatchEvent(s)};jt("Tap",{publicMethods:{initTap:function(){St("firstTouchStart",o.onTapStart),St("touchRelease",o.onTapRelease),St("destroy",function(){mi={},fi=null})},onTapStart:function(t){t.length>1&&(clearTimeout(fi),fi=null)},onTapRelease:function(t,e){if(e&&!Q&&!Z&&!Jt){var i=e;if(fi&&(clearTimeout(fi),fi=null,Ce(i,mi)))return void It("doubleTap",i);if("mouse"===e.type)return void gi(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||n.hasClass(t.target,"pswp__single-tap"))return void gi(t,e);Lt(mi,i),fi=setTimeout(function(){gi(t,e),fi=null},300)}}}});var vi;jt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){F||(M?St("mouseUsed",function(){o.setupDesktopZoom()}):o.setupDesktopZoom(!0))},setupDesktopZoom:function(e){vi={};var i="wheel mousewheel DOMMouseScroll";St("bindEvents",function(){n.bind(t,i,o.handleMouseWheel)}),St("unbindEvents",function(){vi&&n.unbind(t,i,o.handleMouseWheel)}),o.mouseZoomedIn=!1;var s,a=function(){o.mouseZoomedIn&&(n.removeClass(t,"pswp--zoomed-in"),o.mouseZoomedIn=!1),b<1?n.addClass(t,"pswp--zoom-allowed"):n.removeClass(t,"pswp--zoom-allowed"),r()},r=function(){s&&(n.removeClass(t,"pswp--dragging"),s=!1)};St("resize",a),St("afterChange",a),St("pointerDown",function(){o.mouseZoomedIn&&(s=!0,n.addClass(t,"pswp--dragging"))}),St("pointerUp",r),e||a()},handleMouseWheel:function(t){if(b<=o.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Jt||V?t.preventDefault():D&&Math.abs(t.deltaY)>2&&(u=!0,o.close())),!0;if(t.stopPropagation(),vi.x=0,"deltaX"in t)1===t.deltaMode?(vi.x=18*t.deltaX,vi.y=18*t.deltaY):(vi.x=t.deltaX,vi.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(vi.x=-.16*t.wheelDeltaX),t.wheelDeltaY?vi.y=-.16*t.wheelDeltaY:vi.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;vi.y=t.detail}qt(b,!0);var e=mt.x-vi.x,i=mt.y-vi.y;(l.modal||e<=st.min.x&&e>=st.max.x&&i<=st.min.y&&i>=st.max.y)&&t.preventDefault(),o.panTo(e,i)},toggleDesktopZoom:function(e){e=e||{x:gt.x/2+bt.x,y:gt.y/2+bt.y};var i=l.getDoubleTapZoom(!0,o.currItem),s=b===i;o.mouseZoomedIn=!s,o.zoomTo(s?o.currItem.initialZoomLevel:i,e,333),n[(s?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}});var bi,yi,wi,_i,xi,Ci,ki,ji,$i,Ti,Si,Ii,Di={history:!0,galleryUID:1},Pi=function(){return Si.hash.substring(1)},Mi=function(){bi&&clearTimeout(bi),wi&&clearTimeout(wi)},zi=function(){var t=Pi(),e={};if(t.length<5)return e;var i,s=t.split("&");for(i=0;i<s.length;i++)if(s[i]){var n=s[i].split("=");n.length<2||(e[n[0]]=n[1])}if(l.galleryPIDs){var o=e.pid;for(e.pid=0,i=0;i<Qe.length;i++)if(Qe[i].pid===o){e.pid=i;break}}else e.pid=parseInt(e.pid,10)-1;return e.pid<0&&(e.pid=0),e},Ai=function(){if(wi&&clearTimeout(wi),Jt||V)return void(wi=setTimeout(Ai,500));_i?clearTimeout(yi):_i=!0;var t=h+1,e=Je(h);e.hasOwnProperty("pid")&&(t=e.pid);var i=ki+"&gid="+l.galleryUID+"&pid="+t;ji||-1===Si.hash.indexOf(i)&&(Ti=!0);var s=Si.href.split("#")[0]+"#"+i;Ii?"#"+i!==window.location.hash&&history[ji?"replaceState":"pushState"]("",document.title,s):ji?Si.replace(s):Si.hash=i,ji=!0,yi=setTimeout(function(){_i=!1},60)};jt("History",{publicMethods:{initHistory:function(){if(n.extend(l,Di,!0),l.history){Si=window.location,Ti=!1,$i=!1,ji=!1,ki=Pi(),Ii="pushState"in history,ki.indexOf("gid=")>-1&&(ki=ki.split("&gid=")[0],ki=ki.split("?gid=")[0]),St("afterChange",o.updateURL),St("unbindEvents",function(){n.unbind(window,"hashchange",o.onHashChange)});var t=function(){Ci=!0,$i||(Ti?history.back():ki?Si.hash=ki:Ii?history.pushState("",document.title,Si.pathname+Si.search):Si.hash=""),Mi()};St("unbindEvents",function(){u&&t()}),St("destroy",function(){Ci||t()}),St("firstUpdate",function(){h=zi().pid});var e=ki.indexOf("pid=");e>-1&&(ki=ki.substring(0,e),"&"===ki.slice(-1)&&(ki=ki.slice(0,-1))),setTimeout(function(){c&&n.bind(window,"hashchange",o.onHashChange)},40)}},onHashChange:function(){return Pi()===ki?($i=!0,void o.close()):void(_i||(xi=!0,o.goTo(zi().pid),xi=!1))},updateURL:function(){Mi(),xi||(ji?bi=setTimeout(Ai,800):Ai())}}}),n.extend(o,ne)}}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipeUI_Default=e()}(this,function(){"use strict";return function(t,e){var i,s,n,o,a,r,l,c,d,u,h,p,f,m,g,v,b,y,w,_=this,x=!1,C=!0,k=!0,j={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl
1:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return t.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return t.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},$=function(t){if(v)return!0;t=t||window.event,g.timeToIdle&&g.mouseUsed&&!d&&O();for(var i,s,n=t.target||t.srcElement,o=n.getAttribute("class")||"",a=0;a<q.length;a++)i=q[a],i.onTap&&o.indexOf("pswp__"+i.name)>-1&&(i.onTap(),s=!0);if(s){t.stopPropagation&&t.stopPropagation(),v=!0;var r=e.features.isOldAndroid?600:30;b=setTimeout(function(){v=!1},r)}},T=function(){return!t.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},S=function(t,i,s){e[(s?"add":"remove")+"Class"](t,"pswp__"+i)},I=function(){var t=1===g.getNumItemsFn();t!==m&&(S(s,"ui--one-slide",t),m=t)},D=function(){S(l,"share-modal--hidden",k)},P=function(){return k=!k,k?(e.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){k&&D()},300)):(D(),setTimeout(function(){k||e.addClass(l,"pswp__share-modal--fade-in")},30)),k||z(),!1},M=function(e){e=e||window.event;var i=e.target||e.srcElement;return t.shout("shareLinkClick",e,i),!!i.href&&(!!i.hasAttribute("download")||(window.open(i.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),k||P(),!1))},z=function(){for(var t,e,i,s,n,o="",a=0;a<g.shareButtons.length;a++)t=g.shareButtons[a],i=g.getImageURLForShare(t),s=g.getPageURLForShare(t),n=g.getTextForShare(t),e=t.url.replace("{{url}}",encodeURIComponent(s)).replace("{{image_url}}",encodeURIComponent(i)).replace("{{raw_image_url}}",i).replace("{{text}}",encodeURIComponent(n)),o+='<a href="'+e+'" target="_blank" class="pswp__share--'+t.id+'"'+(t.download?"download":"")+">"+t.label+"</a>",g.parseShareButtonOut&&(o=g.parseShareButtonOut(t,o));l.children[0].innerHTML=o,l.children[0].onclick=M},A=function(t){for(var i=0;i<g.closeElClasses.length;i++)if(e.hasClass(t,"pswp__"+g.closeElClasses[i]))return!0},E=0,O=function(){clearTimeout(w),E=0,d&&_.setIdle(!1)},F=function(t){t=t||window.event;var e=t.relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(w),w=setTimeout(function(){_.setIdle(!0)},g.timeToIdleOutside))},L=function(){g.fullscreenEl&&!e.features.isOldAndroid&&(i||(i=_.getFullscreenAPI()),i?(e.bind(document,i.eventK,_.updateFullscreen),_.updateFullscreen(),e.addClass(t.template,"pswp--supports-fs")):e.removeClass(t.template,"pswp--supports-fs"))},N=function(){g.preloaderEl&&(H(!0),u("beforeChange",function(){clearTimeout(f),f=setTimeout(function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&H(!1):H(!0)},g.loadingIndicatorDelay)}),u("imageLoadComplete",function(e,i){t.currItem===i&&H(!0)}))},H=function(t){p!==t&&(S(h,"preloader--active",!t),p=t)},W=function(t){var i=t.vGap;if(T()){var a=g.barsSize;if(g.captionEl&&"auto"===a.bottom)if(o||(o=e.createEl("pswp__caption pswp__caption--fake"),o.appendChild(e.createEl("pswp__caption__center")),s.insertBefore(o,n),e.addClass(s,"pswp__ui--fit")),g.addCaptionHTMLFn(t,o,!0)){var r=o.clientHeight;i.bottom=parseInt(r,10)||44}else i.bottom=a.top;else i.bottom="auto"===a.bottom?0:a.bottom;i.top=a.top}else i.top=i.bottom=0},R=function(){g.timeToIdle&&u("mouseUsed",function(){e.bind(document,"mousemove",O),e.bind(document,"mouseout",F),y=setInterval(function(){2===++E&&_.setIdle(!0)},g.timeToIdle/2)})},B=function(){u("onVerticalDrag",function(t){C&&t<.95?_.hideControls():!C&&t>=.95&&_.showControls()});var t;u("onPinchClose",function(e){C&&e<.9?(_.hideControls(),t=!0):t&&!C&&e>.9&&_.showControls()}),u("zoomGestureEnded",function(){(t=!1)&&!C&&_.showControls()})},q=[{name:"caption",option:"captionEl",onInit:function(t){n=t}},{name:"share-modal",option:"shareEl",onInit:function(t){l=t},onTap:function(){P()}},{name:"button--share",option:"shareEl",onInit:function(t){r=t},onTap:function(){P()}}
1,{name:"button--zoom",option:"zoomEl",onTap:t.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){a=t}},{name:"button--close",option:"closeEl",onTap:t.close},{name:"button--arrow--left",option:"arrowEl",onTap:t.prev},{name:"button--arrow--right",option:"arrowEl",onTap:t.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){i.isFullscreen()?i.exit():i.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){h=t}}],Y=function(){var t,i,n,o=function(s){if(s)for(var o=s.length,a=0;a<o;a++){t=s[a],i=t.className;for(var r=0;r<q.length;r++)n=q[r],i.indexOf("pswp__"+n.name)>-1&&(g[n.option]?(e.removeClass(t,"pswp__element--disabled"),n.onInit&&n.onInit(t)):e.addClass(t,"pswp__element--disabled"))}};o(s.children);var a=e.getChildByClass(s,"pswp__top-bar");a&&o(a.children)};_.init=function(){e.extend(t.options,j,!0),g=t.options,s=e.getChildByClass(t.scrollWrap,"pswp__ui"),u=t.listen,B(),u("beforeChange",_.update),u("doubleTap",function(e){var i=t.currItem.initialZoomLevel;t.getZoomLevel()!==i?t.zoomTo(i,e,333):t.zoomTo(g.getDoubleTapZoom(!1,t.currItem),e,333)}),u("preventDragEvent",function(t,e,i){var s=t.target||t.srcElement;s&&s.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(s.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(s.tagName))&&(i.prevent=!1)}),u("bindEvents",function(){e.bind(s,"pswpTap click",$),e.bind(t.scrollWrap,"pswpTap",_.onGlobalTap),t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",_.onMouseOver)}),u("unbindEvents",function(){k||P(),y&&clearInterval(y),e.unbind(document,"mouseout",F),e.unbind(document,"mousemove",O),e.unbind(s,"pswpTap click",$),e.unbind(t.scrollWrap,"pswpTap",_.onGlobalTap),e.unbind(t.scrollWrap,"mouseover",_.onMouseOver),i&&(e.unbind(document,i.eventK,_.updateFullscreen),i.isFullscreen()&&(g.hideAnimationDuration=0,i.exit()),i=null)}),u("destroy",function(){g.captionEl&&(o&&s.removeChild(o),e.removeClass(n,"pswp__caption--empty")),l&&(l.children[0].onclick=null),e.removeClass(s,"pswp__ui--over-close"),e.addClass(s,"pswp__ui--hidden"),_.setIdle(!1)}),g.showAnimationDuration||e.removeClass(s,"pswp__ui--hidden"),u("initialZoomIn",function(){g.showAnimationDuration&&e.removeClass(s,"pswp__ui--hidden")}),u("initialZoomOut",function(){e.addClass(s,"pswp__ui--hidden")}),u("parseVerticalMargin",W),Y(),g.shareEl&&r&&l&&(k=!0),I(),R(),L(),N()},_.setIdle=function(t){d=t,S(s,"ui--idle",t)},_.update=function(){C&&t.currItem?(_.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(t.currItem,n),S(n,"caption--empty",!t.currItem.title)),x=!0):x=!1,k||P(),I()},_.updateFullscreen=function(s){s&&setTimeout(function(){t.setScrollOffset(0,e.getScrollY())},50),e[(i.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")},_.updateIndexIndicator=function(){g.counterEl&&(a.innerHTML=t.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},_.onGlobalTap=function(i){i=i||window.event;var s=i.target||i.srcElement;if(!v)if(i.detail&&"mouse"===i.detail.pointerType){if(A(s))return void t.close();e.hasClass(s,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()<=t.currItem.fitRatio?g.clickToCloseNonZoomable&&t.close():t.toggleDesktopZoom(i.detail.releasePoint))}else if(g.tapToToggleControls&&(C?_.hideControls():_.showControls()),g.tapToClose&&(e.hasClass(s,"pswp__img")||A(s)))return void t.close()},_.onMouseOver=function(t){t=t||window.event;var e=t.target||t.srcElement;S(s,"ui--over-close",A(e))},_.hideControls=function(){e.addClass(s,"pswp__ui--hidden"),C=!1},_.showControls=function(){C=!0,x||_.update(),e.removeClass(s,"pswp__ui--hidden")},_.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},_.getFullscreenAPI=function(){var e,i=document.documentElement,s="fullscreenchange";return i.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:s}:i.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+s}:i.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+s}:i.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(c=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return t.template[this.enterK]();t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return g.closeOnScroll=c,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}}),function(t,e){"use strict";function i(i,s,o,r,l){function c(){k=t.devicePixelRatio>1,o=d(o),s.delay>=0&&setTimeout(function(){u(!0)}
vendor: 4,748 bytes, line 1
1,s.delay),(s.delay<0||s.combined)&&(r.e=b(s.throttle,function(t){"resize"===t.type&&(x=C=-1),u(t.all)}),r.a=function(t){t=d(t),o.push.apply(o,t)},r.g=function(){return o=n(o).filter(function(){return!n(this).data(s.loadedName)})},r.f=function(t){for(var e=0;e<t.length;e++){var i=o.filter(function(){return this===t[e]});i.length&&u(!1,i)}},u(),n(s.appendScroll).on("scroll."+l+" resize."+l,r.e))}function d(t){var o=s.defaultImage,a=s.placeholder,r=s.imageBase,l=s.srcsetAttribute,c=s.loaderAttribute,d=s._f||{};t=n(t).filter(function(){var t=n(this),i=g(this);return!t.data(s.handledName)&&(t.attr(s.attribute)||t.attr(l)||t.attr(c)||d[i]!==e)}).data("plugin_"+s.name,i);for(var u=0,h=t.length;u<h;u++){var p=n(t[u]),f=g(t[u]),m=p.attr(s.imageBaseAttribute)||r;f===S&&m&&p.attr(l)&&p.attr(l,v(p.attr(l),m)),d[f]===e||p.attr(c)||p.attr(c,d[f]),f===S&&o&&!p.attr(I)?p.attr(I,o):f===S||!a||p.css(M)&&"none"!==p.css(M)||p.css(M,"url('"+a+"')")}return t}function u(t,e){if(!o.length)return void(s.autoDestroy&&i.destroy());for(var a=e||o,r=!1,l=s.imageBase||"",c=s.srcsetAttribute,d=s.handledName,u=0;u<a.length;u++)if(t||e||p(a[u])){var f=n(a[u]),m=g(a[u]),v=f.attr(s.attribute),b=f.attr(s.imageBaseAttribute)||l,y=f.attr(s.loaderAttribute);f.data(d)||s.visibleOnly&&!f.is(":visible")||!((v||f.attr(c))&&(m===S&&(b+v!==f.attr(I)||f.attr(c)!==f.attr(D))||m!==S&&b+v!==f.css(M))||y)||(r=!0,f.data(d,!0),h(f,m,b,y))}r&&(o=n(o).filter(function(){return!n(this).data(d)}))}function h(t,e,i,o){++_;var a=function(){w("onError",t),y(),a=n.noop};w("beforeLoad",t);var r=s.attribute,l=s.srcsetAttribute,c=s.sizesAttribute,d=s.retinaAttribute,u=s.removeAttribute,h=s.loadedName,p=t.attr(d);if(o){var f=function(){u&&t.removeAttr(s.loaderAttribute),t.data(h,!0),w(j,t),setTimeout(y,1),f=n.noop};t.off(T).one(T,a).one($,f),w(o,t,function(e){e?(t.off($),f()):(t.off(T),a())})||t.trigger(T)}else{var m=n(new Image);m.one(T,a).one($,function(){t.hide(),e===S?t.attr(P,m.attr(P)).attr(D,m.attr(D)).attr(I,m.attr(I)):t.css(M,"url('"+m.attr(I)+"')"),t[s.effect](s.effectTime),u&&(t.removeAttr(r+" "+l+" "+d+" "+s.imageBaseAttribute),c!==P&&t.removeAttr(c)),t.data(h,!0),w(j,t),m.remove(),y()});var g=(k&&p?p:t.attr(r))||"";m.attr(P,t.attr(c)).attr(D,t.attr(l)).attr(I,g?i+g:null),m.complete&&m.trigger($)}}function p(t){var e=t.getBoundingClientRect(),i=s.scrollDirection,n=s.threshold,o=m()+n>e.top&&-n<e.bottom,a=f()+n>e.left&&-n<e.right;return"vertical"===i?o:"horizontal"===i?a:o&&a}function f(){return x>=0?x:x=n(t).width()}function m(){return C>=0?C:C=n(t).height()}function g(t){return t.tagName.toLowerCase()}function v(t,e){if(e){var i=t.split(",");t="";for(var s=0,n=i.length;s<n;s++)t+=e+i[s].trim()+(s!==n-1?",":"")}return t}function b(t,e){var n,o=0;return function(a,r){function l(){o=+new Date,e.call(i,a)}var c=+new Date-o;n&&clearTimeout(n),c>t||!s.enableThrottle||r?l():n=setTimeout(l,t-c)}}function y(){--_,o.length||_||w("onFinishedAll")}function w(t,e,n){return!!(t=s[t])&&(t.apply(i,[].slice.call(arguments,1)),!0)}var _=0,x=-1,C=-1,k=!1,j="afterLoad",$="load",T="error",S="img",I="src",D="srcset",P="sizes",M="background-image";"event"===s.bind||a?c():n(t).on($+"."+l,c)}function s(s,a){var r=this,l=n.extend({},r.config,a),c={},d=l.name+"-"+ ++o;return r.config=function(t,i){return i===e?l[t]:(l[t]=i,r)},r.addItems=function(t){return c.a&&c.a("string"===n.type(t)?n(t):t),r},r.getItems=function(){return c.g?c.g():{}},r.update=function(t){return c.e&&c.e({},!t),r},r.force=function(t){return c.f&&c.f("string"===n.type(t)?n(t):t),r},r.loadAll=function(){return c.e&&c.e({all:!0},!0),r},r.destroy=function(){return n(l.appendScroll).off("."+d,c.e),n(t).off("."+d),c={},e},i(r,l,s,c,d),l.chainable?s:r}var n=t.jQuery||t.Zepto,o=0,a=!1;n.fn.Lazy=n.fn.lazy=function(t){return new s(this,t)},n.Lazy=n.lazy=function(t,i,o){if(n.isFunction(i)&&(o=i,i=[]),n.isFunction(o)){t=n.isArray(t)?t:[t],i=n.isArray(i)?i:[i];for(var a=s.prototype.config,r=a._f||(a._f={}),l=0,c=t.length;l<c;l++)(a[t[l]]===e||n.isFunction(a[t[l]]))&&(a[t[l]]=o);for(var d=0,u=i.length;d<u;d++)r[i[d]]=t[0]}},s.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){a=!0})}
vendor: 8,456 bytes, line 1
1(window),function(t,e,i,s){"use strict";function n(t,e,i){return setTimeout(c(t,i),e)}function o(t,e,i){return!!Array.isArray(t)&&(a(t,i[e],i),!0)}function a(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==s)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function r(e,i,s){var n="DEPRECATED METHOD: "+i+"\n"+s+" AT \n";return function(){var i=new Error("get-stack-trace"),s=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,n,s),e.apply(this,arguments)}}function l(t,e,i){var s,n=e.prototype;s=t.prototype=Object.create(n),s.constructor=t,s._super=n,i&&ut(s,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==ft?t.apply(e?e[0]||s:s,e):t}function u(t,e){return t===s?e:t}function h(t,e,i){a(g(e),function(e){t.addEventListener(e,i,!1)})}function p(t,e,i){a(g(e),function(e){t.removeEventListener(e,i,!1)})}function f(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function v(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var s=0;s<t.length;){if(i&&t[s][i]==e||!i&&t[s]===e)return s;s++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function y(t,e,i){for(var s=[],n=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];v(n,a)<0&&s.push(t[o]),n[o]=a,o++}return i&&(s=e?s.sort(function(t,i){return t[e]>i[e]}):s.sort()),s}function w(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),a=0;a<ht.length;){if(i=ht[a],(n=i?i+o:e)in t)return n;a++}return s}function _(){return wt++}function x(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}function C(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&i.handler(e)},this.init()}function k(t){var e=t.options.inputClass;return new(e||(Ct?L:kt?W:xt?B:F))(t,j)}function j(t,e,i){var s=i.pointers.length,n=i.changedPointers.length,o=e&Dt&&s-n==0,a=e&(Mt|zt)&&s-n==0;i.isFirst=!!o,i.isFinal=!!a,o&&(t.session={}),i.eventType=e,$(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function $(t,e){var i=t.session,s=e.pointers,n=s.length;i.firstInput||(i.firstInput=I(e)),n>1&&!i.firstMultiple?i.firstMultiple=I(e):1===n&&(i.firstMultiple=!1);var o=i.firstInput,a=i.firstMultiple,r=a?a.center:o.center,l=e.center=D(s);e.timeStamp=vt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=A(r,l),e.distance=z(r,l),T(i,e),e.offsetDirection=M(e.deltaX,e.deltaY);var c=P(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=gt(c.x)>gt(c.y)?c.x:c.y,e.scale=a?O(a.pointers,s):1,e.rotation=a?E(a.pointers,s):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,S(i,e);var d=t.element;f(e.srcEvent.target,d)&&(d=e.srcEvent.target),e.target=d}function T(t,e){var i=e.center,s=t.offsetDelta||{},n=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Dt&&o.eventType!==Mt||(n=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},s=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-s.x),e.deltaY=n.y+(i.y-s.y)}function S(t,e){var i,n,o,a,r=t.lastInterval||e,l=e.timeStamp-r.timeStamp;if(e.eventType!=zt&&(l>It||r.velocity===s)){var c=e.deltaX-r.deltaX,d=e.deltaY-r.deltaY,u=P(l,c,d);n=u.x,o=u.y,i=gt(u.x)>gt(u.y)?u.x:u.y,a=M(c,d),t.lastInterval=e}else i=r.velocity,n=r.velocityX,o=r.velocityY,a=r.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=a}function I(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:mt(t.pointers[i].clientX),clientY:mt(t.pointers[i].clientY)},i++;return{timeStamp:vt(),pointers:e,center:D(e),deltaX:t.deltaX,deltaY:t.deltaY}}function D(t){var e=t.length;if(1===e)return{x:mt(t[0].clientX),y:mt(t[0].clientY)};for(var i=0,s=0,n=0;n<e;)i+=t[n].clientX,s+=t[n].clientY,n++;return{x:mt(i/e),y:mt(s/e)}}function P(t,e,i){return{x:e/t||0,y:i/t||0}}function M(t,e){return t===e?At:gt(t)>=gt(e)?t<0?Et:Ot:e<0?Ft:Lt}function z(t,e,i){i||(i=Rt);var s=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return Math.sqrt(s*s+n*n)}function A(t,e,i){i||(i=Rt);var s=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return 180*Math.atan2(n,s)/Math.PI}function E(t,e){return A(e[1],e[0],Bt)+A(t[1],t[0],Bt)}function O(t,e){return z(e[0],e[1],Bt)/z(t[0],t[1],Bt)}function F(){this.evEl=Yt,this.evWin=Ut,this.pressed=!1,C.apply(this,arguments)}function L(){this.evEl=Kt,this.evWin=Qt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=Xt,this.evWin=Jt,this.started=!1,C.apply(this,arguments)}function H(t,e){var i=b(t.touches),s=b(t.changedTouches);return e&(Mt|zt)&&(i=y(i.concat(s),"identifier",!0)),[i,s]}function W(){this.evTarget=ee,this.targetIds={},C.apply(this,arguments)}function R(t,e){var i=b(t.touches),s=this.targetIds;if(e&(Dt|Pt)&&1===i.length)return s[i[0].identifier]=!0,[i,i];var n,o,a=b(t.changedTouches),r=[],l=this.target;if(o=i.filter(function(t){return f(t.target,l)}),e===Dt)for(n=0;n<o.length;)s[o[n].identifier]=!0,n++;for(n=0;n<a.length;)s[a[n].identifier]&&r.push(a[n]),e&(Mt|zt)&&delete s[a[n].identifier],n++;return r.length?[y(o.concat(r),"identifier",!0),r]:void 0}function B(){C.apply(this,arguments);var t=c(this.handler,this);this.touch=new W(this.manager,t),this.mouse=new F(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function q(t,e){t&Dt?(this.primaryTouch=e.changedPointers[0].identifier,Y.call(this,e)):t&(Mt|zt)&&Y.call(this,e)}function Y(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var s=this.lastTouches,n=function(){var t=s.indexOf(i);t>-1&&s.splice(t,1)};setTimeout(n,ie)}}function U(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,s=0;s<this.lastTouches.length;s++){var n=this.lastTouches[s],o=Math.abs(e-n.x),a=Math.abs(i-n.y);if(o<=se&&a<=se)return!0}return!1}function V(t,e){this.manager=t,this.set(e)}function Z(t){if(m(t,ce))return ce;var e=m(t,de),i=m(t,ue);return e&&i?ce:e||i?e?de:ue:m(t,le)?le:re}function K(){if(!oe)return!1;var e={},i=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(s){e[s]=!i||t.CSS.supports("touch-action",s)}),e}function Q(t){this.options=ut({},this.defaults,t||{}),this.id=_(),this.manager=null,this.options.enable=u(this.options.enable,!0),this.state=pe,this.simultaneous={},this.requireFail=[]}function G(t){return t&be?"cancel":t&ge?"end":t&me?"move":t&fe?"start":""}function X(t){return t==Lt?"down":t==Ft?"up":t==Et?"left":t==Ot?"right":""}function J(t,e){var i=e.manager;return i?i.get(t):t}function tt(){Q.apply(this,arguments)}function et(){tt.apply(this,arguments),this.pX=null,this.pY=null}function it(){tt.apply(this,arguments)}function st(){Q.apply(this,arguments),this._timer=null,this._input=null}function nt(){tt.apply(this,arguments)}function ot(){tt.apply(this,arguments)}function at(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function rt(t,e){return e=e||{},e.recognizers=u(e.recognizers,rt.defaults.preset),new lt(t,e)}function lt(t,e){this.options=ut({},rt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=k(this),this.touchAction=new V(this,this.options.touchAction),ct(this,!0),a(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ct(t,e){var i=t.element;if(i.style){var s;a(t.options.cssProps,function(n,o){s=w(i.style,o),e?(t.oldCssProps[s]=i.style[s],i.style[s]=n):i.style[s]=t.oldCssProps[s]||""}),e||(t.oldCssProps={})}}function dt(t,i){var s=e.createEvent("Event");s.initEvent(t,!0,!0),s.gesture=i,i.target.dispatchEvent(s)}var ut,ht=["","webkit","Moz","MS","ms","o"],pt=e.createElement("div"),ft="function",mt=Math.round,gt=Math.abs,vt=Date.now;ut="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==s&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;
vendor: 4,875 bytes, line 1
1var bt=r(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&t[n[o]]===s)&&(t[n[o]]=e[n[o]]),o++;return t},"extend","Use `assign`."),yt=r(function(t,e){return bt(t,e,!0)},"merge","Use `assign`."),wt=1,_t=/mobile|tablet|ip(ad|hone|od)|android/i,xt="ontouchstart"in t,Ct=w(t,"PointerEvent")!==s,kt=xt&&_t.test(navigator.userAgent),jt="touch",$t="pen",Tt="mouse",St="kinect",It=25,Dt=1,Pt=2,Mt=4,zt=8,At=1,Et=2,Ot=4,Ft=8,Lt=16,Nt=Et|Ot,Ht=Ft|Lt,Wt=Nt|Ht,Rt=["x","y"],Bt=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(x(this.element),this.evWin,this.domHandler)}};var qt={mousedown:Dt,mousemove:Pt,mouseup:Mt},Yt="mousedown",Ut="mousemove mouseup";l(F,C,{handler:function(t){var e=qt[t.type];e&Dt&&0===t.button&&(this.pressed=!0),e&Pt&&1!==t.which&&(e=Mt),this.pressed&&(e&Mt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Tt,srcEvent:t}))}});var Vt={pointerdown:Dt,pointermove:Pt,pointerup:Mt,pointercancel:zt,pointerout:zt},Zt={2:jt,3:$t,4:Tt,5:St},Kt="pointerdown",Qt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Kt="MSPointerDown",Qt="MSPointerMove MSPointerUp MSPointerCancel"),l(L,C,{handler:function(t){var e=this.store,i=!1,s=t.type.toLowerCase().replace("ms",""),n=Vt[s],o=Zt[t.pointerType]||t.pointerType,a=o==jt,r=v(e,t.pointerId,"pointerId");n&Dt&&(0===t.button||a)?r<0&&(e.push(t),r=e.length-1):n&(Mt|zt)&&(i=!0),r<0||(e[r]=t,this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(r,1))}});var Gt={touchstart:Dt,touchmove:Pt,touchend:Mt,touchcancel:zt},Xt="touchstart",Jt="touchstart touchmove touchend touchcancel";l(N,C,{handler:function(t){var e=Gt[t.type];if(e===Dt&&(this.started=!0),this.started){var i=H.call(this,t,e);e&(Mt|zt)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:jt,srcEvent:t})}}});var te={touchstart:Dt,touchmove:Pt,touchend:Mt,touchcancel:zt},ee="touchstart touchmove touchend touchcancel";l(W,C,{handler:function(t){var e=te[t.type],i=R.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:jt,srcEvent:t})}});var ie=2500,se=25;l(B,C,{handler:function(t,e,i){var s=i.pointerType==jt,n=i.pointerType==Tt;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(s)q.call(this,e,i);else if(n&&U.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ne=w(pt.style,"touchAction"),oe=ne!==s,ae="compute",re="auto",le="manipulation",ce="none",de="pan-x",ue="pan-y",he=K();V.prototype={set:function(t){t==ae&&(t=this.compute()),oe&&this.manager.element.style&&he[t]&&(this.manager.element.style[ne]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return a(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Z(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var s=this.actions,n=m(s,ce)&&!he[ce],o=m(s,ue)&&!he[ue],a=m(s,de)&&!he[de];if(n){var r=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(r&&l&&c)return}return a&&o?void 0:n||o&&i&Nt||a&&i&Ht?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var pe=1,fe=2,me=4,ge=8,ve=ge,be=16,ye=32;Q.prototype={defaults:{},set:function(t){return ut(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=J(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)?this:(t=J(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return t=J(t,this),-1===v(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=J(t,this);var e=v(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,s=this.state;s<ge&&e(i.options.event+G(s)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),s>=ge&&e(i.options.event+G(s))}
1,tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=ye},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(ye|pe)))return!1;t++}return!0},recognize:function(t){var e=ut({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=ye);this.state&(ve|be|ye)&&(this.state=pe),this.state=this.process(e),this.state&(fe|me|ge|be)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},l(tt,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,s=e&(fe|me),n=this.attrTest(t);return s&&(i&zt||!n)?e|be:s||n?i&Mt?e|ge:e&fe?e|me:fe:ye}}),l(et,tt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Wt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Nt&&e.push(ue),t&Ht&&e.push(de),e},directionTest:function(t){var e=this.options,i=!0,s=t.distance,n=t.direction,o=t.deltaX,a=t.deltaY;return n&e.direction||(e.direction&Nt?(n=0===o?At:o<0?Et:Ot,i=o!=this.pX,s=Math.abs(t.deltaX)):(n=0===a?At:a<0?Ft:Lt,i=a!=this.pY,s=Math.abs(t.deltaY))),t.direction=n,i&&s>e.threshold&&n&e.direction},attrTest:function(t){return tt.prototype.attrTest.call(this,t)&&(this.state&fe||!(this.state&fe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=X(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),l(it,tt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ce]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&fe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),l(st,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[re]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,s=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!s||!i||t.eventType&(Mt|zt)&&!o)this.reset();else if(t.eventType&Dt)this.reset(),this._timer=n(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Mt)return ve;return ye},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Mt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=vt(),this.manager.emit(this.options.event,this._input)))}}),l(nt,tt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ce]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&fe)}}),l(ot,tt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Ht,pointers:1},getTouchAction:function(){return et.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Nt|Ht)?e=t.overallVelocity:i&Nt?e=t.overallVelocityX:i&Ht&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&>(e)>this.options.velocity&&t.eventType&Mt},emit:function(t){var e=X(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),l(at,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[le]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,s=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&Dt&&0===this.count)return this.failTimeout();if(s&&o&&i){if(t.eventType!=Mt)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<e.interval,r=!this.pCenter||z(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,r&&a?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=n(function(){this.state=ve,this.tryEmit()},e.interval,this),fe):ve}return ye},failTimeout:function(){return this._timer=n(function(){this.state=ye},this.options.interval,this),ye},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),rt.VERSION="2.0.7",rt.defaults={domEvents:!1,touchAction:ae,enable:!0,inputTarget:null,inputClass:null,preset:[[nt,{enable:!1}],[it,{enable:!1},["rotate"]],[ot,{direction:Nt}],[et,{direction:Nt},["swipe"]],[at],[at,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var we=2;lt.prototype={set:function(t){return ut(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?we:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,s=this.recognizers,n=e.curRecognizer;(!n||n&&n.state&ve)&&(n=e.curRecognizer=null);for(var o=0;o<s.length;)i=s[o],e.stopped===we||n&&i!=n&&!i.canRecognizeWith(n)?i.reset():i.recognize(t),!n&&i.state&(fe|me|ge)&&(n=e.curRecognizer=i),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=v(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var i=this.handlers;return a(g(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==s){var i=this.handlers;return a(g(t),function(t){e?i[t]&&i[t].splice(v(i[t],e),1):delete i[t]}),this}},emit:function(t,e){this.options.domEvents&&dt(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var s=0;s<i.length;)i[s](e),s++}},destroy:function(){this.element&&ct(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ut(rt,{INPUT_START:Dt,INPUT_MOVE:Pt,INPUT_END:Mt,INPUT_CANCEL:zt,STATE_POSSIBLE:pe,STATE_BEGAN:fe,STATE_CHANGED:me,STATE_ENDED:ge,STATE_RECOGNIZED:ve,STATE_CANCELLED:be,STATE_FAILED:ye,DIRECTION_NONE:At,DIRECTION_LEFT:Et,DIRECTION_RIGHT:Ot,DIRECTION_UP:Ft,DIRECTION_DOWN:Lt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Ht,DIRECTION_ALL:Wt,Manager:lt,Input:C,TouchAction:V,TouchInput:W,MouseInput:F,PointerEventInput:L,TouchMouseInput:B,SingleTouchInput:N,Recognizer:Q,AttrRecognizer:tt,Tap:at,Pan:et,Swipe:ot,Pinch:it,Rotate:nt,Press:st,on:h,off:p,each:a,merge:yt,extend:bt,assign:ut,inherit:l,bindFn:c,prefixed:w}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=rt,"function"==typeof define&&define.amd?define(function(){return rt}):"undefined"!=typeof module&&module.exports?module.exports=rt:t[i]=rt}(window,document,"Hammer"),function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(t,e){function i(i,s){var n=t(i);n.data("hammer")||n.data("hammer",new e(n[0],s))}t.fn.hammer=function(t){return this.each(function(){i(this,t)})},e.Manager.prototype.emit=function(e){return function(i,s){e.call(this,i,s),t(this.element).trigger({type:i,gesture:s})}}(e.Manager.prototype.emit)}),function(t){t.fn.lazyLoad=function(e,i){function s(){null!==a.hash&&(t.isArray(a.hash)||(a.hash=[a.hash])),t.fn.lazyLoad.call(r,a.state),o()}function n(){if(a.stopped)return void(this.onscroll=null);if(!a.stopped&&!a.loading&&c(l,r)<=a.distance){if(null!==a.hash){var t=location.hash.replace(/^[^#]*#\/*/,"").split("/")[0];if(-1===a.hash.indexOf(t))return void(this.onscroll=null)}a.load()}}function o(){var t,e=350,i=setTimeout(t=function(){if(a.stopped)return void clearTimeout(i);if(null!==a.hash){var s=location.hash.replace(/^[^#]*#\/*/,"").split("/")[0];if(-1===a.hash.indexOf(s))return void clearTimeout(i)}if(a.loading)i=setTimeout(t,e);else{c(l,r);c(l,r)<=a.distance?(a.load(),i=setTimeout(t,e)):(r.get(0).onscroll=n,clearTimeout(i))}},e)}if("stop"==e){var a=this.data("lazyLoadSettings");return void(a&&(a.stopped=!0))}if("reload"==e){var a=this.data("lazyLoadSettings");return void(a&&(a.stopped=!1,a.loading=!1,this.get(0).onscroll=null,this.lazyLoad(a)))}if("sleep"==e){var a=this.data("lazyLoadSettings");return void(a&&(a.loading=!0))}if("wake"==e){var a=this.data("lazyLoadSettings");return void(a&&(a.loading=!1))}if("force"==e){var a=this.data("lazyLoadSettings");return void(a&&(a.loading||a.load()))}if("get"===e){var a=this.data("lazyLoadSettings")||{};return a[i]}this.data("lazyLoadSettings",t.extend({distance:50,load:function(){},container:l,state:"wake",hash:location.hash.replace(/^[^#]*#\/*/,"").split("/")[0]||null,distanceBetweenBottoms:null},e||{}));var a=this.data("lazyLoadSettings");a.loading=!1,a.stopped=!1;var r=t(window),l=a.container||t(this);s();var c="function"==typeof a.distanceBetweenBottoms?a.distanceBetweenBottoms:function(e,i,s){return e="string"==typeof e?t(e):e,s=s||0,e.position().top+e.outerHeight()-s-(i.scrollTop()+i.height())}}}(jQuery),function(t){function e(t,e){this.path=t,void 0!==e&&null!==e?(this.at_2x_path=e,this.perform_check=!1):(this.at_2x_path=t.replace(/\.\w+$/,function(t){return"@2x"+t}),this.perform_check=!0)}function i(i){if(!/@2x\.\w+$/.test(t(i).attr("src"))){this.el=i,this.path=new e(t(i).attr("src"),t(i).attr("data-at2x"));var s=this;this.path.check_2x_variant(function(t){t&&s.swap()})}}t.fn.retina=function(e){if(t.Retina.isRetina())return t.Retina.opts=t.extend(t.Retina.opts,e),this.each(function(){t(this).is("img")&&new i(this)})},t.Retina=function(){},t.Retina.opts={check_mime_type:!0,force_original_dimensions:!0},t.Retina.isRetina=function(){return!!(1<window.devicePixelRatio||window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)").matches)},e.confirmed_paths=[],e.prototype.is_external=function(){return!(!this.path.match(/^(https?\:|\/\/)/i)||this.path.match("//"+document.domain+"/"))},e.prototype.check_2x_variant=function(i){var s,n=this;if(this.is_external()||!this.perform_check&&void 0!==this.at_2x_path&&null!==this.at_2x_path||this.at_2x_path in e.confirmed_paths)return i(!0);s=new XMLHttpRequest,s.open("HEAD",this.at_2x_path),s.onreadystatechange=function(){if(4==s.readyState&&200<=s.status&&399>=s.status){if(t.Retina.opts.check_mime_type){var o=s.getResponseHeader("Content-Type");if(null===o||!o.match(/^image/i))return i(!1)}return e.confirmed_paths.push(n.at_2x_path),i(!0)}return i(!1)},s.send()},t.RetinaImage=i,i.prototype.swap=function(e){function i(){if(s.el.complete){t.Retina.opts.force_original_dimensions&&(s.el.setAttribute("width",s.el.offsetWidth),s.el.setAttribute("height",s.el.offsetHeight));var n=s.el.src;s.el.setAttribute("src",e),t(s.el).one("error",function(){s.el.setAttribute("src",n)})}else setTimeout(i,5)}void 0===e&&(e=this.path.at_2x_path);var s=this;i()}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof exports?require("jquery"):t.jQuery)}(this,function(t){"use strict";function e(e){if(o.webkit&&!e)return{height:0,width:0};if(!o.data.outer){var i={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};o.data.inner=t("<div>").css(t.extend({},i)),o.data.outer=t("<div>").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},i)).append(o.data.inner).appendTo("body")}return o.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(o.data.outer.offset().top-o.data.inner.offset().top||0),width:Math.ceil(o.data.outer.offset().left-o.data.inner.offset().left||0)}}function i(){var t=e(!0);return!(t.height||t.width)}function s(e){var i=t(e.currentTarget).find(".scroll-y"),s=t(e.currentTarget).find(".scroll-x");if(i.length&&i.is(":visible")){var n=e.originalEvent;return(!n.axis||n.axis!==n.HORIZONTAL_AXIS)&&!n.wheelDeltaX}if(s.length&&s.is(":visible"))return!1}var n=!1,o={data:{index:0,name:"scrollbar"},firefox:/firefox/i.test(navigator.userAgent),macosx:/mac/i.test(navigator.platform),msedge:/edge\/\d+/i.test(navigator.userAgent),msie:/(msie|trident)/i.test(navigator.userAgent),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};o.scrolls.add=function(t){this.remove(t).push(t)},o.scrolls.remove=function(e){for(;t.inArray(e,this)>=0;)this.splice(t.inArray(e,this),1);return this};var a={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,isRtl:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onFallback:null,onInit:null,onScroll:null,onUpdate:null},r=function(s){o.scroll||(o.overlay=i(),o.scroll=e(),c(),t(window).resize(function(){var t=!1;if(o.scroll&&(o.scroll.height||o.scroll.width)){var i=e();i.height===o.scroll.height&&i.width===o.scroll.width||(o.scroll=i,t=!0)}c(t)})),this.container=s,this.namespace=".scrollbar_"+o.data.index++,this.options=t.extend({},a,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},s.data(o.data.name,this),o.scrolls.add(this)};
vendor: 11,437 bytes, line 1
1r.prototype={destroy:function(){if(this.wrapper){this.container.removeData(o.data.name),o.scrolls.remove(this);var e=this.container.scrollLeft(),i=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(e).scrollTop(i),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").addBack().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").addBack().off(this.namespace),this.wrapper.remove(),t(document).add("body").off(this.namespace),t.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(e){var i=this,n=this.container,a=this.containerWrapper||n,r=this.namespace,l=t.extend(this.options,e||{}),c={x:this.scrollx,y:this.scrolly},d=this.wrapper,u={},h={scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop()};if(o.mobile&&l.ignoreMobile||o.overlay&&l.ignoreOverlay||o.macosx&&!o.webkit)return t.isFunction(l.onFallback)&&l.onFallback.apply(this,[n]),!1;if(d)u={height:"auto","margin-bottom":-1*o.scroll.height+"px","max-height":""},u[l.isRtl?"margin-left":"margin-right"]=-1*o.scroll.width+"px",a.css(u);else{if(this.wrapper=d=t("<div>").addClass("scroll-wrapper").addClass(n.attr("class")).css("position","absolute"===n.css("position")?"absolute":"relative").insertBefore(n).append(n),l.isRtl&&d.addClass("scroll--rtl"),n.is("textarea")&&(this.containerWrapper=a=t("<div>").insertBefore(n).append(n),d.addClass("scroll-textarea")),u={height:"auto","margin-bottom":-1*o.scroll.height+"px","max-height":""},u[l.isRtl?"margin-left":"margin-right"]=-1*o.scroll.width+"px",a.addClass("scroll-content").css(u),n.on("scroll"+r,function(e){var s=n.scrollLeft(),a=n.scrollTop();if(l.isRtl)switch(!0){case o.firefox:s=Math.abs(s);case o.msedge||o.msie:s=n[0].scrollWidth-n[0].clientWidth-s}t.isFunction(l.onScroll)&&l.onScroll.call(i,{maxScroll:c.y.maxScrollOffset,scroll:a,size:c.y.size,visible:c.y.visible},{maxScroll:c.x.maxScrollOffset,scroll:s,size:c.x.size,visible:c.x.visible}),c.x.isVisible&&c.x.scroll.bar.css("left",s*c.x.kx+"px"),c.y.isVisible&&c.y.scroll.bar.css("top",a*c.y.kx+"px")}),d.on("scroll"+r,function(){d.scrollTop(0).scrollLeft(0)}),l.disableBodyScroll){var p=function(t){s(t)?c.y.isVisible&&c.y.mousewheel(t):c.x.isVisible&&c.x.mousewheel(t)};d.on("MozMousePixelScroll"+r,p),d.on("mousewheel"+r,p),o.mobile&&d.on("touchstart"+r,function(e){var i=e.originalEvent.touches&&e.originalEvent.touches[0]||e,s={pageX:i.pageX,pageY:i.pageY},o={left:n.scrollLeft(),top:n.scrollTop()};t(document).on("touchmove"+r,function(t){var e=t.originalEvent.targetTouches&&t.originalEvent.targetTouches[0]||t;n.scrollLeft(o.left+s.pageX-e.pageX),n.scrollTop(o.top+s.pageY-e.pageY),t.preventDefault()}),t(document).on("touchend"+r,function(){t(document).off(r)})})}t.isFunction(l.onInit)&&l.onInit.apply(this,[n])}t.each(c,function(e,a){var d=null,u=1,h="x"===e?"scrollLeft":"scrollTop",p=l.scrollStep,f=function(){var t=n[h]();n[h](t+p),1==u&&t+p>=m&&(t=n[h]()),-1==u&&t+p<=m&&(t=n[h]()),n[h]()==t&&d&&d()},m=0;a.scroll||(a.scroll=i._getScroll(l["scroll"+e]).addClass("scroll-"+e),l.showArrows&&a.scroll.addClass("scroll-element_arrows_visible"),a.mousewheel=function(t){if(!a.isVisible||"x"===e&&s(t))return!0;if("y"===e&&!s(t))return c.x.mousewheel(t),!0;var o=-1*t.originalEvent.wheelDelta||t.originalEvent.detail,r=a.size-a.visible-a.offset;return o||("x"===e&&t.originalEvent.deltaX?o=40*t.originalEvent.deltaX:"y"===e&&t.originalEvent.deltaY&&(o=40*t.originalEvent.deltaY)),(o>0&&m<r||o<0&&m>0)&&(m+=o,m<0&&(m=0),m>r&&(m=r),i.scrollTo=i.scrollTo||{},i.scrollTo[h]=m,setTimeout(function(){i.scrollTo&&(n.stop().animate(i.scrollTo,240,"linear",function(){m=n[h]()}),i.scrollTo=null)},1)),t.preventDefault(),!1},a.scroll.on("MozMousePixelScroll"+r,a.mousewheel).on("mousewheel"+r,a.mousewheel).on("mouseenter"+r,function(){m=n[h]()}),a.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+r,function(s){if(1!=s.which)return!0;u=1;var r={eventOffset:s["x"===e?"pageX":"pageY"],maxScrollValue:a.size-a.visible-a.offset,scrollbarOffset:a.scroll.bar.offset()["x"===e?"left":"top"],scrollbarSize:a.scroll.bar["x"===e?"outerWidth":"outerHeight"]()},c=0,g=0;if(t(this).hasClass("scroll-arrow")){if(u=t(this).hasClass("scroll-arrow_more")?1:-1,p=l.scrollStep*u,m=u>0?r.maxScrollValue:0,l.isRtl)switch(!0){case o.firefox:m=u>0?0:-1*r.maxScrollValue;break;case o.msie||o.msedge:}}else u=r.eventOffset>r.scrollbarOffset+r.scrollbarSize?1:r.eventOffset<r.scrollbarOffset?-1:0,"x"===e&&l.isRtl&&(o.msie||o.msedge)&&(u*=-1),p=Math.round(.75*a.visible)*u,m=r.eventOffset-r.scrollbarOffset-(l.stepScrolling?1==u?r.scrollbarSize:0:Math.round(r.scrollbarSize/2)),m=n[h]()+m/a.kx;return i.scrollTo=i.scrollTo||{},i.scrollTo[h]=l.stepScrolling?n[h]()+p:m,l.stepScrolling&&(d=function(){m=n[h](),clearInterval(g),clearTimeout(c),c=0,g=0},c=setTimeout(function(){g=setInterval(f,40)},l.duration+100)),setTimeout(function(){i.scrollTo&&(n.animate(i.scrollTo,l.duration),i.scrollTo=null)},1),i._handleMouseDown(d,s)}),a.scroll.bar.on("mousedown"+r,function(s){if(1!=s.which)return!0;var c=s["x"===e?"pageX":"pageY"],d=n[h]();return a.scroll.addClass("scroll-draggable"),t(document).on("mousemove"+r,function(t){var i=parseInt((t["x"===e?"pageX":"pageY"]-c)/a.kx,10);"x"===e&&l.isRtl&&(o.msie||o.msedge)&&(i*=-1),n[h](d+i)}),i._handleMouseDown(function(){a.scroll.removeClass("scroll-draggable"),m=n[h]()},s)}))}),t.each(c,function(t,e){var i="scroll-scroll"+t+"_visible",s="x"==t?c.y:c.x;e.scroll.removeClass(i),s.scroll.removeClass(i),a.removeClass(i)}),t.each(c,function(e,i){t.extend(i,"x"==e?{offset:parseInt(n.css("left"),10)||0,size:n.prop("scrollWidth"),visible:d.width()}:{offset:parseInt(n.css("top"),10)||0,size:n.prop("scrollHeight"),visible:d.height()})}),this._updateScroll("x",this.scrollx),this._updateScroll("y",this.scrolly),t.isFunction(l.onUpdate)&&l.onUpdate.apply(this,[n]),t.each(c,function(t,e){var i="x"===t?"left":"top",s="x"===t?"outerWidth":"outerHeight",o="x"===t?"width":"height",a=parseInt(n.css(i),10)||0,r=e.size,c=e.visible+a,d=e.scroll.size[s]()+(parseInt(e.scroll.size.css(i),10)||0);l.autoScrollSize&&(e.scrollbarSize=parseInt(d*c/r,10),e.scroll.bar.css(o,e.scrollbarSize+"px")),e.scrollbarSize=e.scroll.bar[s](),e.kx=(d-e.scrollbarSize)/(r-c)||1,e.maxScrollOffset=r-c}),n.scrollLeft(h.scrollLeft).scrollTop(h.scrollTop).trigger("scroll")},_getScroll:function(e){var i={advanced:['<div class="scroll-element">','<div class="scroll-element_corner"></div>','<div class="scroll-arrow scroll-arrow_less"></div>','<div class="scroll-arrow scroll-arrow_more"></div>','<div class="scroll-element_outer">','<div class="scroll-element_size"></div>','<div class="scroll-element_inner-wrapper">','<div class="scroll-element_inner scroll-element_track">','<div class="scroll-element_inner-bottom"></div>',"</div>","</div>",'<div class="scroll-bar">','<div class="scroll-bar_body">','<div class="scroll-bar_body-inner"></div>',"</div>",'<div class="scroll-bar_bottom"></div>','<div class="scroll-bar_center"></div>',"</div>","</div>","</div>"].join(""),simple:['<div class="scroll-element">','<div class="scroll-element_outer">','<div class="scroll-element_size"></div>','<div class="scroll-element_track"></div>','<div class="scroll-bar"></div>',"</div>","</div>"].join("")};return i[e]&&(e=i[e]),e||(e=i.simple),e="string"==typeof e?t(e).appendTo(this.wrapper):t(e),t.extend(e,{bar:e.find(".scroll-bar"),size:e.find(".scroll-element_size"),track:e.find(".scroll-element_track")}),e},_handleMouseDown:function(e,i){var s=this.namespace;return t(document).on("blur"+s,function(){t(document).add("body").off(s),e&&e()}),t(document).on("dragstart"+s,function(t){return t.preventDefault(),!1}),t(document).on("mouseup"+s,function(){t(document).add("body").off(s),e&&e()}),t("body").on("selectstart"+s,function(t){return t.preventDefault(),!1}),i&&i.preventDefault(),!1},_updateScroll:function(e,i){var s=this.container,n=this.containerWrapper||s,a="scroll-scroll"+e+"_visible",r="x"===e?this.scrolly:this.scrollx,l=parseInt(this.container.css("x"===e?"left":"top"),10)||0,c=this.wrapper,d=i.size,u=i.visible+l;i.isVisible=d-u>1,i.isVisible?(i.scroll.addClass(a),r.scroll.addClass(a),n.addClass(a)):(i.scroll.removeClass(a),r.scroll.removeClass(a),n.removeClass(a)),"y"===e&&(s.is("textarea")||d<u?n.css({height:u+o.scroll.height+"px","max-height":"none"}):n.css({"max-height":u+o.scroll.height+"px"})),i.size==s.prop("scrollWidth")&&r.size==s.prop("scrollHeight")&&i.visible==c.width()&&r.visible==c.height()&&i.offset==(parseInt(s.css("left"),10)||0)&&r.offset==(parseInt(s.css("top"),10)||0)||(t.extend(this.scrollx,{offset:parseInt(s.css("left"),10)||0,size:s.prop("scrollWidth"),visible:c.width()}),t.extend(this.scrolly,{offset:parseInt(s.css("top"),10)||0,size:this.container.prop("scrollHeight"),visible:c.height()}),this._updateScroll("x"===e?"y":"x",r))}};var l=r;t.fn.scrollbar=function(e,i){return"string"!=typeof e&&(i=e,e="init"),void 0===i&&(i=[]),t.isArray(i)||(i=[i]),this.not("body, .scroll-wrapper").each(function(){var s=t(this),n=s.data(o.data.name);(n||"init"===e)&&(n||(n=new l(s)),n[e]&&n[e].apply(n,i))}),this},t.fn.scrollbar.options=a;var c=function(){var t=0,e=0;return function(i){var s,a,r,l,d,u,h;for(s=0;s<o.scrolls.length;s++)l=o.scrolls[s],a=l.container,r=l.options,d=l.wrapper,u=l.scrollx,h=l.scrolly,(i||r.autoUpdate&&d&&d.is(":visible")&&(a.prop("scrollWidth")!=u.size||a.prop("scrollHeight")!=h.size||d.width()!=u.visible||d.height()!=h.visible))&&(l.init(),r.debug&&(window.console&&console.log({scrollHeight:a.prop("scrollHeight")+":"+l.scrolly.size,scrollWidth:a.prop("scrollWidth")+":"+l.scrollx.size,visibleHeight:d.height()+":"+l.scrolly.visible,visibleWidth:d.width()+":"+l.scrollx.visible},!0),e++));n&&e>10?(window.console&&console.log("Scroll updates exceed 10"),c=function(){}):(clearTimeout(t),t=setTimeout(c,300))}}();window.angular&&function(t){t.module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var e=a;return{setOptions:function(i){t.extend(e,i)},$get:function(){return{options:t.copy(e)}}}}).directive("jqueryScrollbar",["jQueryScrollbar","$parse",function(t,e){return{restrict:"AC",link:function(i,s,n){var o=e(n.jqueryScrollbar),a=o(i);s.scrollbar(a||t.options).on("$destroy",function(){s.scrollbar("destroy")})}}}])}(window.angular)}),function(t){var e={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};t.zoom=function(e,i,s,n){var o,a,r,l,c,d,u,h=t(e),p=h.css("position"),f=t(i);return e.style.position=/(absolute|fixed)/.test(p)?p:"relative",e.style.overflow="hidden",s.style.width=s.style.height="",t(s).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:s.width*n,height:s.height*n,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(e),{init:function(){a=h.outerWidth(),o=h.outerHeight(),i===e?(l=a,r=o):(l=f.outerWidth(),r=f.outerHeight()),c=(s.width-a)/l,d=(s.height-o)/r,u=f.offset()},move:function(t){var e=t.pageX-u.left,i=t.pageY-u.top;i=Math.max(Math.min(i,r),0),e=Math.max(Math.min(e,l),0),s.style.left=e*-c+"px",s.style.top=i*-d+"px"}}},t.fn.zoom=function(i){return this.each(function(){var s=t.extend({},e,i||{}),n=s.target&&t(s.target)[0]||this,o=this,a=t(o),r=document.createElement("img"),l=t(r),
1c="mousemove.zoom",d=!1,u=!1;if(!s.url){var h=o.querySelector("img");if(h&&(s.url=h.getAttribute("data-src")||h.currentSrc||h.src),!s.url)return}a.one("zoom.destroy",function(t,e){a.off(".zoom"),n.style.position=t,n.style.overflow=e,r.onload=null,l.remove()}.bind(this,n.style.position,n.style.overflow)),r.onload=function(){function e(e){h.init(),h.move(e),l.stop().fadeTo(t.support.opacity?s.duration:0,1,!!t.isFunction(s.onZoomIn)&&s.onZoomIn.call(r))}function i(){l.stop().fadeTo(s.duration,0,!!t.isFunction(s.onZoomOut)&&s.onZoomOut.call(r))}var h=t.zoom(n,o,r,s.magnify);"grab"===s.on?a.on("mousedown.zoom",function(s){1===s.which&&(t(document).one("mouseup.zoom",function(){i(),t(document).off(c,h.move)}),e(s),t(document).on(c,h.move),s.preventDefault())}):"click"===s.on?a.on("click.zoom",function(s){return d?void 0:(d=!0,e(s),t(document).on(c,h.move),t(document).one("click.zoom",function(){i(),d=!1,t(document).off(c,h.move)}),!1)}):"toggle"===s.on?a.on("click.zoom",function(t){d?i():e(t),d=!d}):"mouseover"===s.on&&(h.init(),a.on("mouseenter.zoom",e).on("mouseleave.zoom",i).on(c,h.move)),s.touch&&a.on("touchstart.zoom",function(t){t.preventDefault(),u?(u=!1,i()):(u=!0,e(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(t){t.preventDefault(),h.move(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}).on("touchend.zoom",function(t){t.preventDefault(),u&&(u=!1,i())}),t.isFunction(s.callback)&&s.callback.call(r)},r.setAttribute("role","presentation"),r.alt="",r.src=s.url})},t.fn.zoom.defaults=e}(window.jQuery),window.SkOneclick||(SkOneclick=function(t){"use strict";var e=function(t){this.init(t)};return e.prototype={_config:{buttons:".js-sk-oneclick-open",cart:".js-sk-oneclick-open-cart",popup:".js-sk-oneclick-popup",block:".js-sk-oneclick-block",content:".js-sk-oneclick-content",close:".js-sk-oneclick-close",preload:".js-sk-oneclick-preload"},init:function(e){var i=this;if(i.params=t.extend({},i._config,e),i.initElements(),!i.elements.block.size())return!1;i.initButtons(),i.initCart(),i.onClose(),i.onTriggerClose(),i.onEventLoading()},initElements:function(){var e=this,i={};i.popup=t(e.params.popup),i.block=i.popup.find(e.params.block),i.content=i.popup.find(e.params.content),i.close=i.popup.find(e.params.close),i.preload=i.block.find(e.params.preload),e.elements=i},initButtons:function(){var e=this,i=e.elements;t("body").on("click",e.params.buttons,function(){var e=t(this),s=e.data("type");if(void 0===s&&"product"!=s&&"cart"!=s)return!0;i.preload.show(),i.popup.show(),t("body").addClass("_popup-open");var n={form:e.closest("form"),type:"product"};if(!n.form.size())return console.log("Form not found"),!1;i.block.trigger("event-open",n)})}
1,initCart:function(){var e=this,i=e.elements;t("body").on("click",e.params.cart,function(){var e=t(this),s=e.data("type");if(void 0===s&&"product"!=s&&"cart"!=s)return!0;i.preload.show(),i.popup.show(),t("body").addClass("_popup-open");var n={form:e.closest("form, #js-order-cart"),type:"cart"};if(!n.form.size())return console.log("ФоÑма не найдена"),!1;i.block.trigger("event-open",n)})},onClose:function(){var t=this,e=t.elements;e.close.on("click",function(){e.block.trigger("event-close"),t.closePopup()})},onTriggerClose:function(){var t=this;t.elements.block.on("run-close",function(){t.closePopup()})},closePopup:function(){var e=this,i=e.elements;i.popup.hide(),i.preload.show(),i.content.html(""),t("body").removeClass("_popup-open")},onEventLoading:function(){var t=this;t.elements.block.on("event-load",function(e,i){t.elements.preload.hide()})}},e}(jQuery)),window.SkCallback||(SkCallback=function(t){"use strict";var e=function(t){this.init(t)};return e.prototype={_config:{buttons:".js-sk-callback-open",block:".js-sk-callback-block"},init:function(e){var i=this;if(i.params=t.extend({},i._config,e),i.initElements(),!i.elements.buttons.size())return!1;i.initButtons(),i.onTriggerClose()},initElements:function(){var e=this,i={};i.buttons=t(e.params.buttons),i.block=t(e.params.block),e.elements=i},initButtons:function(){var t=this,e=t.elements.buttons,i=t.elements.block;e.size()&&e.magnificPopup({type:"inline",items:{src:".js-sk-callback-block",type:"inline"},midClick:!0,callbacks:{open:function(){t.closeCustomModals(),i.trigger("event-open")},close:function(){i.trigger("event-close")}}})},closeCustomModals:function(){t(".js-popup").hide(),t("body").removeClass("_popup-open")},onTriggerClose:function(){var e=this,i=e.elements.block;t(i).on("run-close",function(){t(this).find(".mfp-close").click()})}},e}(jQuery)),$(function(){new SkOneclick({buttons:".js-sk-oneclick-open"}),new SkCallback({buttons:".js-sk-callback-open"})}),function(t,e,i,s){i.swipebox=function(n,o){var a,r,l={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:"",thumbs:!1},c=this,d=[],u=n.selector,h=i(u),p=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),f=null!==p||e.createTouch!==s||"ontouchstart"in t||"onmsgesturechange"in t||navigator.msMaxTouchPoints,m=!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,g=t.innerWidth?t.innerWidth:i(t).width(),v=t.innerHeight?t.innerHeight:i(t).height(),b=0;c.settings={},i.swipebox.close=function(){a.closeSlide()},i.swipebox.extend=function(){return a},c.init=function(){c.settings=i.extend({},l,o),i.isArray(n)?(d=n,a.target=i(t),a.init(c.settings.initialIndexOnArray)):i(e).on("click",u,function(t){if("slide current"===t.target.parentNode.className)return!1;i.isArray(n)||(a.destroy(),r=i(u),a.actions()),d=[];var e,s,o;o||(s="data-rel",o=i(this).attr(s)),o||(s="rel",o=i(this).attr(s)),r=o&&""!==o&&"nofollow"!==o?h.filter("["+s+'="'+o+'"]'):i(u),r.each(function(){var t=null,e=null;i(this).attr("title")&&(t=i(this).attr("title")),i(this).attr("href")&&(e=i(this).attr("href")),d.push({href:e,title:t})}),e=r.index(i(this)),t.preventDefault(),t.stopPropagation(),a.target=i(t.target),a.init(e)})},a={init:function(t){c.settings.beforeOpen&&c.settings.beforeOpen(),this.target.trigger("swipebox-start"),i.swipebox.isOpen=!0,this.build(),this.openSlide(t),this.openMedia(t),this.preloadMedia(t+1),this.preloadMedia(t-1),c.settings.afterOpen&&c.settings.afterOpen()},build:function(){var t,e=this;i("body").append('<div class="js-swipebox-overlay" id="swipebox-overlay">\t\t\t\t\t<div id="swipebox-container">\t\t\t\t\t\t<div id="swipebox-slider"></div>\t\t\t\t\t\t<div id="swipebox-top-bar">\t\t\t\t\t\t\t<div id="swipebox-title"></div>\t\t\t\t\t\t</div>\t\t\t\t\t\t<div id="swipebox-bottom-bar">\t\t\t\t\t\t\t<div id="swipebox-arrows">\t\t\t\t\t\t\t\t<a id="swipebox-prev"></a>\t\t\t\t\t\t\t\t<a id="swipebox-next"></a>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t\t<a id="swipebox-close"></a>\t\t\t\t\t</div>\t\t\t</div>'),m&&!0===c.settings.useSVG&&(t=i("#swipebox-close").css("background-image"),t=t.replace("png","svg"),i("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":t})),p&&c.settings.removeBarsOnMobile&&i("#swipebox-bottom-bar, #swipebox-top-bar").remove(),i.each(d,function(t){i("#swipebox-slider").append('<div data-index="'+t+'" class="slide"></div>')}),e.setDim(),e.actions(),f&&e.gesture(),e.keyboard(),e.animBars(),e.resize()},setDim:function(){var e,s,n={};"onorientationchange"in t?t.addEventListener("orientationchange",function(){0===t.orientation?(e=g,s=v):90!==t.orientation&&-90!==t.orientation||(e=v,s=g)}
vendor: 10,581 bytes, line 1
1,!1):(e=t.innerWidth?t.innerWidth:i(t).width(),s=t.innerHeight?t.innerHeight:i(t).height()),n={width:e,height:s},i("#swipebox-overlay").css(n)},resize:function(){var e=this;i(t).resize(function(){e.setDim()}).resize()},supportTransition:function(){var t,i="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(t=0;t<i.length;t++)if(e.createElement("div").style[i[t]]!==s)return i[t];return!1},doCssTrans:function(){if(c.settings.useCSS&&this.supportTransition())return!0},gesture:function(){var t,e,s,n,o,a,r=this,l=!1,c=!1,u=10,h=50,p={},f={},m=i("#swipebox-top-bar, #swipebox-bottom-bar"),v=i("#swipebox-slider");m.addClass("visible-bars"),r.setTimeout(),i("body").bind("touchstart",function(r){return i(this).addClass("touching"),t=i("#swipebox-slider .slide").index(i("#swipebox-slider .slide.current")),f=r.originalEvent.targetTouches[0],p.pageX=r.originalEvent.targetTouches[0].pageX,p.pageY=r.originalEvent.targetTouches[0].pageY,i("#swipebox-slider").css({"-webkit-transform":"translate3d("+b+"%, 0, 0)",transform:"translate3d("+b+"%, 0, 0)"}),i(".touching").bind("touchmove",function(r){if(r.preventDefault(),r.stopPropagation(),f=r.originalEvent.targetTouches[0],!c&&(o=s,s=f.pageY-p.pageY,Math.abs(s)>=h||l)){var m=.75-Math.abs(s)/v.height();v.css({top:s+"px"}),v.css({opacity:m}),l=!0}n=e,e=f.pageX-p.pageX,a=100*e/g,!c&&!l&&Math.abs(e)>=u&&(i("#swipebox-slider").css({"-webkit-transition":"",transition:""}),c=!0),c&&(0<e?0===t?i("#swipebox-overlay").addClass("leftSpringTouch"):(i("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),i("#swipebox-slider").css({"-webkit-transform":"translate3d("+(b+a)+"%, 0, 0)",transform:"translate3d("+(b+a)+"%, 0, 0)"})):0>e&&(d.length===t+1?i("#swipebox-overlay").addClass("rightSpringTouch"):(i("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),i("#swipebox-slider").css({"-webkit-transform":"translate3d("+(b+a)+"%, 0, 0)",transform:"translate3d("+(b+a)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(t){if(t.preventDefault(),t.stopPropagation(),i("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),s=f.pageY-p.pageY,e=f.pageX-p.pageX,a=100*e/g,l)if(l=!1,Math.abs(s)>=2*h&&Math.abs(s)>Math.abs(o)){var d=s>0?v.height():-v.height();v.animate({top:d+"px",opacity:0},300,function(){r.closeSlide()})}else v.animate({top:0,opacity:1},300);else c?(c=!1,e>=u&&e>=n?r.getPrev():e<=-u&&e<=n&&r.getNext()):m.hasClass("visible-bars")?(r.clearTimeout(),r.hideBars()):(r.showBars(),r.setTimeout());i("#swipebox-slider").css({"-webkit-transform":"translate3d("+b+"%, 0, 0)",transform:"translate3d("+b+"%, 0, 0)"}),i("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),i(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(c.settings.hideBarsDelay>0){var e=this;e.clearTimeout(),e.timeout=t.setTimeout(function(){e.hideBars()},c.settings.hideBarsDelay)}},clearTimeout:function(){t.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var t=i("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?t.addClass("visible-bars"):(i("#swipebox-top-bar").animate({top:0},500),i("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){t.addClass("visible-bars")},1e3))},hideBars:function(){var t=i("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?t.removeClass("visible-bars"):(i("#swipebox-top-bar").animate({top:"-50px"},500),i("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){t.removeClass("visible-bars")},1e3))},animBars:function(){var t=this,e=i("#swipebox-top-bar, #swipebox-bottom-bar");e.addClass("visible-bars"),t.setTimeout(),i("#swipebox-slider").click(function(){e.hasClass("visible-bars")||(t.showBars(),t.setTimeout())}),i("#swipebox-bottom-bar").hover(function(){t.showBars(),e.addClass("visible-bars"),t.clearTimeout()},function(){c.settings.hideBarsDelay>0&&(e.removeClass("visible-bars"),t.setTimeout())})},keyboard:function(){var e=this;i(t).bind("keyup",function(t){t.preventDefault(),t.stopPropagation(),37===t.keyCode?e.getPrev():39===t.keyCode?e.getNext():27===t.keyCode&&e.closeSlide()})},actions:function(){var t=this,e="touchend click";d.length<2?(i("#swipebox-bottom-bar").hide(),s===d[1]&&i("#swipebox-top-bar").hide()):(i("#swipebox-prev").bind(e,function(e){e.preventDefault(),e.stopPropagation(),t.getPrev(),t.setTimeout()}),i("#swipebox-next").bind(e,function(e){e.preventDefault(),e.stopPropagation(),t.getNext(),t.setTimeout()}),c.settings.thumbs&&(d.forEach(function(e,i){t.preloadMedia(i)}),i("body").on(e,".js-swipebox-thumbs-el",function(e){e.preventDefault(),e.stopPropagation(),t.getThumb(i(this)),t.setTimeout()}))),i("#swipebox-close").bind(e,function(e){e.preventDefault(),e.stopPropagation(),t.closeSlide()})},setSlide:function(t,e){e=e||!1;var s=i("#swipebox-slider");b=100*-t,this.doCssTrans()?s.css({"-webkit-transform":"translate3d("+100*-t+"%, 0, 0)",transform:"translate3d("+100*-t+"%, 0, 0)"}):s.animate({left:100*-t+"%"}),i("#swipebox-slider .slide").removeClass("current"),i("#swipebox-slider .slide").eq(t).addClass("current"),c.settings.thumbs&&(i(".js-swipebox-thumbs-el").removeClass("active"),i('.js-swipebox-thumbs-el[data-index="'+t+'"]').addClass("active")),this.setTitle(t),e&&s.fadeIn(),i("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===t?i("#swipebox-prev").addClass("disabled"):t===d.length-1&&!0!==c.settings.loopAtEnd&&i("#swipebox-next").addClass("disabled")},openSlide:function(e){i("html").addClass("swipebox-html"),f?(i("html").addClass("swipebox-touch"),c.settings.hideCloseButtonOnMobile&&i("html").addClass("swipebox-no-close-button")):i("html").addClass("swipebox-no-touch"),i(t).trigger("resize"),this.setSlide(e,!0)},preloadMedia:function(t){var e=this,i=null;d[t]!==s&&(i=d[t].href),e.isVideo(i)?e.openMedia(t):setTimeout(function(){e.openMedia(t)},1e3)},openMedia:function(t){var e,n,o=this;if(d[t]!==s&&(e=d[t].href),t<0||t>=d.length)return!1;n=i("#swipebox-slider .slide").eq(t),o.isVideo(e)?n.html(o.getVideo(e)):(n.addClass("slide-loading"),o.loadMedia(e,function(){n.removeClass("slide-loading"),n.html(this)}))},setTitle:function(t){var e=null;i("#swipebox-title").empty(),d[t]!==s&&(e=d[t].title),e?(i("#swipebox-top-bar").show(),i("#swipebox-title").append(e)):i("#swipebox-top-bar").hide()},isVideo:function(t){if(t){if(t.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||t.match(/vimeo\.com\/([0-9]*)/)||t.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||t.match(/youtube\.com\/([a-zA-Z0-9\-_]+)/))return!0;if(t.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(t,s){var n=e.createElement("a"),o={};return n.href=decodeURIComponent(t),n.search&&(o=JSON.parse('{"'+n.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),i.isPlainObject(s)&&(o=i.extend(o,s,c.settings.queryStringData)),i.map(o,function(t,e){if(t&&t>"")return encodeURIComponent(e)+"="+encodeURIComponent(t)}).join("&")},getVideo:function(t){var e="",i=t.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),s=t.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),n=t.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),o="";return i||s?(s&&(i=s),o=a.parseUri(t,{autoplay:c.settings.autoplayVideos?"1":"0",v:""}),e='<iframe width="560" height="315" src="//'+i[1]+"/embed/"+i[2]+"?"+o+'" frameborder="0" allowfullscreen></iframe>'):n?(o=a.parseUri(t,{autoplay:c.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:c.settings.vimeoColor}),e='<iframe width="560" height="315" src="//player.vimeo.com/video/'+n[1]+"?"+o+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):e='<iframe width="560" height="315" src="'+t+'" frameborder="0" allowfullscreen></iframe>','<div class="swipebox-video-container" style="max-width:'+c.settings.videoMaxWidth+'px"><div class="swipebox-video">'+e+"</div></div>"},loadMedia:function(t,e){if(0===t.trim().indexOf("#"))e.call(i("<div>",{class:"swipebox-inline-container"}).append(i(t).clone().toggleClass(c.settings.toggleClassOnLoad)));else if(!this.isVideo(t)){var s=i("<img>").on("load",function(){e.call(s)});s.attr("src",t)}},getNext:function(){var t,e=this,s=i("#swipebox-slider .slide").index(i("#swipebox-slider .slide.current"));s+1<d.length?(t=i("#swipebox-slider .slide").eq(s).contents().find("iframe").attr("src"),i("#swipebox-slider .slide").eq(s).contents().find("iframe").attr("src",t),s++,e.setSlide(s),e.preloadMedia(s+1),c.settings.nextSlide&&c.settings.nextSlide()):!0===c.settings.loopAtEnd?(t=i("#swipebox-slider .slide").eq(s).contents().find("iframe").attr("src"),i("#swipebox-slider .slide").eq(s).contents().find("iframe").attr("src",t),s=0,e.preloadMedia(s),e.setSlide(s),e.preloadMedia(s+1),c.settings.nextSlide&&c.settings.nextSlide()):(i("#swipebox-overlay").addClass("rightSpring"),setTimeout(function(){i("#swipebox-overlay").removeClass("rightSpring")},500))},getPrev:function(){var t,e=i("#swipebox-slider .slide").index(i("#swipebox-slider .slide.current"));e>0?(t=i("#swipebox-slider .slide").eq(e).contents().find("iframe").attr("src"),i("#swipebox-slider .slide").eq(e).contents().find("iframe").attr("src",t),e--,this.setSlide(e),this.preloadMedia(e-1),c.settings.prevSlide&&c.settings.prevSlide()):(i("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){i("#swipebox-overlay").removeClass("leftSpring")},500))},getThumb:function(t){var e,s=parseInt(t.data("index"));e=i("#swipebox-slider .slide").eq(s).contents().find("iframe").attr("src"),i("#swipebox-slider .slide").eq(s).contents().find("iframe").attr("src",e),this.preloadMedia(s),this.setSlide(s),c.settings.prevSlide&&c.settings.prevSlide()},nextSlide:function(){},prevSlide:function(){},closeSlide:function(){i("html").removeClass("swipebox-html"),i("html").removeClass("swipebox-touch"),i(t).trigger("resize"),this.destroy()},destroy:function(){i(t).unbind("keyup"),i("body").unbind("touchstart"),i("body").unbind("touchmove"),i("body").unbind("touchend"),i("#swipebox-slider").unbind(),i("#swipebox-overlay").hide(),i("#swipebox-overlay").remove(),i.isArray(n)||n.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),i.swipebox.isOpen=!1,c.settings.afterClose&&c.settings.afterClose(),d=[]}},c.init()},i.fn.swipebox=function(t){if(!i.data(this,"_swipebox")){var e=new i.swipebox(this,t);this.data("_swipebox",e)}return this.data("_swipebox")}}(window,document,jQuery);
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.