!function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=36)}([function(t){t.exports=jQuery},function(t){t.exports=prestashop},function(t){function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"object"==typeof t&&null!==t}function n(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,s,r,a,l,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var d=new Error('Uncaught, unspecified "error" event. ('+e+")");throw d.context=e,d}if(n(s=this._events[t]))return!1;if(i(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),s.apply(this,a)}else if(o(s))for(a=Array.prototype.slice.call(arguments,1),r=(c=s.slice()).length,l=0;l0&&this._events[t].length>r&&(this._events[t].warned=!0,console.trace),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){if(!i(e))throw TypeError("listener must be a function");var o=!1;function n(){this.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}return n.listener=e,this.on(t,n),this},e.prototype.removeListener=function(t,e){var n,s,r,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=(n=this._events[t]).length,s=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(a=r;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){s=a;break}if(s<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(s,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,o;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i(o=this._events[t]))this.removeListener(t,o);else if(o)for(;o.length;)this.removeListener(t,o[o.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},e.listenerCount=function(t,e){return t.listenerCount(e)}},function(t){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,i){"use strict";i.r(e);i(35),i(33),i(31),i(30),i(29);var o=i(0),n=i.n(o),s=i(1),r=i.n(s);function a(t,e){var i=e.children().detach();e.empty().append(t.children().detach()),t.append(i)}function l(t){t?n()("*[id^='_desktop_']").each(function(t,e){var i=n()("#"+e.id.replace("_desktop_","_mobile_"));i.length&&a(n()(e),i)}):n()("*[id^='_mobile_']").each(function(t,e){var i=n()("#"+e.id.replace("_mobile_","_desktop_"));i.length&&a(n()(e),i)}),r.a.emit("responsive update",{mobile:t})}function c(t){t?n()("*[id^='_desktop_']").each(function(t,e){var i=n()("#"+e.id.replace("_desktop_","_tablet_"));i.length&&a(n()(e),i)}):n()("*[id^='_tablet_']").each(function(t,e){var i=n()("#"+e.id.replace("_tablet_","_desktop_"));i.length&&a(n()(e),i)})}function d(t){var e=n()(".js-toggle-linklist-mobile").find("h3, h4");t?e.each(function(t,e){var i=n()(e).next();i.length&&(n()(e).addClass("toggle-linklist-title"),i.hide(),n()(e).click(function(){i.stop().slideToggle()}))}):e.each(function(t,e){var i=n()(e).next();i.length&&(n()(e).unbind("click"),n()(e).removeClass("toggle-linklist-title"),i.show())})}function u(t){var e=n()(".js-toggle-block-mobile");t?e.each(function(t,e){var i=n()(e).next();i.length&&(n()(e).addClass("toggle-block-title is-hide"),i.hide(),n()(e).click(function(){i.stop().slideToggle(),n()(e).toggleClass("is-hide")}))}):e.each(function(t,e){var i=n()(e).next();i.length&&(n()(e).unbind("click"),n()(e).removeClass("toggle-block-title is-hide"),i.show())})}r.a.responsive=r.a.responsive||{},r.a.responsive.min_width=768,r.a.responsive.tablet_min_width=992,r.a.responsive.scrollbar_width=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;i==o&&(o=e.clientWidth);return document.body.removeChild(e),i-o}(),r.a.responsive.current_width=window.innerWidth,n()(document).ready(function(){r.a.responsive.mobile=r.a.responsive.current_width=e&&o=e,s=t>=i&&o=i;r.a.responsive.current_width=o,r.a.responsive.mobile=r.a.responsive.current_width
',removalDelay:500,mainClass:"mfp-fade",closeOnBgClick:!0,gallery:{enabled:!0,tPrev:i,tNext:o,tCounter:"%curr% / %total%"},image:{verticalFit:!1}}),n()(".js-mfp-button").bind("click",function(){var t=n()("#js-zoom-gallery .js-thumb.selected").data("id-image");n()(".js_mfp_gallery_item").filter('[data-id-image="'+t+'"]').trigger("click")})}}function v(){n()(".js-cover-image .js-qv-product-images .js-thumb").on("click",function(t){n()(".js-qv-product-images .js-thumb.selected").removeClass("selected"),n()(t.currentTarget).addClass("selected"),n()(".js-qv-product-cover").prop("src",n()(t.currentTarget).data("image"))})}function y(){n()(".js-qv-mask").addClass("scroll"),n()(".js-qv-mask").scrollbox({direction:"h",distance:"auto",autoPlay:!1,infiniteLoop:!1,onMouseOverPause:!1}),n()(".scroll-box-arrows .left").click(function(){n()(".js-qv-mask").trigger("backward")}),n()(".scroll-box-arrows .right").click(function(){n()(".js-qv-mask").trigger("forward")}),w()}function w(){var t=0;n()(".js-qv-product-images .js-thumb-container").each(function(){t+=n()(this).outerWidth()}),n()(".js-qv-product-images").width()+5n()("[data-stock]").data("stock")&&0===n()("[data-allow-oosp]").data("allow-oosp").length)e.attr("disabled","disabled");else{var o=function(){var o,s=n()(t.target).closest("form"),r=s.serialize()+"&add=1&action=update",a=s.attr("action"),l=function(t){t.parents(".product-add-to-cart").first().find(".product-minimal-quantity").addClass("error"),t.parent().find("label").addClass("error")},c=s.find("input[min]");if(o=!0,c.each(function(t,e){var i=n()(e),s=parseInt(i.attr("min"),10);s&&i.val()0;)e.pop().abort()};var a=function(t){t.preventDefault();let i=n()(t.currentTarget),a=t.currentTarget.dataset,l=o(i,t.namespace);void 0!==l&&(s(),"removeVoucher"==l.type?n()(".js-cart-update-voucher").fadeIn():n()(".js-cart-update-quantity").fadeIn(),n.a.ajax({url:l.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend:function(t){e.push(t)}}).then(function(t){var e;E.checkUpdateOpertation(t),(e=i,n()(e.parents(".bootstrap-touchspin").find("input"))).val(t.quantity),t.hasError?(n()(".js-cart-update-voucher, .js-cart-update-quantity").fadeOut(),n()(".js-modal-message-text").text(t.errors[0]),n()(".js-modal-message").modal("show")):r.a.emit("updateCart",{reason:a})}).fail(function(t){r.a.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:l.type})}))};function l(t){let i=n()(t.currentTarget),o=i.data("update-url"),a=i.attr("value"),l=i.val();if(l!=parseInt(l)||l<0||isNaN(l))return void i.val(a);let c=l-a;var d,u;0!=c&&function(t,i,o){s(),n()(".js-cart-update-quantity").fadeIn(),n.a.ajax({url:t,method:"POST",data:i,dataType:"json",beforeSend:function(t){e.push(t)}}).then(function(t){var e;E.checkUpdateOpertation(t),o.val(t.quantity),t.hasError?(n()(".js-cart-update-voucher, .js-cart-update-quantity").fadeOut(),n()(".js-modal-message-text").text(t.errors[0]),n()(".js-modal-message").modal("show")):(e=o&&o.dataset?o.dataset:t,r.a.emit("updateCart",{reason:e}))}).fail(function(t){r.a.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})})}(o,(d=c,{ajax:"1",qty:Math.abs(d),action:"update",op:(u=d,u>0?"up":"down")}),i)}i.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',a),i.on("touchspin.on.startdownspin",S,a),i.on("touchspin.on.startupspin",S,a),i.on("focusout",t,function(t){l(t)}),i.on("keyup",t,function(t){13==t.keyCode&&l(t)}),i.on("click",".js-discount .code",function(t){t.stopPropagation();var e=n()(t.currentTarget);return n()("[name=discount_name]").val(e.text()),!1});n()("body.js-custom-action-add-voucher").off("submit",'[data-link-action="add-voucher"]'),n()("body.js-custom-action-add-voucher").on("submit",'[data-link-action="add-voucher"]',function(t){t.preventDefault();var e=n()(t.currentTarget),i=e.attr("action");0===e.find("[name=action]").length&&e.append(n()("",{type:"hidden",name:"ajax",value:1})),0===e.find("[name=action]").length&&e.append(n()("",{type:"hidden",name:"action",value:"update"})),n()(".js-cart-update-voucher").fadeIn(),n.a.ajax({url:i,method:"POST",data:e.serialize(),dataType:"json"}).then(function(e){e.hasError?(n()(".js-cart-update-voucher, .js-cart-update-quantity").fadeOut(),n()(".js-error").show().find(".js-error-text").text(e.errors[0])):r.a.emit("updateCart",{reason:t.target.dataset,resp:e})}).fail(function(t){r.a.emit("handleError",{eventType:"updateCart",resp:t})})})});const E={switchErrorStat:function(){let t=n()(".checkout a");if((n()("#notifications article.alert-danger").length||""!==C&&!k)&&t.addClass("disabled"),""!==C){let e=' ";n()("#notifications .container").html(e),C="",T=!1,k&&t.removeClass("disabled")}else!k&&T&&(k=!1,T=!1,n()("#notifications .container").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(t){k=t.hasOwnProperty("hasError");let e=t.errors||"";C=e instanceof Array?e.join(" "):e,T=!0}};var z=i(2),I=i.n(z);i(27),i(26),i(25),i(24),i(23),i(22),i(21),i(20),i(19),i(18),i(17),i(16);r.a.blockcart=r.a.blockcart||{},r.a.blockcart.showModal=function(t){function e(){return n()("#blockcart-modal")}let i=e();i.length&&i.remove(),n()("body").append(t),(i=e()).modal("show")},n()(document).ready(function(){var t=!1;"1"==prestashop.language.is_rtl&&(t=!0),function(t){n()(".js-crossselling-slider, .js-viewedproduct-slider, .js-accessories-slider, .js-category-products-slider, .js-featuredproducts-slider").slick({slidesToShow:5,slidesToScroll:5,adaptiveHeight:!0,infinite:!0,speed:1e3,autoplay:!1,dots:!1,arrows:!0,rtl:t,responsive:[{breakpoint:1220,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}}]})}(t)});i(15),i(14),i(13),i(12),i(11),i(10),i(9),i(8),i(7),i(6),i(5);for(var O in I.a.prototype)r.a[O]=I.a.prototype[O]},function(){$(document).ready(function(){var t,e,i,o,n,s;"ontouchstart"in document.documentElement&&$("body").addClass("touch-screen"),$(".js-page-progress-bar").length&&Pace.start(),$(window).load(function(){setTimeout(function(){Pace.stop(),$(".js-page-progress-bar").removeClass("js-page-progress-bar")},100)}),t=$("#header .main-header > .container").width(),$(".js-sticky-menu").length&&t>540&&($(".js-sticky-menu").sticky({wrapperClassName:"desktop-sticky-wrapper"}),$(".js-sticky-menu").on("sticky-start",function(){$(".js-sticky-icon-cart").html($(".js-sticky-cart-source").html())})),$(".js-mobile-sticky").length&&t<=540&&$(".js-mobile-sticky").sticky({wrapperClassName:"mobile-sticky-wrapper"}),e=$("#js_scroll_to_top"),$(window).scroll(function(){$(this).scrollTop()>100?e.fadeIn():e.fadeOut()}),e.find("a").smoothScroll({speed:500}),i=function(){$("html").removeClass("st-menu-open st-effect-left st-effect-right")},$("#st_overlay").on("click",function(){i()}),$(".st-menu-close").on("click",function(){i()}),$("#js-header-phone-sidebar").removeClass("js-hidden").html($(".js-header-phone-source").html()),$("#js-account-sidebar").removeClass("js-hidden").html($(".js-account-source").html()),$("#js-language-sidebar").removeClass("js-hidden").html($(".js-language-source").html()),$(".js-sidebar-cart-enabled").length||$("#js-left-currency-sidebar").removeClass("js-hidden").html($(".js-currency-source").html()),$("#js-left-nav-trigger").on("click",function(){return $("html").addClass("st-effect-left st-menu-open"),!1}),$(".js-sidebar-cart-enabled").length&&($("#js-cart-sidebar").removeClass("js-hidden").html($(".js-cart-source").html()),$("#js-currency-sidebar").removeClass("js-hidden").html($(".js-currency-source").html()),$(".js-cart-source").addClass("d-none"),$(".js-sidebar-cart-trigger").on("click",function(){return $("html").addClass("st-effect-right st-menu-open"),!1})),(o=$(".js-otherCustomerDropdownLinks")).length&&$(".js-displayCustomerAccount a").each(function(){$(this).removeAttr("id").removeAttr("class").addClass("dropdown-item");var t=$(this).find("span"),e=t.find("i");t.removeAttr("class"),$(this).remove("i"),$(this).prepend(e),$(this).wrap("
  • ").parent().insertBefore(o)}),(n=$(".js-sidebar-categories")).length&&n.find(".js-collapse-trigger").click(function(){$(this).next(".js-sub-categories").stop().slideToggle(),$(this).find(".add").toggle(),$(this).find(".remove").toggle()}),$("#mobile-menu-icon").on("click",function(){$("#dropdown-mobile-menu").stop().slideToggle()}),$(".js-category-tree .js-current-category").parents("li").each(function(){$(this).children('[data-toggle="collapse"]').attr("aria-expanded","true"),$(this).children(".category-sub-menu.collapse").addClass("show")}),(s=$(".js-small-description")).length&&s.height()>s.data("max-height")&&(s.addClass("see-more"),$(".js-expand-description").click(function(){return s.removeClass("see-more"),!1})),$(".js-dropdown-toggle").each(function(){var t=$(this).find(".dropdown-title"),e=$(this).find(".dropdown-content");t.click(function(){e.stop().slideToggle()})})}),$(window).load(function(){var t;$('body:not(.touch-screen) [data-toggle="tooltip"]').tooltip({position:{my:"center bottom-8",at:"center top"},hide:!1,show:!1}),(t=$(".js-cookieMessage")).length&&setTimeout(function(){t.cookieBar({closeButton:".js-cookieCloseButton",path:prestashop.urls.base_url.substring(prestashop.urls.shop_domain_url.length)})},2e3)})},function(){$(document).ready(function(){var t,e,i,o,n,s,r;t=$("#js-aoneColorsLivePreview"),e=$(".js-color .js-colorPicker"),i=$(".js-previewToggle"),o=$(".js-previewReset"),n=$(".js-previewBoxed"),s=$(".js-previewWide"),r=$(".js-specialStyle"),e.each(function(){$(this).colpick({layout:"hex",color:$(this).data("color"),onSubmit:function(t,e,i,o){$(o).css("background-color","#"+e);var n=$(o).parent(".js-color").children(".style");$.each(n,function(){var t=$(this).children(".selector"),i=$(this).children(".property");$(this).children(".preview").html("")})}})}),i.click(function(){t.toggleClass("open")}),o.click(function(i){return i.preventDefault(),t.find(".js-color .preview").html(""),e.each(function(){$(this).css("background-color",$(this).data("color"))}),!1}),n.click(function(t){return t.preventDefault(),$("#page").addClass("boxed-layout"),s.removeClass("active"),$(this).addClass("active"),$(".js-boxedWide .style .preview").html(""),!1}),s.click(function(t){return t.preventDefault(),$("#page").removeClass("boxed-layout"),n.removeClass("active"),$(this).addClass("active"),$(".js-boxedWide .style .preview").html(""),!1}),$("body").hasClass("remove-border-radius")&&r.find('input[name="disable_border_radius"]').attr("checked","checked"),$("body").hasClass("remove-box-shadow")&&r.find('input[name="disable_box_shadow"]').attr("checked","checked"),$("#wrapper").hasClass("background-for-title")&&r.find('input[name="background_block_title"]').attr("checked","checked"),r.find('input[name="disable_border_radius"]').change(function(){$("body").toggleClass("remove-border-radius")}),r.find('input[name="disable_box_shadow"]').change(function(){$("body").toggleClass("remove-box-shadow")}),r.find('input[name="background_block_title"]').change(function(){$("#wrapper").toggleClass("background-for-title background-for-tab-title background-for-column-title")})})},function(){function t(){var t,e,i=$("#aone-popup-newsletter-modal"),o=i.find(".js-aone-popupnewsletter"),n=o.data("hidepopup-time"),s=o.data("save-time");""===function(t){for(var e=t+"=",i=document.cookie.split(";"),o=0;o'+t.msg+"

    "):i.find(".newsletter-message").html('

    '+t.msg+"

    ")},error:function(t){alert("Response Text:\n"+t.responseText)}}),!1})}$(window).load(function(){t()})},function(){function t(){$("#amegamenu").hasClass("amegamenu_rtl")?$("#amegamenu .adropdown").each(function(){var t=0-($(this).outerWidth()-$(this).parent().outerWidth())/2,e=$(this).offset().left+$(this).outerWidth(),i=$(this).parent().offset().left+$(this).parent().outerWidth(),o=$("#amegamenu").offset().left+$("#amegamenu").outerWidth();if($(this).offset().left+parseInt($(this).css("margin-right"))-t<$("#amegamenu").offset().left){var n=0-($(this).outerWidth()-i+$("#amegamenu").offset().left);$(this).css("margin-right",n+"px")}else if(e+parseInt($(this).css("margin-right"))-t>o){var s=0-(o-i);$(this).css("margin-right",s+"px")}else $(this).css("margin-right",t+"px")}):$("#amegamenu .adropdown").each(function(){var t=0-($(this).outerWidth()-$(this).parent().outerWidth())/2,e=$(this).offset().left+$(this).outerWidth(),i=($(this).parent().offset().left,$(this).parent().outerWidth(),$("#amegamenu").offset().left+$("#amegamenu").outerWidth());if(e-parseInt($(this).css("margin-left"))+t>i){var o=$("#amegamenu").offset().left-$(this).parent().offset().left+$("#amegamenu").outerWidth()-$(this).outerWidth();$(this).css("margin-left",o+"px")}else if($(this).offset().left-parseInt($(this).css("margin-left"))+t<$("#amegamenu").offset().left){var n=$("#amegamenu").offset().left-$(this).parent().offset().left;$(this).css("margin-left",n+"px")}else $(this).css("margin-left",t+"px")})}$(document).ready(function(){setTimeout(function(){t()},500),$(window).resize(t),$("#mobile-amegamenu .amenu-item.plex .amenu-link").on("click",function(){return $(this).next(".adropdown").stop().slideToggle(),$(this).parent(".amenu-item").toggleClass("active"),!1}),$("html").on("touchstart",function(){$("#amegamenu .anav-top > li").removeClass("hover")}),$("#amegamenu").on("touchstart",function(t){t.stopPropagation()}),$("#amegamenu .anav-top > li.plex > .amenu-link").on("touchstart",function(t){"use strict";var e=$(this).parent("li");return!!e.hasClass("hover")||($("#amegamenu .anav-top > li").removeClass("hover"),e.addClass("hover"),t.preventDefault(),!1)})})},function(){$(document).ready(function(){var t=!1;"1"==prestashop.language.is_rtl&&(t=!0),$(".js-featured-categories-slider").each(function(){var e=$(this).data("slidestoshow");!function(t,e,i){$(t).slick({slidesToShow:e,slidesToScroll:e,adaptiveHeight:!0,infinite:!0,speed:1e3,autoplay:!1,dots:!1,arrows:!0,rtl:i,responsive:[{breakpoint:992,settings:{slidesToShow:Math.min(2,e),slidesToScroll:Math.min(2,e)}},{breakpoint:768,settings:{slidesToShow:Math.min(1,e),slidesToScroll:Math.min(1,e)}}]})}($(this),e,t)})})},function(){$(document).ready(function(){var t=!1;"1"==prestashop.language.is_rtl&&(t=!0),$(".js-column-block-slider").each(function(){var e=$(this).data("autoscroll");"ontouchstart"in document.documentElement&&(e=!1),function(t,e,i){$(t).slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,infinite:!0,speed:1e3,autoplay:e,dots:!0,arrows:!1,rtl:i})}($(this),e,t)})})},function(){$(document).ready(function(){var t=!1;"1"==prestashop.language.is_rtl&&(t=!0),$(".js-home-block-slider").each(function(){var e=$(this).data("autoscroll"),i=$(this).data("slidestoshow"),o=$(this).data("mdslidestoshow");"ontouchstart"in document.documentElement&&(e=!1),function(t,e,i,o,n){$(t).slick({slidesToShow:e,slidesToScroll:e,adaptiveHeight:!0,infinite:!0,speed:1e3,autoplay:o,dots:!1,arrows:!0,rtl:n,responsive:[{breakpoint:1220,settings:{slidesToShow:Math.min(4,e),slidesToScroll:Math.min(4,e)}},{breakpoint:992,settings:{slidesToShow:Math.min(3,i),slidesToScroll:Math.min(3,i)}},{breakpoint:768,settings:{slidesToShow:Math.min(2,i),slidesToScroll:Math.min(2,i)}}]})}($(this),i,o,e,t)}),$('.aone-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(t){var e=$(t.target).attr("data-slickID");$("#"+e).slick("setPosition")})})},function(){function t(t,i,o){"top"==t?jQuery(".nivo-caption").animate({top:"0"},o,i,e):"bottom"==t?jQuery(".nivo-caption").animate({bottom:"0"},o,i,e):"left"==t?jQuery(".nivo-caption").animate({left:"0"},o,i,e):"right"==t?jQuery(".nivo-caption").animate({right:"0"},o,i,e):"opacity"==t&&jQuery(".nivo-caption").animate({opacity:"1"},o,"swing",e)}function e(){jQuery(".nivo-caption .js-slide-products-related").fadeIn()}$(window).load(function(){var e=$("#aoneSlider"),i=e.data("settings");e.length&&e.nivoSlider({effect:i.effect,slices:Number(i.slices),boxCols:Number(i.boxCols),boxRows:Number(i.boxRows),animSpeed:Number(i.animSpeed),pauseTime:Number(i.pauseTime),startSlide:Number(i.startSlide),directionNav:i.directionNav,controlNav:i.controlNav,controlNavThumbs:i.controlNavThumbs,pauseOnHover:i.pauseOnHover,manualAdvance:i.manualAdvance,randomStart:i.randomStart,afterLoad:function(){t(i.caption_effect,"easeInBack",i.animSpeed)},beforeChange:function(){var t,e,o;t=i.caption_effect,e="easeInBack",o=i.animSpeed,"top"==t?jQuery(".nivo-caption").animate({top:"-100%"},o,e):"bottom"==t?jQuery(".nivo-caption").animate({bottom:"-100%"},o,e):"left"==t?jQuery(".nivo-caption").animate({left:"-100%"},o,e):"right"==t?jQuery(".nivo-caption").animate({right:"-100%"},o,e):"opacity"==t&&jQuery(".nivo-caption").animate({opacity:"0"},o,"swing")},afterChange:function(){t(i.caption_effect,"easeInBack",i.animSpeed)}})})},function(){$(document).ready(function(){var t=!1;"1"==prestashop.language.is_rtl&&(t=!0),$(".js-brand-logo-slider").each(function(){var e=$(this).data("autoscroll");!function(t,e,i){$(t).slick({slidesToShow:6,slidesToScroll:1,adaptiveHeight:!1,infinite:!0,speed:700,autoplay:e,dots:!1,arrows:!0,draggable:!1,rtl:i,responsive:[{breakpoint:1220,settings:{slidesToShow:5}},{breakpoint:992,settings:{slidesToShow:4}},{breakpoint:768,settings:{slidesToShow:3}},{breakpoint:576,settings:{slidesToShow:2}}]})}($(this),e,t)})})},function(){function t(){$('button[data-action="show-password"]').on("click",function(){var t=$(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),$(this).text($(this).data("textHide"))):(t.attr("type","password"),$(this).text($(this).data("textShow")))})}$(document).ready(function(){t()})},function(){$(document).ready(function(){var t;(t=$(".js-dropdown")).on("show.bs.dropdown",function(t){$(t.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),t.on("hide.bs.dropdown",function(t){$(t.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),t.find("select.link").each(function(t,e){$(e).on("change",function(){window.location=$(this).val()})})})},function(){var t;(t=jQuery).cookie=function(e,i,o){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(i))||null===i||void 0===i)){if(o=t.extend({},o),null!==i&&void 0!==i||(o.expires=-1),"number"==typeof o.expires){var n=o.expires,s=o.expires=new Date;s.setDate(s.getDate()+n)}return i=String(i),document.cookie=[encodeURIComponent(e),"=",o.raw?i:encodeURIComponent(i),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}for(var r,a=(o=i||{}).raw?function(t){return t}:decodeURIComponent,l=document.cookie.split("; "),c=0;r=l[c]&&l[c].split("=");c++)if(a(r[0])===e)return a(r[1]||"");return null},t.fn.cookieBar=function(e){var i=t.extend({closeButton:"none",hideOnClose:!0,secure:!1,path:"/",domain:""},e);return this.each(function(){var e=t(this);e.hide(),"none"==i.closeButton&&(e.append('Continue'),t.extend(i,{closeButton:".cookiebar-close"})),"hide"!=t.cookie("cookiebar")&&e.show(),e.find(i.closeButton).click(function(){return i.hideOnClose&&e.hide(),t.cookie("cookiebar","hide",{path:i.path,secure:i.secure,domain:i.domain,expires:30}),e.trigger("cookieBar-close"),!1})})},t.cookieBar=function(e){t("body").prepend('
    '),t(".cookie-message").cookieBar(e)}},function(t,e,i){var o,n,s;n=[i(0)],void 0===(s="function"==typeof(o=function(t){var e,i,o,n,s,r,a="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",p="mfp",h="."+p,f="mfp-ready",m="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,w=t(window),b=function(t,i){e.ev.on(p+t+h,i)},x=function(e,i,o,n){var s=document.createElement("div");return s.className="mfp-"+e,o&&(s.innerHTML=o),n?i&&i.appendChild(s):(s=t(s),i&&s.appendTo(i)),s},S=function(i,o){e.ev.triggerHandler(p+i,o),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(o)?o:[o]))},k=function(i){return i===r&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),r=i),e.currTemplate.closeBtn},T=function(){t.magnificPopup.instance||((e=new v).init(),t.magnificPopup.instance=e)};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=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(i){var n;if(!1===i.isObj){e.items=i.items.toArray(),e.index=0;var r,a=i.items;for(n=0;n(t||w.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,o){var n;o.data&&(i=t.extend(o.data,i)),S(c,[e,i,o]),t.each(i,function(i,o){if(void 0===o||!1===o)return!0;if((n=i.split("_")).length>1){var s=e.find(h+"-"+n[0]);if(s.length>0){var r=n[1];"replaceWith"===r?s[0]!==o[0]&&s.replaceWith(o):"img"===r?s.is("img")?s.attr("src",o):s.replaceWith(t("").attr("src",o).attr("class",s.attr("class"))):s.attr(n[1],o)}}else e.find(h+"-"+i).html(o)})},_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 T(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){T();var o=t(this);if("string"==typeof i)if("open"===i){var n,s=y?o.data("magnificPopup"):o[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?n=s.items[r]:(n=o,s.delegate&&(n=n.find(s.delegate)),n=n.eq(r)),e._openClick({mfpEl:n},o,s)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),y?o.data("magnificPopup",i):o[0].magnificPopup=i,e.addGroup(o,i);return o};var C,_,E,z="inline",I=function(){E&&(_.after(E.addClass(C)).detach(),E=null)};t.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(z),b(a+"."+z,function(){I()})},getInline:function(i,o){if(I(),i.src){var n=e.st.inline,s=t(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(_||(C=n.hiddenClass,_=x(C),C="mfp-"+C),E=s.after(_).detach().removeClass(C)),e.updateStatus("ready")}else e.updateStatus("error",n.tNotFound),s=t("
    ");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(o,{},i),o}}});var O,A,$,P="ajax",L=function(){O&&t(document.body).removeClass(O)},W=function(){L(),e.req&&e.req.abort()};t.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push(P),O=e.st.ajax.cursor,b(a+"."+P,W),b("BeforeChange."+P,W)},getAjax:function(i){O&&t(document.body).addClass(O),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(o,n,s){var r={data:o,xhr:s};S("ParseAjax",r),e.appendContent(t(r.data),P),i.finished=!0,L(),e._setFocus(),setTimeout(function(){e.wrap.addClass(f)},16),e.updateStatus("ready"),S("AjaxContentAdded")},error:function(){L(),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(o),""}}}),t.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,o=".image";e.types.push("image"),b(d+o,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),b(a+o,function(){i.cursor&&t(document.body).removeClass(i.cursor),w.off("resize"+h)}),b("Resize"+o,e.resizeImage),e.isLowIE&&b("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,A&&clearInterval(A),t.isCheckingImgSize=!1,S("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,o=t.img[0],n=function(s){A&&clearInterval(A),A=setInterval(function(){return o.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(A),void(3==++i?n(10):40===i?n(50):100===i&&n(500)))},s)};n(1)},getImage:function(i,o){var n=0,s=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,S("ImageLoadComplete")):200>++n?setTimeout(s,100):r())},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=o.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",s).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(o,{title:function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,i);if(i.el)return i.el.attr(o)||""}return""}(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(A&&clearInterval(A),i.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(i)),o)}}}),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,o=".zoom";if(i.enabled&&e.supportsTransition){var n,s,r=i.duration,c=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return n["-webkit-"+s]=n["-moz-"+s]=n["-o-"+s]=n[s]=o,e.css(n),e},d=function(){e.content.css("visibility","visible")};b("BuildControls"+o,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void d();(s=c(t)).css(e._getOffset()),e.wrap.append(s),n=setTimeout(function(){s.css(e._getOffset(!0)),n=setTimeout(function(){d(),setTimeout(function(){s.remove(),t=s=null,S("ZoomAnimationEnded")},16)},r)},16)}}),b(l+o,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;s=c(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout(function(){s.css(e._getOffset())},16)}}),b(a+o,function(){e._allowZoom()&&(d(),s&&s.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var o,n=(o=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),s=parseInt(o.css("padding-top"),10),r=parseInt(o.css("padding-bottom"),10);n.top-=t(window).scrollTop()-s;var a={width:o.width(),height:(y?o.innerHeight():o[0].offsetHeight)-r-s};return void 0===$&&($=void 0!==document.createElement("p").style.MozTransform),$?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var j="iframe",D=function(t){if(e.currTemplate[j]){var i=e.currTemplate[j].find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(j,{options:{markup:'
    ',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(j),b("BeforeChange",function(t,e,i){e!==i&&(e===j?D():i===j&&D(!0))}),b(a+"."+j,function(){D()})},getIframe:function(i,o){var n=i.src,s=e.st.iframe;t.each(s.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 r={};return s.srcAction&&(r[s.srcAction]=n),e._parseMarkup(o,r,i),e.updateStatus("ready"),o}}});var H=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},N=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',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)&&(s+=" mfp-gallery",b(d+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),b("UpdateStatus"+n,function(t,i){i.text&&(i.text=N(i.text,e.currItem.index,e.items.length))}),b(c+n,function(t,o,n,s){var r=e.items.length;n.counter=r>1?N(i.tCounter,s.index,r):""}),b("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var o=i.arrowMarkup,n=e.arrowLeft=t(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(g),s=e.arrowRight=t(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(g);n.click(function(){e.prev()}),s.click(function(){e.next()}),e.container.append(n.add(s))}}),b(u+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void b(a+n,function(){o.off(n),e.wrap.off("click"+n),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=H(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=H(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,o=Math.min(i[0],e.items.length),n=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=H(i),!e.items[i].preloaded){var o=e.items[i];o.parsed||(o=e.parseEl(i)),S("LazyLoad",o),"image"===o.type&&(o.img=t('').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,S("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}}}});var M="retina";t.magnificPopup.registerModule(M,{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&&(b("ImageHasSize."+M,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),b("ElementParse."+M,function(e,o){o.src=t.replaceSrc(o,i)}))}}}}),T()})?o.apply(e,n):o)||(t.exports=s)},function(){var t,e;"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),t=jQuery,window,document,e={init:function(e,i){var o=this;o.elem=i,o.$elem=t(i),o.imageSrc=o.$elem.data("zoom-image")?o.$elem.data("zoom-image"):o.$elem.attr("src"),o.options=t.extend({},t.fn.elevateZoom.options,e),o.options.tint&&(o.options.lensColour="none",o.options.lensOpacity="1"),"inner"==o.options.zoomType&&(o.options.showLens=!1),o.$elem.parent().removeAttr("title").removeAttr("alt"),o.zoomImage=o.imageSrc,o.refresh(1),t("#"+o.options.gallery+" a").click(function(e){return o.options.galleryActiveClass&&(t("#"+o.options.gallery+" a").removeClass(o.options.galleryActiveClass),t(this).addClass(o.options.galleryActiveClass)),e.preventDefault(),t(this).data("zoom-image")?o.zoomImagePre=t(this).data("zoom-image"):o.zoomImagePre=t(this).data("image"),o.swaptheimage(t(this).data("image"),o.zoomImagePre),!1})},refresh:function(t){var e=this;setTimeout(function(){e.fetch(e.imageSrc)},t||e.options.refresh)},fetch:function(t){var e=this,i=new Image;i.onload=function(){e.largeWidth=i.width,e.largeHeight=i.height,e.startZoom(),e.currentImage=e.imageSrc,e.options.onZoomedImageLoaded(e.$elem)},i.src=t},startZoom:function(){var e=this;if(e.nzWidth=e.$elem.width(),e.nzHeight=e.$elem.height(),e.isWindowActive=!1,e.isLensActive=!1,e.isTintActive=!1,e.overWindow=!1,e.options.imageCrossfade&&(e.zoomWrap=e.$elem.wrap('
    '),e.$elem.css("position","absolute")),e.zoomLock=1,e.scrollingLock=!1,e.changeBgSize=!1,e.currentZoomLevel=e.options.zoomLevel,e.nzOffset=e.$elem.offset(),e.widthRatio=e.largeWidth/e.currentZoomLevel/e.nzWidth,e.heightRatio=e.largeHeight/e.currentZoomLevel/e.nzHeight,"window"==e.options.zoomType&&(e.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(e.options.zoomWindowBgColour)+";width: "+String(e.options.zoomWindowWidth)+"px;height: "+String(e.options.zoomWindowHeight)+"px;float: left;background-size: "+e.largeWidth/e.currentZoomLevel+"px "+e.largeHeight/e.currentZoomLevel+"px;display: none;z-index:100;border: "+String(e.options.borderSize)+"px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==e.options.zoomType){var i=e.$elem.css("border-left-width");e.zoomWindowStyle="overflow: hidden;margin-left: "+String(i)+";margin-top: "+String(i)+";background-position: 0px 0px;width: "+String(e.nzWidth)+"px;height: "+String(e.nzHeight)+"px;float: left;display: none;cursor:"+e.options.cursor+";px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"}"window"==e.options.zoomType&&(lensHeight=e.nzHeight
    '),t("body").append(e.zoomContainer),e.options.containLensZoom&&"lens"==e.options.zoomType&&e.zoomContainer.css("overflow","hidden"),"inner"!=e.options.zoomType&&(e.zoomLens=t("
     
    ").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.options.tint&&(e.tintContainer=t("
    ").addClass("tintContainer"),e.zoomTint=t("
    "),e.zoomLens.wrap(e.tintContainer),e.zoomTintcss=e.zoomLens.after(e.zoomTint),e.zoomTintImage=t('').appendTo(e.zoomLens).click(function(){e.$elem.trigger("click")}))),isNaN(e.options.zoomWindowPosition)?e.zoomWindow=t("
     
    ").appendTo("body").click(function(){e.$elem.trigger("click")}):e.zoomWindow=t("
     
    ").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.zoomWindowContainer=t("
    ").addClass("zoomWindowContainer").css("width",e.options.zoomWindowWidth),e.zoomWindow.wrap(e.zoomWindowContainer),"lens"==e.options.zoomType&&e.zoomLens.css({backgroundImage:"url('"+e.imageSrc+"')"}),"window"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),"inner"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),e.$elem.bind("touchmove",function(t){t.preventDefault(),e.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),e.zoomContainer.bind("touchmove",function(t){"inner"==e.options.zoomType&&e.showHideWindow("show"),t.preventDefault(),e.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),e.zoomContainer.bind("touchend",function(){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.$elem.bind("touchend",function(){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.options.showLens&&(e.zoomLens.bind("touchmove",function(t){t.preventDefault(),e.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),e.zoomLens.bind("touchend",function(){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")})),e.$elem.bind("mousemove",function(t){0==e.overWindow&&e.setElements("show"),e.lastX===t.clientX&&e.lastY===t.clientY||(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.zoomContainer.bind("mousemove",function(t){0==e.overWindow&&e.setElements("show"),e.lastX===t.clientX&&e.lastY===t.clientY||(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),"inner"!=e.options.zoomType&&e.zoomLens.bind("mousemove",function(t){e.lastX===t.clientX&&e.lastY===t.clientY||(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.options.tint&&"inner"!=e.options.zoomType&&e.zoomTint.bind("mousemove",function(t){e.lastX===t.clientX&&e.lastY===t.clientY||(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),"inner"==e.options.zoomType&&e.zoomWindow.bind("mousemove",function(t){e.lastX===t.clientX&&e.lastY===t.clientY||(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.zoomContainer.add(e.$elem).mouseenter(function(){0==e.overWindow&&e.setElements("show")}).mouseleave(function(){e.scrollLock||e.setElements("hide")}),"inner"!=e.options.zoomType&&e.zoomWindow.mouseenter(function(){e.overWindow=!0,e.setElements("hide")}).mouseleave(function(){e.overWindow=!1}),e.minZoomLevel=e.options.minZoomLevel?e.options.minZoomLevel:2*e.options.scrollZoomIncrement,e.options.scrollZoom&&e.zoomContainer.add(e.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(i){e.scrollLock=!0,clearTimeout(t.data(this,"timer")),t.data(this,"timer",setTimeout(function(){e.scrollLock=!1},250));var o=i.originalEvent.wheelDelta||-1*i.originalEvent.detail;return i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault(),0=e.minZoomLevel&&e.changeZoomLevel(e.currentZoomLevel-e.options.scrollZoomIncrement):e.options.maxZoomLevel?e.currentZoomLevel<=e.options.maxZoomLevel&&e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement):e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement),!1})},setElements:function(t){if(!this.options.zoomEnabled)return!1;"show"==t&&this.isWindowSet&&("inner"==this.options.zoomType&&this.showHideWindow("show"),"window"==this.options.zoomType&&this.showHideWindow("show"),this.options.showLens&&this.showHideLens("show"),this.options.tint&&"inner"!=this.options.zoomType&&this.showHideTint("show")),"hide"==t&&("window"==this.options.zoomType&&this.showHideWindow("hide"),this.options.tint||this.showHideWindow("hide"),this.options.showLens&&this.showHideLens("hide"),this.options.tint&&this.showHideTint("hide"))},setPosition:function(t){if(!this.options.zoomEnabled)return!1;this.nzHeight=this.$elem.height(),this.nzWidth=this.$elem.width(),this.nzOffset=this.$elem.offset(),this.options.tint&&"inner"!=this.options.zoomType&&(this.zoomTint.css({top:0}),this.zoomTint.css({left:0})),this.options.responsive&&!this.options.scrollZoom&&this.options.showLens&&(lensHeight=this.nzHeightthis.nzHeight-this.zoomLens.height()/2-2*this.options.lensBorderSize,this.Eloppos=this.mouseLeft<0+this.zoomLens.width()/2,this.Eroppos=this.mouseLeft>this.nzWidth-this.zoomLens.width()/2-2*this.options.lensBorderSize),"inner"==this.options.zoomType&&(this.Etoppos=this.mouseTopthis.nzHeight-this.nzHeight/2/this.heightRatio,this.Eloppos=this.mouseLeft<0+this.nzWidth/2/this.widthRatio,this.Eroppos=this.mouseLeft>this.nzWidth-this.nzWidth/2/this.widthRatio-2*this.options.lensBorderSize),0>=this.mouseLeft||0>this.mouseTop||this.mouseLeft>this.nzWidth||this.mouseTop>this.nzHeight?this.setElements("hide"):(this.options.showLens&&(this.lensLeftPos=String(this.mouseLeft-this.zoomLens.width()/2),this.lensTopPos=String(this.mouseTop-this.zoomLens.height()/2)),this.Etoppos&&(this.lensTopPos=0),this.Eloppos&&(this.tintpos=this.lensLeftPos=this.windowLeftPos=0),"window"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),"inner"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.nzWidth-2*this.options.lensBorderSize)),"lens"==this.options.zoomType&&(this.windowLeftPos=String(-1*((t.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((t.pageY-this.nzOffset.top)*this.heightRatio-this.zoomLens.height()/2)),this.zoomLens.css({backgroundPosition:this.windowLeftPos+"px "+this.windowTopPos+"px"}),this.changeBgSize&&(this.nzHeight>this.nzWidth?("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"})):("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"})),this.changeBgSize=!1),this.setWindowPostition(t)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(t),"window"==this.options.zoomType&&this.setWindowPostition(t),"inner"==this.options.zoomType&&this.setWindowPostition(t),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"})))},showHideWindow:function(t){"show"!=t||this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0),"hide"==t&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(t){"show"!=t||this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(),this.isLensActive=!0),"hide"==t&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(t){"show"!=t||this.isTintActive||(this.options.zoomTintFadeIn?this.zoomTint.css({opacity:this.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(this.zoomTint.css({opacity:this.options.tintOpacity}).animate(),this.zoomTint.show()),this.isTintActive=!0),"hide"==t&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(){},setWindowPostition:function(e){var i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=t("#"+i.options.zoomWindowPosition),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffety,i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=i.nzWidth);break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 6:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize));break;case 7:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 10:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize));break;case 11:i.windowOffsetTop=i.options.zoomWindowOffety,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 12:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 13:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize));break;case 15:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 16:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffety,i.windowOffsetLeft=i.nzWidth}i.isWindowSet=!0,i.windowOffsetTop+=i.options.zoomWindowOffety,i.windowOffsetLeft+=i.options.zoomWindowOffetx,i.zoomWindow.css({top:i.windowOffsetTop}),i.zoomWindow.css({left:i.windowOffsetLeft}),"inner"==i.options.zoomType&&(i.zoomWindow.css({top:0}),i.zoomWindow.css({left:0})),i.windowLeftPos=String(-1*((e.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2)),i.windowTopPos=String(-1*((e.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2)),i.Etoppos&&(i.windowTopPos=0),i.Eloppos&&(i.windowLeftPos=0),i.Eboppos&&(i.windowTopPos=-1*(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height())),i.Eroppos&&(i.windowLeftPos=-1*(i.largeWidth/i.currentZoomLevel-i.zoomWindow.width())),i.fullheight&&(i.windowTopPos=0),i.fullwidth&&(i.windowLeftPos=0),"window"!=i.options.zoomType&&"inner"!=i.options.zoomType||(1==i.zoomLock&&(1>=i.widthRatio&&(i.windowLeftPos=0),1>=i.heightRatio&&(i.windowTopPos=0)),i.largeHeighti.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!=i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}),i.scrollingLock=!1,i.loop=!1):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!=i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.xp+"px "+i.yp+"px"}))},16))):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.largeHeight/i.newvaluewidth
    '),o.$elem.after(o.spinner)),o.options.onImageSwap(o.$elem),n.onload=function(){o.largeWidth=n.width,o.largeHeight=n.height,o.zoomImage=i,o.zoomWindow.css({"background-size":o.largeWidth+"px "+o.largeHeight+"px"}),o.zoomWindow.css({"background-size":o.largeWidth+"px "+o.largeHeight+"px"}),o.swapAction(e,i)},n.src=i},swapAction:function(e,i){var o=this,n=new Image;if(n.onload=function(){o.nzHeight=n.height,o.nzWidth=n.width,o.options.onImageSwapComplete(o.$elem),o.doneCallback()},n.src=e,o.currentZoomLevel=o.options.zoomLevel,o.options.maxZoomLevel=!1,"lens"==o.options.zoomType&&o.zoomLens.css({backgroundImage:"url('"+i+"')"}),"window"==o.options.zoomType&&o.zoomWindow.css({backgroundImage:"url('"+i+"')"}),"inner"==o.options.zoomType&&o.zoomWindow.css({backgroundImage:"url('"+i+"')"}),o.currentImage=i,o.options.imageCrossfade){var s=o.$elem,r=s.clone();o.$elem.attr("src",e),o.$elem.after(r),r.stop(!0).fadeOut(o.options.imageCrossfade,function(){t(this).remove()}),o.$elem.width("auto").removeAttr("width"),o.$elem.height("auto").removeAttr("height"),s.fadeIn(o.options.imageCrossfade),o.options.tint&&"inner"!=o.options.zoomType&&(r=(s=o.zoomTintImage).clone(),o.zoomTintImage.attr("src",i),o.zoomTintImage.after(r),r.stop(!0).fadeOut(o.options.imageCrossfade,function(){t(this).remove()}),s.fadeIn(o.options.imageCrossfade),o.zoomTint.css({height:o.$elem.height()}),o.zoomTint.css({width:o.$elem.width()})),o.zoomContainer.css("height",o.$elem.height()),o.zoomContainer.css("width",o.$elem.width()),"inner"!=o.options.zoomType||o.options.constrainType||(o.zoomWrap.parent().css("height",o.$elem.height()),o.zoomWrap.parent().css("width",o.$elem.width()),o.zoomWindow.css("height",o.$elem.height()),o.zoomWindow.css("width",o.$elem.width()))}else o.$elem.attr("src",e),o.options.tint&&(o.zoomTintImage.attr("src",i),o.zoomTintImage.attr("height",o.$elem.height()),o.zoomTintImage.css({height:o.$elem.height()}),o.zoomTint.css({height:o.$elem.height()})),o.zoomContainer.css("height",o.$elem.height()),o.zoomContainer.css("width",o.$elem.width());o.options.imageCrossfade&&(o.zoomWrap.css("height",o.$elem.height()),o.zoomWrap.css("width",o.$elem.width())),o.options.constrainType&&("height"==o.options.constrainType&&(o.zoomContainer.css("height",o.options.constrainSize),o.zoomContainer.css("width","auto"),o.options.imageCrossfade?(o.zoomWrap.css("height",o.options.constrainSize),o.zoomWrap.css("width","auto"),o.constwidth=o.zoomWrap.width()):(o.$elem.css("height",o.options.constrainSize),o.$elem.css("width","auto"),o.constwidth=o.$elem.width()),"inner"==o.options.zoomType&&(o.zoomWrap.parent().css("height",o.options.constrainSize),o.zoomWrap.parent().css("width",o.constwidth),o.zoomWindow.css("height",o.options.constrainSize),o.zoomWindow.css("width",o.constwidth)),o.options.tint&&(o.tintContainer.css("height",o.options.constrainSize),o.tintContainer.css("width",o.constwidth),o.zoomTint.css("height",o.options.constrainSize),o.zoomTint.css("width",o.constwidth),o.zoomTintImage.css("height",o.options.constrainSize),o.zoomTintImage.css("width",o.constwidth))),"width"==o.options.constrainType&&(o.zoomContainer.css("height","auto"),o.zoomContainer.css("width",o.options.constrainSize),o.options.imageCrossfade?(o.zoomWrap.css("height","auto"),o.zoomWrap.css("width",o.options.constrainSize),o.constheight=o.zoomWrap.height()):(o.$elem.css("height","auto"),o.$elem.css("width",o.options.constrainSize),o.constheight=o.$elem.height()),"inner"==o.options.zoomType&&(o.zoomWrap.parent().css("height",o.constheight),o.zoomWrap.parent().css("width",o.options.constrainSize),o.zoomWindow.css("height",o.constheight),o.zoomWindow.css("width",o.options.constrainSize)),o.options.tint&&(o.tintContainer.css("height",o.constheight),o.tintContainer.css("width",o.options.constrainSize),o.zoomTint.css("height",o.constheight),o.zoomTint.css("width",o.options.constrainSize),o.zoomTintImage.css("height",o.constheight),o.zoomTintImage.css("width",o.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide(),this.nzOffset=this.$elem.offset(),this.nzWidth=this.$elem.width(),this.nzHeight=this.$elem.height(),this.currentZoomLevel=this.options.zoomLevel,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"window"==this.options.zoomType&&(lensHeight=this.nzHeightmaxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue>maxwidthtnewvalue?maxwidthtnewvalue:newvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1)),scrcontinue=!1,"inner"==this.options.zoomType&&(this.nzWidth>this.nzHeight&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0)),this.nzHeight>this.nzWidth&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0))),"inner"!=this.options.zoomType&&(scrcontinue=!0),scrcontinue&&(this.zoomLock=0,this.changeZoom=!0,this.options.zoomWindowHeight/this.heightRatio<=this.nzHeight&&(this.currentZoomLevel=this.newvalueheight,"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({height:String(this.options.zoomWindowHeight/this.heightRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),this.options.zoomWindowWidth/this.widthRatio<=this.nzWidth&&("inner"!=this.options.zoomType&&this.newvaluewidth>this.newvalueheight&&(this.currentZoomLevel=this.newvaluewidth),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({width:String(this.options.zoomWindowWidth/this.widthRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),"inner"==this.options.zoomType&&(this.changeBgSize=!0,this.nzWidth>this.nzHeight&&(this.currentZoomLevel=this.newvaluewidth),this.nzHeight>this.nzWidth&&(this.currentZoomLevel=this.newvaluewidth))),this.setPosition(this.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(t){"enable"==t&&(this.options.zoomEnabled=!0),"disable"==t&&(this.options.zoomEnabled=!1)}},t.fn.elevateZoom=function(i){return this.each(function(){var o=Object.create(e);o.init(i,this),t.data(this,"elevateZoom",o)})},t.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:t.noop,onZoomedImageLoaded:function(){},onImageSwap:t.noop,onImageSwapComplete:t.noop}},function(){var t,e,i,o,n,s,r,a,l,c,d,u,p,h,f,m,g,v,y,w,b,x,S,k,T,C,_,E,z,I,O,A,$,P,L,W;t=jQuery,e={showEvent:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},colorScheme:"light",color:"3289c7",livePreview:!0,flat:!1,layout:"full",submit:1,submitText:"OK",height:156},i=function(e,i){var o=P(e);t(i).data("colpick").fields.eq(1).val(o.r).end().eq(2).val(o.g).end().eq(3).val(o.b).end()},o=function(e,i){t(i).data("colpick").fields.eq(4).val(Math.round(e.h)).end().eq(5).val(Math.round(e.s)).end().eq(6).val(Math.round(e.b)).end()},n=function(e,i){t(i).data("colpick").fields.eq(0).val(W(e))},s=function(e,i){t(i).data("colpick").selector.css("backgroundColor","#"+W({h:e.h,s:100,b:100})),t(i).data("colpick").selectorIndic.css({left:parseInt(t(i).data("colpick").height*e.s/100,10),top:parseInt(t(i).data("colpick").height*(100-e.b)/100,10)})},r=function(e,i){t(i).data("colpick").hue.css("top",parseInt(t(i).data("colpick").height-t(i).data("colpick").height*e.h/360,10))},a=function(e,i){t(i).data("colpick").currentColor.css("backgroundColor","#"+W(e))},l=function(e,i){t(i).data("colpick").newColor.css("backgroundColor","#"+W(e))},c=function(){var e,a=t(this).parent().parent();this.parentNode.className.indexOf("_hex")>0?(a.data("colpick").color=e=A(E(this.value)),i(e,a.get(0)),o(e,a.get(0))):this.parentNode.className.indexOf("_hsb")>0?(a.data("colpick").color=e=C({h:parseInt(a.data("colpick").fields.eq(4).val(),10),s:parseInt(a.data("colpick").fields.eq(5).val(),10),b:parseInt(a.data("colpick").fields.eq(6).val(),10)}),i(e,a.get(0)),n(e,a.get(0))):(a.data("colpick").color=e=$(_({r:parseInt(a.data("colpick").fields.eq(1).val(),10),g:parseInt(a.data("colpick").fields.eq(2).val(),10),b:parseInt(a.data("colpick").fields.eq(3).val(),10)})),n(e,a.get(0)),o(e,a.get(0))),s(e,a.get(0)),r(e,a.get(0)),l(e,a.get(0)),a.data("colpick").onChange.apply(a.parent(),[e,W(e),P(e),a.data("colpick").el,0])},d=function(){t(this).parent().removeClass("colpick_focus")},u=function(){t(this).parent().parent().data("colpick").fields.parent().removeClass("colpick_focus"),t(this).parent().addClass("colpick_focus")},p=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1;var i=t(this).parent().find("input").focus(),o={el:t(this).parent().addClass("colpick_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:e.pageY,field:i,val:parseInt(i.val(),10),preview:t(this).parent().parent().data("colpick").livePreview};t(document).mouseup(o,f),t(document).mousemove(o,h)},h=function(t){return t.data.field.val(Math.max(0,Math.min(t.data.max,parseInt(t.data.val-t.pageY+t.data.y,10)))),t.data.preview&&c.apply(t.data.field.get(0),[!0]),!1},f=function(e){return c.apply(e.data.field.get(0),[!0]),e.data.el.removeClass("colpick_slider").find("input").focus(),t(document).off("mouseup",f),t(document).off("mousemove",h),!1},m=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1;var i={cal:t(this).parent(),y:t(this).offset().top};t(document).on("mouseup touchend",i,v),t(document).on("mousemove touchmove",i,g);var o="touchstart"==e.type?e.originalEvent.changedTouches[0].pageY:e.pageY;return c.apply(i.cal.data("colpick").fields.eq(4).val(parseInt(360*(i.cal.data("colpick").height-(o-i.y))/i.cal.data("colpick").height,10)).get(0),[i.cal.data("colpick").livePreview]),!1},g=function(t){var e="touchmove"==t.type?t.originalEvent.changedTouches[0].pageY:t.pageY;return c.apply(t.data.cal.data("colpick").fields.eq(4).val(parseInt(360*(t.data.cal.data("colpick").height-Math.max(0,Math.min(t.data.cal.data("colpick").height,e-t.data.y)))/t.data.cal.data("colpick").height,10)).get(0),[t.data.preview]),!1},v=function(e){return i(e.data.cal.data("colpick").color,e.data.cal.get(0)),n(e.data.cal.data("colpick").color,e.data.cal.get(0)),t(document).off("mouseup touchend",v),t(document).off("mousemove touchmove",g),!1},y=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1;var i={cal:t(this).parent(),pos:t(this).offset()};i.preview=i.cal.data("colpick").livePreview,t(document).on("mouseup touchend",i,b),t(document).on("mousemove touchmove",i,w);var o=e.pageX,n=e.pageY;return"touchstart"==e.type&&(o=e.originalEvent.changedTouches[0].pageX,n=e.originalEvent.changedTouches[0].pageY),c.apply(i.cal.data("colpick").fields.eq(6).val(parseInt(100*(i.cal.data("colpick").height-(n-i.pos.top))/i.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*(o-i.pos.left)/i.cal.data("colpick").height,10)).get(0),[i.preview]),!1},w=function(t){var e=t.pageX,i=t.pageY;return"touchmove"==t.type&&(e=t.originalEvent.changedTouches[0].pageX,i=t.originalEvent.changedTouches[0].pageY),c.apply(t.data.cal.data("colpick").fields.eq(6).val(parseInt(100*(t.data.cal.data("colpick").height-Math.max(0,Math.min(t.data.cal.data("colpick").height,i-t.data.pos.top)))/t.data.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(t.data.cal.data("colpick").height,e-t.data.pos.left))/t.data.cal.data("colpick").height,10)).get(0),[t.data.preview]),!1},b=function(e){return i(e.data.cal.data("colpick").color,e.data.cal.get(0)),n(e.data.cal.data("colpick").color,e.data.cal.get(0)),t(document).off("mouseup touchend",b),t(document).off("mousemove touchmove",w),!1},x=function(){var e=t(this).parent(),i=e.data("colpick").color;e.data("colpick").origColor=i,a(i,e.get(0)),e.data("colpick").onSubmit(i,W(i),P(i),e.data("colpick").el)},S=function(e){e.stopPropagation();var i=t("#"+t(this).data("colpickid"));i.data("colpick").onBeforeShow.apply(this,[i.get(0)]);var o=t(this).offset(),n=o.top-t(window).scrollTop(),s=o.left-3,r=T(),a=i.width();s+a>r.l+r.w&&(s-=a),i.css({left:s+"px",top:n+"px"}),0!=i.data("colpick").onShow.apply(this,[i.get(0)])&&i.show(),t("html").mousedown({cal:i},k),i.mousedown(function(t){t.stopPropagation()})},k=function(e){0!=e.data.cal.data("colpick").onHide.apply(this,[e.data.cal.get(0)])&&e.data.cal.hide(),t("html").off("mousedown",k)},T=function(){var t="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(t?document.documentElement.scrollLeft:document.body.scrollLeft),w:window.innerWidth||(t?document.documentElement.clientWidth:document.body.clientWidth)}},C=function(t){return{h:Math.min(360,Math.max(0,t.h)),s:Math.min(100,Math.max(0,t.s)),b:Math.min(100,Math.max(0,t.b))}},_=function(t){return{r:Math.min(255,Math.max(0,t.r)),g:Math.min(255,Math.max(0,t.g)),b:Math.min(255,Math.max(0,t.b))}},E=function(t){var e=6-t.length;if(e>0){for(var i=[],o=0;o
    #
    R
    G
    B
    H
    S
    B
    ').attr("id",f);g.addClass("colpick_"+e.layout+(e.submit?"":" colpick_"+e.layout+"_ns")),"light"!=e.colorScheme&&g.addClass("colpick_"+e.colorScheme),g.find("div.colpick_submit").html(e.submitText).click(x),e.fields=g.find("input").change(c).blur(d).focus(u),g.find("div.colpick_field_arrs").mousedown(p).end().find("div.colpick_current_color").click(z),e.selector=g.find("div.colpick_color").on("mousedown touchstart",y),e.selectorIndic=e.selector.find("div.colpick_selector_outer"),e.el=this,e.hue=g.find("div.colpick_hue_arrs");var v=e.hue.parent(),w=navigator.userAgent.toLowerCase(),b="Microsoft Internet Explorer"===navigator.appName,k=b?parseFloat(w.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,T=["#ff0000","#ff0080","#ff00ff","#8000ff","#0000ff","#0080ff","#00ffff","#00ff80","#00ff00","#80ff00","#ffff00","#ff8000","#ff0000"];if(b&&k<10){var C,_;for(C=0;C<=11;C++)_=t("
    ").attr("style","height:8.333333%; filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="+T[C]+", endColorstr="+T[C+1]+'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='+T[C]+", endColorstr="+T[C+1]+')";'),v.append(_)}else{var E=T.join(",");v.attr("style","background:-webkit-linear-gradient(top,"+E+"); background: -o-linear-gradient(top,"+E+"); background: -ms-linear-gradient(top,"+E+"); background:-moz-linear-gradient(top,"+E+"); -webkit-linear-gradient(top,"+E+"); background:linear-gradient(to bottom,"+E+"); ")}g.find("div.colpick_hue").on("mousedown touchstart",m),e.newColor=g.find("div.colpick_new_color"),e.currentColor=g.find("div.colpick_current_color"),g.data("colpick",e),i(e.color,g.get(0)),o(e.color,g.get(0)),n(e.color,g.get(0)),r(e.color,g.get(0)),s(e.color,g.get(0)),a(e.color,g.get(0)),l(e.color,g.get(0)),e.flat?(g.appendTo(this).show(),g.css({position:"relative",display:"block"})):(g.appendTo(document.body),t(this).on(e.showEvent,S),g.css({position:"fixed"}))}})},showPicker:function(){return this.each(function(){t(this).data("colpickid")&&S.apply(this)})},hidePicker:function(){return this.each(function(){t(this).data("colpickid")&&t("#"+t(this).data("colpickid")).hide()})},setColor:function(e,c){if(c=void 0===c?1:c,"string"==typeof e)e=A(e);else if(void 0!=e.r&&void 0!=e.g&&void 0!=e.b)e=$(e);else{if(void 0==e.h||void 0==e.s||void 0==e.b)return this;e=C(e)}return this.each(function(){if(t(this).data("colpickid")){var d=t("#"+t(this).data("colpickid"));d.data("colpick").color=e,d.data("colpick").origColor=e,i(e,d.get(0)),o(e,d.get(0)),n(e,d.get(0)),r(e,d.get(0)),s(e,d.get(0)),l(e,d.get(0)),d.data("colpick").onChange.apply(d.parent(),[e,W(e),P(e),d.data("colpick").el,1]),c&&a(e,d.get(0))}})}},O=function(t){return{r:(t=parseInt(t.indexOf("#")>-1?t.substring(1):t,16))>>16,g:(65280&t)>>8,b:255&t}},A=function(t){return $(O(t))},$=function(t){var e={h:0,s:0,b:0},i=Math.min(t.r,t.g,t.b),o=Math.max(t.r,t.g,t.b),n=o-i;return e.b=o,e.s=0!=o?255*n/o:0,0!=e.s?t.r==o?e.h=(t.g-t.b)/n:t.g==o?e.h=2+(t.b-t.r)/n:e.h=4+(t.r-t.g)/n:e.h=-1,e.h*=60,e.h<0&&(e.h+=360),e.s*=100/255,e.b*=100/255,e},P=function(t){var e={},i=t.h,o=255*t.s/100,n=255*t.b/100;if(0==o)e.r=e.g=e.b=n;else{var s=n,r=(255-o)*n/255,a=i%60*(s-r)/60;360==i&&(i=0),i<60?(e.r=s,e.b=r,e.g=r+a):i<120?(e.g=s,e.b=r,e.r=s-a):i<180?(e.g=s,e.r=r,e.b=r+a):i<240?(e.b=s,e.r=r,e.g=s-a):i<300?(e.b=s,e.g=r,e.r=r+a):i<360?(e.r=s,e.g=r,e.b=s-a):(e.r=0,e.g=0,e.b=0)}return{r:Math.round(e.r),g:Math.round(e.g),b:Math.round(e.b)}},L=function(e){var i=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return t.each(i,function(t,e){1==e.length&&(i[t]="0"+e)}),i.join("")},W=function(t){return L(P(t))},t.fn.extend({colpick:I.init,colpickHide:I.hidePicker,colpickShow:I.showPicker,colpickSetColor:I.setColor}),t.extend({colpick:{rgbToHex:L,rgbToHsb:$,hsbToHex:W,hsbToRgb:P,hexToHsb:A,hexToRgb:O}})},function(){var t;(t=jQuery).fn.nivoSlider=function(e){return this.each(function(){var i=t(this);if(i.data("nivoslider"))return i.data("nivoslider");var o=new function(e,i){var o=t.extend({},t.fn.nivoSlider.defaults,i),n={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},s=t(e);s.data("nivo:vars",n).addClass("nivoSlider");var r=s.children();r.each(function(){var e=t(this),i="";e.is("img")||(e.is("a")&&(e.addClass("nivo-imageLink"),i=e),e=e.find("img:first"));var o=0===o?e.attr("width"):e.width(),s=0===s?e.attr("height"):e.height();""!==i&&i.css("display","none"),e.css("display","none"),n.totalSlides++}),o.randomStart&&(o.startSlide=Math.floor(Math.random()*n.totalSlides)),o.startSlide>0&&(o.startSlide>=n.totalSlides&&(o.startSlide=n.totalSlides-1),n.currentSlide=o.startSlide),t(r[n.currentSlide]).is("img")?n.currentImage=t(r[n.currentSlide]):n.currentImage=t(r[n.currentSlide]).find("img:first"),t(r[n.currentSlide]).is("a")&&t(r[n.currentSlide]).css("display","block");var a=t("").addClass("nivo-main-image");a.attr("src",n.currentImage.attr("src")).show(),s.removeClass("waiting-active-nivoslider").append(a),t(window).resize(function(){s.children("img").width(s.width()),a.attr("src",n.currentImage.attr("src")),a.stop().height("auto"),t(".nivo-slice").remove(),t(".nivo-box").remove()}),s.append(t('
    '));var l=function(e){var i=t(".nivo-caption",s);if(""!=n.currentImage.attr("title")&&void 0!=n.currentImage.attr("title")){var o=n.currentImage.attr("title");"#"==o.substr(0,1)&&(o=t(o).html()),"block"==i.css("display")?setTimeout(function(){i.html(o)},e.animSpeed):(i.html(o),i.stop().fadeIn(e.animSpeed))}else i.stop().fadeOut(e.animSpeed)};l(o);var c=0;if(!o.manualAdvance&&r.length>1&&(c=setInterval(function(){f(s,r,o,!1)},o.pauseTime)),o.directionNav&&(s.append('"),t(s).on("click","a.nivo-prevNav",function(){if(n.running)return!1;clearInterval(c),c="",n.currentSlide-=2,f(s,r,o,"prev")}),t(s).on("click","a.nivo-nextNav",function(){if(n.running)return!1;clearInterval(c),c="",f(s,r,o,"next")})),o.controlNav){n.controlNavEl=t('
    '),s.after(n.controlNavEl);for(var d=0;d')}else n.controlNavEl.append(''+(d+1)+"");t("a:eq("+n.currentSlide+")",n.controlNavEl).addClass("active"),t("a",n.controlNavEl).bind("click",function(){return!n.running&&!t(this).hasClass("active")&&(clearInterval(c),c="",a.attr("src",n.currentImage.attr("src")),n.currentSlide=t(this).attr("rel")-1,void f(s,r,o,"control"))})}o.pauseOnHover&&s.hover(function(){n.paused=!0,clearInterval(c),c=""},function(){n.paused=!1,""!==c||o.manualAdvance||(c=setInterval(function(){f(s,r,o,!1)},o.pauseTime))}),s.bind("nivo:animFinished",function(){a.attr("src",n.currentImage.attr("src")),n.running=!1,t(r).each(function(){t(this).is("a")&&t(this).css("display","none")}),t(r[n.currentSlide]).is("a")&&t(r[n.currentSlide]).css("display","block"),""!==c||n.paused||o.manualAdvance||(c=setInterval(function(){f(s,r,o,!1)},o.pauseTime)),o.afterChange.call(this)});var p=function(e,i,o){t(o.currentImage).parent().is("a")&&t(o.currentImage).parent().css("display","block"),t('img[src="'+o.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show();for(var n=t('img[src="'+o.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().is("a")?t('img[src="'+o.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().height():t('img[src="'+o.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height(),s=0;s
    ').css({left:r*s+"px",width:e.width()-r*s+"px",height:n+"px",opacity:"0",overflow:"hidden"})):e.append(t('
    ').css({left:r*s+"px",width:r+"px",height:n+"px",opacity:"0",overflow:"hidden"}))}t(".nivo-slice",e).height(n),a.stop().animate({height:t(o.currentImage).height()},i.animSpeed)},h=function(e,i,o){t(o.currentImage).parent().is("a")&&t(o.currentImage).parent().css("display","block"),t('img[src="'+o.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show();for(var n=Math.round(e.width()/i.boxCols),s=Math.round(t('img[src="'+o.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height()/i.boxRows),r=0;r').css({opacity:0,left:n*l+"px",top:s*r+"px",width:e.width()-n*l+"px"})),t('.nivo-box[name="'+l+'"]',e).height(t('.nivo-box[name="'+l+'"] img',e).height()+"px")):(e.append(t('
    ').css({opacity:0,left:n*l+"px",top:s*r+"px",width:n+"px"})),t('.nivo-box[name="'+l+'"]',e).height(t('.nivo-box[name="'+l+'"] img',e).height()+"px"));a.stop().animate({height:t(o.currentImage).height()},i.animSpeed)},f=function(e,i,o,n){var s=e.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1&&o.lastSlide.call(this),(!s||s.stop)&&!n)return!1;o.beforeChange.call(this),n?("prev"===n&&a.attr("src",s.currentImage.attr("src")),"next"===n&&a.attr("src",s.currentImage.attr("src"))):a.attr("src",s.currentImage.attr("src")),s.currentSlide++,s.currentSlide===s.totalSlides&&(s.currentSlide=0,o.slideshowEnd.call(this)),s.currentSlide<0&&(s.currentSlide=s.totalSlides-1),t(i[s.currentSlide]).is("img")?s.currentImage=t(i[s.currentSlide]):s.currentImage=t(i[s.currentSlide]).find("img:first"),o.controlNav&&(t("a",s.controlNavEl).removeClass("active"),t("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")),l(o),t(".nivo-slice",e).remove(),t(".nivo-box",e).remove();var r=o.effect,c="";"random"===o.effect&&(c=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),void 0===(r=c[Math.floor(Math.random()*(c.length+1))])&&(r="fade")),-1!==o.effect.indexOf(",")&&(c=o.effect.split(","),void 0===(r=c[Math.floor(Math.random()*c.length)])&&(r="fade")),s.currentImage.attr("data-transition")&&(r=s.currentImage.attr("data-transition")),s.running=!0;var d=0,u=0,f="",g="",v="",y="";if("sliceDown"===r||"sliceDownRight"===r||"sliceDownLeft"===r)p(e,o,s),d=0,u=0,f=t(".nivo-slice",e),"sliceDownLeft"===r&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);i.css({top:"0px"}),u===o.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},o.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+d):setTimeout(function(){i.animate({opacity:"1.0"},o.animSpeed)},100+d),d+=50,u++});else if("sliceUp"===r||"sliceUpRight"===r||"sliceUpLeft"===r)p(e,o,s),d=0,u=0,f=t(".nivo-slice",e),"sliceUpLeft"===r&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);i.css({bottom:"0px"}),u===o.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},o.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+d):setTimeout(function(){i.animate({opacity:"1.0"},o.animSpeed)},100+d),d+=50,u++});else if("sliceUpDown"===r||"sliceUpDownRight"===r||"sliceUpDownLeft"===r){p(e,o,s),d=0,u=0;var w=0;f=t(".nivo-slice",e),"sliceUpDownLeft"===r&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);0===u?(i.css("top","0px"),u++):(i.css("bottom","0px"),u=0),w===o.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},o.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+d):setTimeout(function(){i.animate({opacity:"1.0"},o.animSpeed)},100+d),d+=50,w++})}else if("fold"===r)p(e,o,s),d=0,u=0,t(".nivo-slice",e).each(function(){var i=t(this),n=i.width();i.css({top:"0px",width:"0px"}),u===o.slices-1?setTimeout(function(){i.animate({width:n,opacity:"1.0"},o.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+d):setTimeout(function(){i.animate({width:n,opacity:"1.0"},o.animSpeed)},100+d),d+=50,u++});else if("fade"===r)p(e,o,s),(g=t(".nivo-slice:first",e)).css({width:e.width()+"px"}),g.animate({opacity:"1.0"},2*o.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInRight"===r)p(e,o,s),(g=t(".nivo-slice:first",e)).css({width:"0px",opacity:"1"}),g.animate({width:e.width()+"px"},2*o.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInLeft"===r)p(e,o,s),(g=t(".nivo-slice:first",e)).css({width:"0px",opacity:"1",left:"",right:"0px"}),g.animate({width:e.width()+"px"},2*o.animSpeed,"",function(){g.css({left:"0px",right:""}),e.trigger("nivo:animFinished")});else if("boxRandom"===r)h(e,o,s),v=o.boxCols*o.boxRows,u=0,d=0,(y=m(t(".nivo-box",e))).each(function(){var i=t(this);u===v-1?setTimeout(function(){i.animate({opacity:"1"},o.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+d):setTimeout(function(){i.animate({opacity:"1"},o.animSpeed)},100+d),d+=20,u++});else if("boxRain"===r||"boxRainReverse"===r||"boxRainGrow"===r||"boxRainGrowReverse"===r){h(e,o,s),v=o.boxCols*o.boxRows,u=0,d=0;var b=0,x=0,S=[];S[b]=[],y=t(".nivo-box",e),"boxRainReverse"!==r&&"boxRainGrowReverse"!==r||(y=t(".nivo-box",e)._reverse()),y.each(function(){S[b][x]=t(this),++x===o.boxCols&&(x=0,S[++b]=[])});for(var k=0;k<2*o.boxCols;k++){for(var T=k,C=0;C=0&&T1?i:o}var n=[],s=[],r={precision:100,elapse:!1,defer:!1};s.push(/^[0-9]*$/.source),s.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),s.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),s=new RegExp(s.join("|"));var a={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"},l=function(e,i,o){this.el=e,this.$el=t(e),this.interval=null,this.offset={},this.options=t.extend({},r),this.instanceNumber=n.length,n.push(this),this.$el.data("countdown-instance",this.instanceNumber),o&&("function"==typeof o?(this.$el.on("update.countdown",o),this.$el.on("stoped.countdown",o),this.$el.on("finish.countdown",o)):this.options=t.extend({},r,o)),this.setFinalDate(i),!1===this.options.defer&&this.start()};t.extend(l.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),n[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=function(t){if(t instanceof Date)return t;if(String(t).match(s))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.")}(t)},update:function(){if(0!==this.$el.closest("html").length){var e,i=void 0!==t._data(this.el,"events"),o=new Date;e=this.finalDate.getTime()-o.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=o>=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()-o.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")))}else this.remove()},dispatchEvent:function(e){var o=t.Event(e+".countdown");o.finalDate=this.finalDate,o.elapsed=this.elapsed,o.offset=t.extend({},this.offset),o.strftime=i(this.offset),this.$el.trigger(o)}}),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 o=n[i],s=e[0];l.prototype.hasOwnProperty(s)?o[s].apply(o,e.slice(1)):null===String(s).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(o.setFinalDate.call(o,s),o.start()):t.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,s))}else new l(this,e[0],e[1])})}})?o.apply(e,n):o)||(t.exports=s)}()},function(t,e,i){var o,n,s;n=[i(0)],void 0===(s="function"==typeof(o=function(t){var e=Array.prototype.slice,i=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},n=t(window),s=t(document),r=[],a=n.height(),l=function(){for(var e=n.scrollTop(),i=s.height(),o=i-a,l=e>o?o-e:0,c=0,d=r.length;cm||null===u.currentTop&&m=g.offset().top+g.outerHeight()&&u.stickyElement.offset().top<=u.topSpacing;v?u.stickyElement.css("position","absolute").css("top","").css("bottom",0):u.stickyElement.css("position","fixed").css("top",m).css("bottom","")}}},c=function(){a=n.height();for(var e=0,i=r.length;e").attr("id",a).addClass(i.wrapperClassName);n.wrapAll(function(){if(0==t(this).parent("#"+a).length)return l});var c=n.parent();i.center&&c.css({width:n.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===n.css("float")&&n.css({float:"none"}).parent().css({float:"right"}),i.stickyElement=n,i.stickyWrapper=c,i.currentTop=null,r.push(i),d.setWrapperHeight(this),d.setupChangeListeners(this)})},setWrapperHeight:function(e){var i=t(e),o=i.parent();o&&o.css("height",i.outerHeight())},setupChangeListeners:function(t){if(window.MutationObserver){var e=new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)});e.observe(t,{subtree:!0,childList:!0})}else window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){d.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){d.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){d.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){d.setWrapperHeight(t)}))},update:l,unstick:function(){return this.each(function(){for(var e=t(this),o=-1,n=r.length;n-- >0;)r[n].stickyElement.get(0)===this&&(i.call(r,n,1),o=n);-1!==o&&(e.unwrap(),e.css({width:"",position:"",top:"",float:""}))})}};window.addEventListener?(window.addEventListener("scroll",l,!1),window.addEventListener("resize",c,!1)):window.attachEvent&&(window.attachEvent("onscroll",l),window.attachEvent("onresize",c)),t.fn.sticky=function(i){return d[i]?d[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t.fn.unstick=function(i){return d[i]?d[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},t(function(){setTimeout(l,0)})})?o.apply(e,n):o)||(t.exports=s)},function(){!function(){var t,e,i,o,n,s,r,a,l,c,d,u,p,h,f,m,g,v,y,w,b,x,S,k,T,C,_,E,z,I,O,A,$,P,L,W,j,D,H,N,M,B,F,R,V,q,U,Y,X=[].slice,Q={}.hasOwnProperty,Z=function(t,e){for(var i in e)Q.call(e,i)&&(t[i]=e[i]);function o(){this.constructor=t}return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t},G=[].indexOf||function(t){for(var e=0,i=this.length;e=33?(e=z(),t(o,function(){return O(i)})):setTimeout(i,33-o)})()},A=function(){var t,e,i;return i=arguments[0],e=arguments[1],t=3<=arguments.length?X.call(arguments,2):[],"function"==typeof i[e]?i[e].apply(i,t):i[e]},x=function(){var t,e,i,o,n,s,r;for(e=arguments[0],s=0,r=(o=2<=arguments.length?X.call(arguments,1):[]).length;s=100?i="99":(i=this.progress<10?"0":"",i+=0|this.progress),t.children[0].setAttribute("data-progress",""+i)),this.lastRenderedProgress=this.progress},t.prototype.done=function(){return this.progress>=100},t}(),a=function(){function t(){this.bindings={}}return t.prototype.trigger=function(t,e){var i,o,n,s,r;if(null!=this.bindings[t]){for(r=[],o=0,n=(s=this.bindings[t]).length;o=0)return!0}return!1},d=function(){function t(){var e,i=this;t.__super__.constructor.apply(this,arguments),e=function(t){var e;return e=t.open,t.open=function(o,n){return W(o)&&i.trigger("request",{type:o,url:n,request:t}),e.apply(t,arguments)}},window.XMLHttpRequest=function(t){var i;return i=new B(t),e(i),i};try{S(window.XMLHttpRequest,B)}catch(t){}if(null!=M){window.XDomainRequest=function(){var t;return t=new M,e(t),t};try{S(window.XDomainRequest,M)}catch(t){}}if(null!=N&&I.ajax.trackWebSockets){window.WebSocket=function(t,e){var o;return o=null!=e?new N(t,e):new N(t),W("socket")&&i.trigger("request",{type:"socket",url:t,protocols:e,request:o}),o};try{S(window.WebSocket,N)}catch(t){}}}return Z(t,a),t}(),R=null,L=function(t){var e,i,o,n;for(i=0,o=(n=I.ajax.ignoreURLs).length;iI.eventLag.sampleCount&&n.shift(),t=g(n),++o>=I.eventLag.minSamples&&t=100&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/I.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),i=1-Math.pow(this.progress/100,I.easeFactor),this.progress+=i*this.rate*t,this.progress=Math.min(this.lastProgress+I.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},t}(),D=null,P=null,v=null,H=null,m=null,y=null,c.running=!1,C=function(){if(I.restartOnPushState)return c.restart()},null!=window.history.pushState&&(q=window.history.pushState,window.history.pushState=function(){return C(),q.apply(window.history,arguments)}),null!=window.history.replaceState&&(Y=window.history.replaceState,window.history.replaceState=function(){return C(),Y.apply(window.history,arguments)}),u={ajax:t,elements:o,document:i,eventLag:s},(E=function(){var t,i,o,n,s,r,a,l;for(c.sources=D=[],i=0,n=(r=["ajax","elements","document","eventLag"]).length;i0?i.push(this):(e[n](1),o=e[n]()>0,o&&i.push(this),e[n](0))):(i.push(document.scrollingElement),!1)}),i.length||this.each(function(){this===document.documentElement&&"smooth"===t(this).css("scrollBehavior")&&(i=[this]),i.length||"BODY"!==this.nodeName||(i=[this])}),"first"===e.el&&i.length>1&&(i=[i[0]]),i},o=/^([\-\+]=)(\d+)/;t.fn.extend({scrollable:function(t){var e=i.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=i.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(e,i){if("options"===(e=e||{}))return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var o=t.extend({},t.fn.smoothScroll.defaults,e),n=function(e){var i=function(t){return t.replace(/(:|\.|\/)/g,"\\$1")},n=this,s=t(this),r=t.extend({},o,s.data("ssOpts")||{}),a=o.exclude,l=r.excludeWithin,c=0,d=0,u=!0,p={},h=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(n.pathname),m=location.hostname===n.hostname||!n.hostname,g=r.scrollTarget||f===h,v=i(n.hash);if(v&&!t(v).length&&(u=!1),r.scrollTarget||m&&g&&v){for(;u&&cPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('",n.append(i)):(i='",t(i).insertBefore(f));s.hasClass("input-group-btn")?(o='",s.prepend(o)):(o='",t(o).insertAfter(f));t(l).insertBefore(f),t(c).insertAfter(f),a=e}(i):function(){var e;e=r.verticalbuttons?'
    '+r.prefix+''+r.postfix+'
    ':'
    '+r.prefix+''+r.postfix+'
    ";a=t(e).insertBefore(f),t(".bootstrap-touchspin-prefix",a).after(f),f.hasClass("input-sm")?a.addClass("input-group-sm"):f.hasClass("input-lg")&&a.addClass("input-group-lg")}()}(),l={down:t(".bootstrap-touchspin-down",a),up:t(".bootstrap-touchspin-up",a),input:t("input",a),prefix:t(".bootstrap-touchspin-prefix",a).addClass(r.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",a).addClass(r.postfix_extraclass)},function(){""===r.prefix&&l.prefix.hide();""===r.postfix&&l.postfix.hide()}(),f.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==v&&(b(),k()),t.preventDefault()):40===e&&("down"!==v&&(x(),S()),t.preventDefault())}),f.on("keyup",function(t){var e=t.keyCode||t.which;38===e?T():40===e&&T()}),f.on("blur",function(){y()}),l.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==v&&(x(),S()),t.preventDefault())}),l.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||T()}),l.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==v&&(b(),k()),t.preventDefault())}),l.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||T()}),l.down.on("mousedown.touchspin",function(t){l.down.off("touchstart.touchspin"),f.is(":disabled")||(x(),S(),t.preventDefault(),t.stopPropagation())}),l.down.on("touchstart.touchspin",function(t){l.down.off("mousedown.touchspin"),f.is(":disabled")||(x(),S(),t.preventDefault(),t.stopPropagation())}),l.up.on("mousedown.touchspin",function(t){l.up.off("touchstart.touchspin"),f.is(":disabled")||(b(),k(),t.preventDefault(),t.stopPropagation())}),l.up.on("touchstart.touchspin",function(t){l.up.off("mousedown.touchspin"),f.is(":disabled")||(b(),k(),t.preventDefault(),t.stopPropagation())}),l.up.on("mouseout touchleave touchend touchcancel",function(t){v&&(t.stopPropagation(),T())}),l.down.on("mouseout touchleave touchend touchcancel",function(t){v&&(t.stopPropagation(),T())}),l.down.on("mousemove touchmove",function(t){v&&(t.stopPropagation(),t.preventDefault())}),l.up.on("mousemove touchmove",function(t){v&&(t.stopPropagation(),t.preventDefault())}),t(document).on(i(["mouseup","touchend","touchcancel"],e).join(" "),function(t){v&&(t.preventDefault(),T())}),t(document).on(i(["mousemove","touchmove","scroll","scrollstart"],e).join(" "),function(t){v&&(t.preventDefault(),T())}),f.on("mousewheel DOMMouseScroll",function(t){if(r.mousewheel&&f.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?x():b()}}),f.on("touchspin.uponce",function(){T(),b()}),f.on("touchspin.downonce",function(){T(),x()}),f.on("touchspin.startupspin",function(){k()}),f.on("touchspin.startdownspin",function(){S()}),f.on("touchspin.stopspin",function(){T()}),f.on("touchspin.updatesettings",function(e,i){!function(e){(function(e){r=t.extend({},r,e)})(e),y();var i=l.input.val();""!==i&&(i=Number(l.input.val()),l.input.val(i.toFixed(r.decimals)))}(i)}),l.input.css("display","block");var c}()})}this.each(function(){var e=t(this).data();t(document).off(i(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],e.spinnerid).join(" "))})}}(jQuery)},function(t){var e;t.exports=function t(i,o,n){function s(a,l){if(!o[a]){if(!i[a]){var c="function"==typeof e&&e;if(!l&&c)return e(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var u=o[a]={exports:{}};i[a][0].call(u.exports,function(t){var e=i[a][1][t];return s(e||t)},u,u.exports,t,i,o,n)}return o[a].exports}for(var r="function"==typeof e&&e,a=0;a1&&"flex-start"===t.style.alignContent)for(e=0;o=t.lines[++n];)o.crossStart=e,e+=o.cross;else if(t.lines.length>1&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;o=t.lines[++n];)o.crossStart=e,e+=o.cross;else if(t.lines.length>1&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;o=t.lines[++n];)o.crossStart=e,e+=o.cross;else if(t.lines.length>1&&"space-between"===t.style.alignContent)for(i=t.flexStyle.crossSpace/(t.lines.length-1),e=0;o=t.lines[++n];)o.crossStart=e,e+=o.cross+i;else if(t.lines.length>1&&"space-around"===t.style.alignContent)for(i=2*t.flexStyle.crossSpace/(2*t.lines.length),e=i/2;o=t.lines[++n];)o.crossStart=e,e+=o.cross+i;else for(i=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;o=t.lines[++n];)o.crossStart=e,o.cross+=i,e+=o.cross}},{}],2:[function(t,e){e.exports=function(t){for(var e,i=-1;line=t.lines[++i];)for(e=-1;child=line.children[++e];){var o=child.style.alignSelf;"auto"===o&&(o=t.style.alignItems),"flex-start"===o?child.flexStyle.crossStart=line.crossStart:"flex-end"===o?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===o?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(t,e){e.exports=function(t,e){var i="row"===e||"row-reverse"===e,o=t.mainAxis;if(o){var n=i&&"inline"===o||!i&&"block"===o;n||(t.flexStyle={main:t.flexStyle.cross,cross:t.flexStyle.main,mainOffset:t.flexStyle.crossOffset,crossOffset:t.flexStyle.mainOffset,mainBefore:t.flexStyle.crossBefore,mainAfter:t.flexStyle.crossAfter,crossBefore:t.flexStyle.mainBefore,crossAfter:t.flexStyle.mainAfter,mainInnerBefore:t.flexStyle.crossInnerBefore,mainInnerAfter:t.flexStyle.crossInnerAfter,crossInnerBefore:t.flexStyle.mainInnerBefore,crossInnerAfter:t.flexStyle.mainInnerAfter,mainBorderBefore:t.flexStyle.crossBorderBefore,mainBorderAfter:t.flexStyle.crossBorderAfter,crossBorderBefore:t.flexStyle.mainBorderBefore,crossBorderAfter:t.flexStyle.mainBorderAfter})}else t.flexStyle=i?{main:t.style.width,cross:t.style.height,mainOffset:t.style.offsetWidth,crossOffset:t.style.offsetHeight,mainBefore:t.style.marginLeft,mainAfter:t.style.marginRight,crossBefore:t.style.marginTop,crossAfter:t.style.marginBottom,mainInnerBefore:t.style.paddingLeft,mainInnerAfter:t.style.paddingRight,crossInnerBefore:t.style.paddingTop,crossInnerAfter:t.style.paddingBottom,mainBorderBefore:t.style.borderLeftWidth,mainBorderAfter:t.style.borderRightWidth,crossBorderBefore:t.style.borderTopWidth,crossBorderAfter:t.style.borderBottomWidth}:{main:t.style.height,cross:t.style.width,mainOffset:t.style.offsetHeight,crossOffset:t.style.offsetWidth,mainBefore:t.style.marginTop,mainAfter:t.style.marginBottom,crossBefore:t.style.marginLeft,crossAfter:t.style.marginRight,mainInnerBefore:t.style.paddingTop,mainInnerAfter:t.style.paddingBottom,crossInnerBefore:t.style.paddingLeft,crossInnerAfter:t.style.paddingRight,mainBorderBefore:t.style.borderTopWidth,mainBorderAfter:t.style.borderBottomWidth,crossBorderBefore:t.style.borderLeftWidth,crossBorderAfter:t.style.borderRightWidth},"content-box"===t.style.boxSizing&&("number"==typeof t.flexStyle.main&&(t.flexStyle.main+=t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),"number"==typeof t.flexStyle.cross&&(t.flexStyle.cross+=t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter));t.mainAxis=i?"inline":"block",t.crossAxis=i?"block":"inline","number"==typeof t.style.flexBasis&&(t.flexStyle.main=t.style.flexBasis+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),t.flexStyle.mainOuter=t.flexStyle.main,t.flexStyle.crossOuter=t.flexStyle.cross,"auto"===t.flexStyle.mainOuter&&(t.flexStyle.mainOuter=t.flexStyle.mainOffset),"auto"===t.flexStyle.crossOuter&&(t.flexStyle.crossOuter=t.flexStyle.crossOffset),"number"==typeof t.flexStyle.mainBefore&&(t.flexStyle.mainOuter+=t.flexStyle.mainBefore),"number"==typeof t.flexStyle.mainAfter&&(t.flexStyle.mainOuter+=t.flexStyle.mainAfter),"number"==typeof t.flexStyle.crossBefore&&(t.flexStyle.crossOuter+=t.flexStyle.crossBefore),"number"==typeof t.flexStyle.crossAfter&&(t.flexStyle.crossOuter+=t.flexStyle.crossAfter)}},{}],4:[function(t,e){var i=t("../reduce");e.exports=function(t){if(t.mainSpace>0){var e=i(t.children,function(t,e){return t+parseFloat(e.style.flexGrow)},0);e>0&&(t.main=i(t.children,function(i,o){return"auto"===o.flexStyle.main?o.flexStyle.main=o.flexStyle.mainOffset+parseFloat(o.style.flexGrow)/e*t.mainSpace:o.flexStyle.main+=parseFloat(o.style.flexGrow)/e*t.mainSpace,o.flexStyle.mainOuter=o.flexStyle.main+o.flexStyle.mainBefore+o.flexStyle.mainAfter,i+o.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(t,e){var i=t("../reduce");e.exports=function(t){if(t.mainSpace<0){var e=i(t.children,function(t,e){return t+parseFloat(e.style.flexShrink)},0);e>0&&(t.main=i(t.children,function(i,o){return o.flexStyle.main+=parseFloat(o.style.flexShrink)/e*t.mainSpace,o.flexStyle.mainOuter=o.flexStyle.main+o.flexStyle.mainBefore+o.flexStyle.mainAfter,i+o.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(t,e){var i=t("../reduce");e.exports=function(t){var e;t.lines=[e={main:0,cross:0,children:[]}];for(var o,n=-1;o=t.children[++n];)"nowrap"===t.style.flexWrap||0===e.children.length||"auto"===t.flexStyle.main||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=e.main+o.flexStyle.mainOuter?(e.main+=o.flexStyle.mainOuter,e.cross=Math.max(e.cross,o.flexStyle.crossOuter)):t.lines.push(e={main:o.flexStyle.mainOuter,cross:o.flexStyle.crossOuter,children:[]}),e.children.push(o);t.flexStyle.mainLines=i(t.lines,function(t,e){return Math.max(t,e.main)},0),t.flexStyle.crossLines=i(t.lines,function(t,e){return t+e.cross},0),"auto"===t.flexStyle.main&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),"auto"===t.flexStyle.cross&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(t,e){e.exports=function(e){for(var i,o=-1;i=e.children[++o];)t("./flex-direction")(i,e.style.flexDirection);t("./flex-direction")(e,e.style.flexDirection),t("./order")(e),t("./flexbox-lines")(e),t("./align-content")(e),o=-1;for(var n;n=e.lines[++o];)n.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-n.main,t("./flex-grow")(n),t("./flex-shrink")(n),t("./margin-main")(n),t("./margin-cross")(n),t("./justify-content")(n,e.style.justifyContent,e);t("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(t,e){e.exports=function(t,e,i){var o,n,s,r=i.flexStyle.mainInnerBefore,a=-1;if("flex-end"===e)for(o=t.mainSpace,o+=r;s=t.children[++a];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter;else if("center"===e)for(o=t.mainSpace/2,o+=r;s=t.children[++a];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter;else if("space-between"===e)for(n=t.mainSpace/(t.children.length-1),o=0,o+=r;s=t.children[++a];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter+n;else if("space-around"===e)for(n=2*t.mainSpace/(2*t.children.length),o=n/2,o+=r;s=t.children[++a];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter+n;else for(o=0,o+=r;s=t.children[++a];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter}},{}],9:[function(t,e){e.exports=function(t){for(var e,i=-1;e=t.children[++i];){var o=0;"auto"===e.flexStyle.crossBefore&&++o,"auto"===e.flexStyle.crossAfter&&++o;var n=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=n/o),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=n/o),"auto"===e.flexStyle.cross?e.flexStyle.crossOuter=e.flexStyle.crossOffset+e.flexStyle.crossBefore+e.flexStyle.crossAfter:e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}}},{}],10:[function(t,e){e.exports=function(t){for(var e,i=0,o=-1;e=t.children[++o];)"auto"===e.flexStyle.mainBefore&&++i,"auto"===e.flexStyle.mainAfter&&++i;if(i>0){for(o=-1;e=t.children[++o];)"auto"===e.flexStyle.mainBefore&&(e.flexStyle.mainBefore=t.mainSpace/i),"auto"===e.flexStyle.mainAfter&&(e.flexStyle.mainAfter=t.mainSpace/i),"auto"===e.flexStyle.main?e.flexStyle.mainOuter=e.flexStyle.mainOffset+e.flexStyle.mainBefore+e.flexStyle.mainAfter:e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter;t.mainSpace=0}}},{}],11:[function(t,e){var i=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),i.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e){e.exports=function(t,e,i){for(var o=t.length,n=-1;++n=0){n=1;break}var r=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},n))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function l(t,e){if(1!==t.nodeType)return[];var i=getComputedStyle(t,null);return e?i[e]:i}function c(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function d(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=l(t),i=e.overflow,o=e.overflowX,n=e.overflowY;return/(auto|scroll)/.test(i+n+o)?t:d(c(t))}function u(t){var e=t&&t.offsetParent,i=e&&e.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===l(e,"position")?u(e):e:t?t.ownerDocument.documentElement:document.documentElement}function p(t){return null!==t.parentNode?p(t.parentNode):t}function h(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=i?t:e,n=i?e:t,s=document.createRange();s.setStart(o,0),s.setEnd(n,0);var r,a,l=s.commonAncestorContainer;if(t!==l&&e!==l||o.contains(n))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&u(r.firstElementChild)!==r?u(l):l;var c=p(t);return c.host?h(c.host,e):h(t,p(e).host)}function f(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||o)[e]}return t[e]}function m(t,e){var i="x"===e?"Left":"Top",o="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+o+"Width"],10)}var g=void 0,v=function(){return void 0===g&&(g=-1!==navigator.appVersion.indexOf("MSIE 10")),g};function y(t,e,i,o){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],v()?i["offset"+t]+o["margin"+("Height"===t?"Top":"Left")]+o["margin"+("Height"===t?"Bottom":"Right")]:0)}function w(){var t=document.body,e=document.documentElement,i=v()&&getComputedStyle(e);return{height:y("Height",t,e,i),width:y("Width",t,e,i)}}var b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},x=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2]&&arguments[2],o=f(e,"top"),n=f(e,"left"),s=i?-1:1;return t.top+=o*s,t.bottom+=o*s,t.left+=n*s,t.right+=n*s,t}(p,e)),p}function E(t,e,i,o){var n={top:0,left:0},s=h(t,e);if("viewport"===o)n=function(t){var e=t.ownerDocument.documentElement,i=_(t,e),o=Math.max(e.clientWidth,window.innerWidth||0),n=Math.max(e.clientHeight,window.innerHeight||0),s=f(e),r=f(e,"left");return T({top:s-i.top+i.marginTop,left:r-i.left+i.marginLeft,width:o,height:n})}(s);else{var r=void 0;"scrollParent"===o?"BODY"===(r=d(c(e))).nodeName&&(r=t.ownerDocument.documentElement):r="window"===o?t.ownerDocument.documentElement:o;var a=_(r,s);if("HTML"!==r.nodeName||function t(e){var i=e.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===l(e,"position")||t(c(e)))}(s))n=a;else{var u=w(),p=u.height,m=u.width;n.top+=a.top-a.marginTop,n.bottom=p+a.top,n.left+=a.left-a.marginLeft,n.right=m+a.left}}return n.left+=i,n.top+=i,n.right-=i,n.bottom-=i,n}function z(t,e,i,o,n){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=E(i,o,s,n),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map(function(t){return k({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,o=t.height;return e>=i.clientWidth&&o>=i.clientHeight}),d=c.length>0?c[0].key:l[0].key,u=t.split("-")[1];return d+(u?"-"+u:"")}function I(t,e,i){return _(i,h(e,i))}function O(t){var e=getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),o=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+o,height:t.offsetHeight+i}}function A(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function $(t,e,i){i=i.split("-")[0];var o=O(t),n={width:o.width,height:o.height},s=-1!==["right","left"].indexOf(i),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return n[r]=e[r]+e[l]/2-o[l]/2,n[a]=i===a?e[a]-o[c]:e[A(a)],n}function P(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function L(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var o=P(t,function(t){return t[e]===i});return t.indexOf(o)}(t,"name",i))).forEach(function(t){t.function;var i=t.function||t.fn;t.enabled&&a(i)&&(e.offsets.popper=T(e.offsets.popper),e.offsets.reference=T(e.offsets.reference),e=i(e,t))}),e}function W(t,e){return t.some(function(t){var i=t.name;return t.enabled&&i===e})}function j(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],i=V.indexOf(t),o=V.slice(i+1).concat(V.slice(0,i));return e?o.reverse():o}var U={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Y(t,e,i,o){var n=[0,0],s=-1!==["right","left"].indexOf(o),r=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=r.indexOf(P(r,function(t){return-1!==t.search(/,|\s/)}));r[a]&&r[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(c=c.map(function(t,o){var n=(1===o?!s:s)?"height":"width",r=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,i,o){var n=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+n[1],r=n[2];if(!s)return t;if(0===r.indexOf("%")){var a=void 0;switch(r){case"%p":a=i;break;case"%":case"%r":default:a=o}return T(a)[e]/100*s}if("vh"===r||"vw"===r)return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s;return s}(t,n,e,i)})})).forEach(function(t,e){t.forEach(function(i,o){M(i)&&(n[e]+=i*("-"===t[o-1]?-1:1))})}),n}var X={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],o=e.split("-")[1];if(o){var n=t.offsets,s=n.reference,r=n.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",d={start:S({},l,s[l]),end:S({},l,s[l]+s[c]-r[c])};t.offsets.popper=k({},r,d[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,o=t.placement,n=t.offsets,s=n.popper,r=n.reference,a=o.split("-")[0],l=void 0;return l=M(+i)?[+i,0]:Y(i,s,r,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||u(t.instance.popper);t.instance.reference===i&&(i=u(i));var o=E(t.instance.popper,t.instance.reference,e.padding,i);e.boundaries=o;var n=e.priority,s=t.offsets.popper,r={primary:function(t){var i=s[t];return s[t]o[t]&&!e.escapeWithReference&&(n=Math.min(s[i],o[t]-("right"===t?s.width:s.height))),S({},i,n)}};return n.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";s=k({},s,r[e](t))}),t.offsets.popper=s,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,o=e.reference,n=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(n),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return i[a]s(o[a])&&(t.offsets.popper[l]=s(o[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!F(t.instance.modifiers,"arrow","keepTogether"))return t;var o=e.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return t;var n=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,c=-1!==["left","right"].indexOf(n),d=c?"height":"width",u=c?"Top":"Left",p=u.toLowerCase(),h=c?"left":"top",f=c?"bottom":"right",m=O(o)[d];a[f]-mr[f]&&(t.offsets.popper[p]+=a[p]+m-r[f]),t.offsets.popper=T(t.offsets.popper);var g=a[p]+a[d]/2-m/2,v=l(t.instance.popper),y=parseFloat(v["margin"+u],10),w=parseFloat(v["border"+u+"Width"],10),b=g-t.offsets.popper[p]-y-w;return b=Math.max(Math.min(r[d]-m,b),0),t.arrowElement=o,t.offsets.arrow=(S(i={},p,Math.round(b)),S(i,h,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(W(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=E(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),o=t.placement.split("-")[0],n=A(o),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case U.FLIP:r=[o,n];break;case U.CLOCKWISE:r=q(o);break;case U.COUNTERCLOCKWISE:r=q(o,!0);break;default:r=e.behavior}return r.forEach(function(a,l){if(o!==a||r.length===l+1)return t;o=t.placement.split("-")[0],n=A(o);var c=t.offsets.popper,d=t.offsets.reference,u=Math.floor,p="left"===o&&u(c.right)>u(d.left)||"right"===o&&u(c.left)u(d.top)||"bottom"===o&&u(c.top)u(i.right),m=u(c.top)u(i.bottom),v="left"===o&&h||"right"===o&&f||"top"===o&&m||"bottom"===o&&g,y=-1!==["top","bottom"].indexOf(o),w=!!e.flipVariations&&(y&&"start"===s&&h||y&&"end"===s&&f||!y&&"start"===s&&m||!y&&"end"===s&&g);(p||v||w)&&(t.flipped=!0,(p||v)&&(o=r[l+1]),w&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=o+(s?"-"+s:""),t.offsets.popper=k({},t.offsets.popper,$(t.instance.popper,t.offsets.reference,t.placement)),t=L(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],o=t.offsets,n=o.popper,s=o.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return n[r?"left":"top"]=s[i]-(a?n[r?"width":"height"]:0),t.placement=A(e),t.offsets.popper=T(n),t}},hide:{order:800,enabled:!0,fn:function(t){if(!F(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=P(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomi.right||e.top>i.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};b(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=k({},t.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(k({},t.Defaults.modifiers,n.modifiers)).forEach(function(e){o.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return k({name:t},o.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&a(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return x(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=I(this.state,this.popper,this.reference),t.placement=z(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=$(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=L(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,W(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return N.call(this)}}]),t}();Q.Utils=("undefined"!=typeof window?window:t).PopperUtils,Q.placements=R,Q.Defaults=X,e.default=Q}.call(this,i(3))},function(t,e,i){!function(t,e,i){"use strict";function o(t,e){for(var i=0;i0?o:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(i){t(i).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,o){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var s=o[n],r=e[n],a=r&&i.isElement(r)?"element":(l=r,{}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(s).test(a))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+a+'" but expected type "'+s+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=function(e){var o=this,n=!1;return t(this).one(i.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||i.triggerTransitionEnd(o)},e),this},i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e),$=(a="alert",c="."+(l="bs.alert"),d=(r=e).fn[a],u={CLOSE:"close"+c,CLOSED:"closed"+c,CLICK_DATA_API:"click"+c+".data-api"},p="alert",h="fade",f="show",m=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){r.removeData(this._element,l),this._element=null},e._getRootElement=function(t){var e=A.getSelectorFromElement(t),i=!1;return e&&(i=r(e)[0]),i||(i=r(t).closest("."+p)[0]),i},e._triggerCloseEvent=function(t){var e=r.Event(u.CLOSE);return r(t).trigger(e),e},e._removeElement=function(t){var e=this;r(t).removeClass(f),A.supportsTransitionEnd()&&r(t).hasClass(h)?r(t).one(A.TRANSITION_END,function(i){return e._destroyElement(t,i)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){r(t).detach().trigger(u.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var i=r(this),o=i.data(l);o||(o=new t(this),i.data(l,o)),"close"===e&&o[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},n(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),r(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',m._handleDismiss(new m)),r.fn[a]=m._jQueryInterface,r.fn[a].Constructor=m,r.fn[a].noConflict=function(){return r.fn[a]=d,m._jQueryInterface},m),P=(v="button",w="."+(y="bs.button"),b=".data-api",x=(g=e).fn[v],S="active",k="focus",T='[data-toggle^="button"]',C='[data-toggle="buttons"]',_="input",E=".active",z=".btn",I={CLICK_DATA_API:"click"+w+b,FOCUS_BLUR_DATA_API:"focus"+w+b+" blur"+w+b},O=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,i=g(this._element).closest(C)[0];if(i){var o=g(this._element).find(_)[0];if(o){if("radio"===o.type)if(o.checked&&g(this._element).hasClass(S))t=!1;else{var n=g(i).find(E)[0];n&&g(n).removeClass(S)}if(t){if(o.hasAttribute("disabled")||i.hasAttribute("disabled")||o.classList.contains("disabled")||i.classList.contains("disabled"))return;o.checked=!g(this._element).hasClass(S),g(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!g(this._element).hasClass(S)),t&&g(this._element).toggleClass(S)},e.dispose=function(){g.removeData(this._element,y),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var i=g(this).data(y);i||(i=new t(this),g(this).data(y,i)),"toggle"===e&&i[e]()})},n(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),g(document).on(I.CLICK_DATA_API,T,function(t){t.preventDefault();var e=t.target;g(e).hasClass("btn")||(e=g(e).closest(z)),O._jQueryInterface.call(g(e),"toggle")}).on(I.FOCUS_BLUR_DATA_API,T,function(t){var e=g(t.target).closest(z)[0];g(e).toggleClass(k,/^focus(in)?$/.test(t.type))}),g.fn[v]=O._jQueryInterface,g.fn[v].Constructor=O,g.fn[v].noConflict=function(){return g.fn[v]=x,O._jQueryInterface},O),L=function(t){var e="carousel",i="bs.carousel",o="."+i,r=t.fn[e],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},l={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},c="next",d="prev",u={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load"+o+".data-api",CLICK_DATA_API:"click"+o+".data-api"},p="active",h={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},f=function(){function r(e,i){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(i),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(h.INDICATORS)[0],this._addEventListeners()}var f=r.prototype;return f.next=function(){this._isSliding||this._slide(c)},f.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},f.prev=function(){this._isSliding||this._slide(d)},f.pause=function(e){e||(this._isPaused=!0),t(this._element).find(h.NEXT_PREV)[0]&&A.supportsTransitionEnd()&&(A.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},f.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},f.to=function(e){var i=this;this._activeElement=t(this._element).find(h.ACTIVE_ITEM)[0];var o=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(u.SLID,function(){return i.to(e)});else{if(o===e)return this.pause(),void this.cycle();var n=e>o?c:d;this._slide(n,this._items[e])}},f.dispose=function(){t(this._element).off(o),t.removeData(this._element,i),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},f._getConfig=function(t){return t=s({},a,t),A.typeCheckConfig(e,t,l),t},f._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(u.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(u.MOUSEENTER,function(t){return e.pause(t)}).on(u.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(u.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},f._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},f._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(h.ITEM)),this._items.indexOf(e)},f._getItemByDirection=function(t,e){var i=t===c,o=t===d,n=this._getItemIndex(e),s=this._items.length-1;if((o&&0===n||i&&n===s)&&!this._config.wrap)return e;var r=(n+(t===d?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},f._triggerSlideEvent=function(e,i){var o=this._getItemIndex(e),n=this._getItemIndex(t(this._element).find(h.ACTIVE_ITEM)[0]),s=t.Event(u.SLIDE,{relatedTarget:e,direction:i,from:n,to:o});return t(this._element).trigger(s),s},f._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(h.ACTIVE).removeClass(p);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(p)}},f._slide=function(e,i){var o,n,s,r=this,a=t(this._element).find(h.ACTIVE_ITEM)[0],l=this._getItemIndex(a),d=i||a&&this._getItemByDirection(e,a),f=this._getItemIndex(d),m=Boolean(this._interval);if(e===c?(o="carousel-item-left",n="carousel-item-next",s="left"):(o="carousel-item-right",n="carousel-item-prev",s="right"),d&&t(d).hasClass(p))this._isSliding=!1;else if(!this._triggerSlideEvent(d,s).isDefaultPrevented()&&a&&d){this._isSliding=!0,m&&this.pause(),this._setActiveIndicatorElement(d);var g=t.Event(u.SLID,{relatedTarget:d,direction:s,from:l,to:f});A.supportsTransitionEnd()&&t(this._element).hasClass("slide")?(t(d).addClass(n),A.reflow(d),t(a).addClass(o),t(d).addClass(o),t(a).one(A.TRANSITION_END,function(){t(d).removeClass(o+" "+n).addClass(p),t(a).removeClass(p+" "+n+" "+o),r._isSliding=!1,setTimeout(function(){return t(r._element).trigger(g)},0)}).emulateTransitionEnd(600)):(t(a).removeClass(p),t(d).addClass(p),this._isSliding=!1,t(this._element).trigger(g)),m&&this.cycle()}},r._jQueryInterface=function(e){return this.each(function(){var o=t(this).data(i),n=s({},a,t(this).data());"object"==typeof e&&(n=s({},n,e));var l="string"==typeof e?e:n.slide;if(o||(o=new r(this,n),t(this).data(i,o)),"number"==typeof e)o.to(e);else if("string"==typeof l){if(void 0===o[l])throw new TypeError('No method named "'+l+'"');o[l]()}else n.interval&&(o.pause(),o.cycle())})},r._dataApiClickHandler=function(e){var o=A.getSelectorFromElement(this);if(o){var n=t(o)[0];if(n&&t(n).hasClass("carousel")){var a=s({},t(n).data(),t(this).data()),l=this.getAttribute("data-slide-to");l&&(a.interval=!1),r._jQueryInterface.call(t(n),a),l&&t(n).data(i).to(l),e.preventDefault()}}},n(r,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),r}();return t(document).on(u.CLICK_DATA_API,h.DATA_SLIDE,f._dataApiClickHandler),t(window).on(u.LOAD_DATA_API,function(){t(h.DATA_RIDE).each(function(){var e=t(this);f._jQueryInterface.call(e,e.data())})}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=r,f._jQueryInterface},f}(e),W=function(t){var e="collapse",i="bs.collapse",o="."+i,r=t.fn[e],a={toggle:!0,parent:""},l={toggle:"boolean",parent:"(string|element)"},c={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},d="show",u="collapse",p="collapsing",h="collapsed",f="width",m={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},g=function(){function o(e,i){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var o=t(m.DATA_TOGGLE),n=0;n0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var r=o.prototype;return r.toggle=function(){t(this._element).hasClass(d)?this.hide():this.show()},r.show=function(){var e,n,s=this;if(!(this._isTransitioning||t(this._element).hasClass(d)||(this._parent&&0===(e=t.makeArray(t(this._parent).find(m.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),e&&(n=t(e).not(this._selector).data(i))&&n._isTransitioning))){var r=t.Event(c.SHOW);if(t(this._element).trigger(r),!r.isDefaultPrevented()){e&&(o._jQueryInterface.call(t(e).not(this._selector),"hide"),n||t(e).data(i,null));var a=this._getDimension();t(this._element).removeClass(u).addClass(p),this._element.style[a]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(h).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){t(s._element).removeClass(p).addClass(u).addClass(d),s._element.style[a]="",s.setTransitioning(!1),t(s._element).trigger(c.SHOWN)};if(A.supportsTransitionEnd()){var f="scroll"+(a[0].toUpperCase()+a.slice(1));t(this._element).one(A.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[a]=this._element[f]+"px"}else l()}}},r.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(d)){var i=t.Event(c.HIDE);if(t(this._element).trigger(i),!i.isDefaultPrevented()){var o=this._getDimension();if(this._element.style[o]=this._element.getBoundingClientRect()[o]+"px",A.reflow(this._element),t(this._element).addClass(p).removeClass(u).removeClass(d),this._triggerArray.length>0)for(var n=0;n0&&t(i).toggleClass(h,!o).attr("aria-expanded",o)}},o._getTargetFromElement=function(e){var i=A.getSelectorFromElement(e);return i?t(i)[0]:null},o._jQueryInterface=function(e){return this.each(function(){var n=t(this),r=n.data(i),l=s({},a,n.data(),"object"==typeof e&&e);if(!r&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),r||(r=new o(this,l),n.data(i,r)),"string"==typeof e){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e]()}})},n(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return a}}]),o}();return t(document).on(c.CLICK_DATA_API,m.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var o=t(this),n=A.getSelectorFromElement(this);t(n).each(function(){var e=t(this),n=e.data(i)?"toggle":o.data();g._jQueryInterface.call(e,n)})}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=r,g._jQueryInterface},g}(e),j=function(t){var e="dropdown",o="bs.dropdown",r="."+o,a=".data-api",l=t.fn[e],c=new RegExp("38|40|27"),d={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK:"click"+r,CLICK_DATA_API:"click"+r+a,KEYDOWN_DATA_API:"keydown"+r+a,KEYUP_DATA_API:"keyup"+r+a},u="disabled",p="show",h="dropup",f="dropdown-menu-right",m='[data-toggle="dropdown"]',g=".dropdown-menu",v={offset:0,flip:!0,boundary:"scrollParent"},y={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},w=function(){function a(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var l=a.prototype;return l.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(u)){var e=a._getParentFromElement(this._element),o=t(this._menu).hasClass(p);if(a._clearMenus(),!o){var n={relatedTarget:this._element},s=t.Event(d.SHOW,n);if(t(e).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar){if(void 0===i)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;t(e).hasClass(h)&&(t(this._menu).hasClass("dropdown-menu-left")||t(this._menu).hasClass(f))&&(r=e),"scrollParent"!==this._config.boundary&&t(e).addClass("position-static"),this._popper=new i(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(".navbar-nav").length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(p),t(e).toggleClass(p).trigger(t.Event(d.SHOWN,n))}}}},l.dispose=function(){t.removeData(this._element,o),t(this._element).off(r),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},l.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l._addEventListeners=function(){var e=this;t(this._element).on(d.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},l._getConfig=function(i){return i=s({},this.constructor.Default,t(this._element).data(),i),A.typeCheckConfig(e,i,this.constructor.DefaultType),i},l._getMenuElement=function(){if(!this._menu){var e=a._getParentFromElement(this._element);this._menu=t(e).find(g)[0]}return this._menu},l._getPlacement=function(){var e=t(this._element).parent(),i="bottom-start";return e.hasClass(h)?(i="top-start",t(this._menu).hasClass(f)&&(i="top-end")):e.hasClass("dropright")?i="right-start":e.hasClass("dropleft")?i="left-start":t(this._menu).hasClass(f)&&(i="bottom-end"),i},l._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},l._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},a._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(o);if(i||(i=new a(this,"object"==typeof e?e:null),t(this).data(o,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},a._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=t.makeArray(t(m)),n=0;n0&&s--,40===e.which&&sdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},h._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},h._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
    ',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},p="show",h="out",f={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,INSERTED:"inserted"+r,CLICK:"click"+r,FOCUSIN:"focusin"+r,FOCUSOUT:"focusout"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r},m="fade",g="show",v="hover",y="focus",w=function(){function a(t,e){if(void 0===i)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var w=a.prototype;return w.enable=function(){this._isEnabled=!0},w.disable=function(){this._isEnabled=!1},w.toggleEnabled=function(){this._isEnabled=!this._isEnabled},w.toggle=function(e){if(this._isEnabled)if(e){var i=this.constructor.DATA_KEY,o=t(e.currentTarget).data(i);o||(o=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,o)),o._activeTrigger.click=!o._activeTrigger.click,o._isWithActiveTrigger()?o._enter(null,o):o._leave(null,o)}else{if(t(this.getTipElement()).hasClass(g))return void this._leave(null,this);this._enter(null,this)}},w.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},w.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var o=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(o);var n=t.contains(this.element.ownerDocument.documentElement,this.element);if(o.isDefaultPrevented()||!n)return;var s=this.getTipElement(),r=A.getUID(this.constructor.NAME);s.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&t(s).addClass(m);var l="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var d=!1===this.config.container?document.body:t(this.config.container);t(s).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(s).appendTo(d),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,s,{placement:c,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(s).addClass(g),"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);var u=function(){e.config.animation&&e._fixTransition();var i=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),i===h&&e._leave(null,e)};A.supportsTransitionEnd()&&t(this.tip).hasClass(m)?t(this.tip).one(A.TRANSITION_END,u).emulateTransitionEnd(a._TRANSITION_DURATION):u()}},w.hide=function(e){var i=this,o=this.getTipElement(),n=t.Event(this.constructor.Event.HIDE),s=function(){i._hoverState!==p&&o.parentNode&&o.parentNode.removeChild(o),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),t(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()};t(this.element).trigger(n),n.isDefaultPrevented()||(t(o).removeClass(g),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger.click=!1,this._activeTrigger[y]=!1,this._activeTrigger[v]=!1,A.supportsTransitionEnd()&&t(this.tip).hasClass(m)?t(o).one(A.TRANSITION_END,s).emulateTransitionEnd(150):s(),this._hoverState="")},w.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},w.isWithContent=function(){return Boolean(this.getTitle())},w.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},w.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},w.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(".tooltip-inner"),this.getTitle()),e.removeClass(m+" "+g)},w.setElementContent=function(e,i){var o=this.config.html;"object"==typeof i&&(i.nodeType||i.jquery)?o?t(i).parent().is(e)||e.empty().append(i):e.text(t(i).text()):e[o?"html":"text"](i)},w.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},w._getAttachment=function(t){return d[t.toUpperCase()]},w._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if("manual"!==i){var o=i===v?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,n=i===v?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(o,e.config.selector,function(t){return e._enter(t)}).on(n,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},w._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},w._enter=function(e,i){var o=this.constructor.DATA_KEY;(i=i||t(e.currentTarget).data(o))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(o,i)),e&&(i._activeTrigger["focusin"===e.type?y:v]=!0),t(i.getTipElement()).hasClass(g)||i._hoverState===p?i._hoverState=p:(clearTimeout(i._timeout),i._hoverState=p,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===p&&i.show()},i.config.delay.show):i.show())},w._leave=function(e,i){var o=this.constructor.DATA_KEY;(i=i||t(e.currentTarget).data(o))||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(o,i)),e&&(i._activeTrigger["focusout"===e.type?y:v]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=h,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===h&&i.hide()},i.config.delay.hide):i.hide())},w._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},w._getConfig=function(i){return"number"==typeof(i=s({},this.constructor.Default,t(this.element).data(),i)).delay&&(i.delay={show:i.delay,hide:i.delay}),"number"==typeof i.title&&(i.title=i.title.toString()),"number"==typeof i.content&&(i.content=i.content.toString()),A.typeCheckConfig(e,i,this.constructor.DefaultType),i},w._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},w._cleanTipClass=function(){var e=t(this.getTipElement()),i=e.attr("class").match(l);null!==i&&i.length>0&&e.removeClass(i.join(""))},w._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},w._fixTransition=function(){var e=this.getTipElement(),i=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(m),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},a._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(o),n="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new a(this,n),t(this).data(o,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},n(a,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return o}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return r}},{key:"DefaultType",get:function(){return c}}]),a}();return t.fn[e]=w._jQueryInterface,t.fn[e].Constructor=w,t.fn[e].noConflict=function(){return t.fn[e]=a,w._jQueryInterface},w}(e),N=function(t){var e="popover",i="bs.popover",o="."+i,r=t.fn[e],a=new RegExp("(^|\\s)bs-popover\\S+","g"),l=s({},H.Default,{placement:"right",trigger:"click",content:"",template:''}),c=s({},H.DefaultType,{content:"(string|element|function)"}),d={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},u=function(s){var r,u;function p(){return s.apply(this,arguments)||this}u=s,(r=p).prototype=Object.create(u.prototype),r.prototype.constructor=r,r.__proto__=u;var h=p.prototype;return h.isWithContent=function(){return this.getTitle()||this._getContent()},h.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},h.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},h.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(e.find(".popover-body"),i),e.removeClass("fade show")},h._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},h._cleanTipClass=function(){var e=t(this.getTipElement()),i=e.attr("class").match(a);null!==i&&i.length>0&&e.removeClass(i.join(""))},p._jQueryInterface=function(e){return this.each(function(){var o=t(this).data(i),n="object"==typeof e?e:null;if((o||!/destroy|hide/.test(e))&&(o||(o=new p(this,n),t(this).data(i,o)),"string"==typeof e)){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},n(p,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return c}}]),p}(H);return t.fn[e]=u._jQueryInterface,t.fn[e].Constructor=u,t.fn[e].noConflict=function(){return t.fn[e]=r,u._jQueryInterface},u}(e),M=function(t){var e="scrollspy",i="bs.scrollspy",o="."+i,r=t.fn[e],a={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+o,SCROLL:"scroll"+o,LOAD_DATA_API:"load"+o+".data-api"},d="active",u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},p="position",h=function(){function r(e,i){var o=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(i),this._selector=this._config.target+" "+u.NAV_LINKS+","+this._config.target+" "+u.LIST_ITEMS+","+this._config.target+" "+u.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,function(t){return o._process(t)}),this.refresh(),this._process()}var h=r.prototype;return h.refresh=function(){var e=this,i=this._scrollElement===this._scrollElement.window?"offset":p,o="auto"===this._config.method?i:this._config.method,n=o===p?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var i,s=A.getSelectorFromElement(e);if(s&&(i=t(s)[0]),i){var r=i.getBoundingClientRect();if(r.width||r.height)return[t(i)[o]().top+n,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},h.dispose=function(){t.removeData(this._element,i),t(this._scrollElement).off(o),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},h._getConfig=function(i){if("string"!=typeof(i=s({},a,i)).target){var o=t(i.target).attr("id");o||(o=A.getUID(e),t(i.target).attr("id",o)),i.target="#"+o}return A.typeCheckConfig(e,i,l),i},h._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},h._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},h._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},h._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var o=this._targets[this._targets.length-1];this._activeTarget!==o&&this._activate(o)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(void 0===this._offsets[n+1]||t li > .active",d=function(){function i(t){this._element=t}var o=i.prototype;return o.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(r)||t(this._element).hasClass("disabled"))){var i,o,n=t(this._element).closest(".nav, .list-group")[0],a=A.getSelectorFromElement(this._element);if(n){var d="UL"===n.nodeName?c:l;o=(o=t.makeArray(t(n).find(d)))[o.length-1]}var u=t.Event(s.HIDE,{relatedTarget:this._element}),p=t.Event(s.SHOW,{relatedTarget:o});if(o&&t(o).trigger(u),t(this._element).trigger(p),!p.isDefaultPrevented()&&!u.isDefaultPrevented()){a&&(i=t(a)[0]),this._activate(this._element,n);var h=function(){var i=t.Event(s.HIDDEN,{relatedTarget:e._element}),n=t.Event(s.SHOWN,{relatedTarget:o});t(o).trigger(i),t(e._element).trigger(n)};i?this._activate(i,i.parentNode,h):h()}}},o.dispose=function(){t.removeData(this._element,e),this._element=null},o._activate=function(e,i,o){var n=this,s=("UL"===i.nodeName?t(i).find(c):t(i).children(l))[0],r=o&&A.supportsTransitionEnd()&&s&&t(s).hasClass("fade"),a=function(){return n._transitionComplete(e,s,o)};s&&r?t(s).one(A.TRANSITION_END,a).emulateTransitionEnd(150):a()},o._transitionComplete=function(e,i,o){if(i){t(i).removeClass(a+" "+r);var n=t(i.parentNode).find("> .dropdown-menu .active")[0];n&&t(n).removeClass(r),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}if(t(e).addClass(r),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),A.reflow(e),t(e).addClass(a),e.parentNode&&t(e.parentNode).hasClass("dropdown-menu")){var s=t(e).closest(".dropdown")[0];s&&t(s).find(".dropdown-toggle").addClass(r),e.setAttribute("aria-expanded",!0)}o&&o()},i._jQueryInterface=function(o){return this.each(function(){var n=t(this),s=n.data(e);if(s||(s=new i(this),n.data(e,s)),"string"==typeof o){if(void 0===s[o])throw new TypeError('No method named "'+o+'"');s[o]()}})},n(i,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),i}();return t(document).on(s.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),d._jQueryInterface.call(t(this),"show")}),t.fn.tab=d._jQueryInterface,t.fn.tab.Constructor=d,t.fn.tab.noConflict=function(){return t.fn.tab=o,d._jQueryInterface},d}(e);!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=A,t.Alert=$,t.Button=P,t.Carousel=L,t.Collapse=W,t.Dropdown=j,t.Modal=D,t.Popover=N,t.Scrollspy=M,t.Tab=B,t.Tooltip=H,Object.defineProperty(t,"__esModule",{value:!0})}(e,i(0),i(32))},function(t,e,i){var o,n;void 0===(n="function"==typeof(o=function(){"use strict";var t=function(){function t(t,e){for(var i=0;i=0)&&o.push(n)}return o.push(t.ownerDocument.body),t.ownerDocument!==document&&o.push(t.ownerDocument.defaultView),o}var r,a=(r=0,function(){return++r}),l={},c=function(){var t=o;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",a()),m(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),o=t);var e=t.getAttribute("data-tether-id");return void 0===l[e]&&(l[e]=n(t),k(function(){delete l[e]})),l[e]};function d(){o&&document.body.removeChild(o),o=null}function u(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var i=e.documentElement,o=n(t),s=c();return o.top-=s.top,o.left-=s.left,void 0===o.width&&(o.width=document.body.scrollWidth-o.left-o.right),void 0===o.height&&(o.height=document.body.scrollHeight-o.top-o.bottom),o.top=o.top-i.clientTop,o.left=o.left-i.clientLeft,o.right=e.body.clientWidth-o.width-o.left,o.bottom=e.body.clientHeight-o.height-o.top,o}function p(t){return t.offsetParent||document.documentElement}var h=null;function f(){if(h)return h;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");m(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=e.clientWidth),document.body.removeChild(e);var n=i-o;return h={width:n,height:n}}function m(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}),t}function g(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var i=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),o=w(t).replace(i," ");b(t,o)}}function v(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{g(t,e);var i=w(t)+" "+e;b(t,i)}}function y(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=w(t);return new RegExp("(^| )"+e+"( |$)","gi").test(i)}function w(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function b(t,e){t.setAttribute("class",e)}function x(t,e,i){i.forEach(function(i){-1===e.indexOf(i)&&y(t,i)&&g(t,i)}),e.forEach(function(e){y(t,e)||v(t,e)})}var S=[],k=function(t){S.push(t)},T=function(){for(var t=void 0;t=S.pop();)t()},C=function(){function i(){e(this,i)}return t(i,[{key:"on",value:function(t,e,i){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:o})}},{key:"once",value:function(t,e,i){this.on(t,e,i,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var i=0;i1?i-1:0),n=1;n=e&&e>=t-i}var I,O,A,$,P=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i16)return O=Math.min(O-16,250),void(A=setTimeout(t,250));void 0!==I&&j()-I<10||(null!=A&&(clearTimeout(A),A=null),I=j(),W(),O=j()-I)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,$)});var D={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},N={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},M=function(t){var e=t.left,i=t.top;return void 0!==N[t.left]&&(e=N[t.left]),void 0!==N[t.top]&&(i=N[t.top]),{left:e,top:i}};function B(){for(var t={top:0,left:0},e=arguments.length,i=Array(e),o=0;oi.clientWidth||[o.overflow,o.overflowX].indexOf("scroll")>=0||this.target!==document.body,s=0;n&&(s=15);var r=t.height-parseFloat(o.borderTopWidth)-parseFloat(o.borderBottomWidth)-s,e={width:15,height:.975*r*(r/i.scrollHeight),left:t.left+t.width-parseFloat(o.borderLeftWidth)-15},a=0;r<408&&this.target===document.body&&(a=-11e-5*Math.pow(r,2)-.00727*r+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(i.scrollHeight-r);return e.top=l*(r-e.height-a)+t.top+parseFloat(o.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),L.forEach(function(e,i){e===t&&L.splice(i,1)}),0===L.length&&d()}},{key:"updateAttachClasses",value:function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;t.top&&o.push(this.getClass("element-attached")+"-"+t.top),t.left&&o.push(this.getClass("element-attached")+"-"+t.left),e.top&&o.push(this.getClass("target-attached")+"-"+e.top),e.left&&o.push(this.getClass("target-attached")+"-"+e.left);var n=[];["left","top","bottom","right","middle","center"].forEach(function(t){n.push(i.getClass("element-attached")+"-"+t),n.push(i.getClass("target-attached")+"-"+t)}),k(function(){void 0!==i._addAttachClasses&&(x(i.element,i._addAttachClasses,n),!1!==i.options.addTargetClasses&&x(i.target,i._addAttachClasses,n),delete i._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=function(t,e){var i=t.left,o=t.top;return"auto"===i&&(i=D[e.left]),"auto"===o&&(o=H[e.top]),{left:i,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var n=this.cache("element-bounds",function(){return u(t.element)}),s=n.width,r=n.height;if(0===s&&0===r&&void 0!==this.lastSize){var a=this.lastSize;s=a.width,r=a.height}else this.lastSize={width:s,height:r};var l=this.cache("target-bounds",function(){return t.getTargetBounds()}),c=l,d=F(M(this.attachment),{width:s,height:r}),h=F(M(o),c),m=F(this.offset,{width:s,height:r}),g=F(this.targetOffset,c);d=B(d,m),h=B(h,g);for(var v=l.left+h.left-d.left,y=l.top+h.top-d.top,w=0;wk.documentElement.clientHeight&&(_=this.cache("scrollbar-size",f),S.viewport.bottom-=_.height),C.innerWidth>k.documentElement.clientWidth&&(_=this.cache("scrollbar-size",f),S.viewport.right-=_.width),-1!==["","static"].indexOf(k.body.style.position)&&-1!==["","static"].indexOf(k.body.parentElement.style.position)||(S.page.bottom=k.body.scrollHeight-y-r,S.page.right=k.body.scrollWidth-v-s),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return p(t.target)}),i=t.cache("target-offsetparent-bounds",function(){return u(e)}),o=getComputedStyle(e),n=i,s={};if(["Top","Left","Bottom","Right"].forEach(function(t){s[t.toLowerCase()]=parseFloat(o["border"+t+"Width"])}),i.right=k.body.scrollWidth-i.left-n.width+s.right,i.bottom=k.body.scrollHeight-i.top-n.height+s.bottom,S.page.top>=i.top+s.top&&S.page.bottom>=i.bottom&&S.page.left>=i.left+s.left&&S.page.right>=i.right){var r=e.scrollTop,a=e.scrollLeft;S.offset={top:S.page.top-i.top+r-s.top,left:S.page.left-i.left+a-s.left}}}(),this.move(S),this.history.unshift(S),this.history.length>3&&this.history.pop(),e&&T(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var i={};for(var o in t)for(var n in i[o]={},t[o]){for(var s=!1,r=0;r=0){var y=l.split(" "),w=_(y,2);m=w[0],h=w[1]}else h=m=l;var b=function(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,i=u(e),o=i,n=getComputedStyle(e);if(e=[o.left,o.top,i.width+o.left,i.height+o.top],t.ownerDocument!==document){var s=t.ownerDocument.defaultView;e[0]+=s.pageXOffset,e[1]+=s.pageYOffset,e[2]+=s.pageXOffset,e[3]+=s.pageYOffset}Y.forEach(function(t,i){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[i]+=parseFloat(n["border"+t+"Width"]):e[i]-=parseFloat(n["border"+t+"Width"])})}(),e}(e,s);"target"!==m&&"both"!==m||(ib[3]&&"bottom"===g.top&&(i-=d,g.top="top")),"together"===m&&("top"===g.top&&("bottom"===v.top&&ib[3]&&i-(r-d)>=b[1]&&(i-=r-d,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&i+r>b[3]?(i-=d,g.top="top",i-=r,v.top="bottom"):"bottom"===v.top&&ib[3]&&"top"===v.top?(i-=r,v.top="bottom"):ib[2]&&"right"===g.left&&(o-=p,g.left="left")),"together"===h&&(ob[2]&&"right"===g.left?"left"===v.left?(o-=p,g.left="left",o-=a,v.left="right"):"right"===v.left&&(o-=p,g.left="left",o+=a,v.left="left"):"center"===g.left&&(o+a>b[2]&&"left"===v.left?(o-=a,v.left="right"):ob[3]&&"top"===v.top&&(i-=r,v.top="bottom")),"element"!==h&&"both"!==h||(ob[2]&&("left"===v.left?(o-=a,v.left="right"):"center"===v.left&&(o-=a/2,v.left="right"))),"string"==typeof c?c=c.split(",").map(function(t){return t.trim()}):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var x,S,k=[],T=[];i=0?(i=b[1],k.push("top")):T.push("top")),i+r>b[3]&&(c.indexOf("bottom")>=0?(i=b[3]-r,k.push("bottom")):T.push("bottom")),o=0?(o=b[0],k.push("left")):T.push("left")),o+a>b[2]&&(c.indexOf("right")>=0?(o=b[2]-a,k.push("right")):T.push("right")),k.length&&(x=void 0,x=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),f.push(x),k.forEach(function(t){f.push(x+"-"+t)})),T.length&&(S=void 0,S=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),f.push(S),T.forEach(function(t){f.push(S+"-"+t)})),(k.indexOf("left")>=0||k.indexOf("right")>=0)&&(v.left=g.left=!1),(k.indexOf("top")>=0||k.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===n.top&&g.left===n.left&&v.top===e.attachment.top&&v.left===e.attachment.left||(e.updateAttachClasses(v,g),e.trigger("update",{attachment:v,targetAttachment:g}))}),k(function(){!1!==e.options.addTargetClasses&&x(e.target,f,h),x(e.element,f,h)}),{top:i,left:o}}});var X,u=(X=i.Utils).getBounds,x=X.updateClasses,k=X.defer;i.modules.push({position:function(t){var e=this,i=t.top,o=t.left,n=this.cache("element-bounds",function(){return u(e.element)}),s=n.height,r=n.width,a=this.getTargetBounds(),l=i+s,c=o+r,d=[];i<=a.bottom&&l>=a.top&&["left","right"].forEach(function(t){var e=a[t];e!==o&&e!==c||d.push(t)}),o<=a.right&&c>=a.left&&["top","bottom"].forEach(function(t){var e=a[t];e!==i&&e!==l||d.push(t)});var p=[],h=[];return p.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),d.length&&h.push(this.getClass("abutted")),d.forEach(function(t){h.push(e.getClass("abutted")+"-"+t)}),k(function(){!1!==e.options.addTargetClasses&&x(e.target,h,p),x(e.element,h,p)}),!0}});var _=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],o=!0,n=!1,s=void 0;try{for(var r,a=t[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,s=t}finally{try{!o&&a.return&&a.return()}finally{if(n)throw s}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};return i.modules.push({position:function(t){var e=t.top,i=t.left;if(this.options.shift){var o=this.options.shift;"function"==typeof this.options.shift&&(o=this.options.shift.call(this,{top:e,left:i}));var n=void 0,s=void 0;if("string"==typeof o){(o=o.split(" "))[1]=o[1]||o[0];var r=_(o,2);n=r[0],s=r[1],n=parseFloat(n,10),s=parseFloat(s,10)}else n=o.top,s=o.left;return{top:e+=n,left:i+=s}}}}),U})?o.call(e,i,e,t):o)||(t.exports=n)},function(t,e,i){(function(e){t.exports=e.Tether=i(34)}).call(this,i(3))},function(t,e,i){i(4),t.exports=i(96)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(){}]);