flyinghightravels.com Open in urlscan Pro
103.1.238.190  Public Scan

URL: http://flyinghightravels.com/plugins/caches/ca7223bc3558fa80116f4a62a6208b96.js?v=1706281099
Submission: On January 29 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.LazyLoad=e()}(this,function(){"use strict";function r(t,e){var n,o=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:o}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:o})}window.dispatchEvent(n)}function d(t,e){return t.getAttribute("data-"+e)}function a(t,e,n){var o="data-"+e;null!==n?t.setAttribute(o,n):t.removeAttribute(o)}function s(t){return"true"===d(t,"was-processed")}function f(t,e){return a(t,"ll-timeout",e),0}function _(t){return d(t,"ll-timeout")}function v(t,e){t&&t(e)}function g(t,e){t._loadingCount+=e,0===t._elements.length&&0===t._loadingCount&&v(t._settings.callback_finish)}function o(t){for(var e,n=[],o=0;e=t.children[o];o+=1)"SOURCE"===e.tagName&&n.push(e);return n}function n(t,e,n){n&&t.setAttribute(e,n)}function i(t,e){n(t,"sizes",d(t,e.data_sizes)),n(t,"srcset",d(t,e.data_srcset)),n(t,"src",d(t,e.data_src))}function c(t,e){O?t.classList.add(e):t.className+=(t.className?" ":"")+e}function l(t,e,n){t.addEventListener(e,n)}function u(t,e,n){t.removeEventListener(e,n)}function b(t,e,n){u(t,"load",e),u(t,"loadeddata",e),u(t,"error",n)}function m(t,e,n){var o,r,a=n._settings,s=e?a.class_loaded:a.class_error,i=e?a.callback_loaded:a.callback_error,l=t.target;o=l,r=a.class_loading,O?o.classList.remove(r):o.className=o.className.replace(new RegExp("(^|\\s+)"+r+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""),c(l,s),v(i,l),g(n,-1)}function h(n,o){function r(t){m(t,!0,o),b(n,r,s)}var t,e,a,s=function t(e){m(e,!1,o),b(n,r,t)};a=s,l(t=n,"load",e=r),l(t,"loadeddata",e),l(t,"error",a)}function p(t,e){var n=e._observer;z(t,e),n&&e._settings.auto_unobserve&&n.unobserve(t)}function y(t){var e=_(t);e&&(clearTimeout(e),f(t,null))}function E(u){return!!k&&(u._observer=new IntersectionObserver(function(t){t.forEach(function(t){return t.isIntersecting||0<t.intersectionRatio?(o=t.target,c=(r=u)._settings,v(c.callback_enter,o),void(c.load_delay?(a=o,i=(s=r)._settings.load_delay,(l=_(a))||(l=setTimeout(function(){p(a,s),y(a)},i),f(a,l))):p(o,r))):(e=t.target,n=u._settings,v(n.callback_exit,e),void(n.load_delay&&y(e)));var e,n,o,r,a,s,i,l,c})},{root:(t=u._settings).container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}),!0);var t}function w(t,e){return o=t||(n=e).container.querySelectorAll(n.elements_selector),Array.prototype.slice.call(o).filter(function(t){return!s(t)});var n,o}function t(t,e){this._settings=_extends({},A,t),this._loadingCount=0,E(this),this.update(e)}var e="undefined"!=typeof window,I=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),k=e&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype,O=e&&"classList"in document.createElement("p"),A={elements_selector:"img",container:I||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},L={IMG:function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&o(n).forEach(function(t){i(t,e)}),i(t,e)},IFRAME:function(t,e){n(t,"src",d(t,e.data_src))},VIDEO:function(t,e){o(t).forEach(function(t){n(t,"src",d(t,e.data_src))}),n(t,"src",d(t,e.data_src)),t.load()}},x=["IMG","IFRAME","VIDEO"],z=function(t,e,n){var o=e._settings;!n&&s(t)||(-1<x.indexOf(t.tagName)&&(h(t,e),c(t,o.class_loading)),function(t,e){var n,o,r,a,s,i,l=e._settings,c=t.tagName,u=L[c];if(u)return u(t,l),g(e,1),e._elements=(n=e._elements,o=t,n.filter(function(t){return t!==o}));s=d(r=t,(a=l).data_src),i=d(r,a.data_bg),s&&(r.style.backgroundImage='url("'.concat(s,'")')),i&&(r.style.backgroundImage=i)}(t,e),a(t,"was-processed","true"),v(o.callback_reveal,t),v(o.callback_set,t))},N=["IMG","IFRAME"];return t.prototype={update:function(t){var e,n=this,o=this._settings;this._elements=w(t,o),!I&&this._observer?(o.use_native&&"loading"in HTMLImageElement.prototype&&((e=this)._elements.forEach(function(t){-1!==N.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),z(t,e))}),this._elements=w(t,o)),this._elements.forEach(function(t){n._observer.observe(t)})):this.loadAll()},destroy:function(){var e=this;this._observer&&(this._elements.forEach(function(t){e._observer.unobserve(t)}),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){z(t,this,e)},loadAll:function(){var e=this;this._elements.forEach(function(t){p(t,e)})}},e&&function(t,e){if(e)if(e.length)for(var n,o=0;n=e[o];o+=1)r(t,n);else r(t,e)}(t,window.lazyLoadOptions),t});!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function s(t){var e=this,n=!1;return i.default(this).one(l.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||l.triggerTransitionEnd(e)}),t),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay"),o=parseFloat(e),r=parseFloat(n);return o||r?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],a=r&&l.isElement(r)?"element":null===(s=r)||"undefined"==typeof s?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?l.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),i.default.fn.emulateTransitionEnd=s,i.default.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var u="alert",f=i.default.fn[u],d=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=l.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event("close.bs.alert");return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass("show"),i.default(t).hasClass("fade")){var n=l.getTransitionDurationFromElement(t);i.default(t).one(l.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data("bs.alert");o||(o=new t(this),n.data("bs.alert",o)),"close"===e&&o[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),i.default.fn[u]=d._jQueryInterface,i.default.fn[u].Constructor=d,i.default.fn[u].noConflict=function(){return i.default.fn[u]=f,d._jQueryInterface};var c=i.default.fn.button,h=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))t=!1;else{var r=n.querySelector(".active");r&&i.default(r).removeClass("active")}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&i.default(this._element).toggleClass("active"))},e.dispose=function(){i.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this),r=o.data("bs.button");r||(r=new t(this),o.data("bs.button",r)),r.shouldAvoidTriggerChange=n,"toggle"===e&&r[e]()}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();i.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var o=e.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||h._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=i.default(t.target).closest(".btn")[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),i.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var r=0,a=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;r<a;r++){var s=t[r];"true"===s.getAttribute("aria-pressed")?s.classList.add("active"):s.classList.remove("active")}})),i.default.fn.button=h._jQueryInterface,i.default.fn.button.Constructor=h,i.default.fn.button.noConflict=function(){return i.default.fn.button=c,h._jQueryInterface};var p="carousel",m=".bs.carousel",g=i.default.fn[p],v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},_={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},b={TOUCH:"touch",PEN:"pen"},y=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var o=t>n?"next":"prev";this._slide(o,this._items[t])}},e.dispose=function(){i.default(this._element).off(m),i.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=a({},v,t),l.typeCheckConfig(p,t,_),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),i.default(this._element).on("pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),i.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),i.default(this._element).on("touchend.bs.carousel",(function(t){return n(t)})))}},e._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()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var a=(o+("prev"===t?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),r=i.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass("active")}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(".active.carousel-item");if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,o,r,a=this,s=this._element.querySelector(".active.carousel-item"),u=this._getItemIndex(s),f=e||s&&this._getItemByDirection(t,s),d=this._getItemIndex(f),c=Boolean(this._interval);if("next"===t?(n="carousel-item-left",o="carousel-item-next",r="left"):(n="carousel-item-right",o="carousel-item-prev",r="right"),f&&i.default(f).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(f,r).isDefaultPrevented()&&s&&f){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(f),this._activeElement=f;var h=i.default.Event("slid.bs.carousel",{relatedTarget:f,direction:r,from:u,to:d});if(i.default(this._element).hasClass("slide")){i.default(f).addClass(o),l.reflow(f),i.default(s).addClass(n),i.default(f).addClass(n);var p=l.getTransitionDurationFromElement(s);i.default(s).one(l.TRANSITION_END,(function(){i.default(f).removeClass(n+" "+o).addClass("active"),i.default(s).removeClass("active "+o+" "+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(h)}),0)})).emulateTransitionEnd(p)}else i.default(s).removeClass("active"),i.default(f).addClass("active"),this._isSliding=!1,i.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data("bs.carousel"),o=a({},v,i.default(this).data());"object"==typeof e&&(o=a({},o,e));var r="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i.default(this).data("bs.carousel",n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if("undefined"==typeof n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=l.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass("carousel")){var r=a({},i.default(o).data(),i.default(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),t._jQueryInterface.call(i.default(o),r),s&&i.default(o).data("bs.carousel").to(s),e.preventDefault()}}},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return v}}]),t}();i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",y._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var o=i.default(t[e]);y._jQueryInterface.call(o,o.data())}})),i.default.fn[p]=y._jQueryInterface,i.default.fn[p].Constructor=y,i.default.fn[p].noConflict=function(){return i.default.fn[p]=g,y._jQueryInterface};var w="collapse",E=i.default.fn[w],T={toggle:!0,parent:""},C={toggle:"boolean",parent:"(string|element)"},S=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=n.length;i<o;i++){var r=n[i],a=l.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){i.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!this._isTransitioning&&!i.default(this._element).hasClass("show")&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(e=null),!(e&&(n=i.default(e).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var r=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),"hide"),n||i.default(e).data("bs.collapse",null));var a=this._getDimension();i.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),u=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,(function(){i.default(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[a]="",o.setTransitioning(!1),i.default(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(u),this._element.style[a]=this._element[s]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass("show")){var e=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",l.reflow(this._element),i.default(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var r=0;r<o;r++){var a=this._triggerArray[r],s=l.getSelectorFromElement(a);if(null!==s)i.default([].slice.call(document.querySelectorAll(s))).hasClass("show")||i.default(a).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var u=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,(function(){t.setTransitioning(!1),i.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(u)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=a({},T,t)).toggle=Boolean(t.toggle),l.typeCheckConfig(w,t,C),t},e._getDimension=function(){return i.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;l.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(o));return i.default(r).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=i.default(t).hasClass("show");e.length&&i.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=l.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data("bs.collapse"),r=a({},T,n.data(),"object"==typeof e&&e?e:{});if(!o&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new t(this,r),n.data("bs.collapse",o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return T}}]),t}();i.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i.default(this),n=l.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each((function(){var t=i.default(this),n=t.data("bs.collapse")?"toggle":e.data();S._jQueryInterface.call(t,n)}))})),i.default.fn[w]=S._jQueryInterface,i.default.fn[w].Constructor=S,i.default.fn[w].noConflict=function(){return i.default.fn[w]=E,S._jQueryInterface};var D="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,N=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(D&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var k=D&&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 I(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function O(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function x(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=I(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:x(O(t))}function j(t){return t&&t.referenceNode?t.referenceNode:t}var L=D&&!(!window.MSInputMethodContext||!document.documentMode),P=D&&/MSIE 10/.test(navigator.userAgent);function F(t){return 11===t?L:10===t?P:L||P}function R(t){if(!t)return document.documentElement;for(var e=F(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===I(n,"position")?R(n):n:t?t.ownerDocument.documentElement:document.documentElement}function H(t){return null!==t.parentNode?H(t.parentNode):t}function M(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&R(a.firstElementChild)!==a?R(l):l;var u=H(t);return u.host?M(u.host,e):M(t,H(e).host)}function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function B(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=q(e,"top"),o=q(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function Q(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function W(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],F(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function U(t){var e=t.body,n=t.documentElement,i=F(10)&&getComputedStyle(n);return{height:W("Height",e,n,i),width:W("Width",e,n,i)}}var V=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Y=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function K(t){return X({},t,{right:t.left+t.width,bottom:t.top+t.height})}function G(t){var e={};try{if(F(10)){e=t.getBoundingClientRect();var n=q(t,"top"),i=q(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?U(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,s=r.height||t.clientHeight||o.height,l=t.offsetWidth-a,u=t.offsetHeight-s;if(l||u){var f=I(t);l-=Q(f,"x"),u-=Q(f,"y"),o.width-=l,o.height-=u}return K(o)}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=F(10),o="HTML"===e.nodeName,r=G(t),a=G(e),s=x(t),l=I(e),u=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=K({top:r.top-a.top-u,left:r.left-a.left-f,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!i&&o){var c=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=u-c,d.bottom-=u-c,d.left-=f-h,d.right-=f-h,d.marginTop=c,d.marginLeft=h}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=B(d,e)),d}function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=$(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:q(n),s=e?0:q(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return K(l)}function Z(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===I(t,"position"))return!0;var n=O(t);return!!n&&Z(n)}function tt(t){if(!t||!t.parentElement||F())return document.documentElement;for(var e=t.parentElement;e&&"none"===I(e,"transform");)e=e.parentElement;return e||document.documentElement}function et(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?tt(t):M(t,j(e));if("viewport"===i)r=J(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=x(O(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=$(s,a,o);if("HTML"!==s.nodeName||Z(a))r=l;else{var u=U(t.ownerDocument),f=u.height,d=u.width;r.top+=l.top-l.marginTop,r.bottom=f+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}var c="number"==typeof(n=n||0);return r.left+=c?n:n.left||0,r.top+=c?n:n.top||0,r.right-=c?n:n.right||0,r.bottom-=c?n:n.bottom||0,r}function nt(t){return t.width*t.height}function it(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=et(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return X({key:t},s[t],{area:nt(s[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),f=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return f+(d?"-"+d:"")}function ot(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?tt(e):M(e,j(n));return $(n,o,i)}function rt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function at(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 st(t,e,n){n=n.split("-")[0];var i=rt(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[u]:e[at(s)],o}function lt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function ut(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=lt(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&A(n)&&(e.offsets.popper=K(e.offsets.popper),e.offsets.reference=K(e.offsets.reference),e=n(e,t))})),e}function ft(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ot(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=it(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.positionFixed=this.options.positionFixed,t.offsets.popper=st(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=ut(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function dt(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function ct(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if("undefined"!=typeof document.body.style[r])return r}return null}function ht(){return this.state.isDestroyed=!0,dt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ct("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function pt(t){var e=t.ownerDocument;return e?e.defaultView:window}function mt(t,e,n,i){n.updateBound=i,pt(t).addEventListener("resize",n.updateBound,{passive:!0});var o=x(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(n,i,{passive:!0}),r||t(x(a.parentNode),n,i,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function gt(){this.state.eventsEnabled||(this.state=mt(this.reference,this.options,this.state,this.scheduleUpdate))}function vt(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,pt(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function _t(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function bt(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&_t(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var yt=D&&/Firefox/i.test(navigator.userAgent);function wt(t,e,n){var i=lt(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var Et=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Tt=Et.slice(3);function Ct(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tt.indexOf(t),i=Tt.slice(n+1).concat(Tt.slice(0,n));return e?i.reverse():i}var St="flip",Dt="clockwise",Nt="counterclockwise";function kt(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(lt(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return K(s)[e]/100*r}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){_t(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var At={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",f={start:z({},l,r[l]),end:z({},l,r[l]+r[u]-a[u])};t.offsets.popper=X({},a,f[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=_t(+n)?[+n,0]:kt(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||R(t.instance.popper);t.instance.reference===n&&(n=R(n));var i=ct("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=et(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var u=e.priority,f=t.offsets.popper,d={primary:function(t){var n=f[t];return f[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(f[t],l[t])),z({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=f[n];return f[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(f[n],l[t]-("right"===t?f.width:f.height))),z({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";f=X({},f,d[e](t))})),t.offsets.popper=f,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!wt(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),c=l?"left":"top",h=l?"bottom":"right",p=rt(i)[u];s[h]-p<a[d]&&(t.offsets.popper[d]-=a[d]-(s[h]-p)),s[d]+p>a[h]&&(t.offsets.popper[d]+=s[d]+p-a[h]),t.offsets.popper=K(t.offsets.popper);var m=s[d]+s[u]/2-p/2,g=I(t.instance.popper),v=parseFloat(g["margin"+f]),_=parseFloat(g["border"+f+"Width"]),b=m-t.offsets.popper[d]-v-_;return b=Math.max(Math.min(a[u]-p,b),0),t.arrowElement=i,t.offsets.arrow=(z(n={},d,Math.round(b)),z(n,c,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(dt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=et(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=at(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case St:a=[i,o];break;case Dt:a=Ct(i);break;case Nt:a=Ct(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=at(i);var u=t.offsets.popper,f=t.offsets.reference,d=Math.floor,c="left"===i&&d(u.right)>d(f.left)||"right"===i&&d(u.left)<d(f.right)||"top"===i&&d(u.bottom)>d(f.top)||"bottom"===i&&d(u.top)<d(f.bottom),h=d(u.left)<d(n.left),p=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),v="left"===i&&h||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,_=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(_&&"start"===r&&h||_&&"end"===r&&p||!_&&"start"===r&&m||!_&&"end"===r&&g),y=!!e.flipVariationsByContent&&(_&&"start"===r&&p||_&&"end"===r&&h||!_&&"start"===r&&g||!_&&"end"===r&&m),w=b||y;(c||v||w)&&(t.flipped=!0,(c||v)&&(i=a[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=X({},t.offsets.popper,st(t.instance.popper,t.offsets.reference,t.placement)),t=ut(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=at(e),t.offsets.popper=K(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!wt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=lt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=lt(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=R(t.instance.popper),l=G(s),u={position:o.position},f=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),u=r(i.width),f=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),c=e?f||d||l%2==u%2?r:a:s,h=e?r:s;return{left:c(l%2==1&&u%2==1&&!d&&e?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:c(i.right)}}(t,window.devicePixelRatio<2||!yt),d="bottom"===n?"top":"bottom",c="right"===i?"left":"right",h=ct("transform"),p=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+f.bottom:-l.height+f.bottom:f.top,p="right"===c?"HTML"===s.nodeName?-s.clientWidth+f.right:-l.width+f.right:f.left,a&&h)u[h]="translate3d("+p+"px, "+m+"px, 0)",u[d]=0,u[c]=0,u.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===c?-1:1;u[d]=m*g,u[c]=p*v,u.willChange=d+", "+c}var _={"x-placement":t.placement};return t.attributes=X({},_,t.attributes),t.styles=X({},u,t.styles),t.arrowStyles=X({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return bt(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&bt(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=ot(o,e,t,n.positionFixed),a=it(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),bt(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},It=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};V(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=k(this.update.bind(this)),this.options=X({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(X({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=X({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return X({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&A(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Y(t,[{key:"update",value:function(){return ft.call(this)}},{key:"destroy",value:function(){return ht.call(this)}},{key:"enableEventListeners",value:function(){return gt.call(this)}},{key:"disableEventListeners",value:function(){return vt.call(this)}}]),t}();It.Utils=("undefined"!=typeof window?window:global).PopperUtils,It.placements=Et,It.Defaults=At;var Ot="dropdown",xt=i.default.fn[Ot],jt=new RegExp("38|40|27"),Lt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Pt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Ft=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass("disabled")){var e=i.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass("disabled")||i.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},o=i.default.Event("show.bs.dropdown",n),r=t._getParentFromElement(this._element);if(i.default(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof It)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=r:l.isElement(this._config.reference)&&(a=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(r).addClass("position-static"),this._popper=new It(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(r).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass("show"),i.default(r).toggleClass("show").trigger(i.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass("disabled")&&i.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=i.default.Event("hide.bs.dropdown",e),o=t._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass("show"),i.default(o).toggleClass("show").trigger(i.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){i.default.removeData(this._element,"bs.dropdown"),i.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=a({},this.constructor.Default,i.default(this._element).data(),t),l.typeCheckConfig(Ot,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),a({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data("bs.dropdown");if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data("bs.dropdown",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,r=n.length;o<r;o++){var a=t._getParentFromElement(n[o]),s=i.default(n[o]).data("bs.dropdown"),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var u=s._menu;if(i.default(a).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.default.contains(a,e.target))){var f=i.default.Event("hide.bs.dropdown",l);i.default(a).trigger(f),f.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[o].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),i.default(u).removeClass("show"),i.default(a).removeClass("show").trigger(i.default.Event("hidden.bs.dropdown",l)))}}}},t._getParentFromElement=function(t){var e,n=l.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i.default(e.target).closest(".dropdown-menu").length):!jt.test(e.which))&&!this.disabled&&!i.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),o=i.default(n).hasClass("show");if(o||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!o||27===e.which||32===e.which)return 27===e.which&&i.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void i.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return i.default(t).is(":visible")}));if(0!==r.length){var a=r.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<r.length-1&&a++,a<0&&(a=0),r[a].focus()}}}},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Lt}},{key:"DefaultType",get:function(){return Pt}}]),t}();i.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',Ft._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",Ft._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",Ft._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),Ft._jQueryInterface.call(i.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),i.default.fn[Ot]=Ft._jQueryInterface,i.default.fn[Ot].Constructor=Ft,i.default.fn[Ot].noConflict=function(){return i.default.fn[Ot]=xt,Ft._jQueryInterface};var Rt=i.default.fn.modal,Ht={backdrop:!0,keyboard:!0,focus:!0,show:!0},Mt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},qt=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){i.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=i.default.Event("show.bs.modal",{relatedTarget:t});i.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),i.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){i.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){i.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.default.Event("hide.bs.modal");if(i.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i.default(this._element).hasClass("fade");if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off("focusin.bs.modal"),i.default(this._element).removeClass("show"),i.default(this._element).off("click.dismiss.bs.modal"),i.default(this._dialog).off("mousedown.dismiss.bs.modal"),o){var r=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return i.default(t).off(".bs.modal")})),i.default(document).off("focusin.bs.modal"),i.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=a({},Ht,t),l.typeCheckConfig("modal",t,Mt),t},e._triggerBackdropTransition=function(){var t=this,e=i.default.Event("hidePrevented.bs.modal");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var o=l.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(l.TRANSITION_END),i.default(this._element).one(l.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),n||i.default(t._element).one(l.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass("fade"),o=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&l.reflow(this._element),i.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var r=i.default.Event("shown.bs.modal",{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(r)};if(n){var s=l.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;i.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):i.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){i.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&l.reflow(this._backdrop),i.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var o=l.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(l.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass("show");var r=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass("fade")){var a=l.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(l.TRANSITION_END,r).emulateTransitionEnd(a)}else r()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));i.default(e).each((function(e,n){var o=n.style.paddingRight,r=i.default(n).css("padding-right");i.default(n).data("padding-right",o).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")})),i.default(n).each((function(e,n){var o=n.style.marginRight,r=i.default(n).css("margin-right");i.default(n).data("margin-right",o).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,r=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",o).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}i.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));i.default(t).each((function(t,e){var n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));i.default(e).each((function(t,e){var n=i.default(e).data("margin-right");"undefined"!=typeof n&&i.default(e).css("margin-right",n).removeData("margin-right")}));var n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this).data("bs.modal"),r=a({},Ht,i.default(this).data(),"object"==typeof e&&e?e:{});if(o||(o=new t(this,r),i.default(this).data("bs.modal",o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else r.show&&o.show(n)}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Ht}}]),t}();i.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,o=l.getSelectorFromElement(this);o&&(e=document.querySelector(o));var r=i.default(e).data("bs.modal")?"toggle":a({},i.default(e).data(),i.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=i.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){i.default(n).is(":visible")&&n.focus()}))}));qt._jQueryInterface.call(i.default(e),r,this)})),i.default.fn.modal=qt._jQueryInterface,i.default.fn.modal.Constructor=qt,i.default.fn.modal.noConflict=function(){return i.default.fn.modal=Rt,qt._jQueryInterface};var Bt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Qt={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Wt=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Ut=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Vt(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].slice.call(i.body.querySelectorAll("*")),a=function(t,n){var i=r[t],a=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Bt.indexOf(n)||Boolean(t.nodeValue.match(Wt)||t.nodeValue.match(Ut));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1})(t,l)||i.removeAttribute(t.nodeName)}))},s=0,l=r.length;s<l;s++)a(s);return i.body.innerHTML}var Yt="tooltip",zt=i.default.fn[Yt],Xt=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Kt=["sanitize","whiteList","sanitizeFn"],Gt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},$t={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Jt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Qt,popperConfig:null},Zt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},te=function(){function t(t,e){if("undefined"==typeof It)throw new TypeError("Bootstrap's tooltips require Popper (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 e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=l.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var r=this.getTipElement(),a=l.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&i.default(r).addClass("fade");var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,u=this._getAttachment(s);this.addAttachmentClass(u);var f=this._getContainer();i.default(r).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(r).appendTo(f),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new It(this.element,r,this._getPopperConfig(u)),i.default(r).addClass("show"),i.default(r).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(i.default(this.tip).hasClass("fade")){var c=l.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(l.TRANSITION_END,d).emulateTransitionEnd(c)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),r=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass("fade")){var a=l.getTransitionDurationFromElement(n);i.default(n).one(l.TRANSITION_END,r).emulateTransitionEnd(a)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Vt(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},e.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},e._getPopperConfig=function(t){var e=this;return a({},{placement:t,modifiers:{offset:this._getOffset(),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){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return $t[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._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",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),i.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Kt.indexOf(t)&&delete e[t]})),"number"==typeof(t=a({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),l.typeCheckConfig(Yt,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vt(t.template,t.whiteList,t.sanitizeFn)),t},e._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},e._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(Xt);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data("bs.tooltip"),r="object"==typeof e&&e;if((o||!/dispose|hide/.test(e))&&(o||(o=new t(this,r),n.data("bs.tooltip",o)),"string"==typeof e)){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Jt}},{key:"NAME",get:function(){return Yt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Zt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Gt}}]),t}();i.default.fn[Yt]=te._jQueryInterface,i.default.fn[Yt].Constructor=te,i.default.fn[Yt].noConflict=function(){return i.default.fn[Yt]=zt,te._jQueryInterface};var ee="popover",ne=i.default.fn[ee],ie=new RegExp("(^|\\s)bs-popover\\S+","g"),oe=a({},te.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),re=a({},te.DefaultType,{content:"(string|element|function)"}),ae={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},se=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},a.setContent=function(){var t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(ie);null!==e&&e.length>0&&t.removeClass(e.join(""))},o._jQueryInterface=function(t){return this.each((function(){var e=i.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),i.default(this).data("bs.popover",e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},r(o,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return oe}},{key:"NAME",get:function(){return ee}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return ae}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return re}}]),o}(te);i.default.fn[ee]=se._jQueryInterface,i.default.fn[ee].Constructor=se,i.default.fn[ee].noConflict=function(){return i.default.fn[ee]=ne,se._jQueryInterface};var le="scrollspy",ue=i.default.fn[le],fe={offset:10,method:"auto",target:""},de={offset:"number",method:"string",target:"(string|element)"},ce=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,o="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=l.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[i.default(e)[n]().top+o,r]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){i.default.removeData(this._element,"bs.scrollspy"),i.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=a({},fe,"object"==typeof t&&t?t:{})).target&&l.isElement(t.target)){var e=i.default(t.target).attr("id");e||(e=l.getUID(le),i.default(t.target).attr("id",e)),t.target="#"+e}return l.typeCheckConfig(le,t,de),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),i.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data("bs.scrollspy");if(n||(n=new t(this,"object"==typeof e&&e),i.default(this).data("bs.scrollspy",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return fe}}]),t}();i.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=i.default(t[e]);ce._jQueryInterface.call(n,n.data())}})),i.default.fn[le]=ce._jQueryInterface,i.default.fn[le].Constructor=ce,i.default.fn[le].noConflict=function(){return i.default.fn[le]=ue,ce._jQueryInterface};var he=i.default.fn.tab,pe=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass("active")||i.default(this._element).hasClass("disabled"))){var e,n,o=i.default(this._element).closest(".nav, .list-group")[0],r=l.getSelectorFromElement(this._element);if(o){var a="UL"===o.nodeName||"OL"===o.nodeName?"> li > .active":".active";n=(n=i.default.makeArray(i.default(o).find(a)))[n.length-1]}var s=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),u=i.default.Event("show.bs.tab",{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(u),!u.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,o);var f=function(){var e=i.default.Event("hidden.bs.tab",{relatedTarget:t._element}),o=i.default.Event("shown.bs.tab",{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(o)};e?this._activate(e,e.parentNode,f):f()}}},e.dispose=function(){i.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,n){var o=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(".active"):i.default(e).find("> li > .active"))[0],a=n&&r&&i.default(r).hasClass("fade"),s=function(){return o._transitionComplete(t,r,n)};if(r&&a){var u=l.getTransitionDurationFromElement(r);i.default(r).removeClass("show").one(l.TRANSITION_END,s).emulateTransitionEnd(u)}else s()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass("active");var o=i.default(e.parentNode).find("> .dropdown-menu .active")[0];o&&i.default(o).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(i.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),l.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&i.default(t.parentNode).hasClass("dropdown-menu")){var r=i.default(t).closest(".dropdown")[0];if(r){var a=[].slice.call(r.querySelectorAll(".dropdown-toggle"));i.default(a).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data("bs.tab");if(o||(o=new t(this),n.data("bs.tab",o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),pe._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=pe._jQueryInterface,i.default.fn.tab.Constructor=pe,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=he,pe._jQueryInterface};var me=i.default.fn.toast,ge={animation:"boolean",autohide:"boolean",delay:"number"},ve={animation:!0,autohide:!0,delay:500},_e=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),i.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),l.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains("show")){var t=i.default.Event("hide.bs.toast");i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),i.default(this._element).off("click.dismiss.bs.toast"),i.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=a({},ve,i.default(this._element).data(),"object"==typeof t&&t?t:{}),l.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),i.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=l.getTransitionDurationFromElement(this._element);i.default(this._element).one(l.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data("bs.toast");if(o||(o=new t(this,"object"==typeof e&&e),n.data("bs.toast",o)),"string"==typeof e){if("undefined"==typeof o[e])throw new TypeError('No method named "'+e+'"');o[e](this)}}))},r(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return ge}},{key:"Default",get:function(){return ve}}]),t}();i.default.fn.toast=_e._jQueryInterface,i.default.fn.toast.Constructor=_e,i.default.fn.toast.noConflict=function(){return i.default.fn.toast=me,_e._jQueryInterface},t.Alert=d,t.Button=h,t.Carousel=y,t.Collapse=S,t.Dropdown=Ft,t.Modal=qt,t.Popover=se,t.Scrollspy=ce,t.Tab=pe,t.Toast=_e,t.Tooltip=te,t.Util=l,Object.defineProperty(t,"__esModule",{value:!0})}));(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(f[b]===a)return this.values[b]},a.prototype.set=function(a,b){var c,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(g[c]===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)(a=d[b])&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(n),n}:i(jQuery)}(function(r){"use strict";var l=window;r.fn.confirm=function(s,t){return void 0===s&&(s={}),"string"==typeof s&&(s={content:s,title:t||!1}),r(this).each(function(){var e=r(this);e.attr("jc-attached")?console.warn("jConfirm has already been attached to this element ",e[0]):(e.on("click",function(t){t.preventDefault();var n,i,o=r.extend({},s);e.attr("data-title")&&(o.title=e.attr("data-title")),e.attr("data-content")&&(o.content=e.attr("data-content")),void 0===o.buttons&&(o.buttons={}),(o.$target=e).attr("href")&&0===Object.keys(o.buttons).length&&(n=r.extend(!0,{},l.jconfirm.pluginDefaults.defaultButtons,(l.jconfirm.defaults||{}).defaultButtons||{}),i=Object.keys(n)[0],o.buttons=n,o.buttons[i].action=function(){location.href=e.attr("href")}),o.closeIcon=!1;r.confirm(o)}),e.attr("jc-attached",!0))}),r(this)},r.confirm=function(t,n){void 0===t&&(t={}),"string"==typeof t&&(t={content:t,title:n||!1});var i,o=!(!1===t.buttons);return"object"!=typeof t.buttons&&(t.buttons={}),0===Object.keys(t.buttons).length&&o&&(i=r.extend(!0,{},l.jconfirm.pluginDefaults.defaultButtons,(l.jconfirm.defaults||{}).defaultButtons||{}),t.buttons=i),l.jconfirm(t)},r.alert=function(t,n){void 0===t&&(t={}),"string"==typeof t&&(t={content:t,title:n||!1});var i,o,e=!(!1===t.buttons);return"object"!=typeof t.buttons&&(t.buttons={}),0===Object.keys(t.buttons).length&&e&&(i=r.extend(!0,{},l.jconfirm.pluginDefaults.defaultButtons,(l.jconfirm.defaults||{}).defaultButtons||{}),o=Object.keys(i)[0],t.buttons[o]=i[o]),l.jconfirm(t)},r.dialog=function(t,n){return void 0===t&&(t={}),"string"==typeof t&&(t={content:t,title:n||!1,closeIcon:function(){}}),t.buttons={},void 0===t.closeIcon&&(t.closeIcon=function(){}),t.confirmKeys=[13],l.jconfirm(t)},l.jconfirm=function(t){void 0===t&&(t={});var n=r.extend(!0,{},l.jconfirm.pluginDefaults);l.jconfirm.defaults&&(n=r.extend(!0,n,l.jconfirm.defaults)),n=r.extend(!0,{},n,t);var i=new l.Jconfirm(n);return l.jconfirm.instances.push(i),i},l.Jconfirm=function(t){r.extend(this,t),this._init()},l.Jconfirm.prototype={_init:function(){var t=this;l.jconfirm.instances.length||(l.jconfirm.lastFocused=r("body").find(":focus")),this._id=Math.round(99999*Math.random()),this.contentParsed=r(document.createElement("div")),this.lazyOpen||setTimeout(function(){t.open()},0)},_buildHTML:function(){var t=this;this._parseAnimation(this.animation,"o"),this._parseAnimation(this.closeAnimation,"c"),this._parseBgDismissAnimation(this.backgroundDismissAnimation),this._parseColumnClass(this.columnClass),this._parseTheme(this.theme),this._parseType(this.type);var n=r(this.template);n.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed),this.typeAnimated&&n.find(".jconfirm-box").addClass("jconfirm-type-animated"),this.useBootstrap?(n.find(".jc-bs3-row").addClass(this.bootstrapClasses.row),n.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center"),n.find(".jconfirm-box-container").addClass(this.columnClassParsed),this.containerFluid?n.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid):n.find(".jc-bs3-container").addClass(this.bootstrapClasses.container)):n.find(".jconfirm-box").css("width",this.boxWidth),this.titleClass&&n.find(".jconfirm-title-c").addClass(this.titleClass),n.addClass(this.themeParsed);var i="jconfirm-box"+this._id;n.find(".jconfirm-box").attr("aria-labelledby",i).attr("tabindex",-1),n.find(".jconfirm-content").attr("id",i),null!==this.bgOpacity&&n.find(".jconfirm-bg").css("opacity",this.bgOpacity),this.rtl&&n.addClass("jconfirm-rtl"),this.$el=n.appendTo(this.container),this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container"),this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box"),this.$jconfirmBg=this.$el.find(".jconfirm-bg"),this.$title=this.$el.find(".jconfirm-title"),this.$titleContainer=this.$el.find(".jconfirm-title-c"),this.$content=this.$el.find("div.jconfirm-content"),this.$contentPane=this.$el.find(".jconfirm-content-pane"),this.$icon=this.$el.find(".jconfirm-icon-c"),this.$closeIcon=this.$el.find(".jconfirm-closeIcon"),this.$holder=this.$el.find(".jconfirm-holder"),this.$btnc=this.$el.find(".jconfirm-buttons"),this.$scrollPane=this.$el.find(".jconfirm-scrollpane"),t.setStartingPoint(),this._contentReady=r.Deferred(),this._modalReady=r.Deferred(),this.$holder.css({"padding-top":this.offsetTop,"padding-bottom":this.offsetBottom}),this.setTitle(),this.setIcon(),this._setButtons(),this._parseContent(),this.initDraggable(),this.isAjax&&this.showLoading(!1),r.when(this._contentReady,this._modalReady).then(function(){t.isAjaxLoading?setTimeout(function(){t.isAjaxLoading=!1,t.setContent(),t.setTitle(),t.setIcon(),setTimeout(function(){t.hideLoading(!1),t._updateContentMaxHeight()},100),"function"==typeof t.onContentReady&&t.onContentReady()},50):(t._updateContentMaxHeight(),t.setTitle(),t.setIcon(),"function"==typeof t.onContentReady&&t.onContentReady()),t.autoClose&&t._startCountDown()}).then(function(){t._watchContent()}),"none"===this.animation&&(this.animationSpeed=1,this.animationBounce=1),this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce)),this.$contentPane.css(this._getCSS(this.animationSpeed,1)),this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1)),this.$jconfirmBoxContainer.css(this._getCSS(this.animationSpeed,1))},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(t){this.typeParsed=this._typePrefix+t},setType:function(t){var n=this.typeParsed;this._parseType(t),this.$jconfirmBox.removeClass(n).addClass(this.typeParsed)},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(t){var n=this.theme;this.theme=t||this.theme,this._parseTheme(this.theme),n&&this.$el.removeClass(n),this.$el.addClass(this.themeParsed),this.theme=t},_parseTheme:function(i){var o=this;i=i.split(","),r.each(i,function(t,n){-1===n.indexOf(o._themePrefix)&&(i[t]=o._themePrefix+r.trim(n))}),this.themeParsed=i.join(" ").toLowerCase()},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(t){var i=t.split(","),o=this;r.each(i,function(t,n){-1===n.indexOf(o._bgDismissPrefix)&&(i[t]=o._bgDismissPrefix+r.trim(n))}),this.backgroundDismissAnimationParsed=i.join(" ").toLowerCase()},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(t){this.animation=t||this.animation,this._parseAnimation(this.animation,"o")},_parseAnimation:function(t,n){n=n||"o";var i=t.split(","),o=this;r.each(i,function(t,n){-1===n.indexOf(o._animationPrefix)&&(i[t]=o._animationPrefix+r.trim(n))});var e=i.join(" ").toLowerCase();return"o"===n?this.animationParsed=e:this.closeAnimationParsed=e,e},setCloseAnimation:function(t){this.closeAnimation=t||this.closeAnimation,this._parseAnimation(this.closeAnimation,"c")},setAnimationSpeed:function(t){this.animationSpeed=t||this.animationSpeed},columnClassParsed:"",setColumnClass:function(t){this.useBootstrap?(this.columnClass=t||this.columnClass,this._parseColumnClass(this.columnClass),this.$jconfirmBoxContainer.addClass(this.columnClassParsed)):console.warn("cannot set columnClass, useBootstrap is set to false")},_updateContentMaxHeight:function(){var t=r(window).height()-(this.$jconfirmBox.outerHeight()-this.$contentPane.outerHeight())-(this.offsetTop+this.offsetBottom);this.$contentPane.css({"max-height":t+"px"})},setBoxWidth:function(t){this.useBootstrap?console.warn("cannot set boxWidth, useBootstrap is set to true"):(this.boxWidth=t,this.$jconfirmBox.css("width",t))},_parseColumnClass:function(t){var n;switch(t=t.toLowerCase()){case"xl":case"xlarge":n="col-md-12";break;case"l":case"large":n="col-md-8 col-md-offset-2";break;case"m":case"medium":n="col-md-6 col-md-offset-3";break;case"s":case"small":n="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":n="col-md-2 col-md-offset-5";break;default:n=t}this.columnClassParsed=n},initDraggable:function(){var n=this,i=this.$titleContainer;this.resetDrag(),this.draggable&&(i.on("mousedown",function(t){i.addClass("jconfirm-hand"),n.mouseX=t.clientX,n.mouseY=t.clientY,n.isDrag=!0}),r(window).on("mousemove."+this._id,function(t){n.isDrag&&(n.movingX=t.clientX-n.mouseX+n.initialX,n.movingY=t.clientY-n.mouseY+n.initialY,n.setDrag())}),r(window).on("mouseup."+this._id,function(){i.removeClass("jconfirm-hand"),n.isDrag&&(n.isDrag=!1,n.initialX=n.movingX,n.initialY=n.movingY)}))},resetDrag:function(){this.isDrag=!1,this.initialX=0,this.initialY=0,this.movingX=0,this.movingY=0,this.mouseX=0,this.mouseY=0,this.$jconfirmBoxContainer.css("transform","translate(0px, 0px)")},setDrag:function(){var t,n,i,o,e,s,a;this.draggable&&(this.alignMiddle=!1,t=this.$jconfirmBox.outerWidth(),n=this.$jconfirmBox.outerHeight(),i=r(window).width(),o=r(window).height(),(e=this).movingX%1!=0&&e.movingY%1!=0||(e.dragWindowBorder&&(s=i/2-t/2,a=o/2-n/2,a-=e.dragWindowGap,(s-=e.dragWindowGap)+e.movingX<0?e.movingX=-s:s-e.movingX<0&&(e.movingX=s),a+e.movingY<0?e.movingY=-a:a-e.movingY<0&&(e.movingY=a)),e.$jconfirmBoxContainer.css("transform","translate("+e.movingX+"px, "+e.movingY+"px)")))},_scrollTop:function(){if("undefined"!=typeof pageYOffset)return pageYOffset;var t=document.body,n=document.documentElement;return(n=n.clientHeight?n:t).scrollTop},_watchContent:function(){var i=this;this._timer&&clearInterval(this._timer);var o=0;this._timer=setInterval(function(){var t,n;i.smoothContent&&((t=i.$content.outerHeight()||0)!==o&&(o=t),n=r(window).height(),i.offsetTop+i.offsetBottom+i.$jconfirmBox.height()-i.$contentPane.height()+i.$content.height()<n?i.$contentPane.addClass("no-scroll"):i.$contentPane.removeClass("no-scroll"))},this.watchInterval)},_overflowClass:"jconfirm-overflow",_hilightAnimating:!1,highlight:function(){this.hiLightModal()},hiLightModal:function(){var t,n=this;this._hilightAnimating||(n.$body.addClass("hilight"),t=parseFloat(n.$body.css("animation-duration"))||2,this._hilightAnimating=!0,setTimeout(function(){n._hilightAnimating=!1,n.$body.removeClass("hilight")},1e3*t))},_bindEvents:function(){var s=this;this.boxClicked=!1,this.$scrollPane.click(function(t){var n,i,o,e;s.boxClicked||(o=n=!1,o="string"==typeof(e="function"==typeof s.backgroundDismiss?s.backgroundDismiss():s.backgroundDismiss)&&void 0!==s.buttons[e]?(n=e,!1):void 0===e||!0==!!e,n&&(o=void 0===(i=s.buttons[n].action.apply(s))||!!i),o?s.close():s.hiLightModal()),s.boxClicked=!1}),this.$jconfirmBox.click(function(t){s.boxClicked=!0});var n=!1;r(window).on("jcKeyDown."+s._id,function(t){n=n||!0}),r(window).on("keyup."+s._id,function(t){n&&(s.reactOnKey(t),n=!1)}),r(window).on("resize."+this._id,function(){s._updateContentMaxHeight(),setTimeout(function(){s.resetDrag()},100)})},_cubic_bezier:"0.36, 0.55, 0.19",_getCSS:function(t,n){return{"-webkit-transition-duration":t/1e3+"s","transition-duration":t/1e3+"s","-webkit-transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+n+")","transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+n+")"}},_setButtons:function(){var t,s=this,o=0;"object"!=typeof this.buttons&&(this.buttons={}),r.each(this.buttons,function(i,t){o+=1,"function"==typeof t&&(s.buttons[i]=t={action:t}),s.buttons[i].text=t.text||i,s.buttons[i].btnClass=t.btnClass||"btn-default",s.buttons[i].action=t.action||function(){},s.buttons[i].keys=t.keys||[],s.buttons[i].isHidden=t.isHidden||!1,s.buttons[i].isDisabled=t.isDisabled||!1,r.each(s.buttons[i].keys,function(t,n){s.buttons[i].keys[t]=n.toLowerCase()});var n=r('<button type="button" class="btn"></button>').html(s.buttons[i].text).addClass(s.buttons[i].btnClass).prop("disabled",s.buttons[i].isDisabled).css("display",s.buttons[i].isHidden?"none":"").click(function(t){t.preventDefault();var n=s.buttons[i].action.apply(s,[s.buttons[i]]);s.onAction.apply(s,[i,s.buttons[i]]),s._stopCountDown(),void 0!==n&&!n||s.close()});s.buttons[i].el=n,s.buttons[i].setText=function(t){n.html(t)},s.buttons[i].addClass=function(t){n.addClass(t)},s.buttons[i].removeClass=function(t){n.removeClass(t)},s.buttons[i].disable=function(){s.buttons[i].isDisabled=!0,n.prop("disabled",!0)},s.buttons[i].enable=function(){s.buttons[i].isDisabled=!1,n.prop("disabled",!1)},s.buttons[i].show=function(){s.buttons[i].isHidden=!1,n.css("display","")},s.buttons[i].hide=function(){s.buttons[i].isHidden=!0,n.css("display","none")},s["$_"+i]=s["$$"+i]=n,s.$btnc.append(n)}),0===o&&this.$btnc.hide(),null===this.closeIcon&&0===o&&(this.closeIcon=!0),this.closeIcon?(this.closeIconClass&&(t='<i class="'+this.closeIconClass+'"></i>',this.$closeIcon.html(t)),this.$closeIcon.click(function(t){t.preventDefault();var n,i=!1,o=!1,e="function"==typeof s.closeIcon?s.closeIcon():s.closeIcon;o="string"==typeof e&&void 0!==s.buttons[e]?(i=e,!1):void 0===e||!0==!!e,i&&(o=void 0===(n=s.buttons[i].action.apply(s))||!!n),o&&s.close()}),this.$closeIcon.show()):this.$closeIcon.hide()},setTitle:function(t,n){var i;n=n||!1,void 0!==t&&("string"==typeof t?this.title=t:"function"==typeof t?("function"==typeof t.promise&&console.error("Promise was returned from title function, this is not supported."),i=t(),this.title="string"==typeof i&&i):this.title=!1),this.isAjaxLoading&&!n||(this.$title.html(this.title||""),this.updateTitleContainer())},setIcon:function(t,n){var i;n=n||!1,void 0!==t&&("string"==typeof t?this.icon=t:"function"==typeof t?(i=t(),this.icon="string"==typeof i&&i):this.icon=!1),this.isAjaxLoading&&!n||(this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':""),this.updateTitleContainer())},updateTitleContainer:function(){this.title||this.icon?this.$titleContainer.show():this.$titleContainer.hide()},setContentPrepend:function(t,n){t&&this.contentParsed.prepend(t)},setContentAppend:function(t){t&&this.contentParsed.append(t)},setContent:function(t,n){n=!!n;var i=this;t&&this.contentParsed.html("").append(t),this.isAjaxLoading&&!n||(this.$content.html(""),this.$content.append(this.contentParsed),setTimeout(function(){i.$body.find("input[autofocus]:visible:first").focus()},100))},loadingSpinner:!1,showLoading:function(t){this.loadingSpinner=!0,this.$jconfirmBox.addClass("loading"),t&&this.$btnc.find("button").prop("disabled",!0)},hideLoading:function(t){this.loadingSpinner=!1,this.$jconfirmBox.removeClass("loading"),t&&this.$btnc.find("button").prop("disabled",!1)},ajaxResponse:!1,contentParsed:"",isAjax:!1,isAjaxLoading:!1,_parseContent:function(){var t,n,o=this,i="&nbsp;";"function"==typeof this.content&&("string"==typeof(t=this.content.apply(this))?this.content=t:("object"==typeof t&&"function"==typeof t.always&&(this.isAjax=!0,this.isAjaxLoading=!0,t.always(function(t,n,i){o.ajaxResponse={data:t,status:n,xhr:i},o._contentReady.resolve(t,n,i),"function"==typeof o.contentLoaded&&o.contentLoaded(t,n,i)})),this.content=i)),"string"==typeof this.content&&"url:"===this.content.substr(0,4).toLowerCase()&&(this.isAjax=!0,this.isAjaxLoading=!0,n=this.content.substring(4,this.content.length),r.get(n).done(function(t){o.contentParsed.html(t)}).always(function(t,n,i){o.ajaxResponse={data:t,status:n,xhr:i},o._contentReady.resolve(t,n,i),"function"==typeof o.contentLoaded&&o.contentLoaded(t,n,i)})),this.content||(this.content=i),this.isAjax||(this.contentParsed.html(this.content),this.setContent(),o._contentReady.resolve())},_stopCountDown:function(){clearInterval(this.autoCloseInterval),this.$cd&&this.$cd.remove()},_startCountDown:function(){var t=this,n=this.autoClose.split("|");if(2!==n.length)return console.error("Invalid option for autoClose. example 'close|10000'"),!1;var i=n[0],o=parseInt(n[1]);if(void 0===this.buttons[i])return console.error("Invalid button key '"+i+"' for autoClose"),!1;var e=Math.ceil(o/1e3);this.$cd=r('<span class="countdown"> ('+e+")</span>").appendTo(this["$_"+i]),this.autoCloseInterval=setInterval(function(){t.$cd.html(" ("+--e+") "),e<=0&&(t["$$"+i].trigger("click"),t._stopCountDown())},1e3)},_getKey:function(t){switch(t){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space"}var n=String.fromCharCode(t);return!!/^[A-z0-9]+$/.test(n)&&n.toLowerCase()},reactOnKey:function(t){var i=this,n=r(".jconfirm");if(n.eq(n.length-1)[0]!==this.$el[0])return!1;var o=t.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(o))return!1;var e,s=this._getKey(o);"esc"===s&&this.escapeKey&&(!0===this.escapeKey?this.$scrollPane.trigger("click"):"string"!=typeof this.escapeKey&&"function"!=typeof this.escapeKey||(e="function"==typeof this.escapeKey?this.escapeKey():this.escapeKey)&&(void 0===this.buttons[e]?console.warn("Invalid escapeKey, no buttons found with key "+e):this["$_"+e].trigger("click"))),r.each(this.buttons,function(t,n){-1!==n.keys.indexOf(s)&&i["$_"+t].trigger("click")})},setDialogCenter:function(){console.info("setDialogCenter is deprecated, dialogs are centered with CSS3 tables")},_unwatchContent:function(){clearInterval(this._timer)},close:function(t){var a=this;return"function"==typeof this.onClose&&this.onClose(t),this._unwatchContent(),r(window).unbind("resize."+this._id),r(window).unbind("keyup."+this._id),r(window).unbind("jcKeyDown."+this._id),this.draggable&&(r(window).unbind("mousemove."+this._id),r(window).unbind("mouseup."+this._id),this.$titleContainer.unbind("mousedown")),a.$el.removeClass(a.loadedClass),r("body").removeClass("jconfirm-no-scroll-"+a._id),a.$jconfirmBoxContainer.removeClass("jconfirm-no-transition"),setTimeout(function(){a.$body.addClass(a.closeAnimationParsed),a.$jconfirmBg.addClass("jconfirm-bg-h");var t="none"===a.closeAnimation?1:a.animationSpeed;setTimeout(function(){a.$el.remove();l.jconfirm.instances;for(var t,n,i,o,e,s=l.jconfirm.instances.length-1;0<=s;s--)l.jconfirm.instances[s]._id===a._id&&l.jconfirm.instances.splice(s,1);l.jconfirm.instances.length||a.scrollToPreviousElement&&l.jconfirm.lastFocused&&l.jconfirm.lastFocused.length&&r.contains(document,l.jconfirm.lastFocused[0])&&(t=l.jconfirm.lastFocused,a.scrollToPreviousElementAnimate?(n=r(window).scrollTop(),i=l.jconfirm.lastFocused.offset().top,o=r(window).height(),n<i&&i<n+o?t.focus():(e=i-Math.round(o/3),r("html, body").animate({scrollTop:e},a.animationSpeed,"swing",function(){t.focus()}))):t.focus(),l.jconfirm.lastFocused=!1),"function"==typeof a.onDestroy&&a.onDestroy()},.4*t)},50),!0},open:function(){return!this.isOpen()&&(this._buildHTML(),this._bindEvents(),this._open(),!0)},setStartingPoint:function(){var t=!1;if(!0!==this.animateFromElement&&this.animateFromElement)t=this.animateFromElement,l.jconfirm.lastClicked=!1;else{if(!l.jconfirm.lastClicked||!0!==this.animateFromElement)return!1;t=l.jconfirm.lastClicked,l.jconfirm.lastClicked=!1}if(!t)return!1;var n=t.offset(),i=t.outerHeight()/2,o=t.outerWidth()/2;i-=this.$jconfirmBox.outerHeight()/2,o-=this.$jconfirmBox.outerWidth()/2;var e=n.top+i;e-=this._scrollTop();var s=n.left+o,a=r(window).height()/2,c=r(window).width()/2;if(e-=a-this.$jconfirmBox.outerHeight()/2,s-=c-this.$jconfirmBox.outerWidth()/2,Math.abs(e)>a||Math.abs(s)>c)return!1;this.$jconfirmBoxContainer.css("transform","translate("+s+"px, "+e+"px)")},_open:function(){var t=this;"function"==typeof t.onOpenBefore&&t.onOpenBefore(),this.$body.removeClass(this.animationParsed),this.$jconfirmBg.removeClass("jconfirm-bg-h"),this.$body.focus(),t.$jconfirmBoxContainer.css("transform","translate(0px, 0px)"),setTimeout(function(){t.$body.css(t._getCSS(t.animationSpeed,1)),t.$body.css({"transition-property":t.$body.css("transition-property")+", margin"}),t.$jconfirmBoxContainer.addClass("jconfirm-no-transition"),t._modalReady.resolve(),"function"==typeof t.onOpen&&t.onOpen(),t.$el.addClass(t.loadedClass)},this.animationSpeed)},loadedClass:"jconfirm-open",isClosed:function(){return!this.$el||0===this.$el.parent().length},isOpen:function(){return!this.isClosed()},toggle:function(){this.isOpen()?this.close():this.open()}},l.jconfirm.instances=[],l.jconfirm.lastFocused=!1;var i=!(l.jconfirm.pluginDefaults={template:'<div class="jconfirm"><div class="jconfirm-bg jconfirm-bg-h"></div><div class="jconfirm-scrollpane"><div class="jconfirm-row"><div class="jconfirm-cell"><div class="jconfirm-holder"><div class="jc-bs3-container"><div class="jc-bs3-row"><div class="jconfirm-box-container jconfirm-animated"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="jconfirm-closeIcon">&times;</div><div class="jconfirm-title-c"><span class="jconfirm-icon-c"></span><span class="jconfirm-title"></span></div><div class="jconfirm-content-pane"><div class="jconfirm-content"></div></div><div class="jconfirm-buttons"></div><div class="jconfirm-clear"></div></div></div></div></div></div></div></div></div></div>',title:"Hello",titleClass:"",type:"default",typeAnimated:!0,draggable:!0,dragWindowGap:15,dragWindowBorder:!0,animateFromElement:!0,alignMiddle:!0,smoothContent:!0,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",lazyOpen:!1,bgOpacity:null,theme:"light",animation:"scale",closeAnimation:"scale",animationSpeed:400,animationBounce:1,escapeKey:!0,rtl:!1,container:"body",containerFluid:!1,backgroundDismiss:!1,backgroundDismissAnimation:"shake",autoClose:!1,closeIcon:null,closeIconClass:!1,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:!0,scrollToPreviousElementAnimate:!0,useBootstrap:!0,offsetTop:40,offsetBottom:40,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}});r(window).on("keydown",function(t){var n;i||(n=!1,r(t.target).closest(".jconfirm-box").length&&(n=!0),n&&r(window).trigger("jcKeyDown"),i=!0)}),r(window).on("keyup",function(){i=!1}),l.jconfirm.lastClicked=!1,r(document).on("mousedown","button, a, [jc-source]",function(){l.jconfirm.lastClicked=r(this)})});!function(c){"use strict";"undefined"==typeof HoldOn&&(c.HoldOn=function(){if("undefined"==typeof jQuery)throw new Error("HoldOn.js requires jQuery");var c={open:function(c){$("#holdon-overlay").remove();var i="sk-rect",s="",d="";switch(c&&(c.hasOwnProperty("theme")&&(i=c.theme),c.hasOwnProperty("message")&&(d=c.message)),i){case"custom":s='<div style="text-align: center;">'+c.content+"</div>";break;case"sk-dot":s='<div class="sk-dot"> <div class="sk-dot1"></div> <div class="sk-dot2"></div> </div>';break;case"sk-rect":s='<div class="sk-rect"> <div class="rect1"></div> <div class="rect2"></div> <div class="rect3"></div> <div class="rect4"></div> <div class="rect5"></div> </div>';break;case"sk-cube":s='<div class="sk-cube"> <div class="sk-cube1"></div> <div class="sk-cube2"></div> </div>';break;case"sk-bounce":s='<div class="sk-bounce"> <div class="bounce1"></div> <div class="bounce2"></div> <div class="bounce3"></div> </div>';break;case"sk-circle":s='<div class="sk-circle"> <div class="sk-circle1 sk-child"></div> <div class="sk-circle2 sk-child"></div> <div class="sk-circle3 sk-child"></div> <div class="sk-circle4 sk-child"></div> <div class="sk-circle5 sk-child"></div> <div class="sk-circle6 sk-child"></div> <div class="sk-circle7 sk-child"></div> <div class="sk-circle8 sk-child"></div> <div class="sk-circle9 sk-child"></div> <div class="sk-circle10 sk-child"></div> <div class="sk-circle11 sk-child"></div> <div class="sk-circle12 sk-child"></div> </div>';break;case"sk-cube-grid":s='<div class="sk-cube-grid"> <div class="sk-cube-child sk-cube-grid1"></div> <div class="sk-cube-child sk-cube-grid2"></div> <div class="sk-cube-child sk-cube-grid3"></div> <div class="sk-cube-child sk-cube-grid4"></div> <div class="sk-cube-child sk-cube-grid5"></div> <div class="sk-cube-child sk-cube-grid6"></div> <div class="sk-cube-child sk-cube-grid7"></div> <div class="sk-cube-child sk-cube-grid8"></div> <div class="sk-cube-child sk-cube-grid9"></div> </div>';break;case"sk-folding-cube":s='<div class="sk-folding-cube"> <div class="sk-cubechild1 sk-cube-parent"></div> <div class="sk-cubechild2 sk-cube-parent"></div> <div class="sk-cubechild4 sk-cube-parent"></div> <div class="sk-cubechild3 sk-cube-parent"></div> </div>';break;case"sk-fading-circle":s='<div class="sk-fading-circle"> <div class="sk-fading-circle1 sk-circle-child"></div> <div class="sk-fading-circle2 sk-circle-child"></div> <div class="sk-fading-circle3 sk-circle-child"></div> <div class="sk-fading-circle4 sk-circle-child"></div> <div class="sk-fading-circle5 sk-circle-child"></div> <div class="sk-fading-circle6 sk-circle-child"></div> <div class="sk-fading-circle7 sk-circle-child"></div> <div class="sk-fading-circle8 sk-circle-child"></div> <div class="sk-fading-circle9 sk-circle-child"></div> <div class="sk-fading-circle10 sk-circle-child"></div> <div class="sk-fading-circle11 sk-circle-child"></div> <div class="sk-fading-circle12 sk-circle-child"></div> </div>';break;default:s='<div class="sk-rect"> <div class="rect1"></div> <div class="rect2"></div> <div class="rect3"></div> <div class="rect4"></div> <div class="rect5"></div> </div>',console.warn(i+" doesn't exist for HoldOn.js")}$('<div id="holdon-overlay" style="display: none;">\n                                    <div id="holdon-content-container">\n                                        <div id="holdon-content">'+s+'</div>\n                                        <div id="holdon-message">'+d+"</div>\n                                    </div>\n                                </div>").appendTo("body").fadeIn(300),c&&(c.backgroundColor&&$("#holdon-overlay").css("backgroundColor",c.backgroundColor),c.backgroundColor&&$("#holdon-message").css("color",c.textColor))},close:function(){$("#holdon-overlay").fadeOut(300,function(){$(this).remove()})}};return c}())}(window);!function(n){var i={};function s(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.m=n,s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0)}([function(e,t,n){"use strict";n.r(t);var i={hooks:{},extensions:[],wrappers:[],navbar:{add:!0,sticky:!0,title:"Menu",titleLink:"parent"},onClick:{close:null,preventDefault:null,setSelected:!0},slidingSubmenus:!0},s={classNames:{inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,openingInterval:25,panelNodetype:["ul","ol","div"],transitionDuration:400};function l(e,t){for(var n in"object"!=m(e)&&(e={}),"object"!=m(t)&&(t={}),t)t.hasOwnProperty(n)&&(void 0===e[n]?e[n]=t[n]:"object"==m(e[n])&&l(e[n],t[n]));return e}function m(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function r(e,t,n){if("function"==typeof t){var i=t.call(e);if(void 0!==i)return i}return null!==t&&"function"!=typeof t&&void 0!==t||void 0===n?t:n}function c(t,n,e){var i=!1,s=function(e){void 0!==e&&e.target!==t||(i||(t.removeEventListener("transitionend",s),t.removeEventListener("webkitTransitionEnd",s),n.call(t)),i=!0)};t.addEventListener("transitionend",s),t.addEventListener("webkitTransitionEnd",s),setTimeout(s,1.1*e)}function d(){return"mm-"+a++}var a=0;function o(e){return"mm-"==e.slice(0,3)?e.slice(3):e}var f={};function p(e,t){void 0===f[t]&&(f[t]={}),l(f[t],e)}function h(e){var t=e.split("."),n=document.createElement(t.shift());return t.forEach(function(e){n.classList.add(e)}),n}function v(e,t){return Array.prototype.slice.call(e.querySelectorAll(t))}function b(e,t){var n=Array.prototype.slice.call(e.children);return t?n.filter(function(e){return e.matches(t)}):n}function u(e,t){for(var n=[],i=e.parentElement;i;)n.push(i),i=i.parentElement;return t?n.filter(function(e){return e.matches(t)}):n}function g(e){return e.filter(function(e){return!e.matches(".mm-hidden")})}function _(e){var t=[];return g(e).forEach(function(e){t.push.apply(t,b(e,"a.mm-listitem__text"))}),t.filter(function(e){return!e.matches(".mm-btn_next")})}function y(e,t,n){e.matches("."+t)&&(e.classList.remove(t),e.classList.add(n))}var L={};function E(e,t,n){"number"==typeof e&&(e="(min-width: "+e+"px)"),L[e]=L[e]||[],L[e].push({yes:t,no:n})}function w(e,t){for(var n=t.matches?"yes":"no",i=0;i<L[e].length;i++)L[e][i][n]()}p({Menu:"Menu"},"nl"),p({Menu:"منو"},"fa"),p({Menu:"Menü"},"de"),p({Menu:"Меню"},"ru");var x=(P.prototype.openPanel=function(t,e){var n=this;if(this.trigger("openPanel:before",[t]),t&&(t.matches(".mm-panel")||(t=t.closest(".mm-panel")),t)){if("boolean"!=typeof e&&(e=!0),t.parentElement.matches(".mm-listitem_vertical")){u(t,".mm-listitem_vertical").forEach(function(e){e.classList.add("mm-listitem_opened"),b(e,".mm-panel").forEach(function(e){e.classList.remove("mm-hidden")})});var i=u(t,".mm-panel").filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")});this.trigger("openPanel:start",[t]),i.length&&this.openPanel(i[0]),this.trigger("openPanel:finish",[t])}else{if(t.matches(".mm-panel_opened"))return;var s=b(this.node.pnls,".mm-panel"),a=b(this.node.pnls,".mm-panel_opened")[0];s.filter(function(e){return e!==t}).forEach(function(e){e.classList.remove("mm-panel_opened-parent")});for(var o=t.mmParent;o;)(o=o.closest(".mm-panel"))&&(o.parentElement.matches(".mm-listitem_vertical")||o.classList.add("mm-panel_opened-parent"),o=o.mmParent);s.forEach(function(e){e.classList.remove("mm-panel_highest")}),s.filter(function(e){return e!==a}).filter(function(e){return e!==t}).forEach(function(e){e.classList.add("mm-hidden")}),t.classList.remove("mm-hidden");var r=function(){a&&a.classList.remove("mm-panel_opened"),t.classList.add("mm-panel_opened"),t.matches(".mm-panel_opened-parent")?(a&&a.classList.add("mm-panel_highest"),t.classList.remove("mm-panel_opened-parent")):(a&&a.classList.add("mm-panel_opened-parent"),t.classList.add("mm-panel_highest")),n.trigger("openPanel:start",[t])},m=function(){a&&(a.classList.remove("mm-panel_highest"),a.classList.add("mm-hidden")),t.classList.remove("mm-panel_highest"),n.trigger("openPanel:finish",[t])};e&&!t.matches(".mm-panel_noanimation")?setTimeout(function(){c(t,function(){m()},n.conf.transitionDuration),r()},this.conf.openingInterval):(r(),m())}this.trigger("openPanel:after",[t])}},P.prototype.closePanel=function(e){this.trigger("closePanel:before",[e]);var t=e.parentElement;t.matches(".mm-listitem_vertical")&&(t.classList.remove("mm-listitem_opened"),e.classList.add("mm-hidden"),this.trigger("closePanel",[e])),this.trigger("closePanel:after",[e])},P.prototype.closeAllPanels=function(e){this.trigger("closeAllPanels:before"),this.node.pnls.querySelectorAll(".mm-listitem").forEach(function(e){e.classList.remove("mm-listitem_selected"),e.classList.remove("mm-listitem_opened")});var t=b(this.node.pnls,".mm-panel"),n=e||t[0];b(this.node.pnls,".mm-panel").forEach(function(e){e!==n&&(e.classList.remove("mm-panel_opened"),e.classList.remove("mm-panel_opened-parent"),e.classList.remove("mm-panel_highest"),e.classList.add("mm-hidden"))}),this.openPanel(n,!1),this.trigger("closeAllPanels:after")},P.prototype.togglePanel=function(e){var t=e.parentElement;t.matches(".mm-listitem_vertical")&&this[t.matches(".mm-listitem_opened")?"closePanel":"openPanel"](e)},P.prototype.setSelected=function(e){this.trigger("setSelected:before",[e]),v(this.node.menu,".mm-listitem_selected").forEach(function(e){e.classList.remove("mm-listitem_selected")}),e.classList.add("mm-listitem_selected"),this.trigger("setSelected:after",[e])},P.prototype.bind=function(e,t){this.hook[e]=this.hook[e]||[],this.hook[e].push(t)},P.prototype.trigger=function(e,t){if(this.hook[e])for(var n=0,i=this.hook[e].length;n<i;n++)this.hook[e][n].apply(this,t)},P.prototype._initAPI=function(){var e=this,n=this;this.API={},this._api.forEach(function(t){e.API[t]=function(){var e=n[t].apply(n,arguments);return void 0===e?n.API:e}}),this.node.menu.mmApi=this.API},P.prototype._initHooks=function(){for(var e in this.opts.hooks)this.bind(e,this.opts.hooks[e])},P.prototype._initWrappers=function(){this.trigger("initWrappers:before");for(var e=0;e<this.opts.wrappers.length;e++){var t=P.wrappers[this.opts.wrappers[e]];"function"==typeof t&&t.call(this)}this.trigger("initWrappers:after")},P.prototype._initAddons=function(){for(var e in this.trigger("initAddons:before"),P.addons)P.addons[e].call(this);this.trigger("initAddons:after")},P.prototype._initExtensions=function(){var n=this;this.trigger("initExtensions:before"),"array"==m(this.opts.extensions)&&(this.opts.extensions={all:this.opts.extensions}),Object.keys(this.opts.extensions).forEach(function(e){var t=n.opts.extensions[e].map(function(e){return"mm-menu_"+e});t.length&&E(e,function(){t.forEach(function(e){n.node.menu.classList.add(e)})},function(){t.forEach(function(e){n.node.menu.classList.remove(e)})})}),this.trigger("initExtensions:after")},P.prototype._initMenu=function(){var t=this;this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.id=this.node.menu.id||d();var n=h("div.mm-panels");b(this.node.menu).forEach(function(e){-1<t.conf.panelNodetype.indexOf(e.nodeName.toLowerCase())&&n.append(e)}),this.node.menu.append(n),this.node.pnls=n,this.node.menu.classList.add("mm-menu"),this.trigger("initMenu:after")},P.prototype._initPanels=function(){var s=this;this.trigger("initPanels:before"),this.clck.push(function(e,t){if(t.inMenu){var n=e.getAttribute("href");if(n&&1<n.length&&"#"==n.slice(0,1))try{var i=v(s.node.menu,n)[0];if(i&&i.matches(".mm-panel"))return e.parentElement.matches(".mm-listitem_vertical")?s.togglePanel(i):s.openPanel(i),!0}catch(e){}}}),b(this.node.pnls).forEach(function(e){s.initPanel(e)}),this.trigger("initPanels:after")},P.prototype.initPanel=function(e){var t=this,n=this.conf.panelNodetype.join(", ");if(e.matches(n)&&(e.matches(".mm-panel")||(e=this._initPanel(e)),e)){var i=[];i.push.apply(i,b(e,"."+this.conf.classNames.panel)),b(e,".mm-listview").forEach(function(e){b(e,".mm-listitem").forEach(function(e){i.push.apply(i,b(e,n))})}),i.forEach(function(e){t.initPanel(e)})}},P.prototype._initPanel=function(e){var t=this;if(this.trigger("initPanel:before",[e]),y(e,this.conf.classNames.panel,"mm-panel"),y(e,this.conf.classNames.nopanel,"mm-nopanel"),y(e,this.conf.classNames.inset,"mm-listview_inset"),e.matches(".mm-listview_inset")&&e.classList.add("mm-nopanel"),e.matches(".mm-nopanel"))return null;var n=e.id||d(),i=e.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus;if(e.classList.remove(this.conf.classNames.vertical),e.matches("ul, ol")){e.removeAttribute("id");var s=h("div");e.before(s),s.append(e),e=s}e.id=n,e.classList.add("mm-panel"),e.classList.add("mm-hidden");var a=[e.parentElement].filter(function(e){return e.matches("li")})[0];if(i?a&&a.classList.add("mm-listitem_vertical"):this.node.pnls.append(e),a&&((a.mmChild=e).mmParent=a)&&a.matches(".mm-listitem")&&!b(a,".mm-btn").length){var o=b(a,".mm-listitem__text")[0];if(o){var r=h("a.mm-btn.mm-btn_next.mm-listitem__btn");r.setAttribute("href","#"+e.id),o.matches("span")?(r.classList.add("mm-listitem__text"),r.innerHTML=o.innerHTML,a.insertBefore(r,o.nextElementSibling),o.remove()):a.insertBefore(r,b(a,".mm-panel")[0])}}return this._initNavbar(e),b(e,"ul, ol").forEach(function(e){t.initListview(e)}),this.trigger("initPanel:after",[e]),e},P.prototype._initNavbar=function(e){if(this.trigger("initNavbar:before",[e]),!b(e,".mm-navbar").length){var t=null,n=null;if(e.dataset.mmParent?n=v(this.node.pnls,e.dataset.mmParent)[0]:(t=e.mmParent)&&(n=t.closest(".mm-panel")),!t||!t.matches(".mm-listitem_vertical")){var i=h("div.mm-navbar");if(this.opts.navbar.add?this.opts.navbar.sticky&&i.classList.add("mm-navbar_sticky"):i.classList.add("mm-hidden"),n){var s=h("a.mm-btn.mm-btn_prev.mm-navbar__btn");s.setAttribute("href","#"+n.id),i.append(s)}var a=null;t?a=b(t,".mm-listitem__text")[0]:n&&(a=v(n,'a[href="#'+e.id+'"]')[0]);var o=h("a.mm-navbar__title");switch(o.innerHTML=e.dataset.mmTitle||(a?a.textContent:"")||this.i18n(this.opts.navbar.title)||this.i18n("Menu"),this.opts.navbar.titleLink){case"anchor":a&&o.setAttribute("href",a.getAttribute("href"));break;case"parent":n&&o.setAttribute("href","#"+n.id)}i.append(o),e.prepend(i),this.trigger("initNavbar:after",[e])}}},P.prototype.initListview=function(e){var t=this;this.trigger("initListview:before",[e]),y(e,this.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(e.classList.add("mm-listview"),b(e).forEach(function(e){e.classList.add("mm-listitem"),y(e,t.conf.classNames.selected,"mm-listitem_selected"),b(e,"a, span").forEach(function(e){e.matches(".mm-btn")||e.classList.add("mm-listitem__text")})})),this.trigger("initListview:after",[e])},P.prototype._initOpened=function(){this.trigger("initOpened:before");var e=this.node.pnls.querySelectorAll(".mm-listitem_selected"),t=null;e.forEach(function(e){(t=e).classList.remove("mm-listitem_selected")}),t&&t.classList.add("mm-listitem_selected");var n=t?t.closest(".mm-panel"):b(this.node.pnls,".mm-panel")[0];this.openPanel(n,!1),this.trigger("initOpened:after")},P.prototype._initAnchors=function(){var o=this;this.trigger("initAnchors:before"),document.addEventListener("click",function(e){var t=e.target.closest("a[href]");if(t){for(var n={inMenu:t.closest(".mm-menu")===o.node.menu,inListview:t.matches(".mm-listitem > a"),toExternal:t.matches('[rel="external"]')||t.matches('[target="_blank"]')},i={close:null,setSelected:null,preventDefault:"#"==t.getAttribute("href").slice(0,1)},s=0;s<o.clck.length;s++){var a=o.clck[s].call(o,t,n);if(a){if("boolean"==typeof a)return void e.preventDefault();"object"==m(a)&&(i=l(a,i))}}n.inMenu&&n.inListview&&!n.toExternal&&(r(t,o.opts.onClick.setSelected,i.setSelected)&&o.setSelected(t.parentElement),r(t,o.opts.onClick.preventDefault,i.preventDefault)&&e.preventDefault(),r(t,o.opts.onClick.close,i.close)&&o.opts.offCanvas&&"function"==typeof o.close&&o.close())}},!0),this.trigger("initAnchors:after")},P.prototype.i18n=function(e){return t=e,"string"==typeof(n=this.conf.language)&&void 0!==f[n]&&f[n][t]||t;var t,n},P.version="8.4.0",P.options=i,P.configs=s,P.addons={},P.wrappers={},P.node={},P.vars={},P);function P(e,t,n){return this.opts=l(t,P.options),this.conf=l(n,P.configs),this._api=["bind","initPanel","initListview","openPanel","closePanel","closeAllPanels","setSelected"],this.node={},this.vars={},this.hook={},this.clck=[],this.node.menu="string"==typeof e?document.querySelector(e):e,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this._initWrappers(),this._initAddons(),this._initExtensions(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),function(){function e(t){var n=window.matchMedia(t);w(t,n),n.onchange=function(e){w(t,n)}}for(var t in L)e(t)}(),this}function k(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function S(e,t,n){var i=t.split(".");e[t="mmEvent"+k(i[0])+k(i[1])]=e[t]||[],e[t].push(n),e.addEventListener(i[0],n)}function M(t,e){var n=e.split(".");e="mmEvent"+k(n[0])+k(n[1]),(t[e]||[]).forEach(function(e){t.removeEventListener(n[0],e)})}x.options.offCanvas={blockUI:!0,moveBackground:!0},x.configs.offCanvas={clone:!1,menu:{insertMethod:"prepend",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]}},x.prototype.open=function(){var e=this;this.trigger("open:before"),this.vars.opened||(this._openSetup(),setTimeout(function(){e._openStart()},this.conf.openingInterval),this.trigger("open:after"))},x.prototype._openSetup=function(){var e,t,n,i=this,s=this.opts.offCanvas;this.closeAllOthers(),x.node.page.mmStyle=x.node.page.getAttribute("style")||"",e=window,t={force:!0},n="resize.page".split("."),(e["mmEvent"+k(n[0])+k(n[1])]||[]).forEach(function(e){e(t)});var a=["mm-wrapper_opened"];s.blockUI&&a.push("mm-wrapper_blocking"),"modal"==s.blockUI&&a.push("mm-wrapper_modal"),s.moveBackground&&a.push("mm-wrapper_background"),a.forEach(function(e){i.node.wrpr.classList.add(e)}),setTimeout(function(){i.vars.opened=!0},this.conf.openingInterval),this.node.menu.classList.add("mm-menu_opened")},x.prototype._openStart=function(){var e=this;c(x.node.page,function(){e.trigger("open:finish")},this.conf.transitionDuration),this.trigger("open:start"),this.node.wrpr.classList.add("mm-wrapper_opening")},x.prototype.close=function(){var t=this;this.trigger("close:before"),this.vars.opened&&(c(x.node.page,function(){t.node.menu.classList.remove("mm-menu_opened"),["mm-wrapper_opened","mm-wrapper_blocking","mm-wrapper_modal","mm-wrapper_background"].forEach(function(e){t.node.wrpr.classList.remove(e)}),x.node.page.setAttribute("style",x.node.page.mmStyle),t.vars.opened=!1,t.trigger("close:finish")},this.conf.transitionDuration),this.trigger("close:start"),this.node.wrpr.classList.remove("mm-wrapper_opening"),this.trigger("close:after"))},x.prototype.closeAllOthers=function(){var n=this;v(document.body,".mm-menu_offcanvas").forEach(function(e){if(e!==n.node.menu){var t=e.mmApi;t&&t.close&&t.close()}})},x.prototype.setPage=function(e){this.trigger("setPage:before",[e]);var t=this.conf.offCanvas;if(!e){var n="string"==typeof t.page.selector?v(document.body,t.page.selector):b(document.body,t.page.nodetype);if(n=n.filter(function(e){return!e.matches(".mm-menu, .mm-wrapper__blocker")}),t.page.noSelector.length&&(n=n.filter(function(e){return!e.matches(t.page.noSelector.join(", "))})),1<n.length){var i=h("div");n[0].before(i),n.forEach(function(e){i.append(e)}),n=[i]}e=n[0]}e.classList.add("mm-page"),e.classList.add("mm-slideout"),e.id=e.id||d(),x.node.page=e,this.trigger("setPage:after",[e])};var T;p({"Close menu":"Menu sluiten","Close submenu":"Submenu sluiten","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),p({"Close menu":"بستن منو","Close submenu":"بستن زیرمنو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},"fa"),p({"Close menu":"Menü schließen","Close submenu":"Untermenü schließen","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},"de"),p({"Close menu":"Закрыть меню","Close submenu":"Закрыть подменю","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"},"ru"),x.options.screenReader={aria:!0,text:!0},x.configs.screenReader={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},T=function(e,t,n){(e[t]=n)?e.setAttribute(t,n.toString()):e.removeAttribute(t)},x.sr_aria=function(e,t,n){T(e,"aria-"+t,n)},x.sr_role=function(e,t){T(e,"role",t)},x.sr_text=function(e){return'<span class="mm-sronly">'+e+"</span>"};var A="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1;x.options.scrollBugFix={fix:!0};x.options.autoHeight={height:"default"},x.options.backButton={close:!(x.options.autoHeight={height:"default"}),open:!1},x.options.columns={add:!(x.options.backButton={close:!(x.options.autoHeight={height:"default"}),open:!1}),visible:{min:1,max:3}};x.options.counters={add:!(x.options.columns={add:!(x.options.backButton={close:!(x.options.autoHeight={height:"default"}),open:!1}),visible:{min:1,max:3}}),addTo:"panels",count:!1};x.configs.classNames.counters={counter:"Counter"};x.options.dividers={add:!(x.configs.classNames.counters={counter:"Counter"}),addTo:"panels"};x.configs.classNames.divider="Divider";function C(e,t){return"string"==typeof e&&"%"==e.slice(-1)&&(e=t*((e=parseInt(e.slice(0,-1),10))/100)),e}function N(t,n,e){switch(t.position="left",t.zposition="back",["right","top","bottom"].forEach(function(e){-1<n.indexOf("position-"+e)&&(t.position=e)}),["front","top","bottom"].forEach(function(e){-1<n.indexOf("position-"+e)&&(t.zposition="front")}),q.area={top:"bottom"==t.position?"75%":0,right:"left"==t.position?"75%":0,bottom:"top"==t.position?"75%":0,left:"right"==t.position?"75%":0},t.position){case"top":case"bottom":t.axis="y";break;default:t.axis="x"}switch(t.position){case"top":t.direction="Down";break;case"right":t.direction="Left";break;case"bottom":t.direction="Up";break;default:t.direction="Right"}switch(t.zposition){case"front":t.slideOutNodes=[e];break;default:t.slideOutNodes=v(document.body,".mm-slideout")}return t}var H="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1,j={top:0,right:0,bottom:0,left:0},I={start:15,swipe:15},O={x:["Right","Left"],y:["Down","Up"]},D=(R.prototype.start=function(e){var t=this.surface.clientWidth,n=this.surface.clientHeight,i=C(this.area.top,n);if(!("number"==typeof i&&e.pageY<i)){var s=C(this.area.right,t);if(!("number"==typeof s&&(s=t-s,e.pageX>s))){var a=C(this.area.bottom,n);if(!("number"==typeof a&&(a=n-a,e.pageY>a))){var o=C(this.area.left,t);"number"==typeof o&&e.pageX<o||(this.startPosition={x:e.pageX,y:e.pageY},this.state=1)}}}},R.prototype.stop=function(e){if(2==this.state){var t=this._dragDirection(),n=this._eventDetail(t);if(this._dispatchEvents("drag*End",n),Math.abs(this.movement[this.axis])>this.treshold.swipe){var i=this._swipeDirection();n.direction=i,this._dispatchEvents("swipe*",n)}}this.state=0},R.prototype.move=function(e){switch(this.state){case 1:case 2:this.movement={x:e.movementX,y:e.movementY},this.distance={x:e.pageX-this.startPosition.x,y:e.pageY-this.startPosition.y},this.axis=Math.abs(this.distance.x)>Math.abs(this.distance.y)?"x":"y";var t=this._dragDirection(),n=this._eventDetail(t);1==this.state&&Math.abs(this.distance[this.axis])>this.treshold.start&&(this._dispatchEvents("drag*Start",n),this.state=2),2==this.state&&this._dispatchEvents("drag*Move",n)}},R.prototype._eventDetail=function(e){var t=this.distance.x,n=this.distance.y;return"x"==this.axis&&(t-=0<t?this.treshold.start:0-this.treshold.start),"y"==this.axis&&(n-=0<n?this.treshold.start:0-this.treshold.start),{axis:this.axis,direction:e,movementX:this.movement.x,movementY:this.movement.y,distanceX:t,distanceY:n}},R.prototype._dispatchEvents=function(e,t){var n=new CustomEvent(e.replace("*",""),{detail:t});this.surface.dispatchEvent(n);var i=new CustomEvent(e.replace("*",this.axis.toUpperCase()),{detail:t});this.surface.dispatchEvent(i);var s=new CustomEvent(e.replace("*",t.direction),{detail:t});this.surface.dispatchEvent(s)},R.prototype._dragDirection=function(){return O[this.axis][0<this.distance[this.axis]?0:1]},R.prototype._swipeDirection=function(){return O[this.axis][0<this.movement[this.axis]?0:1]},R),q=null,B=null,z=0;function R(e,t,n){this.surface=e,this.area=l(t,j),this.treshold=l(n,I),this.surface.mmHasDragEvents||(this.surface.addEventListener(H?"touchstart":"mousedown",this.start.bind(this)),this.surface.addEventListener(H?"touchend":"mouseup",this.stop.bind(this)),this.surface.addEventListener(H?"touchleave":"mouseleave",this.stop.bind(this)),this.surface.addEventListener(H?"touchmove":"mousemove",this.move.bind(this))),this.surface.mmHasDragEvents=!0}x.options.drag={open:!(x.configs.classNames.divider="Divider"),node:null};x.options.dropdown={drop:!(x.options.drag={open:!(x.configs.classNames.divider="Divider"),node:null}),fitViewport:!0,event:"click",position:{},tip:!0},x.configs.dropdown={offset:{button:{x:-5,y:5},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};x.configs.fixedElements={insertMethod:"append",insertSelector:"body"};x.configs.classNames.fixedElements={fixed:"Fixed"},x.options.iconbar={use:!(x.configs.classNames.fixedElements={fixed:"Fixed"}),top:[],bottom:[],position:"left",type:"default"},x.options.iconPanels={add:!(x.options.iconbar={use:!(x.configs.classNames.fixedElements={fixed:"Fixed"}),top:[],bottom:[],position:"left",type:"default"}),blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3};x.options.keyboardNavigation={enable:!(x.options.iconPanels={add:!(x.options.iconbar={use:!(x.configs.classNames.fixedElements={fixed:"Fixed"}),top:[],bottom:[],position:"left",type:"default"}),blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3}),enhance:!1};x.options.lazySubmenus={load:!1};function U(){var l=this,e=this.opts.navbars;if(void 0!==e){e instanceof Array||(e=[e]);var d={};e.length&&(e.forEach(function(e){if(!("boolean"==typeof(t=e)&&t&&(t={}),"object"!=typeof t&&(t={}),void 0===t.content&&(t.content=["prev","title"]),t.content instanceof Array||(t.content=[t.content]),void 0===t.use&&(t.use=!0),"boolean"==typeof t.use&&t.use&&(t.use=!0),e=t).use)return!1;var t,n=h("div.mm-navbar"),i=e.position;"bottom"!==i&&(i="top"),d[i]||(d[i]=h("div.mm-navbars_"+i)),d[i].append(n);for(var s=0,a=e.content.length;s<a;s++){var o,r=e.content[s];if("string"==typeof r)if("function"==typeof(o=U.navbarContents[r]))o.call(l,n);else{var m=h("span");m.innerHTML=r;var c=b(m);1==c.length&&(m=c[0]),n.append(m)}else n.append(r)}"string"==typeof e.type&&"function"==typeof(o=U.navbarTypes[e.type])&&o.call(l,n),"boolean"!=typeof e.use&&E(e.use,function(){n.classList.remove("mm-hidden"),x.sr_aria(n,"hidden",!1)},function(){n.classList.add("mm-hidden"),x.sr_aria(n,"hidden",!0)})}),this.bind("initMenu:after",function(){for(var e in d)l.node.menu["bottom"==e?"append":"prepend"](d[e])}))}}x.options.navbars=[],x.configs.navbars={breadcrumbs:{separator:"/",removeFirst:!(x.options.lazySubmenus={load:!1})}},x.configs.classNames.navbars={panelNext:"Next",panelPrev:"Prev",panelTitle:"Title"},U.navbarContents={breadcrumbs:function(e){var r=this,n=h("div.mm-navbar__breadcrumbs");e.append(n),this.bind("initNavbar:after",function(e){if(!e.querySelector(".mm-navbar__breadcrumbs")){b(e,".mm-navbar")[0].classList.add("mm-hidden");for(var t=[],n=h("span.mm-navbar__breadcrumbs"),i=e,s=!0;i;){if(!(i=i.closest(".mm-panel")).parentElement.matches(".mm-listitem_vertical")){var a=v(i,".mm-navbar__title")[0];if(a){var o=a.textContent;o.length&&t.unshift(s?"<span>"+o+"</span>":'<a href="#'+i.id+'">'+o+"</a>")}s=!1}i=i.mmParent}r.conf.navbars.breadcrumbs.removeFirst&&t.shift(),n.innerHTML=t.join('<span class="mm-separator">'+r.conf.navbars.breadcrumbs.separator+"</span>"),b(e,".mm-navbar")[0].append(n)}}),this.bind("openPanel:start",function(e){var t=e.querySelector(".mm-navbar__breadcrumbs");n.innerHTML=t?t.innerHTML:""}),this.bind("initNavbar:after:sr-aria",function(e){v(e,".mm-breadcrumbs a").forEach(function(e){x.sr_aria(e,"owns",e.getAttribute("href").slice(1))})})},close:function(e){var t=this,n=h("a.mm-btn.mm-btn_close.mm-navbar__btn");e.append(n),this.bind("setPage:after",function(e){n.setAttribute("href","#"+e.id)}),this.bind("setPage:after:sr-text",function(){n.innerHTML=x.sr_text(t.i18n(t.conf.screenReader.text.closeMenu)),x.sr_aria(n,"owns",n.getAttribute("href").slice(1))})},next:function(e){var t,n,i,s=this,a=h("a.mm-btn.mm-btn_next.mm-navbar__btn");e.append(a),this.bind("openPanel:start",function(e){t=e.querySelector("."+s.conf.classNames.navbars.panelNext),n=t?t.getAttribute("href"):"",i=t?t.innerHTML:"",n?a.setAttribute("href",n):a.removeAttribute("href"),a.classList[n||i?"remove":"add"]("mm-hidden"),a.innerHTML=i}),this.bind("openPanel:start:sr-aria",function(e){x.sr_aria(a,"hidden",a.matches("mm-hidden")),x.sr_aria(a,"owns",(a.getAttribute("href")||"").slice(1))})},prev:function(e){var t,n,i,s=this,a=h("a.mm-btn.mm-btn_prev.mm-navbar__btn");e.append(a),this.bind("initNavbar:after",function(e){b(e,".mm-navbar")[0].classList.add("mm-hidden")}),this.bind("openPanel:start",function(e){e.parentElement.matches(".mm-listitem_vertical")||((t=e.querySelector("."+s.conf.classNames.navbars.panelPrev))||(t=e.querySelector(".mm-navbar__btn.mm-btn_prev")),n=t?t.getAttribute("href"):"",i=t?t.innerHTML:"",n?a.setAttribute("href",n):a.removeAttribute("href"),a.classList[n||i?"remove":"add"]("mm-hidden"),a.innerHTML=i)}),this.bind("initNavbar:after:sr-aria",function(e){x.sr_aria(e.querySelector(".mm-navbar"),"hidden",!0)}),this.bind("openPanel:start:sr-aria",function(e){x.sr_aria(a,"hidden",a.matches(".mm-hidden")),x.sr_aria(a,"owns",(a.getAttribute("href")||"").slice(1))})},searchfield:function(e){"object"!=m(this.opts.searchfield)&&(this.opts.searchfield={});var t=h("div.mm-navbar__searchfield");e.append(t),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=[t]},title:function(e){var t,n,i,s,a=this,o=h("a.mm-navbar__title");e.append(o),this.bind("openPanel:start",function(e){e.parentElement.matches(".mm-listitem_vertical")||((i=e.querySelector("."+a.conf.classNames.navbars.panelTitle))||(i=e.querySelector(".mm-navbar__title")),(t=i?i.getAttribute("href"):"")?o.setAttribute("href",t):o.removeAttribute("href"),n=i?i.innerHTML:"",o.innerHTML=n)}),this.bind("openPanel:start:sr-aria",function(e){if(a.opts.screenReader.text&&(s||b(a.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(e){var t=e.querySelector(".mm-btn_prev");t&&(s=t)}),s)){var t=!0;"parent"==a.opts.navbar.titleLink&&(t=!s.matches(".mm-hidden")),x.sr_aria(o,"hidden",t)}})}};U.navbarTypes={tabs:function(e){var n=this;e.classList.add("mm-navbar_tabs"),e.parentElement.classList.add("mm-navbars_has-tabs");var s=b(e,"a");e.addEventListener("click",function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-navbar__tab_selected"))e.stopImmediatePropagation();else try{n.openPanel(n.node.menu.querySelector(t.getAttribute("href")),!1),e.stopImmediatePropagation()}catch(e){}}),this.bind("openPanel:start",function e(t){s.forEach(function(e){e.classList.remove("mm-navbar__tab_selected")});var n=s.filter(function(e){return e.matches('[href="#'+t.id+'"]')})[0];if(n)n.classList.add("mm-navbar__tab_selected");else{var i=t.mmParent;i&&e.call(this,i.closest(".mm-panel"))}})}};x.options.pageScroll={scroll:!(U.navbarTypes={tabs:function(e){var n=this;e.classList.add("mm-navbar_tabs"),e.parentElement.classList.add("mm-navbars_has-tabs");var s=b(e,"a");e.addEventListener("click",function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-navbar__tab_selected"))e.stopImmediatePropagation();else try{n.openPanel(n.node.menu.querySelector(t.getAttribute("href")),!1),e.stopImmediatePropagation()}catch(e){}}),this.bind("openPanel:start",function e(t){s.forEach(function(e){e.classList.remove("mm-navbar__tab_selected")});var n=s.filter(function(e){return e.matches('[href="#'+t.id+'"]')})[0];if(n)n.classList.add("mm-navbar__tab_selected");else{var i=t.mmParent;i&&e.call(this,i.closest(".mm-panel"))}})}}),update:!1};x.configs.pageScroll={scrollOffset:0,updateOffset:50};p({Search:"Zoeken","No results found.":"Geen resultaten gevonden.",cancel:"annuleren"},"nl"),p({Search:"جستجو","No results found.":"نتیجه‌ای یافت نشد.",cancel:"انصراف"},"fa"),p({Search:"Suche","No results found.":"Keine Ergebnisse gefunden.",cancel:"beenden"},"de"),p({Search:"Найти","No results found.":"Ничего не найдено.",cancel:"отменить"},"ru"),x.options.searchfield={add:!(x.configs.pageScroll={scrollOffset:0,updateOffset:50}),addTo:"panels",cancel:!1,noResults:"No results found.",placeholder:"Search",panel:{add:!1,dividers:!0,fx:"none",id:null,splash:null,title:"Search"},search:!0,showTextItems:!1,showSubPanels:!0},x.configs.searchfield={clear:!1,form:!1,input:!1,submit:!1};var F;x.prototype.search=function(i,s){var e,a=this,o=this.opts.searchfield;this.conf.searchfield,s=(s=s||""+i.value).toLowerCase().trim();var t=i.mmSearchfield,n=v(i.closest(".mm-searchfield"),".mm-btn"),r=b(this.node.pnls,".mm-panel_search")[0],m=t.panels,c=t.noresults,l=t.listitems,d=t.dividers;if(l.forEach(function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden")}),r&&(b(r,".mm-listview")[0].innerHTML=""),m.forEach(function(e){e.scrollTop=0}),s.length){d.forEach(function(e){e.classList.add("mm-hidden")}),l.forEach(function(e){var t,n=b(e,".mm-listitem__text")[0],i=!1;n&&-1<(t=n,Array.prototype.slice.call(t.childNodes).filter(function(e){return 3==e.nodeType}).map(function(e){return e.textContent}).join(" ")).toLowerCase().indexOf(s)&&(n.matches(".mm-listitem__btn")?o.showSubPanels&&(i=!0):n.matches("a")?i=!0:o.showTextItems&&(i=!0)),i||e.classList.add("mm-hidden")});var f=l.filter(function(e){return!e.matches(".mm-hidden")}).length;if(o.panel.add){var p=[];m.forEach(function(e){var t=g(v(e,".mm-listitem"));if((t=t.filter(function(e){return!e.matches(".mm-hidden")})).length){if(o.panel.dividers){var n=h("li.mm-divider"),i=v(e,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,p.push(n))}t.forEach(function(e){p.push(e.cloneNode(!0))})}}),p.forEach(function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach(function(e){e.remove()})}),(e=b(r,".mm-listview")[0]).append.apply(e,p),this.openPanel(r)}else o.showSubPanels&&m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(e){var t=e.mmChild;t&&v(t,".mm-listitem").forEach(function(e){e.classList.remove("mm-hidden")})})}),m.slice().reverse().forEach(function(e,t){var n=e.mmParent;n&&(g(v(e,".mm-listitem")).length?(n.matches(".mm-hidden")&&n.classList.remove("mm-hidden"),n.classList.add("mm-listitem_onlysubitems")):i.closest(".mm-panel")||((e.matches(".mm-panel_opened")||e.matches(".mm-panel_opened-parent"))&&setTimeout(function(){a.openPanel(n.closest(".mm-panel"))},(t+1)*(1.5*a.conf.openingInterval)),n.classList.add("mm-listitem_nosubitems")))}),m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(s){var e=function(e,t){for(var n=[],i=s.previousElementSibling;i;)i.matches(t)&&n.push(i),i=i.previousElementSibling;return n}(0,".mm-divider")[0];e&&e.classList.remove("mm-hidden")})});n.forEach(function(e){return e.classList.remove("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList[f?"add":"remove"]("mm-hidden")})}),o.panel.add&&(o.panel.splash&&v(r,".mm-panel__content").forEach(function(e){return e.classList.add("mm-hidden")}),l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}))}else if(l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}),n.forEach(function(e){return e.classList.add("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList.add("mm-hidden")})}),o.panel.add)if(o.panel.splash)v(r,".mm-panel__content").forEach(function(e){return e.classList.remove("mm-hidden")});else if(!i.closest(".mm-panel_search")){var u=b(this.node.pnls,".mm-panel_opened-parent");this.openPanel(u.slice(-1)[0])}this.trigger("updateListview")},x.options.sectionIndexer={add:!(x.prototype.search=function(i,s){var e,a=this,o=this.opts.searchfield;this.conf.searchfield,s=(s=s||""+i.value).toLowerCase().trim();var t=i.mmSearchfield,n=v(i.closest(".mm-searchfield"),".mm-btn"),r=b(this.node.pnls,".mm-panel_search")[0],m=t.panels,c=t.noresults,l=t.listitems,d=t.dividers;if(l.forEach(function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden")}),r&&(b(r,".mm-listview")[0].innerHTML=""),m.forEach(function(e){e.scrollTop=0}),s.length){d.forEach(function(e){e.classList.add("mm-hidden")}),l.forEach(function(e){var t,n=b(e,".mm-listitem__text")[0],i=!1;n&&-1<(t=n,Array.prototype.slice.call(t.childNodes).filter(function(e){return 3==e.nodeType}).map(function(e){return e.textContent}).join(" ")).toLowerCase().indexOf(s)&&(n.matches(".mm-listitem__btn")?o.showSubPanels&&(i=!0):n.matches("a")?i=!0:o.showTextItems&&(i=!0)),i||e.classList.add("mm-hidden")});var f=l.filter(function(e){return!e.matches(".mm-hidden")}).length;if(o.panel.add){var p=[];m.forEach(function(e){var t=g(v(e,".mm-listitem"));if((t=t.filter(function(e){return!e.matches(".mm-hidden")})).length){if(o.panel.dividers){var n=h("li.mm-divider"),i=v(e,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,p.push(n))}t.forEach(function(e){p.push(e.cloneNode(!0))})}}),p.forEach(function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach(function(e){e.remove()})}),(e=b(r,".mm-listview")[0]).append.apply(e,p),this.openPanel(r)}else o.showSubPanels&&m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(e){var t=e.mmChild;t&&v(t,".mm-listitem").forEach(function(e){e.classList.remove("mm-hidden")})})}),m.slice().reverse().forEach(function(e,t){var n=e.mmParent;n&&(g(v(e,".mm-listitem")).length?(n.matches(".mm-hidden")&&n.classList.remove("mm-hidden"),n.classList.add("mm-listitem_onlysubitems")):i.closest(".mm-panel")||((e.matches(".mm-panel_opened")||e.matches(".mm-panel_opened-parent"))&&setTimeout(function(){a.openPanel(n.closest(".mm-panel"))},(t+1)*(1.5*a.conf.openingInterval)),n.classList.add("mm-listitem_nosubitems")))}),m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(s){var e=function(e,t){for(var n=[],i=s.previousElementSibling;i;)i.matches(t)&&n.push(i),i=i.previousElementSibling;return n}(0,".mm-divider")[0];e&&e.classList.remove("mm-hidden")})});n.forEach(function(e){return e.classList.remove("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList[f?"add":"remove"]("mm-hidden")})}),o.panel.add&&(o.panel.splash&&v(r,".mm-panel__content").forEach(function(e){return e.classList.add("mm-hidden")}),l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}))}else if(l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}),n.forEach(function(e){return e.classList.add("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList.add("mm-hidden")})}),o.panel.add)if(o.panel.splash)v(r,".mm-panel__content").forEach(function(e){return e.classList.remove("mm-hidden")});else if(!i.closest(".mm-panel_search")){var u=b(this.node.pnls,".mm-panel_opened-parent");this.openPanel(u.slice(-1)[0])}this.trigger("updateListview")}),addTo:"panels"},x.options.setSelected={current:!0,hover:!(x.options.sectionIndexer={add:!(x.prototype.search=function(i,s){var e,a=this,o=this.opts.searchfield;this.conf.searchfield,s=(s=s||""+i.value).toLowerCase().trim();var t=i.mmSearchfield,n=v(i.closest(".mm-searchfield"),".mm-btn"),r=b(this.node.pnls,".mm-panel_search")[0],m=t.panels,c=t.noresults,l=t.listitems,d=t.dividers;if(l.forEach(function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden")}),r&&(b(r,".mm-listview")[0].innerHTML=""),m.forEach(function(e){e.scrollTop=0}),s.length){d.forEach(function(e){e.classList.add("mm-hidden")}),l.forEach(function(e){var t,n=b(e,".mm-listitem__text")[0],i=!1;n&&-1<(t=n,Array.prototype.slice.call(t.childNodes).filter(function(e){return 3==e.nodeType}).map(function(e){return e.textContent}).join(" ")).toLowerCase().indexOf(s)&&(n.matches(".mm-listitem__btn")?o.showSubPanels&&(i=!0):n.matches("a")?i=!0:o.showTextItems&&(i=!0)),i||e.classList.add("mm-hidden")});var f=l.filter(function(e){return!e.matches(".mm-hidden")}).length;if(o.panel.add){var p=[];m.forEach(function(e){var t=g(v(e,".mm-listitem"));if((t=t.filter(function(e){return!e.matches(".mm-hidden")})).length){if(o.panel.dividers){var n=h("li.mm-divider"),i=v(e,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,p.push(n))}t.forEach(function(e){p.push(e.cloneNode(!0))})}}),p.forEach(function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach(function(e){e.remove()})}),(e=b(r,".mm-listview")[0]).append.apply(e,p),this.openPanel(r)}else o.showSubPanels&&m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(e){var t=e.mmChild;t&&v(t,".mm-listitem").forEach(function(e){e.classList.remove("mm-hidden")})})}),m.slice().reverse().forEach(function(e,t){var n=e.mmParent;n&&(g(v(e,".mm-listitem")).length?(n.matches(".mm-hidden")&&n.classList.remove("mm-hidden"),n.classList.add("mm-listitem_onlysubitems")):i.closest(".mm-panel")||((e.matches(".mm-panel_opened")||e.matches(".mm-panel_opened-parent"))&&setTimeout(function(){a.openPanel(n.closest(".mm-panel"))},(t+1)*(1.5*a.conf.openingInterval)),n.classList.add("mm-listitem_nosubitems")))}),m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(s){var e=function(e,t){for(var n=[],i=s.previousElementSibling;i;)i.matches(t)&&n.push(i),i=i.previousElementSibling;return n}(0,".mm-divider")[0];e&&e.classList.remove("mm-hidden")})});n.forEach(function(e){return e.classList.remove("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList[f?"add":"remove"]("mm-hidden")})}),o.panel.add&&(o.panel.splash&&v(r,".mm-panel__content").forEach(function(e){return e.classList.add("mm-hidden")}),l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}))}else if(l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}),n.forEach(function(e){return e.classList.add("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList.add("mm-hidden")})}),o.panel.add)if(o.panel.splash)v(r,".mm-panel__content").forEach(function(e){return e.classList.remove("mm-hidden")});else if(!i.closest(".mm-panel_search")){var u=b(this.node.pnls,".mm-panel_opened-parent");this.openPanel(u.slice(-1)[0])}this.trigger("updateListview")}),addTo:"panels"}),parent:!1};x.options.sidebar={collapsed:{use:!(x.options.setSelected={current:!0,hover:!(x.options.sectionIndexer={add:!(x.prototype.search=function(i,s){var e,a=this,o=this.opts.searchfield;this.conf.searchfield,s=(s=s||""+i.value).toLowerCase().trim();var t=i.mmSearchfield,n=v(i.closest(".mm-searchfield"),".mm-btn"),r=b(this.node.pnls,".mm-panel_search")[0],m=t.panels,c=t.noresults,l=t.listitems,d=t.dividers;if(l.forEach(function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden")}),r&&(b(r,".mm-listview")[0].innerHTML=""),m.forEach(function(e){e.scrollTop=0}),s.length){d.forEach(function(e){e.classList.add("mm-hidden")}),l.forEach(function(e){var t,n=b(e,".mm-listitem__text")[0],i=!1;n&&-1<(t=n,Array.prototype.slice.call(t.childNodes).filter(function(e){return 3==e.nodeType}).map(function(e){return e.textContent}).join(" ")).toLowerCase().indexOf(s)&&(n.matches(".mm-listitem__btn")?o.showSubPanels&&(i=!0):n.matches("a")?i=!0:o.showTextItems&&(i=!0)),i||e.classList.add("mm-hidden")});var f=l.filter(function(e){return!e.matches(".mm-hidden")}).length;if(o.panel.add){var p=[];m.forEach(function(e){var t=g(v(e,".mm-listitem"));if((t=t.filter(function(e){return!e.matches(".mm-hidden")})).length){if(o.panel.dividers){var n=h("li.mm-divider"),i=v(e,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,p.push(n))}t.forEach(function(e){p.push(e.cloneNode(!0))})}}),p.forEach(function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach(function(e){e.remove()})}),(e=b(r,".mm-listview")[0]).append.apply(e,p),this.openPanel(r)}else o.showSubPanels&&m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(e){var t=e.mmChild;t&&v(t,".mm-listitem").forEach(function(e){e.classList.remove("mm-hidden")})})}),m.slice().reverse().forEach(function(e,t){var n=e.mmParent;n&&(g(v(e,".mm-listitem")).length?(n.matches(".mm-hidden")&&n.classList.remove("mm-hidden"),n.classList.add("mm-listitem_onlysubitems")):i.closest(".mm-panel")||((e.matches(".mm-panel_opened")||e.matches(".mm-panel_opened-parent"))&&setTimeout(function(){a.openPanel(n.closest(".mm-panel"))},(t+1)*(1.5*a.conf.openingInterval)),n.classList.add("mm-listitem_nosubitems")))}),m.forEach(function(e){g(v(e,".mm-listitem")).forEach(function(s){var e=function(e,t){for(var n=[],i=s.previousElementSibling;i;)i.matches(t)&&n.push(i),i=i.previousElementSibling;return n}(0,".mm-divider")[0];e&&e.classList.remove("mm-hidden")})});n.forEach(function(e){return e.classList.remove("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList[f?"add":"remove"]("mm-hidden")})}),o.panel.add&&(o.panel.splash&&v(r,".mm-panel__content").forEach(function(e){return e.classList.add("mm-hidden")}),l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}))}else if(l.forEach(function(e){return e.classList.remove("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}),n.forEach(function(e){return e.classList.add("mm-hidden")}),c.forEach(function(e){v(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList.add("mm-hidden")})}),o.panel.add)if(o.panel.splash)v(r,".mm-panel__content").forEach(function(e){return e.classList.remove("mm-hidden")});else if(!i.closest(".mm-panel_search")){var u=b(this.node.pnls,".mm-panel_opened-parent");this.openPanel(u.slice(-1)[0])}this.trigger("updateListview")}),addTo:"panels"}),parent:!1}),blockMenu:!0,hideDivider:!1,hideNavbar:!0},expanded:{use:!1,initial:"open"}},x.configs.classNames.toggles={toggle:"Toggle",check:"Check"},x.addons={offcanvas:function(){var e,a=this;if(this.opts.offCanvas){var t=("object"!=typeof(e=this.opts.offCanvas)&&(e={}),e);this.opts.offCanvas=l(t,x.options.offCanvas);var n=this.conf.offCanvas;this._api.push("open","close","setPage"),this.vars.opened=!1,this.bind("initMenu:before",function(){n.clone&&(a.node.menu=a.node.menu.cloneNode(!0),a.node.menu.id&&(a.node.menu.id="mm-"+a.node.menu.id),v(a.node.menu,"[id]").forEach(function(e){e.id="mm-"+e.id})),a.node.wrpr=document.body,document.querySelector(n.menu.insertSelector)[n.menu.insertMethod](a.node.menu)}),this.bind("initMenu:after",function(){(function(){var t=this;this.trigger("initBlocker:before");var e=this.opts.offCanvas,n=this.conf.offCanvas;if(e.blockUI){if(!x.node.blck){var i=h("div.mm-wrapper__blocker.mm-slideout");i.innerHTML="<a></a>",document.querySelector(n.menu.insertSelector).append(i),x.node.blck=i}var s=function(e){e.preventDefault(),e.stopPropagation(),t.node.wrpr.matches(".mm-wrapper_modal")||t.close()};x.node.blck.addEventListener("mousedown",s),x.node.blck.addEventListener("touchstart",s),x.node.blck.addEventListener("touchmove",s),this.trigger("initBlocker:after")}}).call(a),a.setPage(x.node.page),function(){var t=this;M(document.body,"keydown.tabguard"),S(document.body,"keydown.tabguard",function(e){9==e.keyCode&&t.node.wrpr.matches(".mm-wrapper_opened")&&e.preventDefault()})}.call(a),a.node.menu.classList.add("mm-menu_offcanvas");var e=window.location.hash;if(e){var t=o(a.node.menu.id);t&&t==e.slice(1)&&setTimeout(function(){a.open()},1e3)}}),this.bind("setPage:after",function(t){x.node.blck&&b(x.node.blck,"a").forEach(function(e){e.setAttribute("href","#"+t.id)})}),this.bind("open:start:sr-aria",function(){x.sr_aria(a.node.menu,"hidden",!1)}),this.bind("close:finish:sr-aria",function(){x.sr_aria(a.node.menu,"hidden",!0)}),this.bind("initMenu:after:sr-aria",function(){x.sr_aria(a.node.menu,"hidden",!0)}),this.bind("initBlocker:after:sr-text",function(){b(x.node.blck,"a").forEach(function(e){e.innerHTML=x.sr_text(a.i18n(a.conf.screenReader.text.closeMenu))})}),this.clck.push(function(e,t){var n=o(a.node.menu.id);if(n&&e.matches('[href="#'+n+'"]')){if(t.inMenu)return a.open(),!0;var i=e.closest(".mm-menu");if(i){var s=i.mmApi;if(s&&s.close)return s.close(),c(i,function(){a.open()},a.conf.transitionDuration),!0}return a.open(),!0}if((n=x.node.page.id)&&e.matches('[href="#'+n+'"]'))return a.close(),!0})}},screenReader:function(){var e,s=this,t=("boolean"==typeof(e=this.opts.screenReader)&&(e={aria:e,text:e}),"object"!=typeof e&&(e={}),e);this.opts.screenReader=l(t,x.options.screenReader);var a=this.conf.screenReader;t.aria&&(this.bind("initAddons:after",function(){s.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria",[].slice.call(arguments))}),s.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",[].slice.call(arguments))}),s.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",[].slice.call(arguments))}),s.bind("close:start",function(){this.trigger("close:start:sr-aria",[].slice.call(arguments))}),s.bind("close:finish",function(){this.trigger("close:finish:sr-aria",[].slice.call(arguments))}),s.bind("open:start",function(){this.trigger("open:start:sr-aria",[].slice.call(arguments))}),s.bind("initOpened:after",function(){this.trigger("initOpened:after:sr-aria",[].slice.call(arguments))})}),this.bind("updateListview",function(){s.node.pnls.querySelectorAll(".mm-listitem").forEach(function(e){x.sr_aria(e,"hidden",e.matches(".mm-hidden"))})}),this.bind("openPanel:start",function(t){var e=v(s.node.pnls,".mm-panel").filter(function(e){return e!==t}).filter(function(e){return!e.parentElement.matches(".mm-panel")}),n=[t];v(t,".mm-listitem_vertical .mm-listitem_opened").forEach(function(e){n.push.apply(n,b(e,".mm-panel"))}),e.forEach(function(e){x.sr_aria(e,"hidden",!0)}),n.forEach(function(e){x.sr_aria(e,"hidden",!1)})}),this.bind("closePanel",function(e){x.sr_aria(e,"hidden",!0)}),this.bind("initPanel:after",function(e){v(e,".mm-btn").forEach(function(e){x.sr_aria(e,"haspopup",!0);var t=e.getAttribute("href");t&&x.sr_aria(e,"owns",t.replace("#",""))})}),this.bind("initNavbar:after",function(e){var t=b(e,".mm-navbar")[0],n=t.matches(".mm-hidden");x.sr_aria(t,"hidden",n)}),t.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(e){var t=b(e,".mm-navbar")[0],n=!!t.querySelector(".mm-btn_prev");x.sr_aria(v(t,".mm-navbar__title")[0],"hidden",n)})),t.text&&(this.bind("initAddons:after",function(){s.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",[].slice.call(arguments))}),s.bind("initBlocker:after",function(){this.trigger("initBlocker:after:sr-text",[].slice.call(arguments))})}),this.bind("initNavbar:after",function(e){var t=b(e,".mm-navbar")[0];if(t){var n=b(t,".mm-btn_prev")[0];n&&(n.innerHTML=x.sr_text(s.i18n(a.text.closeSubmenu)))}}),this.bind("initListview:after",function(e){var t=e.closest(".mm-panel").mmParent;if(t){var n=b(t,".mm-btn_next")[0];if(n){var i=s.i18n(a.text[n.parentElement.matches(".mm-listitem_vertical")?"toggleSubmenu":"openSubmenu"]);n.innerHTML+=x.sr_text(i)}}}))},scrollBugFix:function(){var e,n=this;if(A&&this.opts.offCanvas&&this.opts.offCanvas.blockUI){var t=("boolean"==typeof(e=this.opts.scrollBugFix)&&(e={fix:e}),"object"!=typeof e&&(e={}),e);if(this.opts.scrollBugFix=l(t,x.options.scrollBugFix),t.fix){var i,s,a=(i=this.node.menu,s="",i.addEventListener("touchmove",function(e){0<e.movementY?s="down":e.movementY<0&&(s="up"),s=null}),{get:function(){return s}});this.node.menu.addEventListener("scroll",o,{passive:!1}),this.node.menu.addEventListener("touchmove",function(e){var t=e.target.closest(".mm-panel");t?t.scrollHeight===t.offsetHeight?o(e):(0==t.scrollTop&&"down"==a.get()||t.scrollHeight==t.scrollTop+t.offsetHeight&&"up"==a.get())&&o(e):o(e)},{passive:!1}),this.bind("open:start",function(){b(n.node.pnls,".mm-panel_opened")[0].scrollTop=0}),window.addEventListener("orientationchange",function(e){var t=b(n.node.pnls,".mm-panel_opened")[0];t.scrollTop=0,t.style["-webkit-overflow-scrolling"]="auto",t.style["-webkit-overflow-scrolling"]="touch"})}}function o(e){e.preventDefault(),e.stopPropagation()}},autoHeight:function(){var e,s=this,a=("boolean"==typeof(e=this.opts.autoHeight)&&e&&(e={height:"auto"}),"string"==typeof e&&(e={height:e}),"object"!=typeof e&&(e={}),e);if(this.opts.autoHeight=l(a,x.options.autoHeight),"auto"==a.height||"highest"==a.height){var o,t=(o=function(e){return e.parentElement.matches(".mm-listitem_vertical")&&(e=u(e,".mm-panel").filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")})[0]),e},function(){if(!s.opts.offCanvas||s.vars.opened){var t,e,n=0,i=s.node.menu.offsetHeight-s.node.pnls.offsetHeight;s.node.menu.classList.add("mm-menu_autoheight-measuring"),"auto"==a.height?((e=b(s.node.pnls,".mm-panel_opened")[0])&&(e=o(e)),n=(e=e||b(s.node.pnls,".mm-panel")[0]).scrollHeight):"highest"==a.height&&(t=0,b(s.node.pnls,".mm-panel").forEach(function(e){e=o(e),t=Math.max(t,e.scrollHeight)}),n=t),s.node.menu.style.height=n+i+"px",s.node.menu.classList.remove("mm-menu_autoheight-measuring")}});this.bind("initMenu:after",function(){s.node.menu.classList.add("mm-menu_autoheight")}),this.opts.offCanvas&&this.bind("open:start",t),"highest"==a.height&&this.bind("initPanels:after",t),"auto"==a.height&&(this.bind("updateListview",t),this.bind("openPanel:start",t))}},backButton:function(){var e,n=this;if(this.opts.offCanvas){var t=("boolean"==typeof(e=this.opts.backButton)&&(e={close:e}),"object"!=typeof e&&(e={}),e);this.opts.backButton=l(t,x.options.backButton);var i="#"+this.node.menu.id;if(t.close){var s=[],a=function(){s=[i],b(n.node.pnls,".mm-panel_opened, .mm-panel_opened-parent").forEach(function(e){s.push("#"+e.id)})};this.bind("open:finish",function(){history.pushState(null,document.title,i)}),this.bind("open:finish",a),this.bind("openPanel:finish",a),this.bind("close:finish",function(){s=[],history.back(),history.pushState(null,document.title,location.pathname+location.search)}),window.addEventListener("popstate",function(e){if(n.vars.opened&&s.length){var t=(s=s.slice(0,-1))[s.length-1];t==i?n.close():(n.openPanel(n.node.menu.querySelector(t)),history.pushState(null,document.title,i))}})}t.open&&window.addEventListener("popstate",function(e){n.vars.opened||location.hash!=i||n.open()})}},columns:function(){var e,s=this,i=("boolean"==typeof(e=this.opts.columns)&&(e={add:e}),"number"==typeof e&&(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),"number"==typeof e.visible&&(e.visible={min:e.visible,max:e.visible}),e);if(this.opts.columns=l(i,x.options.columns),i.add){i.visible.min=Math.max(1,Math.min(6,i.visible.min)),i.visible.max=Math.max(i.visible.min,Math.min(6,i.visible.max));for(var a=[],o=[],r=["mm-panel_opened","mm-panel_opened-parent","mm-panel_highest"],t=0;t<=i.visible.max;t++)a.push("mm-menu_columns-"+t),o.push("mm-panel_columns-"+t);r.push.apply(r,o),this.bind("openPanel:before",function(t){var e;if(t&&(e=t.mmParent),e=e&&e.closest(".mm-panel")){var n=e.className;if(n.length&&(n=n.split("mm-panel_columns-")[1]))for(var i=parseInt(n.split(" ")[0],10)+1;0<i;){if(!(t=b(s.node.pnls,".mm-panel_columns-"+i)[0])){i=-1;break}i++,t.classList.add("mm-hidden"),r.forEach(function(e){t.classList.remove(e)})}}}),this.bind("openPanel:start",function(e){var t=b(s.node.pnls,".mm-panel_opened-parent").length;e.matches(".mm-panel_opened-parent")||t++,t=Math.min(i.visible.max,Math.max(i.visible.min,t)),a.forEach(function(e){s.node.menu.classList.remove(e)}),s.node.menu.classList.add("mm-menu_columns-"+t);var n=[];b(s.node.pnls,".mm-panel").forEach(function(t){o.forEach(function(e){t.classList.remove(e)}),t.matches(".mm-panel_opened-parent")&&n.push(t)}),n.push(e),n.slice(-i.visible.max).forEach(function(e,t){e.classList.add("mm-panel_columns-"+t)})})}},counters:function(){var e,n=this,i=("boolean"==typeof(e=this.opts.counters)&&(e={add:e,addTo:"panels",count:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e);if(this.opts.counters=l(i,x.options.counters),this.bind("initListview:after",function(e){var t=n.conf.classNames.counters.counter;v(e,"."+t).forEach(function(e){y(e,t,"mm-counter")})}),i.add&&this.bind("initListview:after",function(e){if(e.matches(i.addTo)){var t=e.closest(".mm-panel").mmParent;if(t&&!v(t,".mm-counter").length){var n=b(t,".mm-btn")[0];n&&n.prepend(h("span.mm-counter"))}}}),i.count){var t=function(e){(e?[e.closest(".mm-panel")]:b(n.node.pnls,".mm-panel")).forEach(function(e){var t=e.mmParent;if(t){var n=v(t,".mm-counter")[0];if(n){var i=[];b(e,".mm-listview").forEach(function(e){i.push.apply(i,b(e))}),n.innerHTML=g(i).length.toString()}}})};this.bind("initListview:after",t),this.bind("updateListview",t)}},dividers:function(){var e,t=this,n=("boolean"==typeof(e=this.opts.dividers)&&(e={add:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e);this.opts.dividers=l(n,x.options.dividers),this.bind("initListview:after",function(e){b(e).forEach(function(e){y(e,t.conf.classNames.divider,"mm-divider"),e.matches(".mm-divider")&&e.classList.remove("mm-listitem")})}),n.add&&this.bind("initListview:after",function(i){if(i.matches(n.addTo)){v(i,".mm-divider").forEach(function(e){e.remove()});var s="";g(b(i)).forEach(function(e){var t=b(e,".mm-listitem__text")[0].textContent.trim().toLowerCase()[0];if(t.length&&t!=s){s=t;var n=h("li.mm-divider");n.textContent=t,i.insertBefore(n,e)}})}})},drag:function(){var e,t=this;if(this.opts.offCanvas){var n=("boolean"==typeof(e=this.opts.drag)&&(e={open:e}),"object"!=typeof e&&(e={}),e);this.opts.drag=l(n,x.options.drag),n.open&&this.bind("setPage:after",function(e){(function(e){var i=this,s={},a=!1,t=function(){var e=Object.keys(i.opts.extensions);e.length?(E(e.join(", "),function(){},function(){s=N(s,[],i.node.menu)}),e.forEach(function(e){E(e,function(){s=N(s,i.opts.extensions[e],i.node.menu)},function(){})})):s=N(s,[],i.node.menu)};B&&(M(B,"dragStart"),M(B,"dragMove"),M(B,"dragEnd")),q=new D(B=e),t(),t=function(){},B&&(S(B,"dragStart",function(e){e.detail.direction==s.direction&&(a=!0,i.node.wrpr.classList.add("mm-wrapper_dragging"),i._openSetup(),i.trigger("open:start"),z=i.node.menu["x"==s.axis?"clientWidth":"clientHeight"])}),S(B,"dragMove",function(e){if(e.detail.axis==s.axis&&a){var t=e.detail["distance"+s.axis.toUpperCase()];switch(s.position){case"right":case"bottom":t=Math.min(Math.max(t,-z),0);break;default:t=Math.max(Math.min(t,z),0)}if("front"==s.zposition)switch(s.position){case"right":case"bottom":t+=z;break;default:t-=z}s.slideOutNodes.forEach(function(e){e.style.transform="translate"+s.axis.toUpperCase()+"("+t+"px)"})}}),S(B,"dragEnd",function(e){if(e.detail.axis==s.axis&&a){a=!1,i.node.wrpr.classList.remove("mm-wrapper_dragging"),s.slideOutNodes.forEach(function(e){e.style.transform=""});var t=Math.abs(e.detail["distance"+s.axis.toUpperCase()])>=.75*z;if(!t){var n=e.detail["movement"+s.axis.toUpperCase()];switch(s.position){case"right":case"bottom":t=n<=0;break;default:t=0<=n}}t?i._openStart():i.close()}}))}).call(t,n.node||e)})}},dropdown:function(){var e,n=this;if(this.opts.offCanvas){var g=("boolean"==typeof(e=this.opts.dropdown)&&e&&(e={drop:e}),"object"!=typeof e&&(e={}),"string"==typeof e.position&&(e.position={of:e.position}),e);this.opts.dropdown=l(g,x.options.dropdown);var _=this.conf.dropdown;if(g.drop){var y;this.bind("initMenu:after",function(){if(n.node.menu.classList.add("mm-menu_dropdown"),"string"!=typeof g.position.of){var e=o(n.node.menu.id);e&&(g.position.of='[href="#'+e+'"]')}if("string"==typeof g.position.of){y=v(document.body,g.position.of)[0];var t=g.event.split(" ");1==t.length&&(t[1]=t[0]),"hover"==t[0]&&y.addEventListener("mouseenter",function(){n.open()},{passive:!0}),"hover"==t[1]&&n.node.menu.addEventListener("mouseleave",function(){n.close()},{passive:!0})}}),this.bind("open:start",function(){n.node.menu.mmStyle=n.node.menu.getAttribute("style"),n.node.wrpr.classList.add("mm-wrapper_dropdown")}),this.bind("close:finish",function(){n.node.menu.setAttribute("style",n.node.menu.mmStyle),n.node.wrpr.classList.remove("mm-wrapper_dropdown")});var i=function(e,t){var n,i,s,a=t[0],o=t[1],r="x"==e?"offsetWidth":"offsetHeight",m="x"==e?"left":"top",c="x"==e?"right":"bottom",l="x"==e?"width":"height",d="x"==e?"innerWidth":"innerHeight",f="x"==e?"maxWidth":"maxHeight",p=null,u=(n=m,y.getBoundingClientRect()[n]+document.body["left"==n?"scrollLeft":"scrollTop"]),h=u+y[r],v=window[d],b=_.offset.button[e]+_.offset.viewport[e];if(g.position[e])switch(g.position[e]){case"left":case"bottom":p="after";break;case"right":case"top":p="before"}return null===p&&(p=u+(h-u)/2<v/2?"after":"before"),"after"==p?(s=v-((i="x"==e?u:h)+b),a[m]=i+_.offset.button[e]+"px",a[c]="auto",g.tip&&o.push("mm-menu_tip-"+("x"==e?"left":"top"))):(s=(i="x"==e?h:u)-b,a[c]="calc( 100% - "+(i-_.offset.button[e])+"px )",a[m]="auto",g.tip&&o.push("mm-menu_tip-"+("x"==e?"right":"bottom"))),g.fitViewport&&(a[f]=Math.min(_[l].max,s)+"px"),[a,o]};this.bind("open:start",t),window.addEventListener("resize",function(e){t.call(n)},{passive:!0}),this.opts.offCanvas.blockUI||window.addEventListener("scroll",function(e){t.call(n)},{passive:!0})}}function t(){var t=this;if(this.vars.opened){this.node.menu.setAttribute("style",this.node.menu.mmStyle);var e=[{},[]];for(var n in e=i.call(this,"y",e),(e=i.call(this,"x",e))[0])this.node.menu.style[n]=e[0][n];g.tip&&(["mm-menu_tip-left","mm-menu_tip-right","mm-menu_tip-top","mm-menu_tip-bottom"].forEach(function(e){t.node.menu.classList.remove(e)}),e[1].forEach(function(e){t.node.menu.classList.add(e)}))}}},fixedElements:function(){var t=this;if(this.opts.offCanvas){var n,i,s=this.conf.fixedElements;this.bind("setPage:after",function(e){n=t.conf.classNames.fixedElements.fixed,i=v(document,s.insertSelector)[0],v(e,"."+n).forEach(function(e){y(e,n,"mm-slideout"),i[s.insertMethod](e)})})}},iconbar:function(){var o,e,i=this,r=("array"==m(e=this.opts.iconbar)&&(e={use:!0,top:e}),"object"!=m(e)&&(e={}),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e);if(this.opts.iconbar=l(r,x.options.iconbar),r.use&&(["top","bottom"].forEach(function(e,t){var n=r[e];"array"!=m(n)&&(n=[n]);for(var i=h("div.mm-iconbar__"+e),s=0,a=n.length;s<a;s++)"string"==typeof n[s]?i.innerHTML+=n[s]:i.append(n[s]);i.children.length&&(o=o||h("div.mm-iconbar")).append(i)}),o)){this.bind("initMenu:after",function(){i.node.menu.prepend(o)});var t="mm-menu_iconbar-"+r.position,n=function(){i.node.menu.classList.add(t),x.sr_aria(o,"hidden",!1)};if("boolean"==typeof r.use?this.bind("initMenu:after",n):E(r.use,n,function(){i.node.menu.classList.remove(t),x.sr_aria(o,"hidden",!0)}),"tabs"==r.type){o.classList.add("mm-iconbar_tabs"),o.addEventListener("click",function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-iconbar__tab_selected"))e.stopImmediatePropagation();else try{var n=i.node.menu.querySelector(t.getAttribute("href"))[0];n&&n.matches(".mm-panel")&&(e.preventDefault(),e.stopImmediatePropagation(),i.openPanel(n,!1))}catch(e){}});var s=function(e){v(o,"a").forEach(function(e){e.classList.remove("mm-iconbar__tab_selected")});var t=v(o,'[href="#'+e.id+'"]')[0];if(t)t.classList.add("mm-iconbar__tab_selected");else{var n=e.mmParent;n&&s(n.closest(".mm-panel"))}};this.bind("openPanel:start",s)}}},iconPanels:function(){var e,i=this,s=("boolean"==typeof(e=this.opts.iconPanels)&&(e={add:e}),"number"!=typeof e&&"string"!=typeof e||(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),e);this.opts.iconPanels=l(s,x.options.iconPanels);var a=!1;if("first"==s.visible&&(a=!0,s.visible=1),s.visible=Math.min(3,Math.max(1,s.visible)),s.visible++,s.add){this.bind("initMenu:after",function(){var e=["mm-menu_iconpanel"];s.hideNavbar&&e.push("mm-menu_hidenavbar"),s.hideDivider&&e.push("mm-menu_hidedivider"),e.forEach(function(e){i.node.menu.classList.add(e)})});var o=[];if(!a)for(var t=0;t<=s.visible;t++)o.push("mm-panel_iconpanel-"+t);this.bind("openPanel:start",function(t){var e=b(i.node.pnls,".mm-panel");if(!(t=t||e[0]).parentElement.matches(".mm-listitem_vertical"))if(a)e.forEach(function(e,t){e.classList[0==t?"add":"remove"]("mm-panel_iconpanel-first")});else{e.forEach(function(t){o.forEach(function(e){t.classList.remove(e)})}),e=e.filter(function(e){return e.matches(".mm-panel_opened-parent")});var n=!1;e.forEach(function(e){t===e&&(n=!0)}),n||e.push(t),e.forEach(function(e){e.classList.remove("mm-hidden")}),(e=e.slice(-s.visible)).forEach(function(e,t){e.classList.add("mm-panel_iconpanel-"+t)})}}),this.bind("initPanel:after",function(e){if(s.blockPanel&&!e.parentElement.matches(".mm-listitem_vertical")&&!b(e,".mm-panel__blocker")[0]){var t=h("a.mm-panel__blocker");t.setAttribute("href","#"+e.closest(".mm-panel").id),e.prepend(t)}})}},keyboardNavigation:function(){var e,s=this;if(!A){var a=("boolean"!=typeof(e=this.opts.keyboardNavigation)&&"string"!=typeof e||(e={enable:e}),"object"!=typeof e&&(e={}),e);if(this.opts.keyboardNavigation=l(a,x.options.keyboardNavigation),a.enable){var t=h("button.mm-tabstart.mm-sronly"),n=h("button.mm-tabend.mm-sronly"),i=h("button.mm-tabend.mm-sronly");this.bind("initMenu:after",function(){a.enhance&&s.node.menu.classList.add("mm-menu_keyboardfocus"),function(a){var i=this;M(document.body,"keydown.tabguard"),M(document.body,"focusin.tabguard"),S(document.body,"focusin.tabguard",function(e){if(i.node.wrpr.matches(".mm-wrapper_opened")){var t=e.target;if(t.matches(".mm-tabend")){var n=void 0;t.parentElement.matches(".mm-menu")&&x.node.blck&&(n=x.node.blck),t.parentElement.matches(".mm-wrapper__blocker")&&(n=v(document.body,".mm-menu_offcanvas.mm-menu_opened")[0]),(n=n||t.parentElement)&&b(n,".mm-tabstart")[0].focus()}}}),M(document.body,"keydown.navigate"),S(document.body,"keydown.navigate",function(e){var t=e.target,n=t.closest(".mm-menu");if(n){if(n.mmApi,!t.matches("input, textarea"))switch(e.keyCode){case 13:(t.matches(".mm-toggle")||t.matches(".mm-check"))&&t.dispatchEvent(new Event("click"));break;case 32:case 37:case 38:case 39:case 40:e.preventDefault()}if(a)if(t.matches("input"))switch(e.keyCode){case 27:t.value=""}else{var i=n.mmApi;switch(e.keyCode){case 8:var s=v(n,".mm-panel_opened")[0].mmParent;s&&i.openPanel(s.closest(".mm-panel"));break;case 27:n.matches(".mm-menu_offcanvas")&&i.close()}}}})}.call(s,a.enhance)}),this.bind("initOpened:before",function(){s.node.menu.prepend(t),s.node.menu.append(n),b(s.node.menu,".mm-navbars-top, .mm-navbars-bottom").forEach(function(e){e.querySelectorAll(".mm-navbar__title").forEach(function(e){e.setAttribute("tabindex","-1")})})}),this.bind("initBlocker:after",function(){x.node.blck.append(i),b(x.node.blck,"a")[0].classList.add("mm-tabstart")});var o="input, select, textarea, button, label, a[href]",r=function(e){e=e||b(s.node.pnls,".mm-panel_opened")[0];var t=null,n=document.activeElement.closest(".mm-navbar");if(!n||n.closest(".mm-menu")!=s.node.menu){if("default"==a.enable&&((t=v(e,".mm-listview a[href]:not(.mm-hidden)")[0])||(t=v(e,o+":not(.mm-hidden)")[0]),!t)){var i=[];b(s.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(e){i.push.apply(i,v(e,o+":not(.mm-hidden)"))}),t=i[0]}(t=t||b(s.node.menu,".mm-tabstart")[0])&&t.focus()}};this.bind("open:finish",r),this.bind("openPanel:finish",r),this.bind("initOpened:after:sr-aria",function(){[s.node.menu,x.node.blck].forEach(function(e){b(e,".mm-tabstart, .mm-tabend").forEach(function(e){x.sr_aria(e,"hidden",!0),x.sr_role(e,"presentation")})})})}}},lazySubmenus:function(){var e,i=this,t=("boolean"==typeof(e=this.opts.lazySubmenus)&&(e={load:e}),"object"!=typeof e&&(e={}),e);this.opts.lazySubmenus=l(t,x.options.lazySubmenus),t.load&&(this.bind("initMenu:after",function(){var t=[];v(i.node.pnls,"li").forEach(function(e){t.push.apply(t,b(e,i.conf.panelNodetype.join(", ")))}),t.filter(function(e){return!e.matches(".mm-listview_inset")}).filter(function(e){return!e.matches(".mm-nolistview")}).filter(function(e){return!e.matches(".mm-nopanel")}).forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.add(e)})})}),this.bind("initPanels:before",function(){b(i.node.pnls,i.conf.panelNodetype.join(", ")).forEach(function(e){var t=".mm-panel_lazysubmenu",n=v(e,t);e.matches(t)&&n.unshift(e),n.filter(function(e){return!e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu")}).forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)})})})}),this.bind("initOpened:before",function(){var t=[];v(i.node.pnls,"."+i.conf.classNames.selected).forEach(function(e){t.push.apply(t,u(e,".mm-panel_lazysubmenu"))}),t.length&&(t.forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)})}),i.initPanel(t[t.length-1]))}),this.bind("openPanel:before",function(e){var t=".mm-panel_lazysubmenu",n=v(e,t);e.matches(t)&&n.unshift(e),(n=n.filter(function(e){return!e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu")})).forEach(function(e){i.initPanel(e)})}))},navbars:U,pageScroll:function(){var e,s=this,t=("boolean"==typeof(e=this.opts.pageScroll)&&(e={scroll:e}),"object"!=typeof e&&(e={}),e);this.opts.pageScroll=l(t,x.options.pageScroll);var i,a=this.conf.pageScroll;function o(){i&&window.scrollTo({top:i.getBoundingClientRect().top+document.scrollingElement.scrollTop-a.scrollOffset,behavior:"smooth"}),i=null}function r(e){try{return"#"!=e&&"#"==e.slice(0,1)?x.node.page.querySelector(e):null}catch(e){return null}}if(t.scroll&&this.bind("close:finish",function(){o()}),this.opts.offCanvas&&t.scroll&&this.clck.push(function(e,t){if(i=null,t.inMenu){var n=e.getAttribute("href");if(i=r(n))return s.node.menu.matches(".mm-menu_sidebar-expanded")&&s.node.wrpr.matches(".mm-wrapper_sidebar-expanded")?void o():{close:!0}}}),t.update){var m=[];this.bind("initListview:after",function(e){_(b(e,".mm-listitem")).forEach(function(e){var t=r(e.getAttribute("href"));t&&m.unshift(t)})});var c=-1;window.addEventListener("scroll",function(e){for(var t=window.scrollY,n=0;n<m.length;n++)if(m[n].offsetTop<t+a.updateOffset){if(c!==n){c=n;var i=_(v(b(s.node.pnls,".mm-panel_opened")[0],".mm-listitem"));(i=i.filter(function(e){return e.matches('[href="#'+m[n].id+'"]')})).length&&s.setSelected(i[0].parentElement)}break}})}},searchfield:function(){var e,s=this,i=("boolean"==typeof(e=this.opts.searchfield)&&(e={add:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.panel&&(e.panel={add:e.panel}),"object"!=typeof e.panel&&(e.panel={}),"panel"==e.addTo&&(e.panel.add=!0),e.panel.add&&(e.showSubPanels=!1,e.panel.splash&&(e.cancel=!0)),e);this.opts.searchfield=l(i,x.options.searchfield),this.conf.searchfield,i.add&&(this.bind("close:start",function(){v(s.node.menu,".mm-searchfield").forEach(function(e){e.blur()})}),this.bind("initPanel:after",function(e){var t=null;i.panel.add&&(t=function(){var e=this.opts.searchfield,t=(this.conf.searchfield,b(this.node.pnls,".mm-panel_search")[0]);if(t)return t;t=h("div.mm-panel.mm-panel_search.mm-hidden"),e.panel.id&&(t.id=e.panel.id),e.panel.title&&(t.dataset.mmTitle=e.panel.title);var n=h("ul");switch(t.append(n),this.node.pnls.append(t),this.initListview(n),this._initNavbar(t),e.panel.fx){case!1:break;case"none":t.classList.add("mm-panel_noanimation");break;default:t.classList.add("mm-panel_fx-"+e.panel.fx)}if(e.panel.splash){var i=h("div.mm-panel__content");i.innerHTML=e.panel.splash,t.append(i)}return t.classList.add("mm-panel"),t.classList.add("mm-hidden"),this.node.pnls.append(t),t}.call(s));var n=null;switch(i.addTo){case"panels":n=[e];break;case"panel":n=[t];break;default:"string"==typeof i.addTo?n=v(s.node.menu,i.addTo):"array"==m(i.addTo)&&(n=i.addTo)}n.forEach(function(e){e=function(e){var t=this.opts.searchfield,n=this.conf.searchfield;if(e.parentElement.matches(".mm-listitem_vertical"))return null;if(a=v(e,".mm-searchfield")[0])return a;function i(e,t){if(t)for(var n in t)e.setAttribute(n,t[n])}var s,a=h((n.form?"form":"div")+".mm-searchfield"),o=h("div.mm-searchfield__input"),r=h("input");return r.type="text",r.autocomplete="off",r.placeholder=this.i18n(t.placeholder),o.append(r),a.append(o),e.prepend(a),i(r,n.input),n.clear&&((s=h("a.mm-btn.mm-btn_close.mm-searchfield__btn")).setAttribute("href","#"),o.append(s)),i(a,n.form),n.form&&n.submit&&!n.clear&&((s=h("a.mm-btn.mm-btn_next.mm-searchfield__btn")).setAttribute("href","#"),o.append(s)),t.cancel&&((s=h("a.mm-searchfield__cancel")).setAttribute("href","#"),s.textContent=this.i18n("cancel"),a.append(s)),a}.call(s,e),i.search&&e&&function(e){var n=this,t=this.opts.searchfield,i=(this.conf.searchfield,{});e.closest(".mm-panel_search")?(i.panels=v(this.node.pnls,".mm-panel"),i.noresults=[e.closest(".mm-panel")]):e.closest(".mm-panel")?(i.panels=[e.closest(".mm-panel")],i.noresults=i.panels):(i.panels=v(this.node.pnls,".mm-panel"),i.noresults=[this.node.menu]),i.panels=i.panels.filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")}),i.panels=i.panels.filter(function(e){return!e.matches(".mm-panel_search")}),i.listitems=[],i.dividers=[],i.panels.forEach(function(e){var t,n;(t=i.listitems).push.apply(t,v(e,".mm-listitem")),(n=i.dividers).push.apply(n,v(e,".mm-divider"))});var s=b(this.node.pnls,".mm-panel_search")[0],a=v(e,"input")[0],o=v(e,".mm-searchfield__cancel")[0];a.mmSearchfield=i,t.panel.add&&t.panel.splash&&(M(a,"focus.splash"),S(a,"focus.splash",function(e){n.openPanel(s)})),t.cancel&&(M(a,"focus.cancel"),S(a,"focus.cancel",function(e){o.classList.add("mm-searchfield__cancel-active")}),M(o,"click.splash"),S(o,"click.splash",function(e){if(e.preventDefault(),o.classList.remove("mm-searchfield__cancel-active"),s.matches(".mm-panel_opened")){var t=b(n.node.pnls,".mm-panel_opened-parent");t.length&&n.openPanel(t[t.length-1])}})),t.panel.add&&"panel"==t.addTo&&this.bind("openPanel:finish",function(e){e===s&&a.focus()}),M(a,"input.search"),S(a,"input.search",function(e){switch(e.keyCode){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:break;default:n.search(a)}}),this.search(a)}.call(s,e)}),i.noResults&&function(e){if(e){var t=this.opts.searchfield;if(this.conf.searchfield,e.closest(".mm-panel")||(e=b(this.node.pnls,".mm-panel")[0]),!b(e,".mm-panel__noresultsmsg").length){var n=h("div.mm-panel__noresultsmsg.mm-hidden");n.innerHTML=this.i18n(t.noResults),e.append(n)}}}.call(s,i.panel.add?t:e)}),this.clck.push(function(e,t){if(t.inMenu&&e.matches(".mm-searchfield__btn")){if(e.matches(".mm-btn_close")){var n=v(i=e.closest(".mm-searchfield"),"input")[0];return n.value="",s.search(n),!0}var i;if(e.matches(".mm-btn_next"))return(i=e.closest("form"))&&i.submit(),!0}}))},sectionIndexer:function(){var e,a=this,t=("boolean"==typeof(e=this.opts.sectionIndexer)&&(e={add:e}),"object"!=typeof e&&(e={}),e);this.opts.sectionIndexer=l(t,x.options.sectionIndexer),t.add&&this.bind("initPanels:after",function(){if(!a.node.indx){var t="";"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(e){t+='<a href="#">'+e+"</a>"});var e=h("div.mm-sectionindexer");e.innerHTML=t,a.node.pnls.prepend(e),a.node.indx=e,a.node.indx.addEventListener("click",function(e){e.target.matches("a")&&e.preventDefault()});var n=function(e){if(e.target.matches("a")){var t=e.target.textContent,n=b(a.node.pnls,".mm-panel_opened")[0],i=-1,s=n.scrollTop;n.scrollTop=0,v(n,".mm-divider").filter(function(e){return!e.matches(".mm-hidden")}).forEach(function(e){i<0&&t==e.textContent.trim().slice(0,1).toLowerCase()&&(i=e.offsetTop)}),n.scrollTop=-1<i?i:s}};A?(a.node.indx.addEventListener("touchstart",n),a.node.indx.addEventListener("touchmove",n)):a.node.indx.addEventListener("mouseover",n)}a.bind("openPanel:start",function(e){var t=v(e,".mm-divider").filter(function(e){return!e.matches(".mm-hidden")}).length;a.node.indx.classList[t?"add":"remove"]("mm-sectionindexer_active")})})},setSelected:function(){var e,i=this,t=("boolean"==typeof(e=this.opts.setSelected)&&(e={hover:e,parent:e}),"object"!=typeof e&&(e={}),e);if(this.opts.setSelected=l(t,x.options.setSelected),"detect"==t.current){var s=function(e){e=e.split("?")[0].split("#")[0];var t=i.node.menu.querySelector('a[href="'+e+'"], a[href="'+e+'/"]');if(t)i.setSelected(t.parentElement);else{var n=e.split("/").slice(0,-1);n.length&&s(n.join("/"))}};this.bind("initMenu:after",function(){s.call(i,window.location.href)})}else t.current||this.bind("initListview:after",function(e){b(e,".mm-listitem_selected").forEach(function(e){e.classList.remove("mm-listitem_selected")})});t.hover&&this.bind("initMenu:after",function(){i.node.menu.classList.add("mm-menu_selected-hover")}),t.parent&&(this.bind("openPanel:finish",function(e){v(i.node.pnls,".mm-listitem_selected-parent").forEach(function(e){e.classList.remove("mm-listitem_selected-parent")});for(var t=e.mmParent;t;)t.matches(".mm-listitem_vertical")||t.classList.add("mm-listitem_selected-parent"),t=(t=t.closest(".mm-panel")).mmParent}),this.bind("initMenu:after",function(){i.node.menu.classList.add("mm-menu_selected-parent")}))},sidebar:function(){var e,n=this;if(this.opts.offCanvas){var i=(("string"==typeof(e=this.opts.sidebar)||"boolean"==typeof e&&e||"number"==typeof e)&&(e={expanded:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.collapsed&&e.collapsed&&(e.collapsed={use:!0}),"string"!=typeof e.collapsed&&"number"!=typeof e.collapsed||(e.collapsed={use:e.collapsed}),"object"!=typeof e.collapsed&&(e.collapsed={}),"boolean"==typeof e.expanded&&e.expanded&&(e.expanded={use:!0}),"string"!=typeof e.expanded&&"number"!=typeof e.expanded||(e.expanded={use:e.expanded}),"object"!=typeof e.expanded&&(e.expanded={}),e);if(this.opts.sidebar=l(i,x.options.sidebar),i.collapsed.use){this.bind("initMenu:after",function(){if(n.node.menu.classList.add("mm-menu_sidebar-collapsed"),i.collapsed.blockMenu&&n.opts.offCanvas&&!b(n.node.menu,".mm-menu__blocker")[0]){var e=h("a.mm-menu__blocker");e.setAttribute("href","#"+n.node.menu.id),n.node.menu.prepend(e)}i.collapsed.hideNavbar&&n.node.menu.classList.add("mm-menu_hidenavbar"),i.collapsed.hideDivider&&n.node.menu.classList.add("mm-menu_hidedivider")});var t=function(){n.node.wrpr.classList.add("mm-wrapper_sidebar-collapsed")},s=function(){n.node.wrpr.classList.remove("mm-wrapper_sidebar-collapsed")};"boolean"==typeof i.collapsed.use?this.bind("initMenu:after",t):E(i.collapsed.use,t,s)}if(i.expanded.use){this.bind("initMenu:after",function(){n.node.menu.classList.add("mm-menu_sidebar-expanded")}),t=function(){n.node.wrpr.classList.add("mm-wrapper_sidebar-expanded"),n.node.wrpr.matches(".mm-wrapper_sidebar-closed")||n.open()},s=function(){n.node.wrpr.classList.remove("mm-wrapper_sidebar-expanded"),n.close()},"boolean"==typeof i.expanded.use?this.bind("initMenu:after",t):E(i.expanded.use,t,s),this.bind("close:start",function(){n.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(n.node.wrpr.classList.add("mm-wrapper_sidebar-closed"),"remember"==i.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","closed"))}),this.bind("open:start",function(){n.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(n.node.wrpr.classList.remove("mm-wrapper_sidebar-closed"),"remember"==i.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","open"))});var a=i.expanded.initial;if("remember"==i.expanded.initial){var o=window.localStorage.getItem("mmenuExpandedState");switch(o){case"open":case"closed":a=o}}"closed"==a&&this.bind("initMenu:after",function(){n.node.wrpr.classList.add("mm-wrapper_sidebar-closed")}),this.clck.push(function(e,t){if(t.inMenu&&t.inListview&&n.node.wrpr.matches(".mm-wrapper_sidebar-expanded"))return{close:"closed"==i.expanded.initial}})}}},toggles:function(){var t=this;this.bind("initPanel:after",function(e){v(e,"input").forEach(function(e){y(e,t.conf.classNames.toggles.toggle,"mm-toggle"),y(e,t.conf.classNames.toggles.check,"mm-check")})})}},x.wrappers={angular:function(){this.opts.onClick={close:!0,preventDefault:!1,setSelected:!0}},bootstrap:function(){var n=this;if(this.node.menu.matches(".navbar-collapse")){this.conf.offCanvas&&(this.conf.offCanvas.clone=!1);var e=h("nav"),s=h("div");e.append(s),b(this.node.menu).forEach(function(e){switch(!0){case e.matches(".navbar-nav"):s.append((t=e,i=h("ul"),v(t,".nav-item").forEach(function(e){var t=h("li");if(e.matches(".active")&&t.classList.add("Selected"),!e.matches(".nav-link")){var n=b(e,".dropdown-menu")[0];n&&t.append(o(n)),e=b(e,".nav-link")[0]}t.prepend(a(e)),i.append(t)}),i));break;case e.matches(".dropdown-menu"):s.append(o(e));break;case e.matches(".form-inline"):n.conf.searchfield.form={action:e.getAttribute("action")||null,method:e.getAttribute("method")||null},n.conf.searchfield.input={name:e.querySelector("input").getAttribute("name")||null},n.conf.searchfield.clear=!1,n.conf.searchfield.submit=!0;break;default:s.append(e.cloneNode(!0))}var t,i}),this.bind("initMenu:before",function(){document.body.prepend(e),n.node.menu=e});var t=this.node.menu.parentElement;if(t){var i=t.querySelector(".navbar-toggler");i&&(delete i.dataset.target,i.removeAttribute("aria-controls"),i.outerHTML=i.outerHTML,(i=t.querySelector(".navbar-toggler")).addEventListener("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),n[n.vars.opened?"close":"open"]()}))}}function a(e){for(var t=h(e.matches("a")?"a":"span"),n=["href","title","target"],i=0;i<n.length;i++)void 0!==e.getAttribute(n[i])&&t.setAttribute(n[i],e.getAttribute(n[i]));return t.innerHTML=e.innerHTML,v(t,".sr-only").forEach(function(e){e.remove()}),t}function o(e){var n=h("ul");return b(e).forEach(function(e){var t=h("li");e.matches(".dropdown-divider")?t.classList.add("Divider"):e.matches(".dropdown-item")&&t.append(a(e)),n.append(t)}),n}},olark:function(){this.conf.offCanvas.page.noSelector.push("#olark")},turbolinks:function(){var t;document.addEventListener("turbolinks:before-visit",function(e){t=document.querySelector(".mm-wrapper").className.split(" ").filter(function(e){return/mm-/.test(e)})}),document.addEventListener("turbolinks:load",function(e){void 0!==t&&(document.querySelector(".mm-wrapper").className=t)})},wordpress:function(){this.conf.classNames.selected="current-menu-item";var e=document.getElementById("wpadminbar");e&&(e.style.position="fixed",e.classList.add("mm-slideout"))}},t.default=x,window.Mmenu=x,(F=window.jQuery||window.Zepto||null)&&(F.fn.mmenu=function(n,i){var s=F();return this.each(function(e,t){t.mmApi||(l=new x(t,n,i),(m=F(l.node.menu)).data("mmenu",l.API),s=s.add(m))}),s})}]);!function(h,i,n,a){function l(t,e){this.settings=null,this.options=h.extend({},l.Defaults,e),this.$element=h(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},h.each(["onResize","onThrottledResize"],h.proxy(function(t,e){this._handlers[e]=h.proxy(this[e],this)},this)),h.each(l.Plugins,h.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),h.each(l.Workers,h.proxy(function(t,e){this._pipe.push({filter:e.filter,run:h.proxy(e.run,this)})},this)),this.setup(),this.initialize()}l.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},l.Width={Default:"default",Inner:"inner",Outer:"outer"},l.Type={Event:"event",State:"state"},l.Plugins={},l.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,s=Math.max(2*i.items,4),n=2*Math.ceil(e.length/2),o=i.loop&&e.length?i.rewind?s:Math.max(s,n):0,r="",a="";for(o/=2;0<o;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a,o-=1;this._clones=t,h(r).addClass("cloned").appendTo(this.$stage),h(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],l.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=h("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(h("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},l.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return h(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},l.prototype.initialize=function(){var t,e,i;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},l.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},l.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,s=null;t?(h.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(s=h.extend({},this.options,t[i])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):s=h.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=i,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},l.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},l.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=h("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},l.prototype.update=function(){for(var t=0,e=this._pipe.length,i=h.proxy(function(t){return this[t]},this._invalidated),s={};t<e;)(this._invalidated.all||0<h.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(s),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},l.prototype.width=function(t){switch(t=t||l.Width.Default){case l.Width.Inner:case l.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},l.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},l.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},l.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},l.prototype.registerEventHandlers=function(){h.support.transition&&this.$stage.on(h.support.transition.end+".owl.core",h.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",h.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",h.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",h.proxy(this.onDragEnd,this)))},l.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=h.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)|/g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(h.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=h(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),h(n).on("mouseup.owl.core touchend.owl.core",h.proxy(this.onDragEnd,this)),h(n).one("mousemove.owl.core touchmove.owl.core",h.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));h(n).on("mousemove.owl.core touchmove.owl.core",h.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},l.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},l.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,s=0<e.x^this.settings.rtl?"left":"right";h(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},l.prototype.closest=function(i,s){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||h.each(r,h.proxy(function(t,e){return"left"===s&&e-30<i&&i<e+30?n=t:"right"===s&&e-o-30<i&&i<e-o+30?n=t+1:this.op(i,"<",e)&&this.op(i,">",r[t+1]!==a?r[t+1]:e-o)&&(n="left"===s?t+1:t),-1===n},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?n=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(n=i=this.maximum())),n},l.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),h.support.transform3d&&h.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,h.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},l.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},l.prototype.current=function(t){if(t===a)return this._current;if(0===this._items.length)return a;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},l.prototype.invalidate=function(t){return"string"===h.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),h.map(this._invalidated,function(t,e){return e})},l.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},l.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=a:(t<0||i+s<=t)&&(t=((t-s/2)%i+i)%i+s/2),t},l.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},l.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!(s<(i+=this._items[e].width()+this.settings.margin)););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},l.prototype.minimum=function(t){return t?0:this._clones.length/2},l.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},l.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},l.prototype.clones=function(i){var e=this._clones.length/2,s=e+this._items.length,n=function(t){return t%2==0?s+t/2:e-(t+1)/2};return i===a?h.map(this._clones,function(t,e){return n(e)}):h.map(this._clones,function(t,e){return t===i?n(e):null})},l.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},l.prototype.coordinates=function(t){var e,i=1,s=t-1;return t===a?h.map(this._coordinates,h.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,s=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[s]||0))/2*i):e=this._coordinates[s]||0,e=Math.ceil(e))},l.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},l.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(0<n)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&0<s-n&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},l.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},l.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},l.prototype.onTransitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},l.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==i?t=h(this.options.responsiveBaseElement).width():i.innerWidth?t=i.innerWidth:n.documentElement&&n.documentElement.clientWidth?t=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},l.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:h(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(h.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},l.prototype.add=function(t,e){var i=this.relative(this._current);e=e===a?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:h(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},l.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},l.prototype.preloadAutoWidthImages=function(t){t.each(h.proxy(function(t,e){this.enter("pre-loading"),e=h(e),h(new Image).one("load",h.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},l.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),h(n).off(".owl.core"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},l.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?i<t:t<i;case">":return s?t<i:i<t;case">=":return s?t<=i:i<=t;case"<=":return s?i<=t:t<=i}},l.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},l.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},l.prototype.trigger=function(t,e,i,s,n){var o={item:{count:this._items.length,index:this.current()}},r=h.camelCase(h.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=h.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),h.extend({relatedTarget:this},o,e));return this._supress[t]||(h.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:l.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},l.prototype.enter=function(t){h.each([t].concat(this._states.tags[t]||[]),h.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},l.prototype.leave=function(t){h.each([t].concat(this._states.tags[t]||[]),h.proxy(function(t,e){this._states.current[e]--},this))},l.prototype.register=function(i){if(i.type===l.Type.Event){if(h.event.special[i.name]||(h.event.special[i.name]={}),!h.event.special[i.name].owl){var e=h.event.special[i.name]._default;h.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},h.event.special[i.name].owl=!0}}else i.type===l.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=h.grep(this._states.tags[i.name],h.proxy(function(t,e){return h.inArray(t,this._states.tags[i.name])===e},this)))},l.prototype.suppress=function(t){h.each(t,h.proxy(function(t,e){this._supress[e]=!0},this))},l.prototype.release=function(t){h.each(t,h.proxy(function(t,e){delete this._supress[e]},this))},l.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},l.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},l.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},h.fn.owlCarousel=function(e){var s=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=h(this),i=t.data("owl.carousel");i||(i=new l(this,"object"==typeof e&&e),t.data("owl.carousel",i),h.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:l.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",h.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,s)})},h.fn.owlCarousel.Constructor=l}(window.Zepto||window.jQuery,window,document),function(e,i,t,s){var n=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(a,o,t,e){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,s=e.center&&-1*i||0,n=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+s,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(i+=e.lazyLoadEager,e.loop&&(n-=e.lazyLoadEager,i++));s++<i;)this.load(o/2+this._core.relative(n)),o&&a.each(this._core.clones(this._core.relative(n)),r),n++}},this)},this._core.options=a.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||-1<a.inArray(e.get(0),this._loaded)||(i.each(a.proxy(function(t,e){var i,s=a(e),n=1<o.devicePixelRatio&&s.attr("data-src-retina")||s.attr("data-src")||s.attr("data-srcset");this._core.trigger("load",{element:s,url:n},"lazy"),s.is("img")?s.one("load.owl.lazy",a.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:n},"lazy")},this)).attr("src",n):s.is("source")?s.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:s,url:n},"lazy")},this)).attr("srcset",n):((i=new Image).onload=a.proxy(function(){s.css({"background-image":'url("'+n+'")',opacity:"1"}),this._core.trigger("loaded",{element:s,url:n},"lazy")},this),i.src=n)},this)),this._loaded.push(e.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(r,i,t,e){var s=function(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=r.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;r(i).on("load",function(){e._core.settings.autoHeight&&e.update()}),r(i).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})};s.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},s.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,s=this._core.$stage.children().toArray().slice(t,e),n=[],o=0;r.each(s,function(t,e){n.push(r(e).height())}),(o=Math.max.apply(null,n))<=1&&i&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},s.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.AutoHeight=s}(window.Zepto||window.jQuery,window,document),function(c,t,e,i){var s=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":c.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":c.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":c.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":c.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":c.proxy(function(t){if(t.namespace){var e=c(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,c(t.content)))}},this)},this._core.options=c.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",c.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<s[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<s[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,t){var i,s,n=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",o=e.find("img"),r="src",a="",h=this._core.settings,l=function(t){i=h.lazyLoad?c("<div/>",{class:"owl-video-tn "+a,srcType:t}):c("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(i),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(c("<div/>",{class:"owl-video-wrapper",style:n})),this._core.settings.lazyLoad&&(r="data-src",a="owl-lazy"),o.length)return l(o.attr(r)),o.remove(),!1;"youtube"===t.type?(s="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",l(s)):"vimeo"===t.type?c.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,l(s)}}):"vzaar"===t.type&&c.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,l(s)}})},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},s.prototype.play=function(t){var e,i=c(t.target).closest("."+this._core.settings.itemClass),s=this._videos[i.attr("data-video")],n=s.width||"100%",o=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(e=c('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),e.attr("width",n),"youtube"===s.type?e.attr("src","//www.youtube.com/embed/"+s.id+"?autoplay=1&rel=0&v="+s.id):"vimeo"===s.type?e.attr("src","//player.vimeo.com/video/"+s.id+"?autoplay=1"):"vzaar"===s.type&&e.attr("src","//view.vzaar.com/"+s.id+"/player?autoplay=true"),c(e).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},s.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&c(t).parent().hasClass("owl-video-frame")},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(r,t,e,i){var s=function(t){this.core=t,this.core.options=r.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&r.support.animation&&r.support.transition){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),n&&s.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(n))}},s.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(s,n,e,t){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":s.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":s.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":s.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":s.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":s.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":s.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=s.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=n.setTimeout(s.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):n.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=n.setTimeout(s.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,n.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,n.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o,t,e,i){"use strict";var s=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers)};s.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},s.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('<button role="button">').addClass(i.dotClass).append(o("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?o(i.dotsContainer):o("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$absolute)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=o.proxy(this[t],this)},s.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},s.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t<s;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},s.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,s=this._core.relative(this._core.current()),n=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!n&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(o.inArray(this.current(),this._pages)).addClass("active"))},s.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},s.prototype.current=function(){var i=this._core.relative(this._core.current());return o.grep(this._pages,o.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},s.prototype.getPosition=function(t){var e,i,s=this._core.settings;return"page"==s.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=s.slideBy:e-=s.slideBy),e},s.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},s.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},s.prototype.to=function(t,e,i){var s;!i&&this._pages.length?(s=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,e)):o.proxy(this._overrides.to,this._core)(t,e)},o.fn.owlCarousel.Constructor.Plugins.Navigation=s}(window.Zepto||window.jQuery,window,document),function(s,n,t,e){"use strict";var i=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":s.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&s(n).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":s.proxy(function(t){if(t.namespace){var e=s(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!e)return;this._hashes[e]=t.content}},this),"changed.owl.carousel":s.proxy(function(t){if(t.namespace&&"position"===t.property.name){var i=this._core.items(this._core.relative(this._core.current())),e=s.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!e||n.location.hash.slice(1)===e)return;n.location.hash=e}},this)},this._core.options=s.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),s(n).on("hashchange.owl.navigation",s.proxy(function(t){var e=n.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[e]&&i.index(this._hashes[e]);void 0!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var t,e;for(t in s(n).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(n,t,e,o){var r=n("<support>").get(0).style,a="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}};function s(t,i){var s=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return n.each((t+" "+a.join(e+" ")+e).split(" "),function(t,e){if(r[e]!==o)return s=!i||e,!1}),s}function h(t){return s(t,!0)}!!s("transition")&&(n.support.transition=new String(h("transition")),n.support.transition.end=i.transition.end[n.support.transition]),!!s("animation")&&(n.support.animation=new String(h("animation")),n.support.animation.end=i.animation.end[n.support.animation]),s("transform")&&(n.support.transform=new String(h("transform")),n.support.transform3d=!!s("perspective"))}(window.Zepto||window.jQuery,window,document);window.MagicZoom=function(){var e,c;(function(o){if(!o)throw"MagicJS not found";var n=o.$,s=window.URL||window.webkitURL||null;e.ImageLoader=new o.Class({img:null,ready:!1,options:{onprogress:o.$F,onload:o.$F,onabort:o.$F,onerror:o.$F,oncomplete:o.$F,onxhrerror:o.$F,xhr:!1,progressiveLoad:!0},size:null,_timer:null,loadedBytes:0,_handlers:{onprogress:function(t){t.target&&(200===t.target.status||304===t.target.status)&&t.lengthComputable&&(this.options.onprogress.jBind(null,(t.loaded-(this.options.progressiveLoad?this.loadedBytes:0))/t.total).jDelay(1),this.loadedBytes=t.loaded)},onload:function(t){t&&n(t).stop(),this._unbind(),this.ready||(this.ready=!0,this._cleanup(),this.options.xhr||this.options.onprogress.jBind(null,1).jDelay(1),this.options.onload.jBind(null,this).jDelay(1),this.options.oncomplete.jBind(null,this).jDelay(1))},onabort:function(t){t&&n(t).stop(),this._unbind(),this.ready=!1,this._cleanup(),this.options.onabort.jBind(null,this).jDelay(1),this.options.oncomplete.jBind(null,this).jDelay(1)},onerror:function(t){t&&n(t).stop(),this._unbind(),this.ready=!1,this._cleanup(),this.options.onerror.jBind(null,this).jDelay(1),this.options.oncomplete.jBind(null,this).jDelay(1)}},_bind:function(){n(["load","abort","error"]).jEach(function(t){this.img.jAddEvent(t,this._handlers["on"+t].jBindAsEvent(this).jDefer(1))},this)},_unbind:function(){if(this._timer){try{clearTimeout(this._timer)}catch(t){}this._timer=null}n(["load","abort","error"]).jEach(function(t){this.img.jRemoveEvent(t)},this)},_cleanup:function(){if(this.jGetSize(),this.img.jFetch("new")){var t=this.img.parentNode;this.img.jRemove().jDel("new").jSetCss({position:"static",top:"auto"}),t.kill()}},loadBlob:function(t){var e,i=new XMLHttpRequest;n(["abort","progress"]).jEach(function(e){i["on"+e]=n(function(t){this._handlers["on"+e].call(this,t)}).jBind(this)},this),i.onerror=n(function(){this.options.onxhrerror.jBind(null,this).jDelay(1),this.options.xhr=!1,this._bind(),this.img.src=t}).jBind(this),i.onload=n(function(){200===i.status||304===i.status?(e=i.response,this._bind(),!s||o.browser.trident||"ios"===o.browser.platform&&o.browser.version<537?this.img.src=t:this.img.setAttribute("src",s.createObjectURL(e))):this._handlers.onerror.call(this)}).jBind(this),i.open("GET",t),i.responseType="blob",i.send()},init:function(t,e){if(this.options=o.extend(this.options,e),this.img=n(t)||o.$new("img",{},{"max-width":"none","max-height":"none"}).jAppendTo(o.$new("div").jAddClass("magic-temporary-img").jSetCss({position:"absolute",top:-1e4,width:10,height:10,overflow:"hidden"}).jAppendTo(document.body)).jStore("new",!0),o.browser.features.xhr2&&this.options.xhr&&"string"==o.jTypeOf(t))this.loadBlob(t);else{var i=function(){this.isReady()?this._handlers.onload.call(this):this._handlers.onerror.call(this),i=null}.jBind(this);this._bind(),"string"==o.jTypeOf(t)?this.img.src=t:(o.browser.trident&&5==o.browser.version&&o.browser.ieMode<9&&(this.img.onreadystatechange=function(){/loaded|complete/.test(this.img.readyState)&&(this.img.onreadystatechange=null,i&&i())}.jBind(this)),this.img.src=t.getAttribute("src")),this.img&&this.img.complete&&i&&(this._timer=i.jDelay(100))}},destroy:function(){return this._unbind(),this._cleanup(),this.ready=!1,this},isReady:function(){var t=this.img;return t.naturalWidth?0<t.naturalWidth:t.readyState?"complete"==t.readyState:0<t.width},jGetSize:function(){return this.size||(this.size={width:this.img.naturalWidth||this.img.width,height:this.img.naturalHeight||this.img.height})}})})(e=c=function(){var e,t={version:"v3.3.4",UUID:0,storage:{},$uuid:function(t){return t.$J_UUID||(t.$J_UUID=++d.UUID)},getStorage:function(t){return d.storage[t]||(d.storage[t]={})},$F:function(){},$false:function(){return!1},$true:function(){return!0},stylesId:"mjs-"+Math.floor(Math.random()*(new Date).getTime()),defined:function(t){return null!=t},ifndef:function(t,e){return null!=t?t:e},exists:function(t){return!!t},jTypeOf:function(t){if(!d.defined(t))return!1;if(t.$J_TYPE)return t.$J_TYPE;if(t.nodeType){if(1==t.nodeType)return"element";if(3==t.nodeType)return"textnode"}if(t.length&&t.item)return"collection";if(t.length&&t.callee)return"arguments";if((t instanceof window.Object||t instanceof window.Function)&&t.constructor===d.Class)return"class";if(t instanceof window.Array)return"array";if(t instanceof window.Function)return"function";if(t instanceof window.String)return"string";if(d.browser.trident){if(d.defined(t.cancelBubble))return"event"}else if(t===window.event||t.constructor==window.Event||t.constructor==window.MouseEvent||t.constructor==window.UIEvent||t.constructor==window.KeyboardEvent||t.constructor==window.KeyEvent)return"event";return t instanceof window.Date?"date":t instanceof window.RegExp?"regexp":t===window?"window":t===document?"document":typeof t},extend:function(t,e){if(t instanceof window.Array||(t=[t]),!e)return t[0];for(var i=0,o=t.length;i<o;i++)if(d.defined(t))for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))try{t[i][n]=e[n]}catch(t){}return t[0]},implement:function(t,e){t instanceof window.Array||(t=[t]);for(var i=0,o=t.length;i<o;i++)if(d.defined(t[i])&&t[i].prototype)for(var n in e||{})t[i].prototype[n]||(t[i].prototype[n]=e[n]);return t[0]},nativize:function(t,e){if(!d.defined(t))return t;for(var i in e||{})t[i]||(t[i]=e[i]);return t},$try:function(){for(var t=0,e=arguments.length;t<e;t++)try{return arguments[t]()}catch(t){}return null},$A:function(t){if(!d.defined(t))return d.$([]);if(t.toArray)return d.$(t.toArray());if(t.item){for(var e=t.length||0,i=new Array(e);e--;)i[e]=t[e];return d.$(i)}return d.$(Array.prototype.slice.call(t))},now:function(){return(new Date).getTime()},detach:function(t){var e;switch(d.jTypeOf(t)){case"object":for(var i in e={},t)e[i]=d.detach(t[i]);break;case"array":e=[];for(var o=0,n=t.length;o<n;o++)e[o]=d.detach(t[o]);break;default:return t}return d.$(e)},$:function(t){var e=!0;if(!d.defined(t))return null;if(t.$J_EXT)return t;switch(d.jTypeOf(t)){case"array":return(t=d.nativize(t,d.extend(d.Array,{$J_EXT:d.$F}))).jEach=t.forEach,t.contains=d.Array.contains,t;case"string":var i=document.getElementById(t);return d.defined(i)?d.$(i):null;case"window":case"document":d.$uuid(t),t=d.extend(t,d.Doc);break;case"element":d.$uuid(t),t=d.extend(t,d.Element);break;case"event":t=d.extend(t,d.Event);break;case"textnode":case"function":case"array":case"date":default:e=!1}return e?d.extend(t,{$J_EXT:d.$F}):t},$new:function(t,e,i){return d.$(d.doc.createElement(t)).setProps(e||{}).jSetCss(i||{})},addCSS:function(t,e,i){var o,n,s=[],a=-1;if(i=i||d.stylesId,n=(o=d.$(i)||d.$new("style",{id:i,type:"text/css"}).jAppendTo(document.head||document.body,"top")).sheet||o.styleSheet,"string"!=d.jTypeOf(e)){for(var h in e)s.push(h+":"+e[h]);e=s.join(";")}if(n.insertRule)a=n.insertRule(t+" {"+e+"}",n.cssRules.length);else try{a=n.addRule(t,e,n.rules.length)}catch(t){}return a},removeCSS:function(t,e){var i,o;i=d.$(t),"element"===d.jTypeOf(i)&&((o=i.sheet||i.styleSheet).deleteRule?o.deleteRule(e):o.removeRule&&o.removeRule(e))},generateUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}).toUpperCase()},getAbsoluteURL:function(t){return(e=e||document.createElement("a")).setAttribute("href",t),("!!"+e.href).replace("!!","")},getHashCode:function(t){for(var e=0,i=t.length,o=0;o<i;++o)e=31*e+t.charCodeAt(o),e%=4294967296;return e}},d=t;t.$;window.magicJS||(window.magicJS=t,window.$mjs=t.$),d.Array={$J_TYPE:"array",indexOf:function(t,e){this.length;for(var i=this.length,o=e<0?Math.max(0,i+e):e||0;o<i;o++)if(this[o]===t)return o;return-1},contains:function(t,e){return-1!=this.indexOf(t,e)},forEach:function(t,e){for(var i=0,o=this.length;i<o;i++)i in this&&t.call(e,this[i],i,this)},filter:function(t,e){for(var i=[],o=0,n=this.length;o<n;o++)if(o in this){var s=this[o];t.call(e,this[o],o,this)&&i.push(s)}return i},map:function(t,e){for(var i=[],o=0,n=this.length;o<n;o++)o in this&&(i[o]=t.call(e,this[o],o,this));return i}},d.implement(String,{$J_TYPE:"string",jTrim:function(){return this.replace(/^\s+|\s+$/g,"")},eq:function(t,e){return e?this.toString()===t.toString():this.toLowerCase().toString()===t.toLowerCase().toString()},jCamelize:function(){return this.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()})},dashize:function(){return this.replace(/[A-Z]/g,function(t){return"-"+t.charAt(0).toLowerCase()})},jToInt:function(t){return parseInt(this,t||10)},toFloat:function(){return parseFloat(this)},jToBool:function(){return!this.replace(/true/i,"").jTrim()},has:function(t,e){return-1<((e=e||"")+this+e).indexOf(e+t+e)}}),t.implement(Function,{$J_TYPE:"function",jBind:function(){var t=d.$A(arguments),e=this,i=t.shift();return function(){return e.apply(i||null,t.concat(d.$A(arguments)))}},jBindAsEvent:function(){var e=d.$A(arguments),i=this,o=e.shift();return function(t){return i.apply(o||null,d.$([t||(d.browser.ieMode?window.event:null)]).concat(e))}},jDelay:function(){var t=d.$A(arguments),e=this,i=t.shift();return window.setTimeout(function(){return e.apply(e,t)},i||0)},jDefer:function(){var t=d.$A(arguments),e=this;return function(){return e.jDelay.apply(e,t)}},interval:function(){var t=d.$A(arguments),e=this,i=t.shift();return window.setInterval(function(){return e.apply(e,t)},i||0)}});var l={},i=navigator.userAgent.toLowerCase(),o=i.match(/(webkit|gecko|trident|presto)\/(\d+\.?\d*)/i),n=i.match(/(edge|opr)\/(\d+\.?\d*)/i)||i.match(/(crios|chrome|safari|firefox|opera|opr)\/(\d+\.?\d*)/i),s=i.match(/version\/(\d+\.?\d*)/i),a=document.documentElement.style;function h(t){var e=t.charAt(0).toUpperCase()+t.slice(1);return t in a||"Webkit"+e in a||"Moz"+e in a||"ms"+e in a||"O"+e in a}d.browser={features:{xpath:!!document.evaluate,air:!!window.runtime,query:!!document.querySelector,fullScreen:!!(document.fullscreenEnabled||document.msFullscreenEnabled||document.exitFullscreen||document.cancelFullScreen||document.webkitexitFullscreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||document.oCancelFullScreen||document.msCancelFullScreen),xhr2:!!window.ProgressEvent&&!!window.FormData&&window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,transition:h("transition"),transform:h("transform"),perspective:h("perspective"),animation:h("animation"),requestAnimationFrame:!1,multibackground:!1,cssFilters:!1,canvas:!1,svg:document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")},touchScreen:"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints,mobile:!!i.match(/(android|bb\d+|meego).+|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge|maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows(ce|phone)|xda|xiino/),engine:o&&o[1]?o[1].toLowerCase():window.opera?"presto":window.ActiveXObject?"trident":void 0!==document.getBoxObjectFor||null!==window.mozInnerScreenY?"gecko":null===window.WebKitPoint&&navigator.taintEnabled?"unknown":"webkit",version:o&&o[2]?parseFloat(o[2]):0,uaName:n&&n[1]?n[1].toLowerCase():"",uaVersion:n&&n[2]?parseFloat(n[2]):0,cssPrefix:"",cssDomPrefix:"",domPrefix:"",ieMode:0,platform:i.match(/ip(?:ad|od|hone)/)?"ios":(i.match(/(?:webos|android)/)||navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),backCompat:document.compatMode&&"backcompat"===document.compatMode.toLowerCase(),scrollbarsWidth:0,getDoc:function(){return document.compatMode&&"backcompat"===document.compatMode.toLowerCase()?document.body:document.documentElement},requestAnimationFrame:window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||void 0,cancelAnimationFrame:window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||void 0,ready:!1,onready:function(){if(!d.browser.ready){var t,e,i;d.browser.ready=!0,d.body=d.$(document.body),d.win=d.$(window);try{var o=d.$new("div").jSetCss({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).jAppendTo(document.body);d.browser.scrollbarsWidth=o.offsetWidth-o.clientWidth,o.jRemove()}catch(t){}try{(e=(t=d.$new("div")).style).cssText="background:url(https://),url(https://),red url(https://)",d.browser.features.multibackground=/(url\s*\(.*?){3}/.test(e.background),t=e=null}catch(t){}d.browser.cssTransformProp||(d.browser.cssTransformProp=d.normalizeCSS("transform").dashize());try{(t=d.$new("div")).style.cssText=d.normalizeCSS("filter").dashize()+":blur(2px);",d.browser.features.cssFilters=!!t.style.length&&(!d.browser.ieMode||9<d.browser.ieMode),t=null}catch(t){}d.browser.features.cssFilters||d.$(document.documentElement).jAddClass("no-cssfilters-magic");try{d.browser.features.canvas=!(!(i=d.$new("canvas")).getContext||!i.getContext("2d"))}catch(t){}void 0===window.TransitionEvent&&void 0!==window.WebKitTransitionEvent&&(l.transitionend="webkitTransitionEnd"),d.Doc.jCallEvent.call(d.$(document),"domready")}}},function(){var t,e,i,o=[];switch(d.browser.engine){case"trident":d.browser.version||(d.browser.version=window.XMLHttpRequest?3:2);break;case"gecko":d.browser.version=n&&n[2]?parseFloat(n[2]):0}if(d.browser[d.browser.engine]=!0,n&&"crios"===n[1]&&(d.browser.uaName="chrome"),window.chrome&&(d.browser.chrome=!0),n&&"opr"===n[1]&&(d.browser.uaName="opera",d.browser.opera=!0),"safari"===d.browser.uaName&&s&&s[1]&&(d.browser.uaVersion=parseFloat(s[1])),"android"===d.browser.platform&&d.browser.webkit&&s&&s[1]&&(d.browser.androidBrowser=!0),t={gecko:["-moz-","Moz","moz"],webkit:["-webkit-","Webkit","webkit"],trident:["-ms-","ms","ms"],presto:["-o-","O","o"]}[d.browser.engine]||["","",""],d.browser.cssPrefix=t[0],d.browser.cssDomPrefix=t[1],d.browser.domPrefix=t[2],d.browser.ieMode=d.browser.trident?document.documentMode?document.documentMode:function(){var t=0;if(d.browser.backCompat)return 5;switch(d.browser.version){case 2:t=6;break;case 3:t=7}return t}():void 0,!d.browser.mobile&&"mac"===d.browser.platform&&d.browser.touchScreen&&(d.browser.mobile=!0,d.browser.platform="ios"),o.push(d.browser.platform+"-magic"),d.browser.mobile&&o.push("mobile-magic"),d.browser.androidBrowser&&o.push("android-browser-magic"),d.browser.ieMode)for(d.browser.uaName="ie",d.browser.uaVersion=d.browser.ieMode,o.push("ie"+d.browser.ieMode+"-magic"),e=11;e>d.browser.ieMode;e--)o.push("lt-ie"+e+"-magic");d.browser.webkit&&d.browser.version<536&&(d.browser.features.fullScreen=!1),d.browser.requestAnimationFrame&&d.browser.requestAnimationFrame.call(window,function(){d.browser.features.requestAnimationFrame=!0}),d.browser.features.svg?o.push("svg-magic"):o.push("no-svg-magic"),i=(document.documentElement.className||"").match(/\S+/g)||[],document.documentElement.className=d.$(i).concat(o).join(" ");try{document.documentElement.setAttribute("data-magic-ua",d.browser.uaName),document.documentElement.setAttribute("data-magic-ua-ver",d.browser.uaVersion),document.documentElement.setAttribute("data-magic-engine",d.browser.engine),document.documentElement.setAttribute("data-magic-engine-ver",d.browser.version)}catch(t){}d.browser.ieMode&&d.browser.ieMode<9&&(document.createElement("figure"),document.createElement("figcaption")),window.navigator.pointerEnabled||d.$(["Down","Up","Move","Over","Out"]).jEach(function(t){l["pointer"+t.toLowerCase()]=window.navigator.msPointerEnabled?"MSPointer"+t:-1})}(),d.browser.fullScreen={capable:d.browser.features.fullScreen,enabled:function(){return!!(document.fullscreenElement||document[d.browser.domPrefix+"FullscreenElement"]||document.fullScreen||document.webkitIsFullScreen||document[d.browser.domPrefix+"FullScreen"])},request:function(t,e){e=e||{},this.capable?(d.$(document).jAddEvent(this.changeEventName,this.onchange=function(t){this.enabled()?e.onEnter&&e.onEnter():(d.$(document).jRemoveEvent(this.changeEventName,this.onchange),e.onExit&&e.onExit())}.jBindAsEvent(this)),d.$(document).jAddEvent(this.errorEventName,this.onerror=function(t){e.fallback&&e.fallback(),d.$(document).jRemoveEvent(this.errorEventName,this.onerror)}.jBindAsEvent(this)),(t.requestFullscreen||t[d.browser.domPrefix+"RequestFullscreen"]||t[d.browser.domPrefix+"RequestFullScreen"]||function(){}).call(t)):e.fallback&&e.fallback()},cancel:(document.exitFullscreen||document.cancelFullScreen||document[d.browser.domPrefix+"ExitFullscreen"]||document[d.browser.domPrefix+"CancelFullScreen"]||function(){}).jBind(document),changeEventName:document.msExitFullscreen?"MSFullscreenChange":(document.exitFullscreen?"":d.browser.domPrefix)+"fullscreenchange",errorEventName:document.msExitFullscreen?"MSFullscreenError":(document.exitFullscreen?"":d.browser.domPrefix)+"fullscreenerror",prefix:d.browser.domPrefix,activeElement:null};var r,m,c,u,p,g,v,f=/\S+/g,x=/^(border(Top|Bottom|Left|Right)Width)|((padding|margin)(Top|Bottom|Left|Right))$/,w={float:void 0===a.styleFloat?"cssFloat":"styleFloat"},z={fontWeight:!0,lineHeight:!0,opacity:!0,zIndex:!0,zoom:!0},b=window.getComputedStyle?function(t,e){var i=window.getComputedStyle(t,null);return i?i.getPropertyValue(e)||i[e]:null}:function(t,e){var i=t.currentStyle,o=null;return null==(o=i?i[e]:null)&&t.style&&t.style[e]&&(o=t.style[e]),o};function j(t){var e;return!((!d.browser.webkit||"filter"!=t)&&t in a)&&(e=d.browser.cssDomPrefix+t.charAt(0).toUpperCase()+t.slice(1))in a?e:t}function y(t,e){var i=e.x-t.x,o=e.y-t.y;return Math.sqrt(i*i+o*o)}function C(t,e){var i;return t.targetTouches&&t.changedTouches?(i=t.targetTouches?t.targetTouches:t.changedTouches,i=Array.prototype.slice.call(i)):(i=[],e&&e.forEach(function(t){i.push(t)})),i}function S(t,e,i){var o=!1;return!t.pointerId||"touch"!==t.pointerType||i&&!e.has(t.pointerId)||(e.set(t.pointerId,t),o=!0),o}function E(t){return t.pointerId&&"touch"===t.pointerType?t.pointerId:t.identifier}function B(t,e){var i,o,n=!1;for(i=0;i<t.length&&2!==e.length;i++)o=E(t[i]),e.contains(o)||(e.push(o),n=!0);return n}function T(t,e){var i,o,n,s,a=!1;if(e)for(n=t,s=g([]),n.forEach(function(t){s.push(E(t))}),o=s,i=0;i<e.length;i++)if(!o.contains(e[i])){e.splice(i,1),a=!0;break}return a}function A(t,e){var i,o=g([]);for(i=0;i<t.length&&(!e.contains(E(t[i]))||(o.push(t[i]),2!==o.length));i++);return o}return d.normalizeCSS=j,d.Element={jHasClass:function(t){return!(t||"").has(" ")&&(this.className||"").has(t," ")},jAddClass:function(t){for(var e=(this.className||"").match(f)||[],i=(t||"").match(f)||[],o=i.length,n=0;n<o;n++)d.$(e).contains(i[n])||e.push(i[n]);return this.className=e.join(" "),this},jRemoveClass:function(t){for(var e,i=(this.className||"").match(f)||[],o=(t||"").match(f)||[],n=o.length,s=0;s<n;s++)-1<(e=d.$(i).indexOf(o[s]))&&i.splice(e,1);return this.className=t?i.join(" "):"",this},jToggleClass:function(t){return this.jHasClass(t)?this.jRemoveClass(t):this.jAddClass(t)},jGetCss:function(t){var e=t.jCamelize(),i=null;if(t=w[e]||(w[e]=j(e)),"auto"===(i=b(this,t))&&(i=null),null!==i){if("opacity"==t)return d.defined(i)?parseFloat(i):1;x.test(t)&&(i=parseInt(i,10)?i:"0px")}return i},jSetCssProp:function(t,e){var i=t.jCamelize();try{if("opacity"==t)return this.jSetOpacity(e),this;t=w[i]||(w[i]=j(i)),this.style[t]=e+("number"!=d.jTypeOf(e)||z[i]?"":"px")}catch(t){}return this},jSetCss:function(t){for(var e in t)this.jSetCssProp(e,t[e]);return this},jGetStyles:function(){var e={};return d.$A(arguments).jEach(function(t){e[t]=this.jGetCss(t)},this),e},jSetOpacity:function(t,e){return e=e||!1,this.style.opacity=t,t=parseInt(100*parseFloat(t)),e&&(0===t?"hidden"!=this.style.visibility&&(this.style.visibility="hidden"):"visible"!=this.style.visibility&&(this.style.visibility="visible")),d.browser.ieMode&&d.browser.ieMode<9&&(isNaN(t)?(this.style.filter=this.style.filter.replace(/progid:DXImageTransform.Microsoft.Alpha\(Opacity=\d*\)/i,"").jTrim(),""===this.style.filter&&this.style.removeAttribute("filter")):~this.style.filter.indexOf("Alpha")?this.style.filter=this.style.filter.replace(/Opacity=\d*/i,"Opacity="+t):this.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+t+")"),this},setProps:function(t){for(var e in t)"class"===e?this.jAddClass(""+t[e]):this.setAttribute(e,""+t[e]);return this},jGetTransitionDuration:function(){var t=0,e=0;return t=this.jGetCss("transition-duration"),e=this.jGetCss("transition-delay"),(t=-1<t.indexOf("ms")?parseFloat(t):-1<t.indexOf("s")?1e3*parseFloat(t):0)+(e=-1<e.indexOf("ms")?parseFloat(e):-1<e.indexOf("s")?1e3*parseFloat(e):0)},hide:function(){return this.jSetCss({display:"none",visibility:"hidden"})},show:function(){return this.jSetCss({display:"",visibility:"visible"})},jGetSize:function(){return{width:this.offsetWidth,height:this.offsetHeight}},getInnerSize:function(t){var e=this.jGetSize();return e.width-=parseFloat(this.jGetCss("border-left-width")||0)+parseFloat(this.jGetCss("border-right-width")||0),e.height-=parseFloat(this.jGetCss("border-top-width")||0)+parseFloat(this.jGetCss("border-bottom-width")||0),t||(e.width-=parseFloat(this.jGetCss("padding-left")||0)+parseFloat(this.jGetCss("padding-right")||0),e.height-=parseFloat(this.jGetCss("padding-top")||0)+parseFloat(this.jGetCss("padding-bottom")||0)),e},jGetScroll:function(){return{top:this.scrollTop,left:this.scrollLeft}},jGetFullScroll:function(){for(var t=this,e={top:0,left:0};e.left+=t.scrollLeft||0,e.top+=t.scrollTop||0,t=t.parentNode;);return e},jGetPosition:function(){var t=this,e=0,i=0;if(d.defined(document.documentElement.getBoundingClientRect)){var o=this.getBoundingClientRect(),n=d.$(document).jGetScroll(),s=d.browser.getDoc();return{top:o.top+n.y-s.clientTop,left:o.left+n.x-s.clientLeft}}for(;e+=t.offsetLeft||0,i+=t.offsetTop||0,(t=t.offsetParent)&&!/^(?:body|html)$/i.test(t.tagName););return{top:i,left:e}},jGetRect:function(){var t=this.jGetPosition(),e=this.jGetSize();return{top:t.top,bottom:t.top+e.height,left:t.left,right:t.left+e.width}},changeContent:function(e){try{this.innerHTML=e}catch(t){this.innerText=e}return this},jRemove:function(){return this.parentNode?this.parentNode.removeChild(this):this},kill:function(){return d.$A(this.childNodes).jEach(function(t){3!=t.nodeType&&8!=t.nodeType&&d.$(t).kill()}),this.jRemove(),this.jClearEvents(),this.$J_UUID&&(d.storage[this.$J_UUID]=null,delete d.storage[this.$J_UUID]),null},append:function(t,e){e=e||"bottom";var i=this.firstChild;return"top"==e&&i?this.insertBefore(t,i):this.appendChild(t),this},jAppendTo:function(t,e){d.$(t).append(this,e);return this},enclose:function(t){return this.append(t.parentNode.replaceChild(this,t)),this},hasChild:function(t){return"element"===d.jTypeOf("string"==d.jTypeOf(t)?t=document.getElementById(t):t)&&(this!=t&&(this.contains&&!d.browser.webkit419?this.contains(t):this.compareDocumentPosition?!!(16&this.compareDocumentPosition(t)):d.$A(this.byTag(t.tagName)).contains(t)))}},d.Element.jGetStyle=d.Element.jGetCss,d.Element.jSetStyle=d.Element.jSetCss,window.Element||(window.Element=d.$F,d.browser.engine.webkit&&window.document.createElement("iframe"),window.Element.prototype=d.browser.engine.webkit?window["[[DOMElement.prototype]]"]:{}),d.implement(window.Element,{$J_TYPE:"element"}),d.Doc={jGetSize:function(){return d.browser.touchScreen||d.browser.presto925||d.browser.webkit419?{width:window.innerWidth,height:window.innerHeight}:{width:d.browser.getDoc().clientWidth,height:d.browser.getDoc().clientHeight}},jGetScroll:function(){return{x:window.pageXOffset||d.browser.getDoc().scrollLeft,y:window.pageYOffset||d.browser.getDoc().scrollTop}},jGetFullSize:function(){var t=this.jGetSize();return{width:Math.max(d.browser.getDoc().scrollWidth,t.width),height:Math.max(d.browser.getDoc().scrollHeight,t.height)}}},d.extend(document,{$J_TYPE:"document"}),d.extend(window,{$J_TYPE:"window"}),d.extend([d.Element,d.Doc],{jFetch:function(t,e){var i=d.getStorage(this.$J_UUID),o=i[t];return void 0!==e&&void 0===o&&(o=i[t]=e),d.defined(o)?o:null},jStore:function(t,e){return d.getStorage(this.$J_UUID)[t]=e,this},jDel:function(t){return delete d.getStorage(this.$J_UUID)[t],this}}),window.HTMLElement&&window.HTMLElement.prototype&&window.HTMLElement.prototype.getElementsByClassName||d.extend([d.Element,d.Doc],{getElementsByClassName:function(e){return d.$A(this.getElementsByTagName("*")).filter(function(t){try{return 1==t.nodeType&&t.className.has(e," ")}catch(t){}})}}),d.extend([d.Element,d.Doc],{byClass:function(){return this.getElementsByClassName(arguments[0])},byTag:function(){return this.getElementsByTagName(arguments[0])}}),d.browser.fullScreen.capable&&!document.requestFullScreen&&(d.Element.requestFullScreen=function(){d.browser.fullScreen.request(this)}),d.Event={$J_TYPE:"event",isQueueStopped:d.$false,stop:function(){return this.stopDistribution().stopDefaults()},stopDistribution:function(){return this.stopPropagation?this.stopPropagation():this.cancelBubble=!0,this},stopDefaults:function(){return this.preventDefault?this.preventDefault():this.returnValue=!1,this},stopQueue:function(){return this.isQueueStopped=d.$true,this},getClientXY:function(){var t=/touch/i.test(this.type)?this.changedTouches[0]:this;return d.defined(t)?{x:t.clientX,y:t.clientY}:{x:0,y:0}},jGetPageXY:function(){var t=/touch/i.test(this.type)?this.changedTouches[0]:this;return d.defined(t)?{x:t.pageX||t.clientX+d.browser.getDoc().scrollLeft,y:t.pageY||t.clientY+d.browser.getDoc().scrollTop}:{x:0,y:0}},getTarget:function(){for(var t=this.target||this.srcElement;t&&3===t.nodeType;)t=t.parentNode;return t},getRelated:function(){var e=null;switch(this.type){case"mouseover":case"pointerover":case"MSPointerOver":e=this.relatedTarget||this.fromElement;break;case"mouseout":case"pointerout":case"MSPointerOut":e=this.relatedTarget||this.toElement;break;default:return e}try{for(;e&&3===e.nodeType;)e=e.parentNode}catch(t){e=null}return e},getButton:function(){return this.which||void 0===this.button?this.which:1&this.button?1:2&this.button?3:4&this.button?2:0},isTouchEvent:function(){return this.pointerType&&("touch"===this.pointerType||this.pointerType===this.MSPOINTER_TYPE_TOUCH)||/touch/i.test(this.type)},isPrimaryTouch:function(){return this.pointerType?("touch"===this.pointerType||this.MSPOINTER_TYPE_TOUCH===this.pointerType)&&this.isPrimary:this instanceof window.TouchEvent&&(1===this.changedTouches.length&&(!this.targetTouches.length||1===this.targetTouches.length&&this.targetTouches[0].identifier===this.changedTouches[0].identifier))},getPrimaryTouch:function(){return this.pointerType?!this.isPrimary||"touch"!==this.pointerType&&this.MSPOINTER_TYPE_TOUCH!==this.pointerType?null:this:this instanceof window.TouchEvent?this.changedTouches[0]:null},getPrimaryTouchId:function(){return this.pointerType?!this.isPrimary||"touch"!==this.pointerType&&this.MSPOINTER_TYPE_TOUCH!==this.pointerType?null:this.pointerId:this instanceof window.TouchEvent?this.changedTouches[0].identifier:null}},d._event_add_="addEventListener",d._event_del_="removeEventListener",d._event_prefix_="",document.addEventListener||(d._event_add_="attachEvent",d._event_del_="detachEvent",d._event_prefix_="on"),d.Event.Custom={type:"",x:null,y:null,timeStamp:null,button:null,target:null,relatedTarget:null,$J_TYPE:"event.custom",isQueueStopped:d.$false,events:d.$([]),pushToEvents:function(t){var e=t;this.events.push(e)},stop:function(){return this.stopDistribution().stopDefaults()},stopDistribution:function(){return this.events.jEach(function(t){try{t.stopDistribution()}catch(t){}}),this},stopDefaults:function(){return this.events.jEach(function(t){try{t.stopDefaults()}catch(t){}}),this},stopQueue:function(){return this.isQueueStopped=d.$true,this},getClientXY:function(){return{x:this.clientX,y:this.clientY}},jGetPageXY:function(){return{x:this.x,y:this.y}},getTarget:function(){return this.target},getRelated:function(){return this.relatedTarget},getButton:function(){return this.button},getOriginalTarget:function(){return 0<this.events.length?this.events[0].getTarget():void 0},isTouchEvent:function(){return this.pointerType&&("touch"===this.pointerType||this.pointerType===this.MSPOINTER_TYPE_TOUCH)||/touch/i.test(this.type)},isPrimaryTouch:function(){return this.pointerType?("touch"===this.pointerType||this.MSPOINTER_TYPE_TOUCH===this.pointerType)&&this.isPrimary:this instanceof window.TouchEvent&&(1===this.changedTouches.length&&(!this.targetTouches.length||this.targetTouches[0].identifier===this.changedTouches[0].identifier))},getPrimaryTouch:function(){return this.pointerType?!this.isPrimary||"touch"!==this.pointerType&&this.MSPOINTER_TYPE_TOUCH!==this.pointerType?null:this:this instanceof window.TouchEvent?this.changedTouches[0]:null},getPrimaryTouchId:function(){return this.pointerType?!this.isPrimary||"touch"!==this.pointerType&&this.MSPOINTER_TYPE_TOUCH!==this.pointerType?null:this.pointerId:this instanceof window.TouchEvent?this.changedTouches[0].identifier:null}},d.extend([d.Element,d.Doc],{jAddEvent:function(e,t,i,o){var n,s,a,h,r;return"string"===d.jTypeOf(e)&&1<(r=e.split(" ")).length&&(e=r),"array"===d.jTypeOf(e)?d.$(e).jEach(this.jAddEvent.jBindAsEvent(this,t,i,o)):(e=l[e]||e)&&t&&"string"===d.jTypeOf(e)&&"function"===d.jTypeOf(t)&&("domready"===e&&d.browser.ready?t.call(this):(i=parseInt(i||50,10),t.$J_EUID||(t.$J_EUID=Math.floor(Math.random()*d.now())),(s=(n=d.Doc.jFetch.call(this,"_EVENTS_",{}))[e])||(n[e]=s=d.$([]),a=this,d.Event.Custom[e]?d.Event.Custom[e].handler.add.call(this,o):(s.handle=function(t){t=d.extend(t||window.e,{$J_TYPE:"event"}),d.Doc.jCallEvent.call(a,e,d.$(t))},this[d._event_add_](d._event_prefix_+e,s.handle,!1))),h={type:e,fn:t,priority:i,euid:t.$J_EUID},s.push(h),s.sort(function(t,e){return t.priority-e.priority}))),this},jRemoveEvent:function(t){var e,i,o,n,s,a=d.Doc.jFetch.call(this,"_EVENTS_",{});if(n=1<arguments.length?arguments[1]:-100,"string"===d.jTypeOf(t)&&1<(s=t.split(" ")).length&&(t=s),"array"===d.jTypeOf(t))return d.$(t).jEach(this.jRemoveEvent.jBindAsEvent(this,n)),this;if(!(t=l[t]||t)||"string"!==d.jTypeOf(t)||!a||!a[t])return this;for(e=a[t]||[],o=0;o<e.length;o++)i=e[o],(-100===n||n&&n.$J_EUID===i.euid)&&e.splice(o--,1);return 0===e.length&&(d.Event.Custom[t]?d.Event.Custom[t].handler.jRemove.call(this):this[d._event_del_](d._event_prefix_+t,e.handle,!1),delete a[t]),this},jCallEvent:function(t,e){var i,o,n=d.Doc.jFetch.call(this,"_EVENTS_",{});if(!(t=l[t]||t)||"string"!==d.jTypeOf(t)||!n||!n[t])return this;try{e=d.extend(e||{},{type:t})}catch(t){}for(void 0===e.timeStamp&&(e.timeStamp=d.now()),i=n[t]||[],o=0;o<i.length&&(!e.isQueueStopped||!e.isQueueStopped());o++)i[o].fn.call(this,e)},jRaiseEvent:function(t,e){var i,o="domready"!==t,n=this;return t=l[t]||t,o?(n===document&&document.createEvent&&!n.dispatchEvent&&(n=document.documentElement),document.createEvent?(i=document.createEvent(t)).initEvent(e,!0,!0):(i=document.createEventObject()).eventType=t,document.createEvent?n.dispatchEvent(i):n.fireEvent("on"+e,i),i):(d.Doc.jCallEvent.call(this,t),this)},jClearEvents:function(){var t=d.Doc.jFetch.call(this,"_EVENTS_");if(!t)return this;for(var e in t)d.Doc.jRemoveEvent.call(this,e);return d.Doc.jDel.call(this,"_EVENTS_"),this}}),function(t){if("complete"===document.readyState)return t.browser.onready.jDelay(1);t.browser.webkit&&t.browser.version<420?function(){t.$(["loaded","complete"]).contains(document.readyState)?t.browser.onready():arguments.callee.jDelay(50)}():t.browser.trident&&t.browser.ieMode<9&&window===top?function(){t.$try(function(){return t.browser.getDoc().doScroll("left"),!0})?t.browser.onready():arguments.callee.jDelay(50)}():(t.Doc.jAddEvent.call(t.$(document),"DOMContentLoaded",t.browser.onready),t.Doc.jAddEvent.call(t.$(window),"load",t.browser.onready))}(t),d.Class=function(){var t=null,e=d.$A(arguments);"class"==d.jTypeOf(e[0])&&(t=e.shift());function i(){for(var t in this)this[t]=d.detach(this[t]);if(this.constructor.$parent){this.$parent={};var e=this.constructor.$parent;for(var i in e){var o=e[i];switch(d.jTypeOf(o)){case"function":this.$parent[i]=d.Class.wrap(this,o);break;case"object":case"array":this.$parent[i]=d.detach(o)}}}var n=this.init?this.init.apply(this,arguments):this;return delete this.caller,n}if(i.prototype.init||(i.prototype.init=d.$F),t){function o(){}for(var n in o.prototype=t.prototype,i.prototype=new o,i.$parent={},t.prototype)i.$parent[n]=t.prototype[n]}else i.$parent=null;return i.constructor=d.Class,i.prototype.constructor=i,d.extend(i.prototype,e[0]),d.extend(i,{$J_TYPE:"class"}),i},t.Class.wrap=function(t,e){return function(){this.caller;return e.apply(t,arguments)}},function(n){n.$;n.Event.Custom.btnclick=new n.Class(n.extend(n.Event.Custom,{type:"btnclick",init:function(t,e){var i=e.jGetPageXY();this.x=i.x,this.y=i.y,this.clientX=e.clientX,this.clientY=e.clientY,this.timeStamp=e.timeStamp,this.button=e.getButton(),this.target=t,this.pushToEvents(e)}})),n.Event.Custom.btnclick.handler={options:{threshold:300,button:1},add:function(t){this.jStore("event:btnclick:options",n.extend(n.detach(n.Event.Custom.btnclick.handler.options),t||{})),this.jAddEvent("mousedown",n.Event.Custom.btnclick.handler.handle,1),this.jAddEvent("mouseup",n.Event.Custom.btnclick.handler.handle,1),this.jAddEvent("click",n.Event.Custom.btnclick.handler.onclick,1),n.browser.trident&&n.browser.ieMode<9&&this.jAddEvent("dblclick",n.Event.Custom.btnclick.handler.handle,1)},jRemove:function(){this.jRemoveEvent("mousedown",n.Event.Custom.btnclick.handler.handle),this.jRemoveEvent("mouseup",n.Event.Custom.btnclick.handler.handle),this.jRemoveEvent("click",n.Event.Custom.btnclick.handler.onclick),n.browser.trident&&n.browser.ieMode<9&&this.jRemoveEvent("dblclick",n.Event.Custom.btnclick.handler.handle)},onclick:function(t){t.stopDefaults()},handle:function(t){var e,i,o;if(i=this.jFetch("event:btnclick:options"),"dblclick"==t.type||t.getButton()==i.button)if(this.jFetch("event:btnclick:ignore"))this.jDel("event:btnclick:ignore");else if("mousedown"==t.type)e=new n.Event.Custom.btnclick(this,t),this.jStore("event:btnclick:btnclickEvent",e);else if("mouseup"==t.type){if(!(e=this.jFetch("event:btnclick:btnclickEvent")))return;o=t.jGetPageXY(),this.jDel("event:btnclick:btnclickEvent"),e.pushToEvents(t),t.timeStamp-e.timeStamp<=i.threshold&&Math.sqrt(Math.pow(o.x-e.x,2)+Math.pow(o.y-e.y,2))<=5&&this.jCallEvent("btnclick",e),document.jCallEvent("mouseup",t)}else"dblclick"==t.type&&(e=new n.Event.Custom.btnclick(this,t),this.jCallEvent("btnclick",e))}}}(t),m=(r=t).$,r.Event.Custom.mousedrag=new r.Class(r.extend(r.Event.Custom,{type:"mousedrag",state:"dragstart",dragged:!1,init:function(t,e,i){var o=e.jGetPageXY();this.x=o.x,this.y=o.y,this.clientX=e.clientX,this.clientY=e.clientY,this.timeStamp=e.timeStamp,this.button=e.getButton(),this.target=t,this.pushToEvents(e),this.state=i}})),r.Event.Custom.mousedrag.handler={add:function(){var t=r.Event.Custom.mousedrag.handler.handleMouseMove.jBindAsEvent(this),e=r.Event.Custom.mousedrag.handler.handleMouseUp.jBindAsEvent(this);this.jAddEvent("mousedown",r.Event.Custom.mousedrag.handler.handleMouseDown,1),this.jAddEvent("mouseup",r.Event.Custom.mousedrag.handler.handleMouseUp,1),document.jAddEvent("mousemove",t,1),document.jAddEvent("mouseup",e,1),this.jStore("event:mousedrag:listeners:document:move",t),this.jStore("event:mousedrag:listeners:document:end",e)},jRemove:function(){this.jRemoveEvent("mousedown",r.Event.Custom.mousedrag.handler.handleMouseDown),this.jRemoveEvent("mouseup",r.Event.Custom.mousedrag.handler.handleMouseUp),m(document).jRemoveEvent("mousemove",this.jFetch("event:mousedrag:listeners:document:move")||r.$F),m(document).jRemoveEvent("mouseup",this.jFetch("event:mousedrag:listeners:document:end")||r.$F),this.jDel("event:mousedrag:listeners:document:move"),this.jDel("event:mousedrag:listeners:document:end")},handleMouseDown:function(t){var e;1===t.getButton()&&(e=new r.Event.Custom.mousedrag(this,t,"dragstart"),this.jStore("event:mousedrag:dragstart",e))},handleMouseUp:function(t){var e;(e=this.jFetch("event:mousedrag:dragstart"))&&(e.dragged&&t.stopDefaults(),e=new r.Event.Custom.mousedrag(this,t,"dragend"),this.jDel("event:mousedrag:dragstart"),this.jCallEvent("mousedrag",e))},handleMouseMove:function(t){var e;(e=this.jFetch("event:mousedrag:dragstart"))&&(t.stopDefaults(),e.dragged||(e.dragged=!0,this.jCallEvent("mousedrag",e)),e=new r.Event.Custom.mousedrag(this,t,"dragmove"),this.jCallEvent("mousedrag",e))}},function(o){o.$;o.Event.Custom.dblbtnclick=new o.Class(o.extend(o.Event.Custom,{type:"dblbtnclick",timedout:!1,tm:null,init:function(t,e){var i=e.jGetPageXY();this.x=i.x,this.y=i.y,this.clientX=e.clientX,this.clientY=e.clientY,this.timeStamp=e.timeStamp,this.button=e.getButton(),this.target=t,this.pushToEvents(e)}})),o.Event.Custom.dblbtnclick.handler={options:{threshold:200},add:function(t){this.jStore("event:dblbtnclick:options",o.extend(o.detach(o.Event.Custom.dblbtnclick.handler.options),t||{})),this.jAddEvent("btnclick",o.Event.Custom.dblbtnclick.handler.handle,1)},jRemove:function(){this.jRemoveEvent("btnclick",o.Event.Custom.dblbtnclick.handler.handle)},handle:function(t){var e,i;e=this.jFetch("event:dblbtnclick:event"),i=this.jFetch("event:dblbtnclick:options"),e?(clearTimeout(e.tm),this.jDel("event:dblbtnclick:event"),e.timedout||(e.pushToEvents(t),t.stopQueue().stop(),this.jCallEvent("dblbtnclick",e))):((e=new o.Event.Custom.dblbtnclick(this,t)).tm=setTimeout(function(){e.timedout=!0,t.isQueueStopped=o.$false,this.jCallEvent("btnclick",t),this.jDel("event:dblbtnclick:event")}.jBind(this),i.threshold+10),this.jStore("event:dblbtnclick:event",e),t.stopQueue())}}}(t),function(i){i.$;i.Event.Custom.tap=new i.Class(i.extend(i.Event.Custom,{type:"tap",id:null,init:function(t,e){var i=e.getPrimaryTouch();this.id=i.pointerId||i.identifier,this.x=i.pageX,this.y=i.pageY,this.pageX=i.pageX,this.pageY=i.pageY,this.clientX=i.clientX,this.clientY=i.clientY,this.timeStamp=e.timeStamp,this.button=0,this.target=t,this.pushToEvents(e)}})),i.Event.Custom.tap.handler={add:function(t){this.jAddEvent(["touchstart","pointerdown"],i.Event.Custom.tap.handler.onTouchStart,1),this.jAddEvent(["touchend","pointerup"],i.Event.Custom.tap.handler.onTouchEnd,1),this.jAddEvent("click",i.Event.Custom.tap.handler.onClick,1)},jRemove:function(){this.jRemoveEvent(["touchstart","pointerdown"],i.Event.Custom.tap.handler.onTouchStart),this.jRemoveEvent(["touchend","pointerup"],i.Event.Custom.tap.handler.onTouchEnd),this.jRemoveEvent("click",i.Event.Custom.tap.handler.onClick)},onClick:function(t){t.stopDefaults()},onTouchStart:function(t){t.isPrimaryTouch()?(this.jStore("event:tap:event",new i.Event.Custom.tap(this,t)),this.jStore("event:btnclick:ignore",!0)):this.jDel("event:tap:event")},onTouchEnd:function(t){i.now();var e=this.jFetch("event:tap:event");this.jFetch("event:tap:options");e&&t.isPrimaryTouch()&&(this.jDel("event:tap:event"),e.id===t.getPrimaryTouchId()&&t.timeStamp-e.timeStamp<=200&&Math.sqrt(Math.pow(t.getPrimaryTouch().pageX-e.x,2)+Math.pow(t.getPrimaryTouch().pageY-e.y,2))<=10&&(this.jDel("event:btnclick:btnclickEvent"),t.stop(),e.pushToEvents(t),this.jCallEvent("tap",e)))}}}(t),d.Event.Custom.dbltap=new d.Class(d.extend(d.Event.Custom,{type:"dbltap",timedout:!1,tm:null,init:function(t,e){this.x=e.x,this.y=e.y,this.clientX=e.clientX,this.clientY=e.clientY,this.timeStamp=e.timeStamp,this.button=0,this.target=t,this.pushToEvents(e)}})),d.Event.Custom.dbltap.handler={options:{threshold:300},add:function(t){this.jStore("event:dbltap:options",d.extend(d.detach(d.Event.Custom.dbltap.handler.options),t||{})),this.jAddEvent("tap",d.Event.Custom.dbltap.handler.handle,1)},jRemove:function(){this.jRemoveEvent("tap",d.Event.Custom.dbltap.handler.handle)},handle:function(t){var e,i;e=this.jFetch("event:dbltap:event"),i=this.jFetch("event:dbltap:options"),e?(clearTimeout(e.tm),this.jDel("event:dbltap:event"),e.timedout||(e.pushToEvents(t),t.stopQueue().stop(),this.jCallEvent("dbltap",e))):((e=new d.Event.Custom.dbltap(this,t)).tm=setTimeout(function(){e.timedout=!0,t.isQueueStopped=d.$false,this.jCallEvent("tap",t)}.jBind(this),i.threshold+10),this.jStore("event:dbltap:event",e),t.stopQueue())}},u=(c=t).$,c.Event.Custom.touchdrag=new c.Class(c.extend(c.Event.Custom,{type:"touchdrag",state:"dragstart",id:null,dragged:!1,init:function(t,e,i){var o=e.getPrimaryTouch();this.id=o.pointerId||o.identifier,this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY,this.x=o.pageX,this.y=o.pageY,this.timeStamp=e.timeStamp,this.button=0,this.target=t,this.pushToEvents(e),this.state=i}})),c.Event.Custom.touchdrag.handler={add:function(){var t=c.Event.Custom.touchdrag.handler.onTouchMove.jBind(this),e=c.Event.Custom.touchdrag.handler.onTouchEnd.jBind(this);this.jAddEvent(["touchstart","pointerdown"],c.Event.Custom.touchdrag.handler.onTouchStart,1),this.jAddEvent(["touchend","pointerup"],c.Event.Custom.touchdrag.handler.onTouchEnd,1),this.jAddEvent(["touchmove","pointermove"],c.Event.Custom.touchdrag.handler.onTouchMove,1),this.jStore("event:touchdrag:listeners:document:move",t),this.jStore("event:touchdrag:listeners:document:end",e),u(document).jAddEvent("pointermove",t,1),u(document).jAddEvent("pointerup",e,1)},jRemove:function(){this.jRemoveEvent(["touchstart","pointerdown"],c.Event.Custom.touchdrag.handler.onTouchStart),this.jRemoveEvent(["touchend","pointerup"],c.Event.Custom.touchdrag.handler.onTouchEnd),this.jRemoveEvent(["touchmove","pointermove"],c.Event.Custom.touchdrag.handler.onTouchMove),u(document).jRemoveEvent("pointermove",this.jFetch("event:touchdrag:listeners:document:move")||c.$F,1),u(document).jRemoveEvent("pointerup",this.jFetch("event:touchdrag:listeners:document:end")||c.$F,1),this.jDel("event:touchdrag:listeners:document:move"),this.jDel("event:touchdrag:listeners:document:end")},onTouchStart:function(t){var e;t.isPrimaryTouch()&&(e=new c.Event.Custom.touchdrag(this,t,"dragstart"),this.jStore("event:touchdrag:dragstart",e))},onTouchEnd:function(t){var e;(e=this.jFetch("event:touchdrag:dragstart"))&&e.dragged&&e.id===t.getPrimaryTouchId()&&(e=new c.Event.Custom.touchdrag(this,t,"dragend"),this.jDel("event:touchdrag:dragstart"),this.jCallEvent("touchdrag",e))},onTouchMove:function(t){var e;(e=this.jFetch("event:touchdrag:dragstart"))&&t.isPrimaryTouch()&&(e.id===t.getPrimaryTouchId()?(!e.dragged&&10<Math.sqrt(Math.pow(t.getPrimaryTouch().pageX-e.x,2)+Math.pow(t.getPrimaryTouch().pageY-e.y,2))&&(e.dragged=!0,this.jCallEvent("touchdrag",e)),e.dragged&&(e=new c.Event.Custom.touchdrag(this,t,"dragmove"),this.jCallEvent("touchdrag",e))):this.jDel("event:touchdrag:dragstart"))}},g=(p=t).$,v=null,p.Event.Custom.pinch=new p.Class(p.extend(p.Event.Custom,{type:"pinch",state:"pinchstart",init:function(t,e,i,o){this.target=t,this.state=i,this.x=o.x,this.y=o.y,this.timeStamp=e.timeStamp,this.scale=o.scale,this.space=o.space,this.zoom=o.zoom,this.state=i,this.centerPoint=o.centerPoint,this.points=o.points,this.pushToEvents(e)}})),p.Event.Custom.pinch.handler={variables:{x:0,y:0,space:0,scale:1,zoom:0,startSpace:0,startScale:1,started:!1,dragged:!1,points:[],centerPoint:{x:0,y:0}},add:function(t){var e;v||((e=g(window).jGetSize()).width=Math.min(e.width,e.height),e.height=e.width,v=Math.pow(y({x:0,y:0},{x:e.width,y:e.height}),2));var i=p.Event.Custom.pinch.handler.onTouchMove.jBind(this),o=p.Event.Custom.pinch.handler.onTouchEnd.jBind(this);this.jAddEvent(["click","tap"],p.Event.Custom.pinch.handler.onClick,1),this.jAddEvent(["touchstart","pointerdown"],p.Event.Custom.pinch.handler.onTouchStart,1),this.jAddEvent(["touchend","pointerup"],p.Event.Custom.pinch.handler.onTouchEnd,1),this.jAddEvent(["touchmove","pointermove"],p.Event.Custom.pinch.handler.onTouchMove,1),this.jStore("event:pinch:listeners:touchmove",i),this.jStore("event:pinch:listeners:touchend",o),p.doc.jAddEvent("pointermove",i,1),p.doc.jAddEvent("pointerup",o,1)},jRemove:function(){this.jRemoveEvent(["click","tap"],p.Event.Custom.pinch.handler.onClick),this.jRemoveEvent(["touchstart","pointerdown"],p.Event.Custom.pinch.handler.onTouchStart),this.jRemoveEvent(["touchend","pointerup"],p.Event.Custom.pinch.handler.onTouchEnd),this.jRemoveEvent(["touchmove","pointermove"],p.Event.Custom.pinch.handler.onTouchMove),p.doc.jRemoveEvent("pointermove",this.jFetch("event:pinch:listeners:touchmove")),p.doc.jRemoveEvent("pointerup",this.jFetch("event:pinch:listeners:touchend")),this.jDel("event:pinch:listeners:touchmove"),this.jDel("event:pinch:listeners:touchend"),this.jDel("event:pinch:pinchstart"),this.jDel("event:pinch:variables"),this.jDel("event:pinch:activepoints");var t=this.jFetch("event:pinch:cache");t&&t.clear(),this.jDel("event:pinch:cache")},onClick:function(t){t.stop()},setVariables:function(t,e){var i,o,n,s,a,h,r,d,l=e.space;1<t.length?(e.space=(i=t,o=e,s=Array.prototype.slice.call(i),a=Math.abs(s[1].pageX-s[0].pageX),h=Math.abs(s[1].pageY-s[0].pageY),r=Math.min(s[1].pageX,s[0].pageX)+a/2,d=Math.min(s[1].pageY,s[0].pageY)+h/2,o.points=[s[0],s[1]],n=Math.pow(y({x:s[0].pageX,y:s[0].pageY},{x:s[1].pageX,y:s[1].pageY}),2),o.centerPoint={x:r,y:d},o.x=o.centerPoint.x,o.y=o.centerPoint.y,n),e.startSpace||(e.startSpace=e.space),l>e.space?e.zoom=-1:l<e.space?e.zoom=1:e.zoom=0,e.scale=e.space/v):e.points=Array.prototype.slice.call(t,0,2)},onTouchMove:function(t){var e,i=this.jFetch("event:pinch:cache"),o=this.jFetch("event:pinch:variables")||p.extend({},p.Event.Custom.pinch.handler.variables),n=this.jFetch("event:pinch:activepoints");if(o.started){if(t.pointerId&&!S(t,i,!0))return;t.stop(),p.Event.Custom.pinch.handler.setVariables(A(C(t,i),n),o),e=new p.Event.Custom.pinch(this,t,"pinchmove",o),this.jCallEvent("pinch",e)}},onTouchStart:function(t){var e,i,o,n=this.jFetch("event:pinch:cache"),s=this.jFetch("event:pinch:activepoints");"mouse"!==t.pointerType&&(s||(s=g([]),this.jStore("event:pinch:activepoints",s)),s.length||g(t.target).jAddEvent(["touchend","pointerup"],this.jFetch("event:pinch:listeners:touchend"),1),n||(n=new Map,this.jStore("event:pinch:cache",n)),S(t,n),B(o=C(t,n),s),2===o.length&&(e=this.jFetch("event:pinch:pinchstart"),i=this.jFetch("event:pinch:variables")||p.extend({},p.Event.Custom.pinch.handler.variables),p.Event.Custom.pinch.handler.setVariables(A(o,s),i),e||(e=new p.Event.Custom.pinch(this,t,"pinchstart",i),this.jStore("event:pinch:pinchstart",e),this.jStore("event:pinch:variables",i),v=i.space,this.jCallEvent("pinch",e),i.started=!0)))},onTouchEnd:function(t){var e,i,o,n,s,a,h,r,d=this.jFetch("event:pinch:cache");"mouse"!==t.pointerType&&(!t.pointerId||d&&d.has(t.pointerId))&&(i=this.jFetch("event:pinch:pinchstart"),o=this.jFetch("event:pinch:variables"),s=this.jFetch("event:pinch:activepoints"),e=C(t,d),r=d,(h=t).pointerId&&"touch"===h.pointerType&&r&&r.has(h.pointerId)&&r.delete(h.pointerId),a=T(e,s),i&&o&&o.started&&a&&s&&(a&&B(e,s),n="pinchend",1<e.length?n="pinchresize":(t.target.jRemoveEvent(["touchend","pointerup"],this.jFetch("event:pinch:listeners:touchend")),d&&d.clear(),this.jDel("event:pinch:pinchstart"),this.jDel("event:pinch:variables"),this.jDel("event:pinch:cache"),this.jDel("event:pinch:activepoints")),p.Event.Custom.pinch.handler.setVariables(A(e,s),o),i=new p.Event.Custom.pinch(this,t,n,o),this.jCallEvent("pinch",i)))}},function(d){var l,m;d.$;function c(){l=null}d.Event.Custom.mousescroll=new d.Class(d.extend(d.Event.Custom,{type:"mousescroll",init:function(t,e,i,o,n,s,a){var h=e.jGetPageXY();this.x=h.x,this.y=h.y,this.timeStamp=e.timeStamp,this.target=t,this.delta=i||0,this.deltaX=o||0,this.deltaY=n||0,this.deltaZ=s||0,this.deltaFactor=a||0,this.deltaMode=e.deltaMode||0,this.isMouse=!1,this.pushToEvents(e)}})),d.Event.Custom.mousescroll.handler={eventType:"onwheel"in document||8<d.browser.ieMode?"wheel":"mousewheel",add:function(){this.jAddEvent(d.Event.Custom.mousescroll.handler.eventType,d.Event.Custom.mousescroll.handler.handle,1)},jRemove:function(){this.jRemoveEvent(d.Event.Custom.mousescroll.handler.eventType,d.Event.Custom.mousescroll.handler.handle,1)},handle:function(t){var e,i,o,n,s,a=0,h=0,r=0;t.detail&&(r=-1*t.detail),void 0!==t.wheelDelta&&(r=t.wheelDelta),void 0!==t.wheelDeltaY&&(r=t.wheelDeltaY),void 0!==t.wheelDeltaX&&(h=-1*t.wheelDeltaX),t.deltaY&&(r=-1*t.deltaY),t.deltaX&&(h=t.deltaX),0===r&&0===h||(a=0===r?h:r,e=Math.max(Math.abs(r),Math.abs(h)),(!l||e<l)&&(l=e),i=0<a?"floor":"ceil",a=Math[i](a/l),h=Math[i](h/l),r=Math[i](r/l),m&&clearTimeout(m),m=setTimeout(c,200),(o=new d.Event.Custom.mousescroll(this,t,a,h,r,0,l)).isMouse=(n=l,s=t.deltaMode||0,50<n||1===s&&!("win"==d.browser.platform&&n<1)||0==n%12||0==n%4.000244140625),this.jCallEvent("mousescroll",o))}}}(t),d.win=d.$(window),d.doc=d.$(document),t}()),function(n){if(!n)throw"MagicJS not found";if(!n.FX){var o=n.$;n.FX=new n.Class({init:function(t,e){var i;this.el=n.$(t),this.options=n.extend(this.options,e),this.timer=!1,this.easeFn=this.cubicBezierAtTime,i=n.FX.Transition[this.options.transition]||this.options.transition,"function"===n.jTypeOf(i)?this.easeFn=i:this.cubicBezier=this.parseCubicBezier(i)||this.parseCubicBezier("ease"),"string"==n.jTypeOf(this.options.cycles)&&(this.options.cycles="infinite"===this.options.cycles?1/0:parseInt(this.options.cycles)||1)},options:{fps:60,duration:600,transition:"ease",cycles:1,direction:"normal",onStart:n.$F,onComplete:n.$F,onBeforeRender:n.$F,onAfterRender:n.$F,forceAnimation:!1,roundCss:!1},styles:null,cubicBezier:null,easeFn:null,setTransition:function(t){this.options.transition=t,t=n.FX.Transition[this.options.transition]||this.options.transition,"function"===n.jTypeOf(t)?this.easeFn=t:(this.easeFn=this.cubicBezierAtTime,this.cubicBezier=this.parseCubicBezier(t)||this.parseCubicBezier("ease"))},start:function(t){var e,i=/\%$/;for(e in this.styles=t||{},this.cycle=0,this.state=0,this.curFrame=0,this.pStyles={},this.alternate="alternate"===this.options.direction||"alternate-reverse"===this.options.direction,this.continuous="continuous"===this.options.direction||"continuous-reverse"===this.options.direction,this.styles)i.test(this.styles[e][0])&&(this.pStyles[e]=!0),"reverse"!==this.options.direction&&"alternate-reverse"!==this.options.direction&&"continuous-reverse"!==this.options.direction||this.styles[e].reverse();return this.startTime=n.now(),this.finishTime=this.startTime+this.options.duration,this.options.onStart.call(),0===this.options.duration?(this.render(1),this.options.onComplete.call()):(this.loopBind=this.loop.jBind(this),!this.options.forceAnimation&&n.browser.features.requestAnimationFrame?this.timer=n.browser.requestAnimationFrame.call(window,this.loopBind):this.timer=this.loopBind.interval(Math.round(1e3/this.options.fps))),this},stopAnimation:function(){this.timer&&(!this.options.forceAnimation&&n.browser.features.requestAnimationFrame&&n.browser.cancelAnimationFrame?n.browser.cancelAnimationFrame.call(window,this.timer):clearInterval(this.timer),this.timer=!1)},stop:function(t){return t=!!n.defined(t)&&t,this.stopAnimation(),t&&(this.render(1),this.options.onComplete.jDelay(10)),this},calc:function(t,e,i){return t=parseFloat(t),((e=parseFloat(e))-t)*i+t},loop:function(){var t=n.now(),e=(t-this.startTime)/this.options.duration,i=Math.floor(e);if(t>=this.finishTime&&i>=this.options.cycles)return this.stopAnimation(),this.render(1),this.options.onComplete.jDelay(10),this;if(this.alternate&&this.cycle<i)for(var o in this.styles)this.styles[o].reverse();this.cycle=i,!this.options.forceAnimation&&n.browser.features.requestAnimationFrame&&(this.timer=n.browser.requestAnimationFrame.call(window,this.loopBind)),this.render((this.continuous?i:0)+this.easeFn(e%1))},render:function(t){var e={};for(var i in this.styles)"opacity"===i?e[i]=Math.round(100*this.calc(this.styles[i][0],this.styles[i][1],t))/100:(e[i]=this.calc(this.styles[i][0],this.styles[i][1],t),this.pStyles[i]&&(e[i]+="%"));this.options.onBeforeRender(e,this.el),this.set(e),this.options.onAfterRender(e,this.el)},set:function(t){return this.el.jSetCss(t)},parseCubicBezier:function(t){var e,i=null;if("string"!==n.jTypeOf(t))return null;switch(t){case"linear":i=o([0,0,1,1]);break;case"ease":i=o([.25,.1,.25,1]);break;case"ease-in":i=o([.42,0,1,1]);break;case"ease-out":i=o([0,0,.58,1]);break;case"ease-in-out":i=o([.42,0,.58,1]);break;case"easeInSine":i=o([.47,0,.745,.715]);break;case"easeOutSine":i=o([.39,.575,.565,1]);break;case"easeInOutSine":i=o([.445,.05,.55,.95]);break;case"easeInQuad":i=o([.55,.085,.68,.53]);break;case"easeOutQuad":i=o([.25,.46,.45,.94]);break;case"easeInOutQuad":i=o([.455,.03,.515,.955]);break;case"easeInCubic":i=o([.55,.055,.675,.19]);break;case"easeOutCubic":i=o([.215,.61,.355,1]);break;case"easeInOutCubic":i=o([.645,.045,.355,1]);break;case"easeInQuart":i=o([.895,.03,.685,.22]);break;case"easeOutQuart":i=o([.165,.84,.44,1]);break;case"easeInOutQuart":i=o([.77,0,.175,1]);break;case"easeInQuint":i=o([.755,.05,.855,.06]);break;case"easeOutQuint":i=o([.23,1,.32,1]);break;case"easeInOutQuint":i=o([.86,0,.07,1]);break;case"easeInExpo":i=o([.95,.05,.795,.035]);break;case"easeOutExpo":i=o([.19,1,.22,1]);break;case"easeInOutExpo":i=o([1,0,0,1]);break;case"easeInCirc":i=o([.6,.04,.98,.335]);break;case"easeOutCirc":i=o([.075,.82,.165,1]);break;case"easeInOutCirc":i=o([.785,.135,.15,.86]);break;case"easeInBack":i=o([.6,-.28,.735,.045]);break;case"easeOutBack":i=o([.175,.885,.32,1.275]);break;case"easeInOutBack":i=o([.68,-.55,.265,1.55]);break;default:if((t=t.replace(/\s/g,"")).match(/^cubic-bezier\((?:-?[0-9\.]{0,}[0-9]{1,},){3}(?:-?[0-9\.]{0,}[0-9]{1,})\)$/))for(e=(i=t.replace(/^cubic-bezier\s*\(|\)$/g,"").split(",")).length-1;0<=e;e--)i[e]=parseFloat(i[e])}return o(i)},cubicBezierAtTime:function(t){var e,l=0,m=0,c=0,i=0,o=0,n=0,s=this.options.duration;function u(t){return((l*t+m)*t+c)*t}return c=3*this.cubicBezier[0],m=3*(this.cubicBezier[2]-this.cubicBezier[0])-c,l=1-c-m,n=3*this.cubicBezier[1],o=3*(this.cubicBezier[3]-this.cubicBezier[1])-n,i=1-n-o,e=function(t,e){var i,o,n,s,a,h,r;function d(t){return 0<=t?t:0-t}for(n=t,h=0;h<8;h++){if(d(s=u(n)-t)<e)return n;if(d(a=(3*l*(r=n)+2*m)*r+c)<1e-6)break;n-=s/a}if(o=1,(n=t)<(i=0))return i;if(o<n)return o;for(;i<o;){if(d((s=u(n))-t)<e)return n;s<t?i=n:o=n,n=.5*(o-i)+i}return n}(t,1/(200*s)),((i*e+o)*e+n)*e}}),n.FX.Transition={linear:"linear",sineIn:"easeInSine",sineOut:"easeOutSine",expoIn:"easeInExpo",expoOut:"easeOutExpo",quadIn:"easeInQuad",quadOut:"easeOutQuad",cubicIn:"easeInCubic",cubicOut:"easeOutCubic",backIn:"easeInBack",backOut:"easeOutBack",elasticIn:function(t,e){return e=e||[],Math.pow(2,10*--t)*Math.cos(20*t*Math.PI*(e[0]||1)/3)},elasticOut:function(t,e){return 1-n.FX.Transition.elasticIn(1-t,e)},bounceIn:function(t){for(var e=0,i=1;;e+=i,i/=2)if((7-4*e)/11<=t)return i*i-Math.pow((11-6*e-11*t)/4,2)},bounceOut:function(t){return 1-n.FX.Transition.bounceIn(1-t)},none:function(t){return 0}}}}(e),function(i){if(!i)throw"MagicJS not found";if(!i.PFX){i.$;i.PFX=new i.Class(i.FX,{init:function(t,e){this.el_arr=t,this.options=i.extend(this.options,e),this.timer=!1,this.$parent.init()},start:function(t){var e,i,o=/\%$/,n=t.length;for(this.styles_arr=t,this.pStyles_arr=new Array(n),i=0;i<n;i++)for(e in this.pStyles_arr[i]={},t[i])o.test(t[i][e][0])&&(this.pStyles_arr[i][e]=!0),"reverse"!==this.options.direction&&"alternate-reverse"!==this.options.direction&&"continuous-reverse"!==this.options.direction||this.styles_arr[i][e].reverse();return this.$parent.start({}),this},render:function(t){for(var e=0;e<this.el_arr.length;e++)this.el=i.$(this.el_arr[e]),this.styles=this.styles_arr[e],this.pStyles=this.pStyles_arr[e],this.$parent.render(t)}})}}(e),function(h){if(!h)throw"MagicJS not found";if(!h.Tooltip){h.$;h.Tooltip=function(t,e){var a=this.tooltip=h.$new("div",null,{position:"absolute","z-index":999}).jAddClass("MagicToolboxTooltip");h.$(t).jAddEvent("mouseover",function(){a.jAppendTo(document.body)}),h.$(t).jAddEvent("mouseout",function(){a.jRemove()}),h.$(t).jAddEvent("mousemove",function(t){var e=h.$(t).jGetPageXY(),i=a.jGetSize(),o=h.$(window).jGetSize(),n=h.$(window).jGetScroll();function s(t,e,i){return i<(t-e)/2?i:(t+e)/2<i?i-e:(t-e)/2}a.jSetCss({left:n.x+s(o.width,i.width+40,e.x-n.x)+20,top:n.y+s(o.height,i.height+40,e.y-n.y)+20})}),this.text(e)},h.Tooltip.prototype.text=function(t){this.tooltip.firstChild&&this.tooltip.removeChild(this.tooltip.firstChild),this.tooltip.append(document.createTextNode(t))}}}(e),function(n){if(!n)throw"MagicJS not found";if(!n.MessageBox){n.$;n.Message=function(t,e,i,o){this.hideTimer=null,this.messageBox=n.$new("span",null,{position:"absolute","z-index":999,visibility:"hidden",opacity:.8}).jAddClass(o||"").jAppendTo(i||document.body),this.setMessage(t),this.show(e)},n.Message.prototype.show=function(t){this.messageBox.show(),this.hideTimer=this.hide.jBind(this).jDelay(n.ifndef(t,5e3))},n.Message.prototype.hide=function(t){clearTimeout(this.hideTimer),this.hideTimer=null,this.messageBox&&!this.hideFX&&(this.hideFX=new e.FX(this.messageBox,{duration:n.ifndef(t,500),onComplete:function(){this.messageBox.kill(),delete this.messageBox,this.hideFX=null}.jBind(this)}).start({opacity:[this.messageBox.jGetCss("opacity"),0]}))},n.Message.prototype.setMessage=function(t){this.messageBox.firstChild&&this.tooltip.removeChild(this.messageBox.firstChild),this.messageBox.append(document.createTextNode(t))}}}(e),function(a){if(!a)throw"MagicJS not found";if(!a.Options){function n(t,e,i){var o;if(o=t.hasOwnProperty("oneOf")?t.oneOf:[t],"array"!=a.jTypeOf(o))return!1;for(var n=0,s=o.length-1;n<=s;n++)if(l[o[n].type](o[n],e,i))return!0;return!1}function o(t){var e,i,o,n;if(t.hasOwnProperty("oneOf"))for(o=t.oneOf.length,e=0;e<o;e++)for(i=e+1;i<o;i++)d[t.oneOf[e].type]>d[t.oneOf[i].type]&&(n=t.oneOf[e],t.oneOf[e]=t.oneOf[i],t.oneOf[i]=n);return t}function s(t){var e;if(e=t.hasOwnProperty("oneOf")?t.oneOf:[t],"array"!=a.jTypeOf(e))return!1;for(var i=e.length-1;0<=i;i--){if(!e[i].type||!d.hasOwnProperty(e[i].type))return!1;if(a.defined(e[i].enum)){if("array"!==a.jTypeOf(e[i].enum))return!1;for(var o=e[i].enum.length-1;0<=o;o--)if(!l[e[i].type]({type:e[i].type},e[i].enum[o],!0))return!1}}return!(t.hasOwnProperty("default")&&!n(t,t.default,!0))}function t(t){this.schema={},this.options={},this.parseSchema(t)}var h=a.$,r=null,d={boolean:1,array:2,number:3,function:4,string:100},l={boolean:function(t,e,i){if("boolean"!=a.jTypeOf(e)){if(i||"string"!=a.jTypeOf(e))return!1;if(!/^(true|false)$/.test(e))return!1;e=e.jToBool()}return!(t.hasOwnProperty("enum")&&!h(t.enum).contains(e))&&(r=e,!0)},string:function(t,e,i){return"string"===a.jTypeOf(e)&&(!(t.hasOwnProperty("enum")&&!h(t.enum).contains(e))&&(r=""+e,!0))},number:function(t,e,i){var o="string"==a.jTypeOf(e)&&/%$/.test(e);return(!i||0!=typeof e)&&(e=parseFloat(e),!isNaN(e)&&(isNaN(t.minimum)&&(t.minimum=Number.NEGATIVE_INFINITY),isNaN(t.maximum)&&(t.maximum=Number.POSITIVE_INFINITY),!(t.hasOwnProperty("enum")&&!h(t.enum).contains(e))&&(!(t.minimum>e||e>t.maximum)&&(r=o?e+"%":e,!0))))},array:function(t,e,i){if("string"===a.jTypeOf(e))try{e=window.JSON.parse(e)}catch(t){return!1}return"array"===a.jTypeOf(e)&&(r=e,!0)},function:function(t,e,i){return"function"===a.jTypeOf(e)&&(r=e,!0)}};a.extend(t.prototype,{parseSchema:function(t){var e,i;for(e in t)if(t.hasOwnProperty(e)&&(i=(e+"").jTrim().jCamelize(),!this.schema.hasOwnProperty(i))){if(this.schema[i]=o(t[e]),!s(this.schema[i]))throw"Incorrect definition of the '"+e+"' parameter in "+t;this.options[i]=void 0}},set:function(t,e){t=(t+"").jTrim().jCamelize(),"string"==a.jTypeOf(e)&&(e=e.jTrim()),this.schema.hasOwnProperty(t)&&(r=e,n(this.schema[t],e)&&(this.options[t]=r),r=null)},get:function(t){if(t=(t+"").jTrim().jCamelize(),this.schema.hasOwnProperty(t))return a.defined(this.options[t])?this.options[t]:this.schema[t].default},fromJSON:function(t){for(var e in t)this.set(e,t[e])},getJSON:function(){var t=a.extend({},this.options);for(var e in t)void 0===t[e]&&void 0!==this.schema[e].default&&(t[e]=this.schema[e].default);return t},fromString:function(t){h(t.split(";")).jEach(h(function(t){t=t.split(":"),this.set(t.shift().jTrim(),t.join(":"))}).jBind(this))},exists:function(t){return t=(t+"").jTrim().jCamelize(),this.schema.hasOwnProperty(t)},isset:function(t){return t=(t+"").jTrim().jCamelize(),this.exists(t)&&a.defined(this.options[t])},jRemove:function(t){t=(t+"").jTrim().jCamelize(),this.exists(t)&&(delete this.options[t],delete this.schema[t])}}),a.Options=t}}(e),function(t){if(!t)throw"MagicJS not found";var e=t.$;if(!t.SVGImage){function i(t){this.filters={},this.originalImage=e(t),this.canvas=e(document.createElementNS(o,"svg")),this.canvas.setAttribute("width",this.originalImage.naturalWidth||this.originalImage.width),this.canvas.setAttribute("height",this.originalImage.naturalHeight||this.originalImage.height),this.image=e(document.createElementNS(o,"image")),this.image.setAttributeNS("http://www.w3.org/1999/xlink","href",this.originalImage.getAttribute("src")),this.image.setAttribute("width","100%"),this.image.setAttribute("height","100%"),this.image.jAppendTo(this.canvas)}var o="http://www.w3.org/2000/svg";i.prototype.getNode=function(){return this.canvas},i.prototype.blur=function(t){if(!(Math.round(t)<1))return this.filters.blur?this.filters.blur.firstChild.setAttribute("stdDeviation",t):(this.filters.blur=e(document.createElementNS(o,"filter")),this.filters.blur.setAttribute("id","filterBlur"),this.filters.blur.appendChild(e(document.createElementNS(o,"feGaussianBlur")).setProps({in:"SourceGraphic",stdDeviation:t})),this.filters.blur.jAppendTo(this.canvas),this.image.setAttribute("filter","url(#filterBlur)")),this},t.SVGImage=i}}(e);var p,g,i=(g=(p=e).$,t.prototype={setupContent:function(){this.root=p.$new("div").jAddClass(this.rootCSS).jAddClass(this.rootCSS+"-"+this.settings.orientation).jSetCss({visibility:"hidden"}),this.wrapper=p.$new("div").jAddClass(this.rootCSS+"-wrapper").jAppendTo(this.root),this.root.jAppendTo(this.parent),g(["prev","next"]).jEach(function(t){this.buttons[t]=p.$new("button").jAddClass(this.rootCSS+"-button").jAddClass(this.rootCSS+"-button-"+t).jAppendTo(this.root).jAddEvent("btnclick tap",function(t,e){g(t).events[0].stop().stopQueue(),g(t).stopDistribution(),this.scroll(e)}.jBindAsEvent(this,t))}.jBind(this)),this.buttons.prev.jAddClass(this.rootCSS+"-button-disabled"),this.context=p.$new("ul").jAddEvent("btnclick tap",function(t){t.stop()})},addItem:function(t){var e=p.$new("li").jAddClass(this.itemCSS).append(t).jAppendTo(this.context);return new p.ImageLoader(t,{oncomplete:this.reflow.jBind(this)}),this.items.push(e),e},selectItem:function(t){var e=this.selectedItem||this.context.byClass(this.itemCSS+"-selected")[0];e&&g(e).jRemoveClass(this.itemCSS+"-selected"),this.selectedItem=g(t),this.selectedItem&&(this.selectedItem.jAddClass(this.itemCSS+"-selected"),this.scroll(this.selectedItem))},run:function(){if(this.wrapper!==this.context.parentNode)return g(this.context).jAppendTo(this.wrapper),this.initDrag(),g(window).jAddEvent("resize",this.resizeCallback=this.reflow.jBind(this)),void this.run.jBind(this).jDelay(1);var t=this.parent.jGetSize();0<t.height&&t.height>t.width?this.setOrientation("vertical"):this.setOrientation("horizontal"),this.reflow(),this.root.jSetCss({visibility:""})},stop:function(){this.resizeCallback&&g(window).jRemoveEvent("resize",this.resizeCallback),this.root.kill()},scroll:function(t,e){var i,o,n,s,a={x:0,y:0},h="vertical"==this.settings.orientation?"top":"left",r="vertical"==this.settings.orientation?"height":"width",d="vertical"==this.settings.orientation?"y":"x",l=this.context.parentNode.jGetSize()[r],m=this.context.parentNode.jGetPosition(),c=this.context.jGetSize()[r],u=[];if(this.scrollFX?this.scrollFX.stop():this.context.jSetCss("transition",p.browser.cssTransformProp+String.fromCharCode(32)+"0s"),void 0===e&&(e=600),i=this.context.jGetPosition(),"string"==p.jTypeOf(t))a[d]="next"==t?Math.max(i[h]-m[h]-l,l-c):Math.min(i[h]-m[h]+l,0);else{if("element"!=p.jTypeOf(t))return;o=t.jGetSize(),n=t.jGetPosition(),a[d]=Math.min(0,Math.max(l-c,i[h]+l/2-n[h]-o[r]/2))}0<=(s=p.browser.gecko&&"android"==p.browser.platform||p.browser.ieMode&&p.browser.ieMode<10?("string"==p.jTypeOf(t)&&a[d]==i[h]-m[h]&&(i[h]+=0==i[h]-m[h]?30:-30),a["margin-"+h]=[c<=l?0:i[h]-m[h],a[d]],delete a.x,delete a.y,this.selectorsMoveFX||(this.selectorsMoveFX=new p.PFX([this.context],{duration:500})),u.push(a),this.selectorsMoveFX.start(u),a["margin-"+h][1]):(this.context.jSetCss({transition:p.browser.cssTransformProp+String.fromCharCode(32)+e+"ms ease",transform:"translate3d("+a.x+"px, "+a.y+"px, 0)"}),a[d]))?(this.buttons.prev.jAddClass(this.rootCSS+"-button-disabled"),this.buttons.prev.disabled=!0):(this.buttons.prev.jRemoveClass(this.rootCSS+"-button-disabled"),this.buttons.prev.disabled=!1),s<=l-c?(this.buttons.next.jAddClass(this.rootCSS+"-button-disabled"),this.buttons.next.disabled=!0):(this.buttons.next.jRemoveClass(this.rootCSS+"-button-disabled"),this.buttons.next.disabled=!1),s=null},initDrag:function(){var e,i,o,t,n,s,a,h,r,d,l,m,c,u={x:0,y:0};t=g(function(t){if(u={x:0,y:0},this.settings.orientation,c="vertical"==this.settings.orientation?"height":"width",e="vertical"==this.settings.orientation?"y":"x",l=this.context.parentNode.jGetSize()[c],d=this.context.jGetSize()[c],!(0<=(i=l-d)))if("dragstart"==t.state)void 0===m&&(m=0),this.context.jSetCssProp("transition",p.browser.cssTransformProp+String.fromCharCode(32)+"0ms"),n=t[e],h=t.y,a=t.x,r=!1;else{if("dragend"==t.state){if(r)return;s=function(t){var e,i=0;for(e=1.5;e<=90;e+=1.5)i+=t*Math.cos(e/Math.PI/2);return o<0&&(i*=-1),i}(Math.abs(o)),(m+=s)<=i&&(m=i),0<=m&&(m=0),u[e]=m,this.context.jSetCssProp("transition",p.browser.cssTransformProp+String.fromCharCode(32)+300+"ms  cubic-bezier(.0, .0, .0, 1)"),this.context.jSetCssProp("transform","translate3d("+u.x+"px, "+u.y+"px, 0px)"),o=0}else{if(r)return;"horizontal"==this.settings.orientation&&Math.abs(t.x-a)>Math.abs(t.y-h)||"vertical"==this.settings.orientation&&Math.abs(t.x-a)<Math.abs(t.y-h)?(t.stop(),o=t[e]-n,m+=o,u[e]=m,this.context.jSetCssProp("transform","translate3d("+u.x+"px, "+u.y+"px, 0px)"),0<=m?this.buttons.prev.jAddClass(this.rootCSS+"-button-disabled"):this.buttons.prev.jRemoveClass(this.rootCSS+"-button-disabled"),m<=i?this.buttons.next.jAddClass(this.rootCSS+"-button-disabled"):this.buttons.next.jRemoveClass(this.rootCSS+"-button-disabled")):r=!0}n=t[e]}}).jBind(this),this.context.jAddEvent("touchdrag",t)},reflow:function(){var t,e=this.parent.jGetSize();0<e.height&&e.height>e.width?this.setOrientation("vertical"):this.setOrientation("horizontal"),t="vertical"==this.settings.orientation?"height":"width",this.context.jGetSize()[t]<=this.root.jGetSize()[t]?(this.root.jAddClass("no-buttons"),this.context.jSetCssProp("transition","").jGetSize(),this.context.jSetCssProp("transform","translate3d(0,0,0)"),this.buttons.prev.jAddClass(this.rootCSS+"-button-disabled"),this.buttons.next.jRemoveClass(this.rootCSS+"-button-disabled")):this.root.jRemoveClass("no-buttons"),this.selectedItem&&this.scroll(this.selectedItem,0)},setOrientation:function(t){"vertical"!==t&&"horizontal"!==t||t==this.settings.orientation||(this.root.jRemoveClass(this.rootCSS+"-"+this.settings.orientation),this.settings.orientation=t,this.root.jAddClass(this.rootCSS+"-"+this.settings.orientation),this.context.jSetCssProp("transition","none").jGetSize(),this.context.jSetCssProp("transform","").jSetCssProp("margin",""))}},t);function t(t,e){this.settings={cssPrefix:"magic",orientation:"horizontal",position:"bottom",size:{units:"px",width:"auto",height:"auto"},sides:["height","width"]},this.parent=t,this.root=null,this.wrapper=null,this.context=null,this.buttons={},this.items=[],this.selectedItem=null,this.scrollFX=null,this.resizeCallback=null,this.settings=p.extend(this.settings,e),this.rootCSS=this.settings.cssPrefix+"-thumbs",this.itemCSS=this.settings.cssPrefix+"-thumb",this.setupContent()}var u=c.$;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var i=arguments[e];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t}),c.browser.cssTransform||(c.browser.cssTransform=c.normalizeCSS("transform").dashize());var o,h,n,s,a={zoomOn:{type:"string",enum:["click","hover"],default:"hover"},zoomMode:{oneOf:[{type:"string",enum:["zoom","magnifier","preview","off"],default:"zoom"},{type:"boolean",enum:[!1]}],default:"zoom"},zoomWidth:{oneOf:[{type:"string",enum:["auto"]},{type:"number",minimum:1}],default:"auto"},zoomHeight:{oneOf:[{type:"string",enum:["auto"]},{type:"number",minimum:1}],default:"auto"},zoomPosition:{type:"string",default:"right"},zoomDistance:{type:"number",minimum:0,default:15},zoomCaption:{oneOf:[{type:"string",enum:["bottom","top","off"],default:"off"},{type:"boolean",enum:[!1]}],default:"off"},expand:{oneOf:[{type:"string",enum:["window","fullscreen","off"]},{type:"boolean",enum:[!1]}],default:"window"},expandZoomMode:{oneOf:[{type:"string",enum:["zoom","magnifier","off"],default:"zoom"},{type:"boolean",enum:[!1]}],default:"zoom"},expandZoomOn:{type:"string",enum:["click","always"],default:"click"},expandCaption:{type:"boolean",default:!0},closeOnClickOutside:{type:"boolean",default:!0},history:{type:"boolean",default:!0},hint:{oneOf:[{type:"string",enum:["once","always","off"]},{type:"boolean",enum:[!1]}],default:"once"},smoothing:{type:"boolean",default:!0},upscale:{type:"boolean",default:!0},variableZoom:{type:"boolean",default:!1},lazyZoom:{type:"boolean",default:!1},autostart:{type:"boolean",default:!0},rightClick:{type:"boolean",default:!1},transitionEffect:{type:"boolean",default:!0},selectorTrigger:{type:"string",enum:["click","hover"],default:"click"},cssClass:{type:"string"},forceTouch:{type:"boolean",default:!1},textHoverZoomHint:{type:"string",default:"Hover to zoom"},textClickZoomHint:{type:"string",default:"Click to zoom"},textBtnNext:{type:"string",default:"Next"},textBtnPrev:{type:"string",default:"Previous"},textBtnClose:{type:"string",default:"Close"},textExpandHint:{type:"string",default:"Click to expand"}},r={zoomMode:{oneOf:[{type:"string",enum:["zoom","magnifier","off"],default:"zoom"},{type:"boolean",enum:[!1]}],default:"zoom"},expandZoomOn:{type:"string",enum:["click","always"],default:"click"},textExpandHint:{type:"string",default:"Tap or pinch to expand"},textHoverZoomHint:{type:"string",default:"Touch to zoom"},textClickZoomHint:{type:"string",default:"Double tap or pinch to zoom"}},d=["onZoomReady","onUpdate","onZoomIn","onZoomOut","onExpandOpen","onExpandClose"],l={},m=u([]),v=window.devicePixelRatio||1,f=!0,x=c.browser.features.perspective?"translate3d(":"translate(",w=c.browser.features.perspective?",0)":")",z=null,b=function(){return"mgctlbxN$MZ"+"p".toUpperCase()+" mgctlbxV$"+"v5.3.4".replace("v","")+" mgctlbxL$"+"t".toUpperCase()+(window.mgctlbx$Pltm&&"string"===c.jTypeOf(window.mgctlbx$Pltm)?" mgctlbxP$"+window.mgctlbx$Pltm.toLowerCase():"")};function j(t){var e=[],i=null;return t&&(i=u(t))&&(e=m.filter(function(t){return t.placeholder===i})),e.length?e[0]:null}function y(t){return Object.assign({},t,{type:t.type,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,cloned:!0})}function C(){var t=c.$A(arguments),e=t.shift(),i=l[e];if(i)for(var o=0;o<i.length;o++)i[o].apply(null,t)}function S(t,e,i,o,n){this.small={src:null,url:null,dppx:1,node:null,state:0,size:{width:0,height:0},loaded:!1},this.zoom={src:null,url:null,dppx:1,node:null,state:0,size:{width:0,height:0},loaded:!1},"object"===c.jTypeOf(t)?this.small=t:"string"===c.jTypeOf(t)&&(this.small.url=c.getAbsoluteURL(t)),"object"===c.jTypeOf(e)?this.zoom=e:"string"===c.jTypeOf(e)&&(this.zoom.url=c.getAbsoluteURL(e)),this.caption=i,this.options=o,this.origin=n,this.callback=null,this.link=null,this.node=null}S.prototype={parseNode:function(t,e,i){var o=t.byTag("img")[0];return i&&(this.small.node=o||c.$new("img").jAppendTo(t)),1<v&&(this.small.url=t.getAttribute("data-image-2x"),this.small.url&&(this.small.dppx=2),this.zoom.url=t.getAttribute("data-zoom-image-2x"),this.zoom.url&&(this.zoom.dppx=2)),this.small.src=t.getAttribute("data-image")||t.getAttribute("rev")||(o?o.currentSrc||o.getAttribute("src"):null),this.small.src&&(this.small.src=c.getAbsoluteURL(this.small.src)),this.small.url=this.small.url||this.small.src,this.small.url&&(this.small.url=c.getAbsoluteURL(this.small.url)),this.zoom.src=t.getAttribute("data-zoom-image")||t.getAttribute("href"),this.zoom.src&&(this.zoom.src=c.getAbsoluteURL(this.zoom.src)),this.zoom.url=this.zoom.url||this.zoom.src,this.zoom.url&&(this.zoom.url=c.getAbsoluteURL(this.zoom.url)),this.caption=t.getAttribute("data-caption")||t.getAttribute("title")||e,this.link=t.getAttribute("data-link"),this.origin=t,this},loadImg:function(e){var i=null;1<arguments.length&&"function"===c.jTypeOf(arguments[1])&&(i=arguments[1]),0===this[e].state?(this[e].url&&this[e].node&&!this[e].node.getAttribute("src")&&!this[e].node.getAttribute("srcset")&&this[e].node.setAttribute("src",this[e].url),this[e].state=1,new c.ImageLoader(this[e].node||this[e].url,{oncomplete:u(function(t){this[e].loaded=!0,this[e].state=t.ready?2:-1,t.ready&&(0===this[e].size.width&&0===this[e].size.height&&(this[e].size=t.jGetSize()),this[e].node?(this[e].node.jSetCss({maxWidth:this[e].size.width,maxHeight:this[e].size.height}),this[e].node.currentSrc&&this[e].node.currentSrc!==this[e].node.src?this[e].url=this[e].node.currentSrc:c.getAbsoluteURL(this[e].node.getAttribute("src")||"")!==this[e].url&&this[e].node.setAttribute("src",this[e].url)):(this[e].node=u(t.img),this[e].node.getAttribute("style"),this[e].node.removeAttribute("style"),this[e].size.width/=this[e].dppx,this[e].size.height/=this[e].dppx)),this.onload(i)}).jBind(this)})):this[e].loaded&&this.onload(i)},loadSmall:function(){this.loadImg("small",arguments[0])},loadZoom:function(){this.loadImg("zoom",arguments[0])},load:function(){this.callback=null,0<arguments.length&&"function"===c.jTypeOf(arguments[0])&&(this.callback=arguments[0]),this.loadSmall(),this.loadZoom()},onload:function(t){if(t&&t.call(null,this),this.callback&&this.small.loaded&&this.zoom.loaded)return this.callback.call(null,this),void(this.callback=null)},loaded:function(){return this.small.loaded&&this.zoom.loaded},ready:function(){return 2===this.small.state&&2===this.zoom.state},getURL:function(t){var e="small"===t?"zoom":"small";return!this[t].loaded||this[t].loaded&&2===this[t].state?this[t].url:!this[e].loaded||this[e].loaded&&2===this[e].state?this[e].url:null},getNode:function(t){var e="small"===t?"zoom":"small";return!this[t].loaded||this[t].loaded&&2===this[t].state?this[t].node:!this[e].loaded||this[e].loaded&&2===this[e].state?this[e].node:null},jGetSize:function(t){var e="small"===t?"zoom":"small";return!this[t].loaded||this[t].loaded&&2===this[t].state?this[t].size:!this[e].loaded||this[e].loaded&&2===this[e].state?this[e].size:{width:0,height:0}},setSize:function(t,e){this[t].size=e},getRatio:function(t){var e="small"===t?"zoom":"small";return!this[t].loaded||this[t].loaded&&2===this[t].state?this[t].dppx:!this[e].loaded||this[e].loaded&&2===this[e].state?this[e].dppx:1},setCurNode:function(t){this.node=this.getNode(t)}};function E(t,e){this.options=new c.Options(a),this.option=u(function(){return 1<arguments.length?this.set(arguments[0],arguments[1]):this.get(arguments[0])}).jBind(this.options),this.touchOptions=new c.Options(r),this.additionalImages=[],this.image=null,this.primaryImage=null,this.placeholder=u(t).jAddEvent("dragstart selectstart click",function(t){t.stop()}),this.id=null,this.node=null,this.stubNode=null,this.originalImg=null,this.originalImgSrc=null,this.originalTitle=null,this.normalSize={width:0,height:0},this.size={width:0,height:0},this.zoomSize={width:0,height:0},this.zoomSizeOrigin={width:0,height:0},this.boundaries={top:0,left:0,bottom:0,right:0},this.ready=!1,this.expanded=!1,this.activateTimer=null,this.resizeTimer=null,this.resizeCallback=u(function(){this.expanded&&(s&&this.expandBox.jSetCss({height:window.innerHeight,top:Math.abs(s.getBoundingClientRect().top)}),this.image.node.jSetCss({"max-height":Math.min(this.image.jGetSize("zoom").height,this.expandMaxHeight())}),this.image.node.jSetCss({"max-width":Math.min(this.image.jGetSize("zoom").width,this.expandMaxWidth())})),this.reflowZoom(arguments[0])}).jBind(this),this.onResize=u(function(t){clearTimeout(this.resizeTimer),this.resizeTimer=u(this.resizeCallback).jDelay(10,"scroll"===t.type)}).jBindAsEvent(this),this.onHistoryStateChange=u(function(t){!t.state&&this.expanded&&this.close(),t.state&&t.state.mzId===this.id&&!this.expanded&&this.expand()}).jBindAsEvent(this),b&&(h.append(c.$new("div",{},{display:"none",visibility:"hidden"}).append(document.createTextNode(b))),b=void 0),this.lens=null,this.zoomBox=null,this.hint=null,this.hintMessage=null,this.hintRuns=0,this.mobileZoomHint=!0,this.loadingBox=null,this.loadTimer=null,this.thumb=null,this.expandBox=null,this.expandBg=null,this.expandCaption=null,this.expandStage=null,this.expandImageStage=null,this.expandFigure=null,this.navControlsLayer=null,this.expandNav=null,this.expandThumbs=null,this.expandGallery=[],this.buttons={},this.startAttempts=0,this.startTimer=null,this.start(e)}return E.prototype={loadOptions:function(t){switch(this.options.fromJSON(window.mzOptions||{}),this.options.fromString(this.placeholder.getAttribute("data-options")||""),c.browser.touchScreen||this.option("forceTouch",!1),(c.browser.mobile||this.option("forceTouch"))&&(this.options.fromJSON(this.touchOptions.getJSON()),this.options.fromJSON(window.mzMobileOptions||{}),this.options.fromString(this.placeholder.getAttribute("data-mobile-options")||"")),"string"===c.jTypeOf(t)?this.options.fromString(t||""):this.options.fromJSON(t||{}),this.option("cssClass")&&this.option("cssClass",this.option("cssClass").replace(","," ")),!1===this.option("zoomCaption")&&this.option("zoomCaption","off"),!1===this.option("hint")&&this.option("hint","off"),this.option("hint")){case"off":this.hintRuns=0;break;case"always":this.hintRuns=1/0;break;case"once":default:this.hintRuns=2}"off"===this.option("zoomMode")&&this.option("zoomMode",!1),"off"===this.option("expand")&&this.option("expand",!1),"off"===this.option("expandZoomMode")&&this.option("expandZoomMode",!1),c.browser.mobile&&"zoom"===this.option("zoomMode")&&"inner"===this.option("zoomPosition")&&(this.option("expand")?this.option("zoomMode",!1):this.option("zoomOn","click"))},start:function(t){var e,i,o=this;if(this.startAttempts<1){if(this.loadOptions(t),f&&!this.option("autostart"))return;if(this.originalImg=this.placeholder.querySelector("img"),this.originalImgSrc=this.originalImg?this.originalImg.getAttribute("src"):null,this.originalTitle=u(this.placeholder).getAttribute("title"),u(this.placeholder).removeAttribute("title"),this.originalImg&&"PICTURE"===this.originalImg.parentNode.tagName){this.originalImgSrc=null;var n=c.$new("div").jAddClass("magic-temporary-img").jAppendTo(document.body),s=this.originalImg.parentNode.cloneNode(!0);s.getAttribute("style"),s.removeAttribute("style");var a=s.querySelector("img");return a.getAttribute("style"),a.removeAttribute("style"),u(a).jAddEvent("load",function(){o.size=u(a).jGetSize(),n.kill();var t=o.originalImg.cloneNode(!1);u(t).jSetCss({maxWidth:o.size.width,maxHeight:o.size.height}).setAttribute("src",o.originalImg.currentSrc||o.originalImg.src),o.originalImg=o.placeholder.replaceChild(t,o.originalImg.parentNode),o.start()}),n.append(s),void++this.startAttempts}}(i=(new S).parseNode(this.placeholder,this.originalTitle,!0)).setSize("small",this.size),i.small.url?(this.primaryImage=i,this.image=this.primaryImage,function(t){var e,i,o=t,n=[];try{for(;i=o.tagName,/^[A-Za-z]*$/.test(i)&&((e=o.getAttribute("id"))&&/^[A-Za-z][-A-Za-z0-9_]*/.test(e)&&(i+="#"+e),n.push(i)),(o=o.parentNode)&&o!==document.documentElement;);n=n.reverse(),c.addCSS(n.join(" ")+"> .mz-figure > img",{transition:"none",transform:"none"},"mz-runtime-css",!0),c.addCSS(n.join(" ")+":not(.mz-no-rt-width-css)> .mz-figure:not(.mz-no-rt-width-css) > img",{width:"100% !important;"},"mz-runtime-css",!0)}catch(t){}}(this.placeholder),this.id=this.placeholder.getAttribute("id")||"mz-"+Math.floor(Math.random()*c.now()),this.placeholder.setAttribute("id",this.id),this.node=c.$new("figure").jAddClass("mz-figure"),this.node.enclose(this.image.small.node).jAddClass(this.option("cssClass")),!0!==this.option("rightClick")&&this.node.jAddEvent("contextmenu",function(t){return t.stop(),!1}),this.node.jAddClass("mz-"+this.option("zoomOn")+"-zoom"),this.option("expand")||this.node.jAddClass("mz-no-expand"),this.lens={node:c.$new("div",{class:"mz-lens"},{top:0}).jAppendTo(this.node),image:c.$new("img",{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},{position:"absolute",top:0,left:0}),width:0,height:0,pos:{x:0,y:0},spos:{x:0,y:0},size:{width:0,height:0},border:{x:0,y:0},dx:0,dy:0,innertouch:!1,hide:function(){c.browser.features.transform?this.node.jSetCss({transform:"translate(-10000px, -10000px)"}):this.node.jSetCss({top:-1e4})}},this.lens.hide(),this.lens.node.append(this.lens.image),this.zoomBox={node:c.$new("div",{class:"mz-zoom-window"},{top:-1e5}).jAddClass(this.option("cssClass")).jAppendTo(h),image:c.$new("img",{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},{position:"absolute"}),aspectRatio:0,width:0,height:0,innerWidth:0,innerHeight:0,size:{width:"auto",wunits:"px",height:"auto",hunits:"px"},mode:this.option("zoomMode"),position:this.option("zoomPosition"),trigger:this.option("zoomOn"),custom:!1,active:!1,activating:!1,enabled:!1,enable:u(function(){this.zoomBox.enabled=!1!==arguments[0],this.node[this.zoomBox.enabled?"jRemoveClass":"jAddClass"]("mz-no-zoom")}).jBind(this),hide:u(function(){var t=u(this.node).jFetch("cr");this.zoomBox.node.jRemoveEvent("transitionend"),this.zoomBox.node.jSetCss({top:-1e5}).jAppendTo(h),this.zoomBox.node.jRemoveClass("mz-deactivating mz-p-"+("zoom"===this.zoomBox.mode?this.zoomBox.position:this.zoomBox.mode)),!this.expanded&&t&&t.jRemove(),this.zoomBox.image.getAttribute("style"),this.zoomBox.image.removeAttribute("style")}).jBind(this),setMode:u(function(t){this.node[!1===t?"jAddClass":"jRemoveClass"]("mz-no-zoom"),this.node["magnifier"===t?"jAddClass":"jRemoveClass"]("mz-magnifier-zoom"),this.zoomBox.node["magnifier"===t?"jAddClass":"jRemoveClass"]("mz-magnifier"),this.zoomBox.node["preview"===t?"jAddClass":"jRemoveClass"]("mz-preview"),"zoom"!==t&&(this.node.jRemoveClass("mz-inner-zoom"),this.zoomBox.node.jRemoveClass("mz-inner")),!1===(this.zoomBox.mode=t)&&this.zoomBox.enable(!1)}).jBind(this)},this.zoomBox.node.append(this.zoomBox.image),this.zoomBox.setMode(this.option("zoomMode")),this.zoomBox.image.removeAttribute("width"),this.zoomBox.image.removeAttribute("height"),(e=(""+this.option("zoomWidth")).match(/^([0-9]+)?(px|%)?$/))&&(this.zoomBox.size.wunits=e[2]||"px",this.zoomBox.size.width=parseFloat(e[1])||"auto"),(e=(""+this.option("zoomHeight")).match(/^([0-9]+)?(px|%)?$/))&&(this.zoomBox.size.hunits=e[2]||"px",this.zoomBox.size.height=parseFloat(e[1])||"auto"),"magnifier"===this.zoomBox.mode?(this.node.jAddClass("mz-magnifier-zoom"),this.zoomBox.node.jAddClass("mz-magnifier"),"auto"===this.zoomBox.size.width&&(this.zoomBox.size.wunits="%",this.zoomBox.size.width=70),"auto"===this.zoomBox.size.height&&(this.zoomBox.size.hunits="%")):(this.option("zoom-position").match(/^#/)&&((this.zoomBox.custom=u(this.option("zoom-position").replace(/^#/,"")))?50<u(this.zoomBox.custom).jGetSize().height&&("auto"===this.zoomBox.size.width&&(this.zoomBox.size.wunits="%",this.zoomBox.size.width=100),"auto"===this.zoomBox.size.height&&(this.zoomBox.size.hunits="%",this.zoomBox.size.height=100)):this.option("zoom-position","right")),"preview"===this.zoomBox.mode&&("auto"===this.zoomBox.size.width&&(this.zoomBox.size.wunits="px"),"auto"===this.zoomBox.size.height&&(this.zoomBox.size.hunits="px")),"zoom"===this.zoomBox.mode&&("auto"!==this.zoomBox.size.width&&"inner"!==this.option("zoom-position")||(this.zoomBox.size.wunits="%",this.zoomBox.size.width=100),"auto"!==this.zoomBox.size.height&&"inner"!==this.option("zoom-position")||(this.zoomBox.size.hunits="%",this.zoomBox.size.height=100)),"inner"===this.option("zoom-position")&&this.node.jAddClass("mz-inner-zoom")),this.zoomBox.position=this.zoomBox.custom?"custom":this.option("zoom-position"),this.lens.border.x=parseFloat(this.lens.node.jGetCss("border-left-width")||"0"),this.lens.border.y=parseFloat(this.lens.node.jGetCss("border-top-width")||"0"),this.image.loadSmall(function(){2===this.image.small.state&&(this.image.setCurNode("small"),this.size=this.image.node.jGetSize(),this.registerEvents(),(this.ready=!0)===this.option("lazyZoom")&&(C("onZoomReady",this.id),c.browser.mobile?this.reflowZoom():this.showHint()))}.jBind(this)),!0===this.option("lazyZoom")&&"always"!==this.option("zoomOn")||(this.image.load(u(function(t){this.setupZoom(t,!0)}).jBind(this)),this.loadTimer=u(this.showLoading).jBind(this).jDelay(400)),this.setupSelectors(),this.setupButtons()):++this.startAttempts<=600&&(this.startTimer=setTimeout(function(){o.start()},100))},stop:function(){clearTimeout(this.startTimer),this.unregisterEvents(),this.zoomBox&&this.zoomBox.node.kill(),this.expandThumbs&&(this.expandThumbs.stop(),this.expandThumbs=null),this.expandBox&&this.expandBox.kill(),this.expanded&&u(c.browser.getDoc()).jSetCss({overflow:""}),u(this.additionalImages).jEach(function(t){u(t.origin).jRemoveClass("mz-thumb-selected").jRemoveClass(this.option("cssClass")||"mz-$dummy-css-class-to-jRemove$")},this),this.originalImg&&(this.placeholder.append(this.originalImg),this.originalImgSrc&&this.originalImg.setAttribute("src",this.originalImgSrc)),this.originalTitle&&this.placeholder.setAttribute("title",this.originalTitle),this.node&&this.node.kill()},setupZoom:function(t,i){var o=this.image;if(2!==t.zoom.state)return this.image=t,this.ready=!0,void this.zoomBox.enable(!1);this.image=t,this.image.setCurNode(this.expanded?"zoom":"small"),this.zoomBox.image.src=this.image.getURL("zoom"),this.zoomBox.node.jRemoveClass("mz-preview"),this.zoomBox.image.getAttribute("style"),this.zoomBox.image.removeAttribute("style"),this.zoomBox.node.jGetSize(),setTimeout(u(function(){var t,e=this.zoomBox.image.jGetSize();this.zoomSizeOrigin=this.image.jGetSize("zoom"),1<e.width*e.height&&e.width*e.height<this.zoomSizeOrigin.width*this.zoomSizeOrigin.height&&(this.zoomSizeOrigin=e),this.zoomSize=c.detach(this.zoomSizeOrigin),"preview"===this.zoomBox.mode&&this.zoomBox.node.jAddClass("mz-preview"),this.setCaption(),this.lens.image.src=this.image.node.currentSrc||this.image.node.src,this.zoomBox.enable(this.zoomBox.mode&&!(this.expanded&&"preview"===this.zoomBox.mode)),this.ready=!0,this.activateTimer=null,this.resizeCallback(),this.node.jAddClass("mz-ready"),this.hideLoading(),o!==this.image?(C("onUpdate",this.id,o.origin,this.image.origin),this.nextImage&&(t=this.nextImage,this.nextImage=null,this.update(t.image,t.onswipe))):i&&C("onZoomReady",this.id),this.initEvent?this.node.jCallEvent(this.initEvent.type,this.initEvent):this.expanded&&"always"===this.option("expandZoomOn")?this.activate():i&&this.showHint()}).jBind(this),256)},setupSelectors:function(){var t,e,i=this.id;e=new RegExp("zoom\\-id(\\s+)?:(\\s+)?"+i+"($|;)"),t=c.browser.features.query?(t=c.$A(document.querySelectorAll('[data-zoom-id="'+this.id+'"]')),u(t).concat(c.$A(document.querySelectorAll('[rel*="zoom-id"]')).filter(function(t){return e.test(t.getAttribute("rel")||"")}))):c.$A(document.getElementsByTagName("A")).filter(function(t){return i===t.getAttribute("data-zoom-id")||e.test(t.getAttribute("rel")||"")}),u(t).jEach(function(t){var e,i;u(t).jAddEvent("click",function(t){t.stopDefaults()}),e=(new S).parseNode(t,this.originalTitle),(this.image.zoom.src.has(e.zoom.url)||this.image.zoom.url.has(e.zoom.url))&&(this.image.small.src.has(e.small.url)||this.image.small.url.has(e.small.url))&&(u(e.origin).jAddClass("mz-thumb-selected"),(e=this.image).origin=t),!e.link&&this.image.link&&(e.link=this.image.link),i=u(function(){this.update(e)}).jBind(this),u(t).jAddEvent("mousedown",function(t){"stopImmediatePropagation"in t&&t.stopImmediatePropagation()},5),u(t).jAddEvent("tap "+("hover"===this.option("selectorTrigger")?"mouseover mouseout":"btnclick"),u(function(t,e){this.updateTimer&&clearTimeout(this.updateTimer),this.updateTimer=!1,"mouseover"===t.type?this.updateTimer=u(i).jDelay(e):"tap"!==t.type&&"btnclick"!==t.type||i()}).jBindAsEvent(this,60)).jAddClass(this.option("cssClass")).jAddClass("mz-thumb"),!0!==this.option("lazyZoom")&&(e.loadSmall(),e.loadZoom()),this.additionalImages.push(e)},this)},update:function(t,r){if(this.ready){if(!t||t===this.image)return!1;this.deactivate(null,!0),this.ready=!1,this.node.jRemoveClass("mz-ready"),this.loadTimer=u(this.showLoading).jBind(this).jDelay(400);var e=u(function(t){var e,i,o,n,s,a,h=c.browser.ieMode<10?"jGetSize":"getBoundingClientRect";if(this.hideLoading(),t.setCurNode("small"),!t.node)return this.ready=!0,void this.node.jAddClass("mz-ready");this.setActiveThumb(t),e=this.image.node[h](),this.expanded&&(t.setCurNode("zoom"),o=c.$new("div").jAddClass("mz-expand-bg"),c.browser.features.cssFilters||c.browser.ieMode<10?o.append(c.$new("img",{srcset:t.getURL("zoom")+" "+t.getRatio("zoom")+"x",src:t.getURL("zoom")}).jSetCss({opacity:0})):o.append(new c.SVGImage(t.node).blur(20).getNode().jSetCss({opacity:0})),u(o).jSetCss({"z-index":-99}).jAppendTo(this.expandBox)),this.expanded&&"zoom"===this.zoomBox.mode&&"always"===this.option("expandZoomOn")?(u(t.node).jSetCss({opacity:0}).jAppendTo(this.node),i=e,s=[t.node,this.image.node],a=[{opacity:[0,1]},{opacity:[1,0]}],u(t.node).jSetCss({"max-width":Math.min(t.jGetSize("zoom").width,this.expandMaxWidth()),"max-height":Math.min(t.jGetSize("zoom").height,this.expandMaxHeight())})):(this.node.jSetCss({height:this.node[h]().height}),this.image.node.jSetCss({position:"absolute",top:0,left:0,bottom:0,right:0,width:"100%",height:"100%","max-width":"","max-height":""}),u(t.node).jSetCss({"max-width":Math.min(t.jGetSize(this.expanded?"zoom":"small").width,this.expanded?this.expandMaxWidth():1/0),"max-height":Math.min(t.jGetSize(this.expanded?"zoom":"small").height,this.expanded?this.expandMaxHeight():1/0),position:"relative",top:0,left:0,opacity:0,transform:""}).jAppendTo(this.node),i=u(t.node)[h](),r||u(t.node).jSetCss({"min-width":e.width,height:e.height,"max-width":e.width,"max-height":""}),this.node.jSetCss({height:"",overflow:""}).jGetSize(),u(t.node).jGetSize(),s=[t.node,this.image.node],a=[c.extend({opacity:[0,1]},r?{scale:[.6,1]}:{"min-width":[e.width,i.width],"max-width":[e.width,i.width],height:[e.height,i.height]}),{opacity:[1,0]}]),this.expanded&&this.expandBg.firstChild&&o.firstChild&&(n=u(this.expandBg.firstChild).jGetCss("opacity"),a=c.browser.gecko?(s=s.concat([o.firstChild]),a.concat([{opacity:[1e-4,n]}])):(s=s.concat([o.firstChild,this.expandBg.firstChild]),a.concat([{opacity:[1e-4,n]},{opacity:[n,1e-4]}]))),new c.PFX(s,{duration:r||this.option("transitionEffect")?r?160:350:0,transition:r?"cubic-bezier(0.175, 0.885, 0.320, 1)":e.width===i.width?"linear":"cubic-bezier(0.25, .1, .1, 1)",onComplete:u(function(){this.image.node.jRemove().getAttribute("style"),this.image.node.removeAttribute("style"),u(t.node).jSetCss(this.expanded?{width:"auto",height:"auto"}:{width:"",height:""}).jSetCss({"min-width":"","min-height":"",opacity:"","max-width":Math.min(t.jGetSize(this.expanded?"zoom":"small").width,this.expanded?this.expandMaxWidth():1/0),"max-height":Math.min(t.jGetSize(this.expanded?"zoom":"small").height,this.expanded?this.expandMaxHeight():1/0)}),this.expanded&&(this.expandBg.jRemove(),this.expandBg=void 0,this.expandBg=o.jSetCssProp("z-index",-100),u(this.expandBg.firstChild).jSetCss({opacity:""}),this.expandCaption&&(t.caption?t.link?this.expandCaption.changeContent("").append(c.$new("a",{href:t.link}).jAddEvent("tap btnclick",this.openLink.jBind(this)).changeContent(t.caption)):this.expandCaption.changeContent(t.caption).jAddClass("mz-show"):this.expandCaption.jRemoveClass("mz-show"))),this.setupZoom(t)}).jBind(this),onBeforeRender:u(function(t,e){void 0!==t.scale&&e.jSetCssProp("transform","scale("+t.scale+")")})}).start(a)}).jBind(this);this.expanded?t.load(e):t.loadSmall(e)}else this.nextImage={image:t,onswipe:r}},setActiveThumb:function(e){var i=!1;u(this.additionalImages).jEach(function(t){u(t.origin).jRemoveClass("mz-thumb-selected"),t===e&&(i=!0)}),i&&e.origin&&u(e.origin).jAddClass("mz-thumb-selected"),this.expandThumbs&&this.expandThumbs.selectItem(e.selector)},setCaption:function(t){this.image.caption&&"off"!==this.option("zoomCaption")&&"magnifier"!==this.zoomBox.mode&&(this.zoomBox.caption||(this.zoomBox.caption=c.$new("div",{class:"mz-caption"}).jAppendTo(this.zoomBox.node.jAddClass("caption-"+this.option("zoomCaption")))),this.zoomBox.caption.changeContent(this.image.caption))},showHint:function(t,e,i){var o;if(!this.expanded){if(this.hintRuns<=0)return;!0!==i&&this.hintRuns--}null==e&&(this.zoomBox.active||this.zoomBox.activating||!this.option("zoomMode")||!this.zoomBox.enabled&&this.image.loaded()||c.browser.mobile&&this.option("expand")&&"zoom"===this.zoomBox.mode&&"inner"===this.zoomBox.position?e=this.option("expand")?this.option("textExpandHint"):"":"hover"===this.zoomBox.trigger?e=this.option("textHoverZoomHint"):"click"===this.zoomBox.trigger&&(e=this.option("textClickZoomHint"))),e?(o=this.node,this.hint?u(this.hintMessage).changeContent(e):(this.hint=c.$new("div",{class:"mz-hint"}),this.hintMessage=c.$new("span",{class:"mz-hint-message"}).append(document.createTextNode(e)).jAppendTo(this.hint),u(this.hint).jAppendTo(this.node)),this.hint.jSetCss({"transition-delay":""}).jRemoveClass("mz-hint-hidden"),this.expanded?o=this.expandFigure:(this.zoomBox.active||this.zoomBox.activating)&&"magnifier"!==this.zoomBox.mode&&"inner"===this.zoomBox.position&&(o=this.zoomBox.node),!0===t&&setTimeout(u(function(){this.hint.jAddClass("mz-hint-hidden")}).jBind(this),16),this.hint.jAppendTo(o)):this.hideHint()},hideHint:function(){this.hint&&this.hint.jSetCss({"transition-delay":"0ms"}).jAddClass("mz-hint-hidden")},showLoading:function(){this.loadingBox||(this.loadingBox=c.$new("div",{class:"mz-loading"}),this.node.append(this.loadingBox),this.loadingBox.jGetSize()),this.loadingBox.jAddClass("shown")},hideLoading:function(){clearTimeout(this.loadTimer),this.loadTimer=null,this.loadingBox&&u(this.loadingBox).jRemoveClass("shown")},setSize:function(t,e){var i,o,n=c.detach(this.zoomBox.size),s=!this.expanded&&this.zoomBox.custom?u(this.zoomBox.custom).jGetSize():{width:0,height:0},a=this.size,h={x:0,y:0};e=e||this.zoomBox.position,this.normalSize=this.image.node.jGetSize(),this.size=this.image.node.jGetSize(),this.boundaries=this.image.node.getBoundingClientRect(),s.height||(s=this.size),!1!==this.option("upscale")&&!1!==this.zoomBox.mode&&"preview"!==this.zoomBox.mode||(t=!1),"preview"===this.zoomBox.mode&&("auto"===n.width&&(n.width=this.zoomSizeOrigin.width),"auto"===n.height&&(n.height=this.zoomSizeOrigin.height)),this.expanded&&"magnifier"===this.zoomBox.mode&&(n.width=70,n.height="auto"),"magnifier"===this.zoomBox.mode&&"auto"===n.height?(this.zoomBox.width=parseFloat(n.width/100)*Math.min(s.width,s.height),this.zoomBox.height=this.zoomBox.width):"zoom"===this.zoomBox.mode&&"inner"===e?(this.size=this.node.jGetSize(),s=this.size,this.boundaries=this.node.getBoundingClientRect(),this.zoomBox.width=s.width,this.zoomBox.height=s.height):(this.zoomBox.width="%"===n.wunits?parseFloat(n.width/100)*s.width:parseInt(n.width),this.zoomBox.height="%"===n.hunits?parseFloat(n.height/100)*s.height:parseInt(n.height)),"preview"===this.zoomBox.mode&&(o=Math.min(Math.min(this.zoomBox.width/this.zoomSizeOrigin.width,this.zoomBox.height/this.zoomSizeOrigin.height),1),this.zoomBox.width=this.zoomSizeOrigin.width*o,this.zoomBox.height=this.zoomSizeOrigin.height*o),this.zoomBox.width=Math.ceil(this.zoomBox.width),this.zoomBox.height=Math.ceil(this.zoomBox.height),this.zoomBox.aspectRatio=this.zoomBox.width/this.zoomBox.height,this.zoomBox.node.jSetCss({width:this.zoomBox.width,height:this.zoomBox.height}),t&&(s=this.expanded?this.expandBox.jGetSize():this.zoomBox.node.jGetSize(),!this.expanded&&.8<this.normalSize.width*this.normalSize.height/(this.zoomSizeOrigin.width*this.zoomSizeOrigin.height)?(this.zoomSize.width=1.5*this.zoomSizeOrigin.width,this.zoomSize.height=1.5*this.zoomSizeOrigin.height):this.zoomSize=c.detach(this.zoomSizeOrigin)),!1===this.zoomBox.mode||this.zoomBox.active||this.expanded&&"always"===this.option("expandZoomOn")||(.8<this.normalSize.width*this.normalSize.height/(this.zoomSize.width*this.zoomSize.height)?(this.zoomSize=c.detach(this.zoomSizeOrigin),this.zoomBox.enable(!1)):this.zoomBox.enable(!0)),this.zoomBox.image.jSetCss({width:this.zoomSize.width,height:this.zoomSize.height}),this.zoomSize.maxWidth=this.zoomSize.width,this.zoomSize.maxHeight=this.zoomSize.height,i=this.zoomBox.node.getInnerSize(),this.zoomBox.innerWidth=Math.ceil(i.width),this.zoomBox.innerHeight=Math.ceil(i.height),this.lens.width=Math.ceil(this.zoomBox.innerWidth/(this.zoomSize.width/this.size.width)),this.lens.height=Math.ceil(this.zoomBox.innerHeight/(this.zoomSize.height/this.size.height)),this.lens.node.jSetCss({width:this.lens.width,height:this.lens.height}),this.lens.image.jSetCss(this.size),c.extend(this.lens,this.lens.node.jGetSize()),this.zoomBox.active&&(clearTimeout(this.moveTimer),this.moveTimer=null,this.lens.innertouch?(this.lens.pos.x*=this.size.width/a.width,this.lens.pos.y*=this.size.height/a.height,h.x=this.lens.spos.x,h.y=this.lens.spos.y):(h.x=this.boundaries.left+this.lens.width/2+this.lens.pos.x*(this.size.width/a.width),h.y=this.boundaries.top+this.lens.height/2+this.lens.pos.y*(this.size.height/a.height)),this.animate(null,h))},reflowZoom:function(t){var e,i,o,n,s,a,h,r,d=u(this.node).jFetch("cr");if(a=5,h=u(window).jGetSize(),r=u(window).jGetScroll(),o={left:a=a||0,right:h.width-a,top:a,bottom:h.height-a,x:r.x,y:r.y},this.zoomBox.position,n=this.expanded?"inner":this.zoomBox.custom?"custom":this.option("zoom-position"),s=this.expanded&&"zoom"===this.zoomBox.mode?this.expandImageStage:document.body,this.expanded&&(o.y=0,o.x=0),t||this.setSize(!0,n),e=this.boundaries.top,"magnifier"!==this.zoomBox.mode){if(t)return void this.setSize(!1);switch(n){case"inner":case"custom":i=e=0;break;case"top":e=this.boundaries.top-this.zoomBox.height-this.option("zoom-distance"),o.top>e&&(e=this.boundaries.bottom+this.option("zoom-distance"),n="bottom"),i=this.boundaries.left;break;case"bottom":e=this.boundaries.bottom+this.option("zoom-distance"),o.bottom<e+this.zoomBox.height&&(e=this.boundaries.top-this.zoomBox.height-this.option("zoom-distance"),n="top"),i=this.boundaries.left;break;case"left":i=this.boundaries.left-this.zoomBox.width-this.option("zoom-distance"),o.left>i&&o.right>=this.boundaries.right+this.option("zoom-distance")+this.zoomBox.width&&(i=this.boundaries.right+this.option("zoom-distance"),n="right");break;case"right":default:i=this.boundaries.right+this.option("zoom-distance"),o.right<i+this.zoomBox.width&&o.left<=this.boundaries.left-this.zoomBox.width-this.option("zoom-distance")&&(i=this.boundaries.left-this.zoomBox.width-this.option("zoom-distance"),n="left")}switch(this.option("zoom-position")){case"top":case"bottom":(o.top>e||o.bottom<e+this.zoomBox.height)&&(n="inner");break;case"left":case"right":(o.left>i||o.right<i+this.zoomBox.width)&&(n="inner")}if(this.zoomBox.position=n,!this.zoomBox.activating&&!this.zoomBox.active)return void(c.browser.mobile&&!this.expanded&&("zoom"===this.zoomBox.mode||!1===this.zoomBox.mode&&this.option("expand"))&&(this.option("expand")?this.zoomBox.enable("inner"!==n):"click"!==this.option("zoomOn")&&(this.zoomBox.trigger="inner"===n?"click":this.option("zoomOn"),this.unregisterActivateEvent(),this.unregisterDeactivateEvent(),this.registerActivateEvent("click"===this.zoomBox.trigger),this.registerDeactivateEvent("click"===this.zoomBox.trigger&&!this.option("expand"))),this.showHint(!1,null,!this.image.loaded())));if(this.setSize(!1),t)return;"custom"===n&&(s=this.zoomBox.custom,o.y=0,o.x=0),"inner"===n?("preview"!==this.zoomBox.mode&&(this.zoomBox.node.jAddClass("mz-inner"),this.node.jAddClass("mz-inner-zoom")),this.lens.hide(),e=this.boundaries.top+o.y,i=this.boundaries.left+o.x,i=e=0,this.expanded||(s=this.node)):(e+=o.y,i+=o.x,this.node.jRemoveClass("mz-inner-zoom"),this.zoomBox.node.jRemoveClass("mz-inner")),this.zoomBox.node.jSetCss({top:e,left:i})}else this.setSize(!1),s=this.node,!c.browser.mobile||this.expanded||this.zoomBox.activating||this.zoomBox.active||this.showHint(!1,null,!(this.option("lazyZoom")&&this.image.loaded()));this.zoomBox.node[this.expanded?"jAddClass":"jRemoveClass"]("mz-expanded"),!this.expanded&&d&&d.jAppendTo("zoom"===this.zoomBox.mode&&"inner"===n?this.zoomBox.node:this.node,(Math.floor(101*Math.random())+1)%2?"top":"bottom"),this.zoomBox.node.jAppendTo(s)},changeZoomLevel:function(t){var e,i,o,n,s=!1,a=t.isMouse?5:3/54;if(this.zoomBox.active){if(u(t).stop(),a=(100+a*Math.abs(t.deltaY))/100,t.deltaY<0&&(a=1/a),"magnifier"===this.zoomBox.mode)i=Math.max(100,Math.round(this.zoomBox.width*a)),o=(i=Math.min(i,.9*this.size.width))/this.zoomBox.aspectRatio,this.zoomBox.width=Math.ceil(i),this.zoomBox.height=Math.ceil(o),this.zoomBox.node.jSetCss({width:this.zoomBox.width,height:this.zoomBox.height}),e=this.zoomBox.node.getInnerSize(),this.zoomBox.innerWidth=Math.ceil(e.width),this.zoomBox.innerHeight=Math.ceil(e.height),s=!0;else{if(this.expanded||"zoom"!==this.zoomBox.mode)return;i=Math.max(this.size.width,Math.round(this.zoomSize.width*a)),o=(i=Math.min(i,this.zoomSize.maxWidth))/(this.zoomSize.maxWidth/this.zoomSize.maxHeight),this.zoomSize.width=Math.ceil(i),this.zoomSize.height=Math.ceil(o)}n=u(window).jGetScroll(),this.lens.width=this.zoomBox.innerWidth/(this.zoomSize.width/this.size.width),this.lens.height=this.zoomBox.innerHeight/(this.zoomSize.height/this.size.height),this.lens.node.jSetCss({width:this.lens.width,height:this.lens.height}),c.extend(this.lens,this.lens.node.jGetSize()),this.zoomBox.active&&(clearTimeout(this.moveTimer),this.moveTimer=null,s&&(this.moveTimer=!0),this.animate(null,{x:t.x-n.x,y:t.y-n.y}),s&&(this.moveTimer=null))}},registerActivateEvent:function(t){var e,i=t?"dbltap btnclick":"touchstart"+(window.navigator.pointerEnabled?" pointerdown":window.navigator.msPointerEnabled?" MSPointerDown":"")+(window.navigator.pointerEnabled?" pointermove":window.navigator.msPointerEnabled?" MSPointerMove":" mousemove"),o=this.node.jFetch("mz:handlers:activate:fn",t?u(this.activate).jBindAsEvent(this):u(function(t){t.isTouchEvent()&&!t.isPrimaryTouch()||t&&"touch"===t.pointerType&&"pointerdown"!==t.type||(e=c.browser.ieMode<9?c.extend({},t):t,this.activateTimer||(clearTimeout(this.activateTimer),this.activateTimer=setTimeout(u(function(){this.activate(e)}).jBind(this),120)))}).jBindAsEvent(this));this.node.jStore("mz:handlers:activate:event",i).jAddEvent(i,o,10)},unregisterActivateEvent:function(){var t=this.node.jFetch("mz:handlers:activate:event"),e=this.node.jFetch("mz:handlers:activate:fn");this.node.jRemoveEvent(t,e),this.node.jDel("mz:handlers:activate:fn")},registerDeactivateEvent:function(t){var e="touchend";window.navigator.pointerEnabled?e+=" pointerup pointerout pointermove":window.navigator.msPointerEnabled?e+=" MSPointerUp MSPointerOut MSPointerMove":e+=" mouseout mousemove",t&&(this.expanded||c.browser.mobile?e="dbltap btnclick":e+=" dbltap btnclick");var i=this.node.jFetch("mz:handlers:deactivate:fn",u(function(t){if((!t.isTouchEvent()||t.isPrimaryTouch())&&(!t||"pointerup"!==t.type||"touch"===t.pointerType))if(!t||"pointermove"!==t.type&&"MSPointerMove"!==t.type&&"mousemove"!==t.type){if(this.zoomBox.node!==t.getRelated()&&("inner"!==this.zoomBox.position&&"magnifier"!==this.zoomBox.mode||!this.zoomBox.node.hasChild(t.getRelated()))&&!this.node.hasChild(t.getRelated()))return void this.deactivate(t)}else{if(!this.ready||!this.zoomBox.enabled||!this.zoomBox.active)return;var e=t.getClientXY();if(e.x<this.boundaries.left||e.x>this.boundaries.right||e.y<this.boundaries.top||e.y>this.boundaries.bottom)return void this.deactivate(t)}}).jBindAsEvent(this));this.node.jStore("mz:handlers:deactivate:event",e).jAddEvent(e,i,20)},unregisterDeactivateEvent:function(){var t=this.node.jFetch("mz:handlers:deactivate:event"),e=this.node.jFetch("mz:handlers:deactivate:fn");this.node.jRemoveEvent(t,e),this.node.jDel("mz:handlers:deactivate:fn")},registerAnimateEvent:function(){var t="touchmove";"android"!==c.browser.platform&&(window.navigator.pointerEnabled?t+=" pointermove":window.navigator.msPointerEnabled?t+=" MSPointerMove":t+=" mousemove");var e=this.node.jFetch("mz:handlers:animate:fn",u(this.animate).jBindAsEvent(this));this.node.jStore("mz:handlers:animate:event",t).jAddEvent(t,e)},unregisterAnimateEvent:function(){var t=this.node.jFetch("mz:handlers:animate:event"),e=this.node.jFetch("mz:handlers:animate:fn");this.node.jRemoveEvent(t,e)},registerEvents:function(){this.moveBind=this.move.jBind(this),this.node.jAddEvent(["touchstart",window.navigator.pointerEnabled?"pointerdown":"MSPointerDown"],u(function(t){c.browser.androidBrowser&&this.option("zoomMode")&&"click"!==this.option("zoomOn")&&"touchstart"===t.type&&(t.stopDefaults(),c.browser.gecko&&t.stopDistribution()),this.zoomBox.active&&"inner"===this.zoomBox.position&&t.isPrimaryTouch()&&(this.lens.spos=t.getClientXY())}).jBindAsEvent(this),10),this.node.jAddEvent(["touchend",window.navigator.pointerEnabled?"pointerup":"MSPointerUp"],u(function(t){t.isTouchEvent()&&t.isPrimaryTouch()&&(this.lens.touchmovement=!1)}).jBindAsEvent(this),10),this.registerAnimateEvent(),this.option("zoomMode")&&(this.registerActivateEvent("click"===this.option("zoomOn")),this.registerDeactivateEvent("click"===this.option("zoomOn"))),this.node.jAddEvent("mousedown",function(t){t.stopDistribution()},10).jAddEvent("btnclick",u(function(t){this.node.jRaiseEvent("MouseEvent","click"),this.expanded&&this.expandBox.jCallEvent("btnclick",t)}).jBind(this),15),this.option("expand")?this.node.jAddEvent("tap btnclick",u(this.expand).jBindAsEvent(this),15):this.node.jAddEvent("tap btnclick",u(this.openLink).jBindAsEvent(this),15),1<this.additionalImages.length&&this.swipe(),!c.browser.mobile&&this.option("variableZoom")&&this.node.jAddEvent("mousescroll",this.changeZoomLevel.jBindAsEvent(this)),c.browser.mobile&&this.pinchToZoom(),u(window).jAddEvent(c.browser.mobile?"resize":"resize scroll",this.onResize),this.option("history")&&u(window).jAddEvent("popstate",this.onHistoryStateChange)},unregisterEvents:function(){this.node&&this.node.jRemoveEvent("mousescroll"),u(window).jRemoveEvent("resize scroll",this.onResize),this.option("history")&&u(window).jRemoveEvent("popstate",this.onHistoryStateChange),u(this.additionalImages).jEach(function(t){u(t.origin).jClearEvents()})},activate:function(t){var e,i,o,n,s,a=0,h=0;this.image.loaded()&&this.ready&&this.zoomBox.enabled&&!this.zoomBox.active&&!this.zoomBox.activating?t&&"pointermove"===t.type&&"touch"===t.pointerType||(this.option("zoomMode")||!this.option("expand")||this.expanded?(this.zoomBox.activating=!0,this.expanded&&"zoom"===this.zoomBox.mode&&(n=this.image.node.jGetRect(),this.expandStage.jAddClass("mz-zoom-in"),s=this.expandFigure.jGetRect(),h=(n.left+n.right)/2-(s.left+s.right)/2,a=(n.top+n.bottom)/2-(s.top+s.bottom)/2),this.zoomBox.image.jRemoveEvent("transitionend"),this.zoomBox.node.jRemoveClass("mz-deactivating").jRemoveEvent("transitionend"),this.zoomBox.node.jAddClass("mz-activating"),this.node.jAddClass("mz-activating"),this.reflowZoom(),i="zoom"===this.zoomBox.mode?this.zoomBox.position:this.zoomBox.mode,!c.browser.features.transition||this.expanded&&"always"===this.option("expandZoomOn")?(this.zoomBox.node.jRemoveClass("mz-activating"),this.zoomBox.activating=!1,this.zoomBox.active=!0):"inner"===i?(o=this.image.node.jGetSize(),this.zoomBox.image.jSetCss({transform:"translate3d(0,"+a+"px, 0) scale("+o.width/this.zoomSize.width+", "+o.height/this.zoomSize.height+")"}).jGetSize(),this.zoomBox.image.jAddEvent("transitionend",u(function(){this.zoomBox.image.jRemoveEvent("transitionend"),this.zoomBox.node.jRemoveClass("mz-activating mz-p-"+i),this.zoomBox.activating=!1,this.zoomBox.active=!0}).jBind(this)),this.zoomBox.node.jAddClass("mz-p-"+i).jGetSize(),c.browser.mobile||!c.browser.chrome||"chrome"!==c.browser.uaName&&"opera"!==c.browser.uaName||(this.zoomBox.activating=!1,this.zoomBox.active=!0)):(this.zoomBox.node.jAddEvent("transitionend",u(function(){this.zoomBox.node.jRemoveEvent("transitionend"),this.zoomBox.node.jRemoveClass("mz-activating mz-p-"+i)}).jBind(this)),this.zoomBox.node.jSetCss({transition:"none"}),this.zoomBox.node.jAddClass("mz-p-"+i).jGetSize(),this.zoomBox.node.jSetCss({transition:""}).jGetSize(),this.zoomBox.node.jRemoveClass("mz-p-"+i),this.zoomBox.activating=!1,this.zoomBox.active=!0),this.expanded||this.showHint(!0),t?(t.stop().stopQueue(),e=t.getClientXY(),"magnifier"===this.zoomBox.mode&&/tap/i.test(t.type)&&(e.y-=this.zoomBox.height/2+10),"inner"===i&&(/tap/i.test(t.type)||t.isTouchEvent())&&(this.lens.pos={x:0,y:0},e.x=-(e.x-this.boundaries.left-this.size.width/2)*(this.zoomSize.width/this.size.width),e.y=-(e.y-this.boundaries.top-this.size.height/2)*(this.zoomSize.height/this.size.height))):(e={x:this.boundaries.left+(this.boundaries.right-this.boundaries.left)/2,y:this.boundaries.top+(this.boundaries.bottom-this.boundaries.top)/2},c.browser.mobile&&this.expanded&&"always"===this.option("expandZoomOn")&&(this.lens.innertouch=!0,this.lens.pos={x:0,y:0},e.x=-(e.x-this.boundaries.left-this.size.width/2)*(this.zoomSize.width/this.size.width),e.y=-(e.y-this.boundaries.top-this.size.height/2)*(this.zoomSize.height/this.size.height))),this.node.jRemoveClass("mz-activating").jAddClass("mz-active"),e.x+=-h,e.y+=-a,this.lens.spos={x:0,y:0},this.lens.dx=0,this.lens.dy=0,this.animate(t,e,!0),C("onZoomIn",this.id)):this.zoomBox.active=!0):this.image.loaded()||this.initEvent||(t&&(this.initEvent=y(t),t.stopQueue()),this.image.load(this.setupZoom.jBind(this)),this.loadTimer||(this.loadTimer=u(this.showLoading).jBind(this).jDelay(400)))},deactivate:function(t,e){var i,o,n,s,a=0,h=this.zoomBox.active;this.initEvent=null,this.ready&&(t&&"pointerout"===t.type&&"touch"===t.pointerType||(clearTimeout(this.moveTimer),this.moveTimer=null,clearTimeout(this.activateTimer),this.activateTimer=null,this.zoomBox.activating=!1,!(this.zoomBox.active=!1)===e||this.expanded||h&&(c.browser.mobile&&!this.expanded&&"zoom"===this.zoomBox.mode?this.reflowZoom():this.showHint()),this.zoomBox.enabled&&(t&&t.stop(),this.zoomBox.image.jRemoveEvent("transitionend"),this.zoomBox.node.jRemoveClass("mz-activating").jRemoveEvent("transitionend"),this.expanded&&(s=this.expandFigure.jGetRect(),"always"!==this.option("expandZoomOn")&&this.expandStage.jRemoveClass("mz-zoom-in"),this.image.node.jSetCss({"max-height":this.expandMaxHeight()}),(n=this.image.node.jGetRect()).left,n.right,s.left,s.right,a=(n.top+n.bottom)/2-(s.top+s.bottom)/2),i="zoom"===this.zoomBox.mode?this.zoomBox.position:this.zoomBox.mode,!c.browser.features.transition||!t||this.expanded&&"always"===this.option("expandZoomOn")?(this.zoomBox.hide(),this.node.jRemoveClass("mz-active")):"inner"===i?(this.zoomBox.image.jAddEvent("transitionend",u(function(){this.zoomBox.image.jRemoveEvent("transitionend"),this.node.jRemoveClass("mz-active"),setTimeout(u(function(){this.zoomBox.hide()}).jBind(this),32)}).jBind(this)),o=this.image.node.jGetSize(),this.zoomBox.node.jAddClass("mz-deactivating mz-p-"+i).jGetSize(),this.zoomBox.image.jSetCss({transform:"translate3d(0,"+a+"px,0) scale("+o.width/this.zoomSize.maxWidth+", "+o.height/this.zoomSize.maxHeight+")"})):(this.zoomBox.node.jAddEvent("transitionend",u(function(){this.zoomBox.hide(),this.node.jRemoveClass("mz-active")}).jBind(this)),this.zoomBox.node.jGetCss("opacity"),this.zoomBox.node.jAddClass("mz-deactivating mz-p-"+i),this.node.jRemoveClass("mz-active")),this.lens.dx=0,this.lens.dy=0,this.lens.spos={x:0,y:0},this.lens.hide(),h&&C("onZoomOut",this.id))))},animate:function(t,e,i){var o,n,s,a,h=e,r=0,d=0,l=!1;if(this.zoomBox.active||i){if(t){if(u(t).stopDefaults().stopDistribution(),t.isTouchEvent()&&!t.isPrimaryTouch())return;(l=/tap/i.test(t.type)||t.isTouchEvent())&&!this.lens.touchmovement&&(this.lens.touchmovement=l),h=h||t.getClientXY()}"preview"!==this.zoomBox.mode&&("zoom"===this.zoomBox.mode&&"inner"===this.zoomBox.position&&(t&&l||!t&&this.lens.innertouch)?(this.lens.innertouch=!0,o=this.lens.pos.x+(h.x-this.lens.spos.x),n=this.lens.pos.y+(h.y-this.lens.spos.y),this.lens.spos=h,s=-(r=Math.min(0,this.zoomBox.innerWidth-this.zoomSize.width)/2),a=-(d=Math.min(0,this.zoomBox.innerHeight-this.zoomSize.height)/2)):(this.lens.innertouch=!1,"magnifier"===this.zoomBox.mode&&(h.y=Math.max(this.boundaries.top,Math.min(h.y,this.boundaries.bottom)),h.x=Math.max(this.boundaries.left,Math.min(h.x,this.boundaries.right))),o=h.x-this.boundaries.left,n=h.y-this.boundaries.top,s=this.size.width-this.lens.width,a=this.size.height-this.lens.height,o-=this.lens.width/2,n-=this.lens.height/2),"magnifier"!==this.zoomBox.mode&&(o=Math.max(r,Math.min(o,s)),n=Math.max(d,Math.min(n,a))),this.lens.pos.x=o,this.lens.pos.y=n,"zoom"===this.zoomBox.mode&&(c.browser.features.transform?(this.lens.node.jSetCss({transform:"translate("+this.lens.pos.x+"px,"+this.lens.pos.y+"px)"}),this.lens.image.jSetCss({transform:"translate("+-(this.lens.pos.x+this.lens.border.x)+"px, "+-(this.lens.pos.y+this.lens.border.y)+"px)"})):(this.lens.node.jSetCss({top:this.lens.pos.y,left:this.lens.pos.x}),this.lens.image.jSetCss({top:-(this.lens.pos.y+this.lens.border.y),left:-(this.lens.pos.x+this.lens.border.x)}))),"magnifier"===this.zoomBox.mode&&(!this.lens.touchmovement||t&&"dbltap"===t.type||(h.y-=this.zoomBox.height/2+10),this.zoomBox.node.jSetCss({top:h.y-this.boundaries.top-this.zoomBox.height/2,left:h.x-this.boundaries.left-this.zoomBox.width/2})),this.moveTimer||(this.lens.dx=0,this.lens.dy=0,this.move(1)))}},move:function(t){var e,i,o,n,s,a;isFinite(t)||(t=this.lens.innertouch?this.lens.touchmovement?.4:.16:this.option("smoothing")?.2:this.lens.touchmovement?.4:.8),e=(this.lens.pos.x-this.lens.dx)*t,i=(this.lens.pos.y-this.lens.dy)*t,this.lens.dx+=e,this.lens.dy+=i,(!this.moveTimer||1e-6<Math.abs(e)||1e-6<Math.abs(i))&&(n=this.lens.innertouch?(o=this.lens.dx,this.lens.dy):(o=this.lens.dx*(this.zoomSize.width/this.size.width)-Math.max(0,this.zoomSize.width-this.zoomBox.innerWidth)/2,n=this.lens.dy*(this.zoomSize.height/this.size.height)-Math.max(0,this.zoomSize.height-this.zoomBox.innerHeight)/2,"magnifier"===this.zoomBox.mode&&(o=Math.round(o),n=Math.round(n)),o=-o,-n),s=this.zoomSize.width/this.zoomSize.maxWidth,a=this.zoomSize.height/this.zoomSize.maxHeight,this.zoomBox.image.jSetCss(c.browser.features.transform?{transform:x+o+"px,"+n+"px"+w+" scale("+s+","+a+")"}:{width:this.zoomSize.width,height:this.zoomSize.height,left:-(this.lens.dx*(this.zoomSize.width/this.size.width)+Math.min(0,this.zoomSize.width-this.zoomBox.innerWidth)/2),top:-(this.lens.dy*(this.zoomSize.height/this.size.height)+Math.min(0,this.zoomSize.height-this.zoomBox.innerHeight)/2)})),"magnifier"!==this.zoomBox.mode&&(this.moveTimer=setTimeout(this.moveBind,16))},swipe:function(){var e,i,o,n,s,a,h,r="",d={},l=0,m={transition:c.browser.cssTransform+String.fromCharCode(32)+"300ms cubic-bezier(.18,.35,.58,1)"},t=u(function(t){if(this.ready&&!this.zoomBox.active)if("dragstart"===t.state)clearTimeout(this.activateTimer),this.activateTimer=null,l=0,d={x:t.x,y:t.y,ts:t.timeStamp},e=this.size.width,i=e/2,this.image.node.jRemoveEvent("transitionend"),this.image.node.jSetCssProp("transition",""),this.image.node.jSetCssProp("transform","translate3d(0, 0, 0)"),h=null;else{if(n=t.x-d.x,s={x:0,y:0,z:0},null===h&&(h=Math.abs(t.x-d.x)<Math.abs(t.y-d.y)),h)return;if(t.stop(),"dragend"===t.state)return l=0,a=null,o=t.timeStamp-d.ts,(Math.abs(n)>i||o<201&&30<Math.abs(n))&&(r=0<n?"backward":n<=0?"forward":"")&&("backward"===r?(a=this.getPrev(),l+=10*e):(a=this.getNext(),l-=10*e)),s.x=l,s.deg=s.x/e*-90,this.image.node.jAddEvent("transitionend",u(function(t){this.image.node.jRemoveEvent("transitionend"),this.image.node.jSetCssProp("transition",""),a&&(this.image.node.jSetCss({transform:"translate3d("+s.x+"px, 0px, 0px)"}),this.update(a,!0))}).jBind(this)),this.image.node.jSetCss(m),this.image.node.jSetCss({"transition-duration":s.x?"100ms":"300ms",opacity:1-.2*Math.abs(s.x/e),transform:"translate3d("+s.x+"px, 0px, 0px)"}),void(n=0);s.x=n,s.z=-50*Math.abs(s.x/i),s.deg=s.x/i*-60,this.image.node.jSetCss({opacity:1-.2*Math.abs(s.x/i),transform:"translate3d("+s.x+"px, 0px, "+s.z+"px)"})}}).jBind(this);this.node.jAddEvent("touchdrag",t)},pinchToZoom:function(){var a,h={width:0,height:0},n=!1,s=u(function(t,e,i){var o,n;if(this.zoomBox.active||i){var s=c.detach(this.zoomSize);o=Math.max(a.width,Math.round(h.width*t)),n=(o=Math.min(o,this.zoomSize.maxWidth))/(this.zoomSize.maxWidth/this.zoomSize.maxHeight),this.zoomSize.width=Math.floor(o),this.zoomSize.height=Math.floor(n),this.lens.width=Math.ceil(this.zoomBox.innerWidth/(this.zoomSize.width/a.width)),this.lens.height=Math.ceil(this.zoomBox.innerHeight/(this.zoomSize.height/a.height)),this.lens.node.jSetCss({width:this.lens.width,height:this.lens.height}),c.extend(this.lens,this.lens.node.jGetSize()),clearTimeout(this.moveTimer),this.moveTimer=null,e.x=this.lens.spos.x*(this.zoomSize.width/s.width)+(e.x-this.boundaries.left-this.size.width/2)*(1-this.zoomSize.width/s.width),e.y=this.lens.spos.y*(this.zoomSize.height/s.height)+(e.y-this.boundaries.top-this.size.height/2)*(1-this.zoomSize.height/s.height),this.lens.spos={x:0,y:0},this.lens.pos={x:0,y:0},this.lens.innertouch=!0,this.animate(null,{x:e.x,y:e.y}),clearTimeout(this.moveTimer),this.moveTimer=null}}).jBind(this),t=u(function(t){if(n||"pinchstart"===t.state||t.cloned){t.stop();var e=u(window).jGetScroll(),i=!1,o={x:t.centerPoint.x-e.x,y:t.centerPoint.y-e.y};switch(t.state){case"pinchstart":this.unregisterAnimateEvent(),h=c.detach(this.zoomSize),a=this.expanded?this.image.node.jGetSize():this.size,clearTimeout(this.moveTimer),this.moveTimer=null,this.zoomBox.active&&(this.lens.spos=c.detach(this.lens.pos)),n=!0;break;case"pinchend":n=!1,this.zoomBox.active&&("always"!==this.option("expandZoomOn")&&this.zoomSize.width<=a.width&&this.zoomSize.height<=a.height?(n=!1,this.deactivate(null)):0<t.points.length&&(this.lens.spos={x:t.points[0].clientX,y:t.points[0].clientY})),this.registerAnimateEvent();break;case"pinchresize":break;case"pinchmove":if(!this.expanded||-1!==t.zoom||this.zoomBox.active&&"always"!==this.option("expandZoomOn")){if(!this.expanded||1!==t.zoom||"always"!==this.option("expandZoomOn"))if(this.option("expand")&&!this.expanded){if(1.1<t.scale)return n=!1,this.registerAnimateEvent(),void this.expand(t)}else{if(1===t.zoom&&!this.zoomBox.active){if(!this.image.loaded()||!this.ready||!this.zoomBox.enabled)return void(this.image.loaded()||this.initEvent||(t&&(this.initEvent=y(t),t.stopQueue()),this.image.load(this.setupZoom.jBind(this)),this.loadTimer||(this.loadTimer=u(this.showLoading).jBind(this).jDelay(400))));this.zoomBox.activating=!0,this.expanded&&"zoom"===this.zoomBox.mode&&this.expandStage.jAddClass("mz-zoom-in"),this.zoomBox.image.jRemoveEvent("transitionend"),this.zoomBox.node.jRemoveClass("mz-deactivating").jRemoveEvent("transitionend"),this.zoomBox.node.jAddClass("mz-activating"),this.node.jAddClass("mz-activating"),this.reflowZoom(),this.zoomSize.width=a.width,this.zoomSize.height=a.height,this.zoomBox.activating=!1,this.zoomBox.active=!0,h=c.detach(this.zoomSize),this.zoomBox.node.jRemoveClass("mz-activating"),this.node.jRemoveClass("mz-activating").jAddClass("mz-active"),this.lens.spos={x:0,y:0},this.lens.pos={x:0,y:0},i=!0}s(t.scale,o,i),i&&C("onZoomIn",this.id)}}else t.scale<.5&&this.close()}}}).jBind(this);this.node.jAddEvent("pinch",t)},setupButtons:function(){var i=document.createDocumentFragment();u(["prev","next","close"]).jEach(function(t){var e="mz-button";switch(this.buttons[t]=c.$new("button",{type:"button",title:this.option("text-btn-"+t)}).jAddClass(e).jAddClass(e+"-"+t),i.appendChild(this.buttons[t]),t){case"prev":this.buttons[t].jAddEvent("tap btnclick",function(t){t.stop(),this.update(this.getPrev())}.jBindAsEvent(this));break;case"next":this.buttons[t].jAddEvent("tap btnclick",function(t){t.stop(),this.update(this.getNext())}.jBindAsEvent(this));break;case"close":this.buttons[t].jAddEvent("tap btnclick",function(t){t.stop(),this.close()}.jBindAsEvent(this)).hide()}},this),this.toggleNavButtons(1<this.additionalImages.length),this.navControlsLayer=c.$new("div").jAddClass("mz-nav-controls").append(i).jAppendTo(this.node)},toggleNavButtons:function(t){t?(this.buttons.next.show(),this.buttons.prev.show()):(this.buttons.next.hide(),this.buttons.prev.hide())},setupExpandGallery:function(){var e,t;this.additionalImages.length?this.expandGallery=this.additionalImages:(e=this.placeholder.getAttribute("data-gallery"))&&(t=c.browser.features.query?c.$A(document.querySelectorAll('.MagicZoom[data-gallery="'+e+'"], .MagicZoomPlus[data-gallery="'+e+'"]')):c.$A(document.getElementsByTagName("A")).filter(function(t){return e===t.getAttribute("data-gallery")}),u(t).jEach(function(t){var e,i;(e=j(t))&&0<e.additionalImages.length||(e?(i=new S(e.image.small.url,e.image.zoom.url,e.image.caption,null,e.image.origin)).link=e.image.link:i=(new S).parseNode(t,e?e.originalTitle:null),(this.image.zoom.src.has(i.zoom.url)||this.image.zoom.url.has(i.zoom.url))&&(this.image.small.src.has(i.small.url)||this.image.small.url.has(i.small.url))&&(i=this.image),this.expandGallery.push(i))},this),this.primaryImage=this.image),this.expandedViewId||(this.expandedViewId=Math.floor(Math.random()*c.now())),1<this.expandGallery.length?(this.expandStage.jAddClass("with-thumbs"),this.expandNav=c.$new("div",{class:"mz-expand-thumbnails"}).jAppendTo(this.expandStage),this.expandThumbs=new i(this.expandNav),u(this.expandGallery).jEach(function(e){var i=u(function(t){this.setActiveThumb(e),this.update(e)}).jBind(this);e.selector=this.expandThumbs.addItem(c.$new("img",{src:e.getURL("small")}).jAddEvent("tap btnclick",function(t){t.stop()}).jAddEvent("tap "+("hover"===this.option("selectorTrigger")?"mouseover mouseout":"btnclick"),u(function(t,e){this.updateTimer&&clearTimeout(this.updateTimer),this.updateTimer=!1,"mouseover"===t.type?this.updateTimer=u(i).jDelay(e):"tap"!==t.type&&"btnclick"!==t.type||i()}).jBindAsEvent(this,60)))},this)):this.expandStage.jRemoveClass("with-thumbs"),this.toggleNavButtons(1<this.expandGallery.length),this.buttons.close.show()},destroyExpandGallery:function(){var t;if(this.expandThumbs&&(this.expandThumbs.stop(),this.expandThumbs=null),this.expandNav&&(this.expandNav.jRemove(),this.expandNav=null),this.toggleNavButtons(1<this.additionalImages.length),this.buttons.close.hide(),1<this.expandGallery.length&&!this.additionalImages.length)for(this.node.jRemoveEvent("touchdrag"),this.image.node.jRemove().getAttribute("style"),this.image.node.removeAttribute("style"),this.primaryImage.node.jAppendTo(this.node),this.setupZoom(this.primaryImage);t=this.expandGallery.pop();)t!==this.primaryImage&&(t.small.node&&(t.small.node.kill(),t.small.node=null),t.zoom.node&&(t.zoom.node.kill(),t.zoom.node=null),t=null);this.expandGallery=[]},close:function(){this.ready&&this.expanded&&("ios"===c.browser.platform&&"safari"===c.browser.uaName&&7===parseInt(c.browser.uaVersion)&&(clearInterval(z),z=null),u(document).jRemoveEvent("keydown",this.keyboardCallback),this.deactivate(null,!0),this.ready=!1,c.browser.fullScreen.capable&&c.browser.fullScreen.enabled()?c.browser.fullScreen.cancel():c.browser.features.transition?(this.node.jRemoveEvent("transitionend").jSetCss({transition:""}),this.node.jAddEvent("transitionend",this.onClose),c.browser.webkit&&setTimeout(u(function(){this.onClose()}).jBind(this),260),this.expandBg.jRemoveEvent("transitionend").jSetCss({transition:""}),this.expandBg.jSetCss({transition:"all 0.6s cubic-bezier(0.895, 0.030, 0.685, 0.220) 0.0s"}).jGetSize(),this.node.jSetCss({transition:"all .3s cubic-bezier(0.600, 0, 0.735, 0.045) 0s"}).jGetSize(),!1!==this.zoomBox.mode&&"always"===this.option("expandZoomOn")&&"magnifier"!==this.option("expandZoomMode")&&(this.image.node.jSetCss({"max-height":this.image.jGetSize("zoom").height}),this.image.node.jSetCss({"max-width":this.image.jGetSize("zoom").width})),this.expandBg.jSetCss({opacity:.4}),this.node.jSetCss({opacity:.01,transform:"scale(0.4)"})):this.onClose())},expand:function(t){if(this.image.loaded()&&this.ready&&!this.expanded){t&&t.stopQueue();var e=u(this.node).jFetch("cr");this.hideHint(),this.hintRuns--,this.deactivate(null,!0),this.unregisterActivateEvent(),this.unregisterDeactivateEvent(),this.ready=!1,this.expandBox||(this.expandBox=c.$new("div").jAddClass("mz-expand").jAddClass(this.option("cssClass")).jSetCss({opacity:0}),this.expandStage=c.$new("div").jAddClass("mz-expand-stage").jAppendTo(this.expandBox),this.expandBox.jAddEvent("mousescroll touchstart dbltap",u(function(t){u(t).stop()})),this.option("closeOnClickOutside")&&this.expandBox.jAddEvent("tap btnclick",function(t){var e=t.jGetPageXY(),i=u("magnifier"===this.option("expandZoomMode")?this.zoomBox.node:this.zoomBox.image).jGetRect();if("always"!==this.option("expandZoomOn")&&i.top<=e.y&&e.y<=i.bottom&&i.left<=e.x&&e.x<=i.right)return t.stopQueue(),void this.deactivate(t);"always"!==this.option("expandZoomOn")&&this.node.hasChild(t.getOriginalTarget())||(t.stop(),this.close())}.jBindAsEvent(this)),this.keyboardCallback=u(function(t){var e=null;27!==t.keyCode&&37!==t.keyCode&&39!==t.keyCode||(u(t).stop(),27===t.keyCode?this.close():(e=37===t.keyCode?this.getPrev():this.getNext())&&this.update(e))}).jBindAsEvent(this),this.onExpand=u(function(){if(this.node.jRemoveEvent("transitionend").jSetCss({transition:"",transform:"translate3d(0, 0, 0)"}),!this.expanded){if(this.expanded=!0,this.option("history"))try{var t="#mz-expanded-view-"+this.expandedViewId;window.location.hash!==t&&(history.state&&history.state.expandedView&&history.state.mzId?history.replaceState({expandedView:this.expandedViewId,mzId:this.id},document.title,t):history.pushState({expandedView:this.expandedViewId,mzId:this.id},document.title,t))}catch(t){}var o;this.expandBox.jRemoveClass("mz-expand-opening").jSetCss({opacity:1}),this.zoomBox.setMode(this.option("expandZoomMode")),this.zoomSize=c.detach(this.zoomSizeOrigin),this.resizeCallback(),this.expandCaption&&this.image.caption&&this.expandCaption.jAddClass("mz-show"),"always"!==this.option("expandZoomOn")&&(this.registerActivateEvent(!0),this.registerDeactivateEvent(!0)),this.ready=!0,"always"===this.option("expandZoomOn")&&(!1!==this.zoomBox.mode&&this.zoomBox.enable(!0),c.browser.mobile&&this.mobileZoomHint&&(this.mobileZoomHint=!1),this.activate()),(c.browser.mobile||this.option("forceTouch"))&&this.mobileZoomHint&&this.zoomBox.enabled&&(this.showHint(!0,this.option("textClickZoomHint")),this.hintRuns!==1/0&&(this.mobileZoomHint=!1)),this.navControlsLayer.jRemoveClass("mz-hidden").jAddClass("mz-fade mz-visible"),this.expandNav&&this.expandNav.jRemoveClass("mz-hidden").jAddClass("mz-fade mz-visible"),this.expandThumbs&&(this.expandThumbs.run(),this.setActiveThumb(this.image)),e&&e.jAppendTo(this.expandBox,(Math.floor(101*Math.random())+1)%2?"top":"bottom"),1<this.expandGallery.length&&!this.additionalImages.length&&this.swipe(),u(document).jAddEvent("keydown",this.keyboardCallback),"ios"===c.browser.platform&&"safari"===c.browser.uaName&&7===parseInt(c.browser.uaVersion)&&(o=null,z=setInterval(function(){var t=90===window.orientation||-90===window.orientation,e=window.innerHeight,i=.85*(t?screen.availWidth:screen.availHeight);null!==o&&!1!==o||!(t&&e<i||!t&&e<i)?null!==o&&!0!==o||!(t&&i<e||!t&&i<e)||(o=!1,n()):(o=!0,n())},250)),C("onExpandOpen",this.id)}function n(){window.scrollTo(document.body.scrollLeft,document.body.scrollTop),window.dispatchEvent(new Event("resize"))}}).jBind(this),this.onClose=u(function(){this.node.jRemoveEvent("transitionend"),this.expanded&&(this.expanded&&(u(document).jRemoveEvent("keydown",this.keyboardCallback),this.deactivate(null,!0)),this.setSize(!0),this.destroyExpandGallery(),this.expanded=!1,this.option("history")&&window.location.hash==="#mz-expanded-view-"+this.expandedViewId&&history.back(),this.zoomBox.setMode(this.option("zoomMode")),this.node.replaceChild(this.image.getNode("small"),this.image.node),this.image.setCurNode("small"),u(this.image.node).jSetCss({width:"",height:"","max-width":Math.min(this.image.jGetSize("small").width),"max-height":Math.min(this.image.jGetSize("small").height)}),this.lens.image.src=this.image.getURL("small"),this.node.jSetCss({opacity:"",transition:""}),this.node.jSetCss({transform:"translate3d(0, 0, 0)"}),u(this.placeholder).replaceChild(this.node,this.stubNode),this.navControlsLayer.jRemoveClass("mz-expand-controls").jRemoveClass("mz-hidden").jAddClass("mz-fade mz-visible").jAppendTo(this.node),this.setSize(!0),this.expandCaption&&(this.expandCaption.jRemove(),this.expandCaption=null),this.unregisterActivateEvent(),this.unregisterDeactivateEvent(),"always"===this.option("zoomOn")?this.activate():!1!==this.option("zoomMode")&&(this.registerActivateEvent("click"===this.option("zoomOn")),this.registerDeactivateEvent("click"===this.option("zoomOn"))),this.showHint(),this.expandBg.jRemoveEvent("transitionend"),this.expandBox.jRemove(),this.expandBg.jRemove(),this.expandBg=null,s&&s.jRemove(),u(c.browser.getDoc()).jRemoveClass("mz-expanded-view-open"),this.ready=!0,c.browser.ieMode<10?this.resizeCallback():u(window).jRaiseEvent("UIEvent","resize"),C("onExpandClose",this.id))}).jBind(this),this.expandImageStage=c.$new("div",{class:"mz-image-stage"}).jAppendTo(this.expandStage),this.expandFigure=c.$new("figure").jAppendTo(this.expandImageStage),this.stubNode=this.node.cloneNode(!1)),this.navControlsLayer.jAddClass("mz-expand-controls").jAppendTo(this.expandImageStage),this.setupExpandGallery(),s&&s.jAppendTo(document.body),u(c.browser.getDoc()).jAddClass("mz-expanded-view-open"),u(document.body).jGetSize(),"fullscreen"===this.option("expand")?(this.prepareExpandedView(),c.browser.fullScreen.request(this.expandBox,{onEnter:u(function(){this.onExpand()}).jBind(this),onExit:this.onClose,fallback:u(function(){this.expandToWindow()}).jBind(this)})):setTimeout(u(function(){this.prepareExpandedView(),this.expandToWindow()}).jBind(this),96)}else this.image.loaded()||this.initEvent||(t&&(this.initEvent=y(t),t.stopQueue(),"tap"===t.type&&t.events[1].stopQueue()),this.image.load(this.setupZoom.jBind(this)),this.loadTimer||(this.loadTimer=u(this.showLoading).jBind(this).jDelay(400)))},prepareExpandedView:function(){var t,e;t=c.$new("img",{srcset:this.image.getURL("zoom")+" "+this.image.getRatio("zoom")+"x",src:this.image.getURL("zoom")}),this.expandBg=c.$new("div").jAddClass("mz-expand-bg").append(c.browser.features.cssFilters||c.browser.ieMode<10?t:new c.SVGImage(t).blur(20).getNode()).jAppendTo(this.expandBox),"always"===this.option("expandZoomOn")&&!1!==this.option("expandZoomMode")&&this.expandStage.jAddClass("mz-always-zoom"+("zoom"===this.option("expandZoomMode")?" mz-zoom-in":"")).jGetSize(),e=u(this.node)[c.browser.ieMode<10?"jGetSize":"getBoundingClientRect"](),u(this.stubNode).jSetCss({width:e.width,height:e.height}),this.node.replaceChild(this.image.getNode("zoom"),this.image.node),this.image.setCurNode("zoom"),this.expandBox.jAppendTo(document.body),s&&this.expandBox.jSetCss({height:window.innerHeight,maxHeight:"100vh",top:Math.abs(s.getBoundingClientRect().top)}),this.expandMaxWidth=function(){var t=this.expandImageStage;return 50<u(this.expandFigure).jGetSize().width&&(t=this.expandFigure),function(){return"always"===this.option("expandZoomOn")&&!1!==this.option("expandZoomMode")&&"magnifier"!==this.option("expandZoomMode")?1/0:Math.round(u(t).getInnerSize().width)}}.call(this),this.expandMaxHeight=function(){var t=this.expandImageStage;return 50<u(this.expandFigure).jGetSize().height&&(t=this.expandFigure),function(){return"always"===this.option("expandZoomOn")&&!1!==this.option("expandZoomMode")&&"magnifier"!==this.option("expandZoomMode")?1/0:Math.round(u(t).getInnerSize().height)}}.call(this),this.navControlsLayer.jRemoveClass("mz-fade mz-visible").jAddClass("mz-hidden"),this.expandNav&&this.expandNav.jRemoveClass("mz-fade mz-visible").jAddClass("mz-hidden"),this.option("expandCaption")&&(this.expandCaption=c.$new("figcaption",{class:"mz-caption"}).jAppendTo(this.expandImageStage),this.expandCaption&&this.image.caption&&(this.image.link?this.expandCaption.append(c.$new("a",{href:this.image.link}).jAddEvent("tap btnclick",this.openLink.jBind(this)).changeContent(this.image.caption)):this.expandCaption.changeContent(this.image.caption))),this.image.node.jSetCss({"max-height":Math.min(this.image.jGetSize("zoom").height,this.expandMaxHeight())}),this.image.node.jSetCss({"max-width":Math.min(this.image.jGetSize("zoom").width,this.expandMaxWidth())}),this.expandFigure.append(u(this.placeholder).replaceChild(this.stubNode,this.node))},expandToWindow:function(){this.node.jSetCss({transition:""}),this.node.jSetCss({transform:"scale(0.6)"}).jGetSize(),this.node.jSetCss({transition:c.browser.cssTransform+" 0.4s cubic-bezier(0.175, 0.885, 0.320, 1) 0s"}),c.browser.features.transition?(this.node.jAddEvent("transitionend",this.onExpand),!c.browser.chrome||"chrome"!==c.browser.uaName&&"opera"!==c.browser.uaName||setTimeout(u(function(){this.onExpand()}).jBind(this),500)):this.onExpand.jDelay(16,this),this.expandBox.jSetCss({opacity:1}),this.node.jSetCss({transform:"scale(1)"})},openLink:function(){this.image.link&&window.open(this.image.link,"_self")},getNext:function(){var t=(this.expanded?this.expandGallery:this.additionalImages).filter(function(t){return-1!==t.small.state||-1!==t.zoom.state}),e=t.length,i=u(t).indexOf(this.image)+1;return e<=1?null:t[e<=i?0:i]},getPrev:function(){var t=(this.expanded?this.expandGallery:this.additionalImages).filter(function(t){return-1!==t.small.state||-1!==t.zoom.state}),e=t.length,i=u(t).indexOf(this.image)-1;return e<=1?null:t[i<0?e-1:i]},imageByURL:function(e,i){return(this.additionalImages.filter(function(t){return(t.zoom.src.has(e)||t.zoom.url.has(e))&&(t.small.src.has(i)||t.small.url.has(i))})||[])[0]||(i&&e&&"string"===c.jTypeOf(i)&&"string"===c.jTypeOf(e)?new S(i,e):null)},imageByOrigin:function(e){return(this.additionalImages.filter(function(t){return t.origin===e})||[])[0]},imageByIndex:function(t){return this.additionalImages[t]}},o={version:"v5.3.4 (Plus) DEMO",start:function(t,e){var i=null,o=[];return c.$A(t?[u(t)]:c.$A(document.byClass("MagicZoom")).concat(c.$A(document.byClass("MagicZoomPlus")))).jEach(u(function(t){u(t)&&(j(t)||(i=new E(t,e),f&&!i.option("autostart")?(i.stop(),i=null):(m.push(i),o.push(i))))}).jBind(this)),t?o[0]:o},stop:function(t){var e,i;if(t)(i=j(t))&&(i=m.splice(m.indexOf(i),1))&&i[0].stop()&&delete i[0];else for(;e=m.length;)(i=m.splice(e-1,1))[0].stop(),delete i[0]},refresh:function(t){return this.stop(t),this.start(t)},update:function(t,e,i,o){var n,s=j(t);s&&(n="element"===c.jTypeOf(e)?s.imageByOrigin(e):s.imageByURL(e,i))&&s.update(n)},switchTo:function(t,e){var i,o=j(t);if(o){switch(c.jTypeOf(e)){case"element":i=o.imageByOrigin(e);break;case"number":i=o.imageByIndex(e)}i&&o.update(i)}},prev:function(t){var e;(e=j(t))&&e.update(e.getPrev())},next:function(t){var e;(e=j(t))&&e.update(e.getNext())},zoomIn:function(t){var e;(e=j(t))&&e.activate()},zoomOut:function(t){var e;(e=j(t))&&e.deactivate()},expand:function(t){var e;(e=j(t))&&e.expand()},close:function(t){var e;(e=j(t))&&e.close()},registerCallback:function(t,e){l[t]||(l[t]=[]),"function"===c.jTypeOf(e)&&l[t].push(e)},running:function(t){return!!j(t)}},u(document).jAddEvent("domready",function(){var t=window.mzOptions||{};b=b(),c.addCSS(".magic-hidden-wrapper, .magic-temporary-img",{display:"block !important","min-height":"0 !important","min-width":"0 !important","max-height":"none !important","max-width":"none !important",width:"10px !important",height:"10px !important",position:"absolute !important",top:"-10000px !important",left:"0 !important",overflow:"hidden !important","-webkit-transform":"none !important",transform:"none !important","-webkit-transition":"none !important",transition:"none !important"},"magiczoom-reset-css"),c.addCSS(".magic-temporary-img img, .magic-temporary-img picture",{display:"inline-block !important",border:"0 !important",padding:"0 !important","min-height":"0 !important","min-width":"0 !important","max-height":"none !important","max-width":"none !important","-webkit-transform":"none !important",transform:"none !important","-webkit-transition":"none !important",transition:"none !important"},"magiczoom-reset-css"),c.addCSS(".magic-temporary-img picture, .magic-temporary-img picture > img",{width:"auto !important",height:"auto !important"},"magiczoom-reset-css"),c.browser.androidBrowser&&c.addCSS(".mobile-magic .mz-expand .mz-expand-bg",{display:"none !important"},"magiczoom-reset-css"),!c.browser.androidBrowser||"chrome"===c.browser.uaName&&44!==c.browser.uaVersion||c.addCSS(".mobile-magic .mz-zoom-window.mz-magnifier, .mobile-magic .mz-zoom-window.mz-magnifier:before",{"border-radius":"0 !important"},"magiczoom-reset-css"),h=c.$new("div",{class:"magic-hidden-wrapper"}).jAppendTo(document.body),n=c.browser.mobile&&window.matchMedia&&window.matchMedia("(max-device-width: 767px), (max-device-height: 767px)").matches,c.browser.mobile&&c.extend(a,r),n&&"ios"===c.browser.platform&&(s=c.$new("div").jSetCss({position:"fixed",top:0,width:0,height:"100vh"}));for(var e=0;e<d.length;e++)t[d[e]]&&c.$F!==t[d[e]]&&o.registerCallback(d[e],t[d[e]]);o.start(),f=!1}),window.MagicZoomPlus=window.MagicZoomPlus||{},o}();!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,void 0!==document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(c<0||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):!0===d?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&!0===a.options.adaptiveHeight&&!1===a.options.vertical){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),!0===e.options.rtl&&!1===e.options.vertical&&(b=-b),!1===e.transformsEnabled?!1===e.options.vertical?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):!1===e.cssTransitions?(!0===e.options.rtl&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),!1===e.options.vertical?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),!1===e.options.vertical?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};!1===b.options.fade?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,!1===b.options.fade?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(!1===a.options.infinite&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1==0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;!0===b.options.arrows&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),!0!==b.options.infinite&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(!0===b.options.dots&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),!0!==b.options.centerMode&&!0!==b.options.swipeToSlide||(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),!0===b.options.draggable&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;b<f;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(!1===d.originalSettings.mobileFirst?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),!0===b&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),!0===b&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,!0===b&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||!1===h||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!=0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),!0===b.options.arrows&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),!0===b.options.accessibility&&b.$list.off("keydown.slick",b.keyHandler),!0===b.options.focusOnSelect&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){!1===this.shouldClick&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",!1===b.options.fade?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;!1===c.cssTransitions?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;!1===b.cssTransitions?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){return this.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(!0===a.options.infinite)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(!0===a.options.centerMode)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),!0===b.options.infinite?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!=0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),!0===b.options.centerMode&&b.slideCount<=b.options.slidesToShow?b.slideOffset=b.slideWidth*Math.floor(b.options.slidesToShow)/2-b.slideWidth*b.slideCount/2:!0===b.options.centerMode&&!0===b.options.infinite?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:!0===b.options.centerMode&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=!1===b.options.vertical?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,!0===b.options.variableWidth&&(f=b.slideCount<=b.options.slidesToShow||!1===b.options.infinite?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=!0===b.options.rtl?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,!0===b.options.centerMode&&(f=b.slideCount<=b.options.slidesToShow||!1===b.options.infinite?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=!0===b.options.rtl?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){return this.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(!1===a.options.infinite?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);b<e;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var d,e,b=this;return e=!0===b.options.centerMode?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,!0===b.options.swipeToSlide?(b.$slideTrack.find(".slick-slide").each(function(c,f){if(f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft)return d=f,!1}),Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){this.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),!0===c.options.accessibility&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr("role","option");var d=b.options.centerMode?c:Math.floor(c/b.options.slidesToShow);!0===b.options.dots&&a(this).attr("aria-describedby","slick-slide"+b.instanceUid+d)}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;!0===a.options.arrows&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;!0===b.options.dots&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),!0===b.options.dots&&!0===b.options.pauseOnDotsHover&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),!0===b.options.accessibility&&b.$list.on("keydown.slick",b.keyHandler),!0===b.options.focusOnSelect&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).ready(b.setPosition)},b.prototype.initUI=function(){var a=this;!0===a.options.arrows&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),!0===a.options.dots&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&!0===b.options.accessibility?b.changeSlide({data:{message:!0===b.options.rtl?"next":"previous"}}):39===a.keyCode&&!0===b.options.accessibility&&b.changeSlide({data:{message:!0===b.options.rtl?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=a(this).attr("data-srcset"),f=a(this).attr("data-sizes")||b.$slider.attr("data-sizes"),g=document.createElement("img");g.onload=function(){c.animate({opacity:0},100,function(){e&&(c.attr("srcset",e),f&&c.attr("sizes",f)),c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},g.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},g.src=d})}var c,d,e,f,b=this;if(!0===b.options.centerMode?!0===b.options.infinite?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=b.options.slidesToShow/2+1+2+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),!0===b.options.fade&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),"anticipated"===b.options.lazyLoad)for(var h=e-1,i=f,j=b.$slider.find(".slick-slide"),k=0;k<b.options.slidesToScroll;k++)h<0&&(h=b.slideCount-1),c=c.add(j.eq(h)),c=c.add(j.eq(i)),h--,i++;g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),!0===b.options.accessibility&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,h,i,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=e.attr("data-srcset"),h=e.attr("data-sizes")||c.$slider.attr("data-sizes"),i=document.createElement("img"),i.onload=function(){g&&(e.attr("srcset",g),h&&e.attr("sizes",h)),e.attr("src",f).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===c.options.adaptiveHeight&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},i.onerror=function(){b<3?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},i.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,f.hasOwnProperty(c)){for(d=f[c].breakpoint;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),!0===b.options.focusOnSelect&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focusHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;if("boolean"==typeof a?(b=a,a=!0===b?0:d.slideCount-1):a=!0===b?--a:a,d.slideCount<1||a<0||a>d.slideCount-1)return!1;d.unload(),!0===c?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,d.reinit()},b.prototype.setCSS=function(a){var d,e,b=this,c={};!0===b.options.rtl&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,!1===b.transformsEnabled?b.$slideTrack.css(c):(c={},!1===b.cssTransitions?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;!1===a.options.vertical?!0===a.options.centerMode&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),!0===a.options.centerMode&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),!1===a.options.vertical&&!1===a.options.variableWidth?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):!0===a.options.variableWidth?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();!1===a.options.variableWidth&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,!0===b.options.rtl?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&!0===a.options.adaptiveHeight&&!1===a.options.vertical){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":void 0!==arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),!1===a.options.fade?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=!0===a.options.vertical?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),void 0===b.WebkitTransition&&void 0===b.MozTransition&&void 0===b.msTransition||!0===a.options.useCSS&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&!1!==a.animType&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&!1!==a.animType},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),!0===b.options.centerMode?(c=Math.floor(b.options.slidesToShow/2),!0===b.options.infinite&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=!0===b.options.infinite?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"!==b.options.lazyLoad&&"anticipated"!==b.options.lazyLoad||b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(!0===b.options.fade&&(b.options.centerMode=!1),!0===b.options.infinite&&!1===b.options.fade&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=!0===b.options.centerMode?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;c<e;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));if(e||(e=0),c.slideCount<=c.options.slidesToShow)return c.setSlideClasses(e),void c.asNavFor(e);c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;if(b=b||!1,(!0!==i.animating||!0!==i.options.waitForAnimate)&&!(!0===i.options.fade&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow)){if(!1===b&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,!1===i.options.infinite&&!1===i.options.centerMode&&(a<0||a>i.getDotCount()*i.options.slidesToScroll))return void(!1===i.options.fade&&(d=i.currentSlide,!0!==c?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d)));if(!1===i.options.infinite&&!0===i.options.centerMode&&(a<0||a>i.slideCount-i.options.slidesToScroll))return void(!1===i.options.fade&&(d=i.currentSlide,!0!==c?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d)));if(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=d<0?i.slideCount%i.options.slidesToScroll!=0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!=0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),!0===i.options.fade)return!0!==c?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight();!0!==c?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e)}},b.prototype.startLoad=function(){var a=this;!0===a.options.arrows&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),!0===a.options.dots&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),d<0&&(d=360-Math.abs(d)),d<=45&&d>=0?!1===e.options.rtl?"left":"right":d<=360&&d>=315?!1===e.options.rtl?"left":"right":d>=135&&d<=225?!1===e.options.rtl?"right":"left":!0===e.options.verticalSwiping?d>=35&&d<=135?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=!(b.touchObject.swipeLength>10),void 0===b.touchObject.curX)return!1;if(!0===b.touchObject.edgeHit&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(!1===b.options.swipe||"ontouchend"in document&&!1===b.options.swipe||!1===b.options.draggable&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,!0===b.options.verticalSwiping&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!(!b.dragging||h&&1!==h.length)&&(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),!0===b.options.verticalSwiping&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),"vertical"!==(e=b.swipeDirection())?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(!1===b.options.rtl?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),!0===b.options.verticalSwiping&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,!1===b.options.infinite&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),!1===b.options.vertical?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,!0===b.options.verticalSwiping&&(b.swipeLeft=d+f*g),!0!==b.options.fade&&!1!==b.options.touchMove&&(!0===b.animating?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft))):void 0)},b.prototype.swipeStart=function(a){var c,b=this;if(b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow)return b.touchObject={},!1;void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,b.dragging=!0},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var a=this;Math.floor(a.options.slidesToShow/2),!0===a.options.arrows&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&!1===a.options.centerMode?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&!0===a.options.centerMode&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;f<e;f++)if("object"==typeof c||void 0===c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),void 0!==g)return g;return a}});!function(c,u,g,b){"use strict";if(c.console=c.console||{info:function(t){}},g)if(g.fn.fancybox)console.info("fancyBox already initialized");else{var t,e,n,o,a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos,<a href="{{src}}">download</a>and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:g.noop,beforeLoad:g.noop,afterLoad:g.noop,beforeShow:g.noop,afterShow:g.noop,beforeClose:g.noop,afterClose:g.noop,onActivate:g.noop,onDeactivate:g.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},i=g(c),s=g(u),r=0,f=c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||function(t){return c.setTimeout(t,1e3/60)},l=c.cancelAnimationFrame||c.webkitCancelAnimationFrame||c.mozCancelAnimationFrame||c.oCancelAnimationFrame||function(t){c.clearTimeout(t)},d=function(){var t,e=u.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(e.style[t]!==b)return n[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var n=g.extend(!0,{},t,e);return g.each(e,function(t,e){g.isArray(e)&&(n[t]=e)}),n},m=function(t,e,n){var o=this;o.opts=h({index:n},g.fancybox.defaults),g.isPlainObject(e)&&(o.opts=h(o.opts,e)),g.fancybox.isMobile&&(o.opts=h(o.opts,o.opts.mobile)),o.id=o.opts.id||++r,o.currIndex=parseInt(o.opts.index,10)||0,o.prevIndex=null,o.prevPos=null,o.currPos=0,o.firstRun=!0,o.group=[],o.slides={},o.addContent(t),o.group.length&&o.init()};g.extend(m.prototype,{init:function(){var e,n,o=this,a=o.group[o.currIndex].opts;a.closeExisting&&g.fancybox.close(!0),g("body").addClass("fancybox-active"),!g.fancybox.getInstance()&&!1!==a.hideScrollbar&&!g.fancybox.isMobile&&u.body.scrollHeight>c.innerHeight&&(g("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(c.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),g("body").addClass("compensate-for-scrollbar")),n="",g.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=g(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","fancybox-container-"+o.id).addClass(a.baseClass).data("FancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return n[e]===b?t:n[e]})},addContent:function(t){var e,l=this,n=g.makeArray(t);g.each(n,function(t,e){var n,o,a,i,s,r={},c={};g.isPlainObject(e)?c=(r=e).opts||e:"object"===g.type(e)&&g(e).length?(c=(n=g(e)).data()||{},(c=g.extend(!0,{},c,c.options)).$orig=n,r.src=l.opts.src||c.src||n.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=g.extend(!0,{},l.opts,c),g.isArray(c.buttons)&&(r.opts.buttons=c.buttons),g.fancybox.isMobile&&r.opts.mobile&&(r.opts=h(r.opts,r.opts.mobile)),o=r.type||r.opts.type,i=r.src||"",!o&&i&&((a=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":i.match(/\.(pdf)((\?|#).*)?$/i)?(o="iframe",r=g.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===i.charAt(0)&&(o="inline")),o?r.type=o:l.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<g.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=l.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<g.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===l.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===g.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[l,r])),"function"===g.type(l.opts.caption)&&(r.opts.caption=l.opts.caption.apply(e,[l,r])),r.opts.caption instanceof g||(r.opts.caption=r.opts.caption===b?"":r.opts.caption+""),"ajax"===r.type&&1<(s=i.split(/\s+/,2)).length&&(r.src=s.shift(),r.opts.filter=s.shift()),r.opts.modal&&(r.opts=g.extend(!0,r.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),l.group.push(r)}),Object.keys(l.slides).length&&(l.updateControls(),(e=l.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var o=this;o.removeEvents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),o.next()}).on("click.fb","[data-fancybox-zoom]",function(t){o[o.isScaledDown()?"scaleToActual":"scaleToFit"]()}),i.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(o.requestId&&l(o.requestId),o.requestId=f(function(){o.update(t)})):(o.current&&"iframe"===o.current.type&&o.$refs.stage.hide(),setTimeout(function(){o.$refs.stage.show(),o.update(t)},g.fancybox.isMobile?600:250))}),s.on("keydown.fb",function(t){var e=(g.fancybox?g.fancybox.getInstance():null).current,n=t.keyCode||t.which;if(9!=n){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||g(t.target).is("input,textarea,video,audio,select")))return 8===n||27===n?(t.preventDefault(),void o.close(t)):37===n||38===n?(t.preventDefault(),void o.previous()):39===n||40===n?(t.preventDefault(),void o.next()):void o.trigger("afterKeydown",t,n)}else e.opts.trapFocus&&o.focus(t)}),o.group[o.currIndex].opts.idleTime&&(o.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){o.idleSecondsCounter=0,o.isIdle&&o.showControls(),o.isIdle=!1}),o.idleInterval=c.setInterval(function(){o.idleSecondsCounter++,o.idleSecondsCounter>=o.group[o.currIndex].opts.idleTime&&!o.isDragging&&(o.isIdle=!0,o.idleSecondsCounter=0,o.hideControls())},1e3))},removeEvents:function(){i.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(c.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,o){var e,n,a,i,s,r,c,l,d,u=this,f=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),!(a=u.current?u.current.opts.loop:u.opts.loop)&&(t<0||f<=t))return!1;if(e=u.firstRun=!Object.keys(u.slides).length,s=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,i=u.createSlide(t),1<f&&((a||i.index<f-1)&&u.createSlide(t+1),(a||0<i.index)&&u.createSlide(t-1)),u.current=i,u.currIndex=i.index,u.currPos=i.pos,u.trigger("beforeShow",e),u.updateControls(),i.forcedDuration=b,g.isNumeric(o)?i.forcedDuration=o:o=i.opts[e?"animationDuration":"transitionDuration"],o=parseInt(o,10),n=u.isMoved(i),i.$slide.addClass("fancybox-slide--current"),e)return i.opts.animationEffect&&o&&u.$refs.container.css("transition-duration",o+"ms"),u.$refs.container.addClass("fancybox-is-open").trigger("focus"),u.loadSlide(i),void u.preload("image");r=g.fancybox.getTranslate(s.$slide),c=g.fancybox.getTranslate(u.$refs.stage),g.each(u.slides,function(t,e){g.fancybox.stop(e.$slide,!0)}),s.pos!==i.pos&&(s.isComplete=!1),s.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),n?(d=r.left-(s.pos*r.width+s.pos*s.opts.gutter),g.each(u.slides,function(t,e){e.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var n=e.pos*r.width+e.pos*e.opts.gutter;g.fancybox.setTranslate(e.$slide,{top:0,left:n-c.left+d}),e.pos!==i.pos&&e.$slide.addClass("fancybox-slide--"+(e.pos>i.pos?"next":"previous")),p(e.$slide),g.fancybox.animate(e.$slide,{top:0,left:(e.pos-i.pos)*r.width+(e.pos-i.pos)*e.opts.gutter},o,function(){e.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),e.pos===u.currPos&&u.complete()})})):o&&i.opts.transitionEffect&&(l="fancybox-animated fancybox-fx-"+i.opts.transitionEffect,s.$slide.addClass("fancybox-slide--"+(s.pos>i.pos?"next":"previous")),g.fancybox.animate(s.$slide,l,o,function(){s.$slide.removeClass(l).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),i.isLoaded?u.revealContent(i):u.loadSlide(i),u.preload("image")}},createSlide:function(t){var e,n,o=this;return n=(n=t%o.group.length)<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=g('<div class="fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=g.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,n){var o,a,i,s,r,c=this,l=c.current,d=l.$content,u=g.fancybox.getTranslate(l.$slide).width,f=g.fancybox.getTranslate(l.$slide).height,p=l.width,h=l.height;c.isAnimating||c.isMoved()||!d||"image"!=l.type||!l.isLoaded||l.hasError||(c.isAnimating=!0,g.fancybox.stop(d),t=t===b?.5*u:t,e=e===b?.5*f:e,(o=g.fancybox.getTranslate(d)).top-=g.fancybox.getTranslate(l.$slide).top,o.left-=g.fancybox.getTranslate(l.$slide).left,s=p/o.width,r=h/o.height,a=.5*u-.5*p,i=.5*f-.5*h,u<p&&(0<(a=o.left*s-(t*s-t))&&(a=0),a<u-p&&(a=u-p)),f<h&&(0<(i=o.top*r-(e*r-e))&&(i=0),i<f-h&&(i=f-h)),c.updateCursor(p,h),g.fancybox.animate(d,{top:i,left:a,scaleX:s,scaleY:r},n||366,function(){c.isAnimating=!1}),c.SlideShow&&c.SlideShow.isActive&&c.SlideShow.stop())},scaleToFit:function(t){var e,n=this,o=n.current,a=o.$content;n.isAnimating||n.isMoved()||!a||"image"!=o.type||!o.isLoaded||o.hasError||(n.isAnimating=!0,g.fancybox.stop(a),e=n.getFitPos(o),n.updateCursor(e.width,e.height),g.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){n.isAnimating=!1}))},getFitPos:function(t){var e,n,o,a,i=t.$content,s=t.$slide,r=t.width||t.opts.width,c=t.height||t.opts.height,l={};return!!(t.isLoaded&&i&&i.length)&&(e=g.fancybox.getTranslate(this.$refs.stage).width,n=g.fancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(i.css("marginLeft"))+parseFloat(i.css("marginRight")),n-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(i.css("marginTop"))+parseFloat(i.css("marginBottom")),r&&c||(r=e,c=n),e-.5<(r*=o=Math.min(1,e/r,n/c))&&(r=e),n-.5<(c*=o)&&(c=n),"image"===t.type?(l.top=Math.floor(.5*(n-c))+parseFloat(s.css("paddingTop")),l.left=Math.floor(.5*(e-r))+parseFloat(s.css("paddingLeft"))):"video"===t.contentType&&(r/(a=t.opts.width&&t.opts.height?r/c:t.opts.ratio||16/9)<c?c=r/a:c*a<r&&(r=c*a)),l.width=r,l.height=c,l)},update:function(n){var o=this;g.each(o.slides,function(t,e){o.updateSlide(e,n)})},updateSlide:function(t,e){var n=this,o=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;n.adjustCaption(t),o&&(a||i||"video"===t.contentType)&&!t.hasError&&(g.fancybox.stop(o),g.fancybox.setTranslate(o,n.getFitPos(t)),t.pos===n.currPos&&(n.isAnimating=!1,n.updateCursor())),n.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===n.currPos&&n.$refs.toolbar.add(n.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),n.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,n=e.current,o=n.$slide;!e.isClosing&&n&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),g.fancybox.animate(o,{top:0,left:0,opacity:1},t===b?0:t,function(){o.css({transform:"",opacity:""}),n.isComplete||e.complete()},!1))},isMoved:function(t){var e,n,o=t||this.current;return!!o&&(n=g.fancybox.getTranslate(this.$refs.stage),e=g.fancybox.getTranslate(o.$slide),!o.$slide.hasClass("fancybox-animated")&&(.5<Math.abs(e.top-n.top)||.5<Math.abs(e.left-n.left)))},updateCursor:function(t,e){var n,o,a=this,i=a.current,s=a.$refs.container;i&&!a.isClosing&&a.Guestures&&(s.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=!!(n=a.canPan(t,e))||a.isZoomable(),s.toggleClass("fancybox-is-zoomable",o),g("[data-fancybox-zoom]").prop("disabled",!o),n?s.addClass("fancybox-can-pan"):o&&("zoom"===i.opts.clickContent||g.isFunction(i.opts.clickContent)&&"zoom"==i.opts.clickContent(i))?s.addClass("fancybox-can-zoomIn"):i.opts.touch&&(i.opts.touch.vertical||1<a.group.length)&&"video"!==i.contentType&&s.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var n=!1,o=this.current,a=o.$content;return t!==b&&e!==b?n=t<o.width&&e<o.height:a&&(n=(n=g.fancybox.getTranslate(a)).width<o.width&&n.height<o.height),n},canPan:function(t,e){var n=this.current,o=null,a=!1;return"image"===n.type&&(n.isComplete||t&&e)&&!n.hasError&&(a=this.getFitPos(n),t!==b&&e!==b?o={width:t,height:e}:n.isComplete&&(o=g.fancybox.getTranslate(n.$content)),o&&a&&(a=1.5<Math.abs(o.width-a.width)||1.5<Math.abs(o.height-a.height))),a},loadSlide:function(n){var t,e,o,a=this;if(!n.isLoading&&!n.isLoaded){if(!(n.isLoading=!0)===a.trigger("beforeLoad",n))return n.isLoading=!1;switch(t=n.type,(e=n.$slide).off("refresh").trigger("onReset").addClass(n.opts.slideClass),t){case"image":a.setImage(n);break;case"iframe":a.setIframe(n);break;case"html":a.setContent(n,n.src||n.content);break;case"video":a.setContent(n,n.opts.video.tpl.replace(/\{\{src\}\}/gi,n.src).replace("{{format}}",n.opts.videoFormat||n.opts.video.format||"").replace("{{poster}}",n.thumb||""));break;case"inline":g(n.src).length?a.setContent(n,g(n.src)):a.setError(n);break;case"ajax":a.showLoading(n),o=g.ajax(g.extend({},n.opts.ajax.settings,{url:n.src,success:function(t,e){"success"===e&&a.setContent(n,t)},error:function(t,e){t&&"abort"!==e&&a.setError(n)}})),e.one("onReset",function(){o.abort()});break;default:a.setError(n)}return!0}},setImage:function(e){var t,n=this;setTimeout(function(){var t=e.$image;n.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||n.showLoading(e)},50),n.checkSrcset(e),e.$content=g('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=u.createElement("img")).onerror=function(){g(this).remove(),e.$ghost=null},t.onload=function(){n.afterLoad(e)},e.$ghost=g(t).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),n.setBigImage(e)},checkSrcset:function(t){var e,n,o,a,i=t.opts.srcset||t.opts.image.srcset;if(i){o=c.devicePixelRatio||1,a=c.innerWidth*o,(n=i.split(",").map(function(t){var o={};return t.trim().split(/\s+/).forEach(function(t,e){var n=parseInt(t.substring(0,t.length-1),10);if(0===e)return o.url=t;n&&(o.value=n,o.postfix=t[t.length-1])}),o})).sort(function(t,e){return t.value-e.value});for(var s=0;s<n.length;s++){var r=n[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=o){e=r;break}}!e&&n.length&&(e=n[n.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var n=this,t=u.createElement("img"),o=g(t);e.$image=o.one("error",function(){n.setError(e)}).one("load",function(){var t;e.$ghost||(n.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),n.afterLoad(e)),n.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<i.width()/i.height()?"100":Math.round(e.width/e.height*100))+"vw"),o.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!n.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),n.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&o.naturalWidth&&o.naturalHeight?o.trigger("load"):t.error&&o.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=n,0<o&&(t.width=o,t.height=Math.floor(o*n/e)),0<a&&(t.width=Math.floor(a*e/n),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=g('<div class="fancybox-content'+(s.preload?" fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("fancybox-slide--"+a.contentType),a.$iframe=i=g(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,n=s.css.width,o=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),n===b&&(n=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",n||"").css("max-width",""),o===b&&(o=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",o||""),r.css("overflow","auto")),e.removeClass("fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{g(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}g(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var n;this.isClosing||(this.hideLoading(t),t.$content&&g.fancybox.stop(t.$content),t.$slide.empty(),(n=e)&&n.hasOwnProperty&&n instanceof g&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=g("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===g.type(e)&&(e=g("<div>").append(g.trim(e)).contents()),t.opts.filter&&(e=g("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){g(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(g(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),g(e).appendTo(t.$slide),g(e).is("video,audio")&&(g(e).addClass("fancybox-video"),g(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||g(e).attr("width"),t.opts.height=t.opts.height||g(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=g(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=g(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&g('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,a=o.opts.caption,i=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",i),i&&a&&a.length&&(o.pos!==n.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(a),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,a,i=t||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(o=i.$slide[0].style["padding-bottom"],a=i.$slide.css("padding-bottom"),0<parseFloat(a)&&(e=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(e-i.$slide[0].scrollHeight)<1&&(n=a),i.$slide.css("padding-bottom",o))),i.$content.css("margin-bottom",n))},revealContent:function(t){var e,n,o,a,i=this,s=t.$slide,r=!1,c=!1,l=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],o=t.opts[i.firstRun?"animationDuration":"transitionDuration"],o=parseInt(t.forcedDuration===b?o:t.forcedDuration,10),!l&&t.pos===i.currPos&&o||(e=!1),"zoom"===e&&(t.pos===i.currPos&&o&&"image"===t.type&&!t.hasError&&(c=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/c.width,r.scaleY=r.height/c.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-c.width/c.height)),a&&(c.opacity=.1,r.opacity=1),g.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),c),p(t.$content),void g.fancybox.animate(t.$content,r,o,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(g.fancybox.stop(s),n="fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,s.addClass(n).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(s),"image"!==t.type&&t.$content.hide().show(0),void g.fancybox.animate(s,"fancybox-slide--current",o,function(){s.removeClass(n).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),d||!l||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,n,o,a,i,s,r,c,l,d=t.$thumb;return!!(d&&(r=d[0])&&r.ownerDocument===u&&(g(".fancybox-container").css("pointer-events","none"),c={x:r.getBoundingClientRect().left+r.offsetWidth/2,y:r.getBoundingClientRect().top+r.offsetHeight/2},l=u.elementFromPoint(c.x,c.y)===r,g(".fancybox-container").css("pointer-events",""),l))&&(n=g.fancybox.getTranslate(d),o=parseFloat(d.css("border-top-width")||0),a=parseFloat(d.css("border-right-width")||0),i=parseFloat(d.css("border-bottom-width")||0),s=parseFloat(d.css("border-left-width")||0),e={top:n.top+o,left:n.left+s,width:n.width-a-s,height:n.height-o-i,scaleX:1,scaleY:1},0<n.width&&0<n.height&&e)},complete:function(){var t,n=this,e=n.current,o={};!n.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),n.preload("inline"),p(e.$slide),e.$slide.addClass("fancybox-slide--complete"),g.each(n.slides,function(t,e){e.pos>=n.currPos-1&&e.pos<=n.currPos+1?o[e.pos]=e:e&&(g.fancybox.stop(e.$slide),e.$slide.off().remove())}),n.slides=o),n.isAnimating=!1,n.updateCursor(),n.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),n.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):n.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],(e=o.slides[o.currPos-1])&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,e){var n,o,a=this,i=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((n=(n=!t&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(e?":not(.fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(i).filter(function(){return"hidden"!==g(this).css("visibility")&&!g(this).hasClass("disabled")})).length?(o=n.index(u.activeElement),t&&t.shiftKey?(o<0||0==o)&&(t.preventDefault(),n.eq(n.length-1).trigger("focus")):(o<0||o==n.length-1)&&(t&&t.preventDefault(),n.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;g(".fancybox-container").each(function(){var t=g(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){var n,o,a,i,s,r,c,l=this,d=l.current,u=function(){l.cleanUp(t)};return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,f(function(){l.update()}),!1):(l.removeEvents(),a=d.$content,n=d.opts.animationEffect,o=g.isNumeric(e)?e:n?d.opts.animationDuration:0,d.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?g.fancybox.stop(d.$slide):n=!1,d.$slide.siblings().trigger("onReset").remove(),o&&l.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),l.hideLoading(d),l.hideControls(!0),l.updateCursor(),"zoom"!==n||a&&o&&"image"===d.type&&!l.isMoved()&&!d.hasError&&(c=l.getThumbPos(d))||(n="fade"),"zoom"===n?(g.fancybox.stop(a),r={top:(i=g.fancybox.getTranslate(a)).top,left:i.left,scaleX:i.width/c.width,scaleY:i.height/c.height,width:c.width,height:c.height},"auto"==(s=d.opts.zoomOpacity)&&(s=.1<Math.abs(d.width/d.height-c.width/c.height)),s&&(c.opacity=0),g.fancybox.setTranslate(a,r),p(a),g.fancybox.animate(a,c,o,u)):n&&o?g.fancybox.animate(d.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,o,u):!0===t?setTimeout(u,o):u(),!0))},cleanUp:function(t){var e,n,o,a=this,i=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(i&&i.length&&i.is(":visible")||(i=a.$trigger),i&&i.length&&(n=c.scrollX,o=c.scrollY,i.trigger("focus"),g("html, body").scrollTop(o).scrollLeft(n))),a.current=null,(e=g.fancybox.getInstance())?e.activate():(g("body").removeClass("fancybox-active compensate-for-scrollbar"),g("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=Array.prototype.slice.call(arguments,1),a=this,i=e&&e.opts?e:a.current;if(i?o.unshift(i):i=a,o.unshift(a),g.isFunction(i.opts[t])&&(n=i.opts[t].apply(i,o)),!1===n)return n;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",o):s.trigger(t+".fb",o)},updateControls:function(){var t=this,e=t.current,n=e.index,o=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),o.find("[data-fancybox-count]").html(t.group.length),o.find("[data-fancybox-index]").html(n+1),o.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&n<=0),o.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&n>=t.group.length-1),"image"===e.type?o.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&o.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),g(u.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),g.fancybox={version:"3.5.7",defaults:a,getInstance:function(t){var e=g('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),n=Array.prototype.slice.call(arguments,1);return e instanceof m&&("string"===g.type(t)?e[t].apply(e,n):"function"===g.type(t)&&t.apply(e,n),e)},open:function(t,e,n){return new m(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=u.createElement("div"),c.getComputedStyle&&c.getComputedStyle(t)&&c.getComputedStyle(t).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var n="",o={};if(t&&e)return e.left===b&&e.top===b||(n=(e.left===b?t.position().left:e.left)+"px, "+(e.top===b?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==b&&e.scaleY!==b?n+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==b&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),e.opacity!==b&&(o.opacity=e.opacity),e.width!==b&&(o.width=e.width),e.height!==b&&(o.height=e.height),t.css(o)},animate:function(e,n,o,a,i){var s,r=this;g.isFunction(o)&&(a=o,o=null),r.stop(e),s=r.getTranslate(e),e.on(d,function(t){(!t||!t.originalEvent||e.is(t.originalEvent.target)&&"z-index"!=t.originalEvent.propertyName)&&(r.stop(e),g.isNumeric(o)&&e.css("transition-duration",""),g.isPlainObject(n)?n.scaleX!==b&&n.scaleY!==b&&r.setTranslate(e,{top:n.top,left:n.left,width:s.width*n.scaleX,height:s.height*n.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(n),g.isFunction(a)&&a(t))}),g.isNumeric(o)&&e.css("transition-duration",o+"ms"),g.isPlainObject(n)?(n.scaleX!==b&&n.scaleY!==b&&(delete n.width,delete n.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),g.fancybox.setTranslate(e,n)):e.addClass(n),e.data("timer",setTimeout(function(){e.trigger(d)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(d),t.off(d).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},g.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?g("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},y):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},y),this},s.on("click.fb-start","[data-fancybox]",y),s.on("click.fb-start","[data-fancybox-trigger]",function(t){g('[data-fancybox="'+g(this).attr("data-fancybox-trigger")+'"]').eq(g(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:g(this)})}),e=".fancybox-button",n="fancybox-focus",o=null,s.on("mousedown mouseup focus blur",e,function(t){switch(t.type){case"mousedown":o=g(this);break;case"mouseup":o=null;break;case"focusin":g(e).removeClass(n),g(this).is(o)||g(this).is("[disabled]")||g(this).addClass(n);break;case"focusout":g(e).removeClass(n)}})}function y(t,e){var n,o,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),n=e.$target||g(t.currentTarget).trigger("blur"),(a=g.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(n)||(i=e.selector?g(e.selector):(o=n.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+o+'"]'):g('[data-fancybox="'+o+'"]'):[n],(s=g(i).index(n))<0&&(s=0),(a=g.fancybox.open(i,e,s)).$trigger=n))}}(window,document,jQuery),function(p){"use strict";var o={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},h=function(n,t,e){if(n)return e=e||"","object"===p.type(e)&&(e=p.param(e,!0)),p.each(t,function(t,e){n=n.replace("$"+t,e||"")}),e.length&&(n+=(0<n.indexOf("?")?"&":"?")+e),n};p(document).on("objectNeedsType.fb",function(t,e,a){var n,i,s,r,c,l,d,u=a.src||"",f=!1;n=p.extend(!0,{},o,a.opts.media),p.each(n,function(t,e){if(s=u.match(e.matcher)){if(f=e.type,d=t,l={},e.paramPlace&&s[e.paramPlace]){"?"==(c=s[e.paramPlace])[0]&&(c=c.substring(1)),c=c.split("&");for(var n=0;n<c.length;++n){var o=c[n].split("=",2);2==o.length&&(l[o[0]]=decodeURIComponent(o[1].replace(/\+/g," ")))}}return r=p.extend(!0,{},e.params,a.opts[t],l),u="function"===p.type(e.url)?e.url.call(this,s,r,a):h(e.url,s,r),i="function"===p.type(e.thumb)?e.thumb.call(this,s,r,a):h(e.thumb,s),"youtube"===t?u=u.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),f?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===f&&(a.opts=p.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),p.extend(a,{type:f,src:u,origSrc:a.src,contentSource:d,contentType:"image"===f?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;this[t].loaded?setTimeout(function(){n.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(t){var e,n;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=p.fancybox.getInstance())&&(n=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(n.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(n).on("ended",function(){e.next()}))}};p(document).on({"afterShow.fb":function(t,e,n){1<e.group.length&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&a.load(n.contentSource)}})}(jQuery),function(g,c,b){"use strict";var m=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return g.setTimeout(t,1e3/60)},y=g.cancelAnimationFrame||g.webkitCancelAnimationFrame||g.mozCancelAnimationFrame||g.oCancelAnimationFrame||function(t){g.clearTimeout(t)},d=function(t){var e=[];for(var n in t=(t=t.originalEvent||t||g.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[n].pageX?e.push({x:t[n].pageX,y:t[n].pageY}):t[n].clientX&&e.push({x:t[n].clientX,y:t[n].clientY});return e},v=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},l=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||b.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;e<o;e++)if("data-fancybox-"===n[e].nodeName.substr(0,14))return!0;return!1},u=function(t){for(var e,n,o,a,i,s=!1;e=t.get(0),void 0,n=g.getComputedStyle(e)["overflow-y"],o=g.getComputedStyle(e)["overflow-x"],a=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,i=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth,!(s=a||i)&&(t=t.parent()).length&&!t.hasClass("fancybox-stage")&&!t.is("body"););return s},n=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",b.proxy(e,"ontouchstart"))};n.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),b(c).off(".fb.touch"),t.requestId&&(y(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},n.prototype.ontouchstart=function(t){var e=this,n=b(t.target),o=e.instance,a=o.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&n.length&&!l(n)&&!l(n.parent())&&(n.is("img")||!(t.originalEvent.clientX>n[0].clientWidth+n.offset().left))){if(!a||o.isAnimating||a.$slide.hasClass("fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=d(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=n,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=o.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=b.fancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=b.fancybox.getTranslate(i),e.stagePos=b.fancybox.getTranslate(o.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,b(c).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",b.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",b.proxy(e,"ontouchmove")),b.fancybox.isMobile&&c.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(n.is(e.$stage)||e.$stage.find(n).length)||(n.is(".fancybox-image")&&t.preventDefault(),b.fancybox.isMobile&&n.parents(".fancybox-caption").length))&&(e.isScrollable=u(n)||u(n.parent()),b.fancybox.isMobile&&e.isScrollable||t.preventDefault(),(1===e.startPoints.length||a.hasError)&&(e.canPan?(b.fancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,b.fancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-b(g).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-b(g).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=v(e.startPoints[0],e.startPoints[1]))))}},n.prototype.onscroll=function(t){this.isScrolling=!0,c.removeEventListener("scroll",this.onscroll,!0)},n.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=d(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=v(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=v(e.newPoints[0],e.startPoints[0],"y"),e.distance=v(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},n.prototype.onSwipe=function(t){var e,a=this,i=a.instance,n=a.isSwiping,o=a.sliderStartPos.left||0;if(!0!==n)"x"==n&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?o+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?o-=Math.pow(-a.distanceX,.8):o+=a.distanceX),a.sliderLastPos={top:"x"==n?0:a.sliderStartPos.top+a.distanceY,left:o},a.requestId&&(y(a.requestId),a.requestId=null),a.requestId=m(function(){a.sliderLastPos&&(b.each(a.instance.slides,function(t,e){var n=e.pos-a.instance.currPos;b.fancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+n*a.canvasWidth+n*e.opts.gutter})}),a.$container.addClass("fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<b(g).width()?a.isSwiping="x":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<e&&e<135?"y":"x"),"y"===a.isSwiping&&b.fancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,b.each(i.slides,function(t,e){var n,o;b.fancybox.stop(e.$slide),n=b.fancybox.getTranslate(e.$slide),o=b.fancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=n.top-o.top,a.sliderStartPos.left=n.left-o.left),b.fancybox.setTranslate(e.$slide,{top:n.top-o.top,left:n.left-o.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},n.prototype.onPan=function(){var t=this;v(t.newPoints[0],t.realPoints[0])<(b.fancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&y(t.requestId),t.requestId=m(function(){b.fancybox.setTranslate(t.$content,t.contentLastPos)}))},n.prototype.limitMovement=function(){var t,e,n,o,a,i,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return a=r<h?f+l:f,i=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),0<l&&t<a&&(a=t-1+Math.pow(-t+f+l,.8)||0),l<0&&a<n&&(a=n+1-Math.pow(n-f-l,.8)||0),0<d&&e<i&&(i=e-1+Math.pow(-e+p+d,.8)||0),d<0&&i<o&&(i=o+1-Math.pow(o-p-d,.8)||0),{top:i,left:a}},n.prototype.limitPosition=function(t,e,n,o){var a=this.canvasWidth,i=this.canvasHeight;return t=a<n?(t=0<t?0:t)<a-n?a-n:t:Math.max(0,a/2-n/2),{top:e=i<o?(e=0<e?0:e)<i-o?i-o:e:Math.max(0,i/2-o/2),left:t}},n.prototype.onZoom=function(){var t=this,e=t.contentStartPos,n=e.width,o=e.height,a=e.left,i=e.top,s=v(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(n*s),c=Math.floor(o*s),l=(n-r)*t.percentageOfImageAtPinchPointX,d=(o-c)*t.percentageOfImageAtPinchPointY,u=(t.newPoints[0].x+t.newPoints[1].x)/2-b(g).scrollLeft(),f=(t.newPoints[0].y+t.newPoints[1].y)/2-b(g).scrollTop(),p=u-t.centerPointStartX,h={top:i+(d+(f-t.centerPointStartY)),left:a+(l+p),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=c,t.contentLastPos=h,t.requestId&&y(t.requestId),t.requestId=m(function(){b.fancybox.setTranslate(t.$content,t.contentLastPos)})},n.prototype.ontouchend=function(t){var e=this,n=e.isSwiping,o=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=d(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("fancybox-is-grabbing"),b(c).off(".fb.touch"),c.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(y(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,o?e.endPanning():a?e.endZooming():e.endSwiping(n,i)},n.prototype.endSwiping=function(t,e){var n=this,o=!1,a=n.instance.group.length,i=Math.abs(n.distanceX),s="x"==t&&1<a&&(130<n.dMs&&10<i||50<i);n.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(n.distanceY)?(b.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},200),o=n.instance.close(!0,250)):s&&0<n.distanceX?o=n.instance.previous(300):s&&n.distanceX<0&&(o=n.instance.next(300)),!1!==o||"x"!=t&&"y"!=t||n.instance.centerSlide(200),n.$container.removeClass("fancybox-is-sliding")},n.prototype.endPanning=function(){var t,e,n,o=this;o.contentLastPos&&(e=!1===o.opts.momentum||350<o.dMs?(t=o.contentLastPos.left,o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,o.contentLastPos.top+500*o.velocityY),(n=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,n.height=o.contentStartPos.height,b.fancybox.animate(o.$content,n,366))},n.prototype.endZooming=function(){var t,e,n,o,a=this,i=a.instance.current,s=a.newWidth,r=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,o={top:e=a.contentLastPos.top,left:t,width:s,height:r,scaleX:1,scaleY:1},b.fancybox.setTranslate(a.$content,o),s<a.canvasWidth&&r<a.canvasHeight?a.instance.scaleToFit(150):s>i.width||r>i.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(n=a.limitPosition(t,e,s,r),b.fancybox.animate(a.$content,n,150)))},n.prototype.onTap=function(n){var t,o=this,e=b(n.target),a=o.instance,i=a.current,s=n&&d(n)||o.startPoints,r=s[0]?s[0].x-b(g).scrollLeft()-o.stagePos.left:0,c=s[0]?s[0].y-b(g).scrollTop()-o.stagePos.top:0,l=function(t){var e=i.opts[t];if(b.isFunction(e)&&(e=e.apply(a,[i,n])),e)switch(e){case"close":a.close(o.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":1<a.group.length?a.next():a.close(o.startEvent);break;case"zoom":"image"==i.type&&(i.isLoaded||i.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(r,c):a.group.length<2&&a.close(o.startEvent))}};if((!n.originalEvent||2!=n.originalEvent.button)&&(e.is("img")||!(r>e[0].clientWidth+e.offset().left))){if(e.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))t="Outside";else if(e.is(".fancybox-slide"))t="Slide";else{if(!a.current.$content||!a.current.$content.find(e).addBack().filter(e).length)return;t="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,50<Math.abs(r-o.tapX)||50<Math.abs(c-o.tapY))return this;l("dblclick"+t)}else o.tapX=r,o.tapY=c,i.opts["dblclick"+t]&&i.opts["dblclick"+t]!==i.opts["click"+t]?o.tapped=setTimeout(function(){o.tapped=null,a.isAnimating||l("click"+t)},500):l("click"+t);return this}},b(c).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new n(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(s,r){"use strict";r.extend(!0,r.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};r.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,n=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!n?t.$button.hide():n.progress&&(t.$progress=r('<div class="fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,n=e.instance,o=n.current;o&&(!0===t||o.opts.loop||n.currIndex<n.group.length-1)?e.isActive&&"video"!==o.contentType&&(e.$progress&&r.fancybox.animate(e.$progress.show(),{scaleX:1},o.opts.slideShow.speed),e.timer=setTimeout(function(){n.current.opts.loop||n.current.index!=n.group.length-1?n.next():n.jumpTo(0)},o.opts.slideShow.speed)):(e.stop(),n.idleSecondsCounter=0,n.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(s).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var a=e&&e.SlideShow;o?a&&n.opts.slideShow.autoStart&&a.start():a&&a.isActive&&a.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(t,e,n,o,a){var i=e&&e.SlideShow;!i||!n.opts.slideShow||80!==a&&32!==a||r(s.activeElement).is("button,a,input")||(o.preventDefault(),i.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),r(s).on("visibilitychange",function(){var t=r.fancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(s.hidden?e.clear():e.set())})}(document,jQuery),function(i,n){"use strict";var o=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},n=0;n<t.length;n++){var o=t[n];if(o&&o[1]in i){for(var a=0;a<o.length;a++)e[t[0][a]]=o[a];return e}}return!1}();if(o){var a={request:function(t){(t=t||i.documentElement)[o.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[o.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[o.fullscreenElement])},enabled:function(){return Boolean(i[o.fullscreenEnabled])}};n.extend(!0,n.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),n(i).on(o.fullscreenchange,function(){var t=a.isFullscreen(),e=n.fancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}n(i).on({"onInit.fb":function(t,e){o?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),a.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&a.request(),e.FullScreen=a):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,n,o,a){e&&e.FullScreen&&70===a&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&a.exit()}})}(document,jQuery),function(t,i){"use strict";var s="fancybox-thumbs",r=s+"-active";i.fancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},i.fancybox.defaults);var o=function(t){this.init(t)};i.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=n.length;a<i&&(n[a].thumb&&o++,!(1<o));a++);1<o&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var n,t=this,e=t.instance,o=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(o).addBack().filter(o)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(n=e.thumb)||"image"!==e.type||(n=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(n&&n.length?' style="background-image:url('+n+')"':'class="fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,a=o.$list,i=o.$grid;o.instance.current&&(n=(e=a.children().removeClass(r).filter('[data-index="'+o.instance.current.index+'"]').addClass(r)).position(),"y"===o.opts.axis&&(n.top<0||n.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<i.scrollLeft()||n.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e)).isActive&&!0===n.opts.autoStart&&n.show()},"beforeShow.fb":function(t,e,n,o){var a=e&&e.Thumbs;a&&a.isVisible&&a.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,a){var i=e&&e.Thumbs;i&&i.isActive&&71===a&&(o.preventDefault(),i.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,s){"use strict";s.extend(!0,s.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),s(t).on("click","[data-fancybox-share]",function(){var t,e,n,o,a=s.fancybox.getInstance(),i=a.current||null;i&&("function"===s.type(i.opts.share.url)&&(t=i.opts.share.url.apply(i,[a,i])),e=i.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,(n=t,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(n).replace(/[&<>"'`=\/]/g,function(t){return o[t]}))).replace(/\{\{descr\}\}/g,a.$caption?encodeURIComponent(a.$caption.text()):""),s.fancybox.open({src:a.translate(a,e),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){a.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,a){"use strict";function r(){var t=i.location.hash.substr(1),e=t.split("-"),n=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:n<1?1:n,gallery:e.join("-")}}function e(t){""!==t.gallery&&a("[data-fancybox='"+a.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function c(t){var e,n;return!!t&&(""!==(n=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}a.escapeSelector||(a.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),a(function(){!1!==a.fancybox.defaults.hash&&(a(s).on({"onInit.fb":function(t,e){var n,o;!1!==e.group[e.currIndex].opts.hash&&(n=r(),(o=c(e))&&n.gallery&&o==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(t,e,n,o){var a;n&&!1!==n.opts.hash&&(a=c(e))&&(e.currentHash=a+(1<e.group.length?"-"+(n.index+1):""),i.location.hash!=="#"+e.currentHash&&(o&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[o?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),o&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,n){n&&!1!==n.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),a(i).on("hashchange.fb",function(){var t=r(),o=null;a.each(a(".fancybox-container").get().reverse(),function(t,e){var n=a(e).data("FancyBox");if(n&&n.currentHash)return o=n,!1}),o?o.currentHash===t.gallery+"-"+t.index||1===t.index&&o.currentHash==t.gallery||(o.currentHash=null,o.close()):""!==t.gallery&&e(t)}),setTimeout(function(){a.fancybox.getInstance()||e(r())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,o,e){o.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=o.current,n=(new Date).getTime();o.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,n-a<250||(a=n,o[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);var Notify=function(){"use strict";var t=function(t){t.wrapper.classList.add("notify--fade"),setTimeout((function(){t.wrapper.classList.add("notify--fadeIn")}),100)},e=function(t){t.wrapper.classList.remove("notify--fadeIn"),setTimeout((function(){t.wrapper.remove()}),t.speed)},s=function(t){t.wrapper.classList.add("notify--slide"),setTimeout((function(){t.wrapper.classList.add("notify--slideIn")}),100)},i=function(t){t.wrapper.classList.remove("notify--slideIn"),setTimeout((function(){t.wrapper.remove()}),t.speed)};return function(){function o(o){var n=this;this.notifyOut=function(t){t(n)},this.fadeIn=t,this.fadeOut=e,this.slideIn=s,this.slideOut=i;var c=o.status,r=void 0===c?null:c,a=o.type,C=void 0===a?1:a,h=o.title,d=void 0===h?null:h,l=o.text,p=void 0===l?null:l,u=o.showIcon,f=void 0===u||u,v=o.customIcon,y=void 0===v?null:v,m=o.customClass,w=void 0===m?null:m,L=o.speed,g=void 0===L?500:L,I=o.effect,x=void 0===I?"fade":I,E=o.showCloseButton,O=void 0===E||E,M=o.autoclose,Z=void 0!==M&&M,b=o.autotimeout,B=void 0===b?3e3:b,N=o.gap,T=void 0===N?20:N,_=o.distance,k=void 0===_?20:_,P=o.position,R=void 0===P?"right top":P;this.status=r,this.title=d,this.text=p,this.showIcon=f,this.customIcon=y,this.customClass=w,this.speed=g,this.effect=x,this.showCloseButton=O,this.autoclose=Z,this.autotimeout=B,this.gap=T,this.distance=k,this.type=C,this.position=R,this.checkRequirements()?(this.setContainer(),this.setWrapper(),this.setPosition(),this.showIcon&&this.setIcon(),this.showCloseButton&&this.setCloseButton(),this.setContent(),this.container.prepend(this.wrapper),this.setEffect(),this.notifyIn(this.selectedNotifyInEffect),this.autoclose&&this.autoClose(),this.setObserver()):console.error("You must specify 'title' or 'text' at least.")}return o.prototype.checkRequirements=function(){return!(!this.title&&!this.text)},o.prototype.setContainer=function(){var t=document.querySelector(".notifications-container");t?this.container=t:(this.container=document.createElement("div"),this.container.classList.add("notifications-container"),document.body.appendChild(this.container)),this.container.style.setProperty("--distance",this.distance+"px")},o.prototype.setPosition=function(){var t="notify-is-";"center"===this.position?this.container.classList.add(t+"center"):this.container.classList.remove(t+"center"),this.position.includes("left")?this.container.classList.add(t+"left"):this.container.classList.remove(t+"left"),this.position.includes("right")?this.container.classList.add(t+"right"):this.container.classList.remove(t+"right"),this.position.includes("x-center")?this.container.classList.add(t+"x-center"):this.container.classList.remove(t+"x-center"),this.position.includes("top")?this.container.classList.add(t+"top"):this.container.classList.remove(t+"top"),this.position.includes("bottom")?this.container.classList.add(t+"bottom"):this.container.classList.remove(t+"bottom"),this.position.includes("y-center")?this.container.classList.add(t+"y-center"):this.container.classList.remove(t+"y-center")},o.prototype.setCloseButton=function(){var t=this,e=document.createElement("div");e.classList.add("notify__close"),e.innerHTML='<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.94 7.99988L13.14 3.80655C13.2655 3.68101 13.3361 3.51075 13.3361 3.33321C13.3361 3.15568 13.2655 2.98542 13.14 2.85988C13.0145 2.73434 12.8442 2.66382 12.6667 2.66382C12.4891 2.66382 12.3189 2.73434 12.1933 2.85988L8 7.05988L3.80667 2.85988C3.68113 2.73434 3.51087 2.66382 3.33333 2.66382C3.1558 2.66382 2.98554 2.73434 2.86 2.85988C2.73446 2.98542 2.66394 3.15568 2.66394 3.33321C2.66394 3.51075 2.73446 3.68101 2.86 3.80655L7.06 7.99988L2.86 12.1932C2.79751 12.2552 2.74792 12.3289 2.71407 12.4102C2.68023 12.4914 2.6628 12.5785 2.6628 12.6665C2.6628 12.7546 2.68023 12.8417 2.71407 12.9229C2.74792 13.0042 2.79751 13.0779 2.86 13.1399C2.92198 13.2024 2.99571 13.252 3.07695 13.2858C3.15819 13.3197 3.24533 13.3371 3.33333 13.3371C3.42134 13.3371 3.50848 13.3197 3.58972 13.2858C3.67096 13.252 3.74469 13.2024 3.80667 13.1399L8 8.93988L12.1933 13.1399C12.2553 13.2024 12.329 13.252 12.4103 13.2858C12.4915 13.3197 12.5787 13.3371 12.6667 13.3371C12.7547 13.3371 12.8418 13.3197 12.9231 13.2858C13.0043 13.252 13.078 13.2024 13.14 13.1399C13.2025 13.0779 13.2521 13.0042 13.2859 12.9229C13.3198 12.8417 13.3372 12.7546 13.3372 12.6665C13.3372 12.5785 13.3198 12.4914 13.2859 12.4102C13.2521 12.3289 13.2025 12.2552 13.14 12.1932L8.94 7.99988Z" fill="currentColor"/></svg>',this.wrapper.appendChild(e),e.addEventListener("click",(function(){t.close()}))},o.prototype.setWrapper=function(){var t=document.createElement("div");this.wrapper=t,this.wrapper.style.setProperty("--gap",this.gap+"px"),this.wrapper.style.transitionDuration=this.speed+"ms",this.wrapper.classList.add("notify"),this.wrapper.classList.add("notify--type-"+this.type),this.wrapper.classList.add("notify--"+this.status),this.customClass&&this.wrapper.classList.add(this.customClass)},o.prototype.setContent=function(){var t=document.createElement("div");t.classList.add("notify-content");var e=document.createElement("div");e.classList.add("notify__title"),e.textContent=this.title,this.showCloseButton||(e.style.paddingRight="0");var s=document.createElement("div");s.classList.add("notify__text"),s.textContent=this.text,this.title||(s.style.marginTop="0"),this.wrapper.appendChild(t),t.appendChild(e),t.appendChild(s)},o.prototype.setIcon=function(){var t=document.createElement("div");t.classList.add("notify__icon"),t.innerHTML=this.customIcon||function(t){switch(t){case"success":return'<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M19.6267 11.7201L13.9067 17.4534L11.7067 15.2534C11.5871 15.1138 11.44 15.0005 11.2746 14.9204C11.1092 14.8404 10.929 14.7954 10.7454 14.7884C10.5618 14.7813 10.3787 14.8122 10.2076 14.8792C10.0365 14.9463 9.88107 15.0479 9.75113 15.1779C9.62119 15.3078 9.51951 15.4632 9.45248 15.6343C9.38545 15.8054 9.35451 15.9885 9.3616 16.1722C9.36869 16.3558 9.41366 16.536 9.4937 16.7014C9.57373 16.8668 9.68709 17.0139 9.82666 17.1334L12.96 20.2801C13.0846 20.4037 13.2323 20.5014 13.3948 20.5678C13.5572 20.6341 13.7312 20.6678 13.9067 20.6667C14.2564 20.6653 14.5916 20.5264 14.84 20.2801L21.5067 13.6134C21.6316 13.4895 21.7308 13.342 21.7985 13.1795C21.8662 13.017 21.9011 12.8428 21.9011 12.6667C21.9011 12.4907 21.8662 12.3165 21.7985 12.154C21.7308 11.9915 21.6316 11.844 21.5067 11.7201C21.2568 11.4717 20.9189 11.3324 20.5667 11.3324C20.2144 11.3324 19.8765 11.4717 19.6267 11.7201ZM16 2.66675C13.3629 2.66675 10.785 3.44873 8.59239 4.91382C6.39974 6.37891 4.69077 8.46129 3.6816 10.8976C2.67243 13.334 2.40839 16.0149 2.92286 18.6013C3.43733 21.1877 4.70721 23.5635 6.57191 25.4282C8.43661 27.2929 10.8124 28.5627 13.3988 29.0772C15.9852 29.5917 18.6661 29.3276 21.1024 28.3185C23.5388 27.3093 25.6212 25.6003 27.0863 23.4077C28.5513 21.215 29.3333 18.6372 29.3333 16.0001C29.3333 14.2491 28.9885 12.5153 28.3184 10.8976C27.6483 9.27996 26.6662 7.81011 25.4281 6.57199C24.19 5.33388 22.7201 4.35175 21.1024 3.68169C19.4848 3.01162 17.751 2.66675 16 2.66675ZM16 26.6667C13.8903 26.6667 11.828 26.0412 10.0739 24.8691C8.31979 23.697 6.95262 22.0311 6.14528 20.082C5.33795 18.133 5.12671 15.9882 5.53829 13.9191C5.94986 11.85 6.96576 9.94937 8.45752 8.45761C9.94928 6.96585 11.8499 5.94995 13.919 5.53837C15.9882 5.1268 18.1329 5.33803 20.082 6.14537C22.031 6.9527 23.6969 8.31987 24.869 10.074C26.0411 11.8281 26.6667 13.8904 26.6667 16.0001C26.6667 18.8291 25.5429 21.5422 23.5425 23.5426C21.5421 25.5429 18.829 26.6667 16 26.6667Z"/></svg>';case"warning":return'<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M16 14.6667C15.6464 14.6667 15.3072 14.8072 15.0572 15.0573C14.8071 15.3073 14.6667 15.6465 14.6667 16.0001V21.3334C14.6667 21.687 14.8071 22.0262 15.0572 22.2762C15.3072 22.5263 15.6464 22.6667 16 22.6667C16.3536 22.6667 16.6928 22.5263 16.9428 22.2762C17.1929 22.0262 17.3333 21.687 17.3333 21.3334V16.0001C17.3333 15.6465 17.1929 15.3073 16.9428 15.0573C16.6928 14.8072 16.3536 14.6667 16 14.6667ZM16.5067 9.44008C16.182 9.30672 15.8179 9.30672 15.4933 9.44008C15.3297 9.50354 15.1801 9.59869 15.0533 9.72008C14.9356 9.84968 14.8409 9.9985 14.7733 10.1601C14.6987 10.3183 14.6622 10.4918 14.6667 10.6667C14.6656 10.8422 14.6993 11.0162 14.7656 11.1786C14.832 11.3411 14.9298 11.4888 15.0533 11.6134C15.1829 11.7312 15.3317 11.8259 15.4933 11.8934C15.6953 11.9764 15.9146 12.0085 16.1319 11.9869C16.3492 11.9653 16.5579 11.8906 16.7396 11.7695C16.9213 11.6484 17.0705 11.4845 17.174 11.2922C17.2775 11.0999 17.3322 10.8851 17.3333 10.6667C17.3284 10.3137 17.1903 9.97559 16.9467 9.72008C16.8199 9.59869 16.6703 9.50354 16.5067 9.44008ZM16 2.66675C13.3629 2.66675 10.785 3.44873 8.59239 4.91382C6.39974 6.37891 4.69077 8.46129 3.6816 10.8976C2.67243 13.334 2.40839 16.0149 2.92286 18.6013C3.43733 21.1877 4.70721 23.5635 6.57191 25.4282C8.43661 27.2929 10.8124 28.5627 13.3988 29.0772C15.9852 29.5917 18.6661 29.3276 21.1024 28.3185C23.5388 27.3093 25.6212 25.6003 27.0863 23.4077C28.5513 21.215 29.3333 18.6372 29.3333 16.0001C29.3333 14.2491 28.9885 12.5153 28.3184 10.8976C27.6483 9.27996 26.6662 7.81011 25.4281 6.57199C24.19 5.33388 22.7201 4.35175 21.1024 3.68169C19.4848 3.01162 17.751 2.66675 16 2.66675ZM16 26.6667C13.8903 26.6667 11.828 26.0412 10.0739 24.8691C8.31979 23.697 6.95262 22.0311 6.14528 20.082C5.33795 18.133 5.12671 15.9882 5.53829 13.9191C5.94986 11.85 6.96576 9.94937 8.45752 8.45761C9.94928 6.96585 11.8499 5.94995 13.919 5.53837C15.9882 5.1268 18.1329 5.33803 20.082 6.14537C22.031 6.9527 23.6969 8.31987 24.869 10.074C26.0411 11.8281 26.6667 13.8904 26.6667 16.0001C26.6667 18.8291 25.5429 21.5422 23.5425 23.5426C21.5421 25.5429 18.829 26.6667 16 26.6667Z"/></svg>';case"error":return'<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M16 2.66675C13.3629 2.66675 10.785 3.44873 8.59239 4.91382C6.39974 6.37891 4.69077 8.46129 3.6816 10.8976C2.67243 13.334 2.40839 16.0149 2.92286 18.6013C3.43733 21.1877 4.70721 23.5635 6.57191 25.4282C8.43661 27.2929 10.8124 28.5627 13.3988 29.0772C15.9852 29.5917 18.6661 29.3276 21.1024 28.3185C23.5388 27.3093 25.6212 25.6003 27.0863 23.4077C28.5513 21.215 29.3333 18.6372 29.3333 16.0001C29.3333 14.2491 28.9885 12.5153 28.3184 10.8976C27.6483 9.27996 26.6662 7.81011 25.4281 6.57199C24.19 5.33388 22.7201 4.35175 21.1024 3.68169C19.4848 3.01162 17.751 2.66675 16 2.66675ZM16 26.6667C13.171 26.6667 10.4579 25.5429 8.45752 23.5426C6.45714 21.5422 5.33333 18.8291 5.33333 16.0001C5.33038 13.6312 6.12402 11.3301 7.58666 9.46675L22.5333 24.4134C20.6699 25.8761 18.3689 26.6697 16 26.6667ZM24.4133 22.5334L9.46666 7.58675C11.3301 6.1241 13.6311 5.33047 16 5.33341C18.829 5.33341 21.5421 6.45722 23.5425 8.45761C25.5429 10.458 26.6667 13.1711 26.6667 16.0001C26.6696 18.369 25.876 20.67 24.4133 22.5334Z"/></svg>'}}(this.status),(this.status||this.customIcon)&&this.wrapper.appendChild(t)},o.prototype.setObserver=function(){var t=this,e=new IntersectionObserver((function(e){e[0].intersectionRatio<=0&&t.close()}),{threshold:0});setTimeout((function(){e.observe(t.wrapper)}),this.speed)},o.prototype.notifyIn=function(t){t(this)},o.prototype.autoClose=function(){var t=this;setTimeout((function(){t.close()}),this.autotimeout+this.speed)},o.prototype.close=function(){this.notifyOut(this.selectedNotifyOutEffect)},o.prototype.setEffect=function(){switch(this.effect){case"fade":this.selectedNotifyInEffect=this.fadeIn,this.selectedNotifyOutEffect=this.fadeOut;break;case"slide":this.selectedNotifyInEffect=this.slideIn,this.selectedNotifyOutEffect=this.slideOut;break;default:this.selectedNotifyInEffect=this.fadeIn,this.selectedNotifyOutEffect=this.fadeOut}},o}()}();function changeToSlug(e=""){return("@"+e.toLowerCase().replace(/á|à|ả|ạ|ã|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/gi,"a").replace(/é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ/gi,"e").replace(/i|í|ì|ỉ|ĩ|ị/gi,"i").replace(/ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ/gi,"o").replace(/ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự/gi,"u").replace(/ý|ỳ|ỷ|ỹ|ỵ/gi,"y").replace(/đ/gi,"d").replace(/\`|\~|\!|\@|\#|\||\$|\%|\^|\&|\*|\(|\)|\+|\=|\,|\.|\/|\?|\>|\<|\'|\"|\:|\;|_/gi,"").replace(/ /gi,"-").replace(/\-\-\-\-\-/gi,"-").replace(/\-\-\-\-/gi,"-").replace(/\-\-\-/gi,"-").replace(/\-\-/gi,"-")+"@").replace(/\@\-|\-\@|\@/gi,"")}!function(e){"use strict";var t=function(t){return this.each(function(){var n,i,a=e(this),c=a.data(),r=[a],o=this.tagName,l=0;n=e.extend({content:"body",headings:"h1,h2,h3"},{content:c.toc||void 0,headings:c.tocHeadings||void 0},t),i=n.headings.split(","),e(n.content).find(n.headings).attr("id",function(t,n){return n||function(e){0===e.length&&(e="?");for(var t=changeToSlug(e),n="",i=1;null!==document.getElementById(t+n);)n="_"+i++;return t+n}(e(this).text())}).each(function(){var t=e(this),n=e.map(i,function(e,n){return t.is(e)?n:void 0})[0];if(n>l){var a=r[0].children("li:last")[0];a&&r.unshift(e("<"+o+"/>").appendTo(a))}else r.splice(0,Math.min(l-n,Math.max(r.length-1,0)));e("<li/>").appendTo(r[0]).append(e("<a/>").text(t.text()).attr("data-rel","#"+t.attr("id"))),l=n})})},n=e.fn.toc;e.fn.toc=t,e.fn.toc.noConflict=function(){return e.fn.toc=n,this},e(function(){t.call(e("[data-toc]"))})}(window.jQuery);$.fn.comments = function(options){var wrapper = $(this);var wrapperLists = wrapper.find(".comment-lists");var base_url = '';if(options){if(options.url){base_url = options.url;}}var parseResponse = function(errors){str = '';if(errors.length){str += '<div class="text-left">';if(errors.length > 1){for(i = 0; i < errors.length; i++){str += "- " + errors[i] + "</br>";}}else if(errors.length == 1){str += errors[0];}str += "</div>";}return str;};var posCursor = function(ctrl){var len = ctrl.val();ctrl.focus().val("").blur().focus().val(len + ' ');};var mediaSlid = function(){wrapperLists.find(".carousel-comment-media").each(function(){$this = $(this);$this.on('slid.bs.carousel', function(e){$thisSlid = $(this);var videoActive = $thisSlid.find(".carousel-lists .carousel-comment-media-item-video.active");var videoItem = $thisSlid.find(".carousel-lists .carousel-comment-media-item-video");if(isExist(videoActive)){videoActive.find("#file-video").trigger("play");}else{videoItem.find("#file-video").trigger("pause");}});});};var mediaPhoto = function(){if(isExist($('#review-file-photo'))){$('#review-file-photo').getEvali({limit: 3,maxSize: 30,extensions: ["jpg","png","jpeg","JPG","PNG","JPEG","Png"],editor: false,addMore: true,enableApi: false,dragDrop: true,changeInput: '<div class="review-fileuploader">' + '<div class="review-fileuploader-caption"><strong>${captions.feedback}</strong></div>' + '<div class="review-fileuploader-text mx-3">${captions.or}</div>' + '<div class="review-fileuploader-button btn btn-sm btn-primary text-capitalize font-weight-500 py-2 px-3">${captions.button}</div>' + '</div>',theme: 'dragdrop',captions: {feedback: '(Kéo thả ảnh vào đây)',or: '-hoặc-',button: 'Chọn ảnh',},thumbnails: {popup: false,canvasImage: false},dialogs: {alert: function(e){return notifyDialog(e);},confirm: function(e,t){$.confirm({title: 'Thông báo',icon: 'fas fa-exclamation-triangle',type: 'orange',content: e,backgroundDismiss: true,animationSpeed: 600,animation: 'zoom',closeAnimation: 'scale',typeAnimated: true,animateFromElement: false,autoClose: 'cancel|3000',escapeKey: 'cancel',buttons: {success: {text: 'Đồng ý',btnClass: 'btn-sm btn-warning',action: function(){t()}},cancel: {text: 'Hủy',btnClass: 'btn-sm btn-danger'}}});}},afterSelect: function(){},onEmpty: function(){},onRemove: function(){}});}};var mediaVideo = function(){if(isExist($("#review-poster-video"))){photoZone("#review-poster-video-label","#review-poster-video","#review-poster-video-preview img", '');}};$(window).on('load', function(){mediaPhoto();mediaVideo();mediaSlid();});wrapper.on('mouseover', 'i.fa-star', function(e){e.preventDefault();$this = $(this);var id = $this.attr('data-value');$this.parent('p').children('i').each(function(){var val = $this.attr('data-value');if(val <= id){$this.removeClass('star-empty');}});}).on('mouseout', 'i.fa-star', function(e){e.preventDefault();$this.parent().children('i').each(function(e){$this.parent().children('i').addClass('star-empty');});});wrapper.on('click', 'i.fa-star', function(){$this = $(this);var value = $this.attr('data-value');$this.parents('.review-rating-star').find('input').attr('value', value);var onStar = parseInt($this.data('value'), 10);var stars = $this.parent().children('i');for(i = 0; i < stars.length; i++){$(stars[i]).removeClass('star-not-empty');}for(i = 0; i < onStar; i++){$(stars[i]).addClass('star-not-empty');}$this.parent().parent().find('a').show();return false;});wrapper.on('click', '.btn-write-comment', function(){$('.comment-write').toggleClass('comment-show');});wrapper.on('click', '.btn-reply-comment', function(e){e.preventDefault();$this = $(this);$parents = $this.parents(".comment-item-information");var form = $parents.find("#form-reply");$this.text($this.text() == 'Trả lời' ? 'Hủy bỏ' : 'Trả lời');$this.toggleClass('active');form.toggleClass('comment-show');form.trigger("reset");form.find('textarea').val('@' + $this.data('name') + ':');posCursor(form.find('textarea'));if($this.hasClass("active")){var media = $parents.find(".carousel-comment-media .carousel-indicators li.active");if(media.length){media.trigger("click");}}});wrapper.on('click', '.btn-cancel-reply', function(e){e.preventDefault();$this = $(this);$parents = $this.parents(".comment-item-information");var form = $parents.find("#form-reply");form.trigger("reset").toggleClass('comment-show');$parents.find(".btn-reply-comment").text('Trả lời');});wrapper.on('click', '.carousel-comment-media .carousel-indicators li', function(e){$this = $(this);$parents = $this.parents(".carousel-comment-media");var id = $this.data("id");var videoThis = $parents.find(".carousel-lists .carousel-comment-media-item-" + id);var videoItem = $parents.find(".carousel-lists .carousel-comment-media-item-video");if($this.hasClass("active")){$parents.find(".carousel-indicators li, .carousel-lists .carousel-item").removeClass("active");videoItem.find("#file-video").trigger("pause");}else{$parents.find(".carousel-indicators li").removeClass("active");$this.addClass("active");$parents.find(".carousel-lists .carousel-item").removeClass("active");videoThis.addClass("active");if(isExist(videoThis.find("#file-video"))){videoThis.find("#file-video").trigger("play");}else{videoItem.find("#file-video").trigger("pause");}}});wrapper.on('click', '.btn-load-more-comment-parent', function(e){e.preventDefault();$this = $(this);$loadControl = $this.parents(".comment-load-more-control");$loadResult = $this.parents(".comment-lists").find(".comment-load");var limitFrom = parseInt($loadControl.find(".limit-from").val());var limitGet = parseInt($loadControl.find(".limit-get").val());var idVariant = parseInt($loadControl.find(".id-variant").val());var type = $loadControl.find(".type").val();$.ajax({url: base_url + '?get=limitLists',method: 'GET',dataType: 'json',async: false,data: {limitFrom: limitFrom,limitGet: limitGet,idVariant: idVariant,type: type},beforeSend: function(){$this.text("Đang tải");$this.attr("disabled", true);},error: function(e){$this.text("Tải thêm bình luận");$this.attr("disabled", false);showNotify('Hệ thống bị lỗi. Vui lòng thử lại sau.', 'Thông báo', 'error');},success: function(response){$this.text("Tải thêm bình luận");$this.attr("disabled", false);if(response.data){$loadResult.append(response.data);$loadControl.find(".limit-from").val(limitFrom + limitGet);mediaSlid();NN_FRAMEWORK.Lazys();}var listsLoaded = $loadResult.find(".comment-item").length;if(parseInt(listsLoaded) == parseInt(response.total)){$loadControl.remove();}}});});wrapper.on('click', '.btn-load-more-comment-child', function(e){e.preventDefault();$this = $(this);$loadControl = $this.parents(".comment-load-more-control");$loadResult = $this.parents(".comment-item").find(".comment-item-information .comment-replies .comment-replies-load");var limitFrom = parseInt($loadControl.find(".limit-from").val());var limitGet = parseInt($loadControl.find(".limit-get").val());var idParent = parseInt($loadControl.find(".id-parent").val());var idVariant = parseInt($loadControl.find(".id-variant").val());var type = $loadControl.find(".type").val();$.ajax({url: base_url + '?get=limitReplies',method: 'GET',dataType: 'json',async: false,data: {limitFrom: limitFrom,limitGet: limitGet,idParent: idParent,idVariant: idVariant,type: type},beforeSend: function(){$this.text("Đang tải");$this.attr("disabled", true);},error: function(e){$this.text("Xem thêm bình luận");$this.attr("disabled", false);showNotify('Hệ thống bị lỗi. Vui lòng thử lại sau.', 'Thông báo', 'error');},success: function(response){$this.text("Xem thêm bình luận");$this.attr("disabled", false);if(response.data){$loadResult.append(response.data);$loadControl.find(".limit-from").val(limitFrom + limitGet);NN_FRAMEWORK.Lazys();}var listsLoaded = $loadResult.find(".comment-replies-item").length;if(parseInt(listsLoaded) == parseInt(response.total)){$loadControl.remove();}}});});wrapper.on('submit', '#form-comment', function(e){e.preventDefault();$this = $(this);var form = $this;var formData = new FormData(form[0]);var responseEle = form.find(".response-review");responseEle.html("");holdonOpen();setTimeout(function(){$.ajax({url: base_url + '?get=add',method: 'POST',enctype: 'multipart/form-data',dataType: 'json',data: formData,async: false,processData: false,contentType: false,cache: false,error: function(e){holdonClose();showNotify('Hệ thống bị lỗi. Vui lòng thử lại sau.', 'Thông báo', 'error');},success: function(response){if(response.errors){responseEle.html('<div class="alert alert-danger">' + parseResponse(response.errors) + '</div>');goToByScroll('comment-write', 20);holdonClose();}else{form.trigger('reset');holdonClose();showNotify('Bình luận sẽ được hiển thị sau khi được Bản Quản Trị kiểm duyệt', 'Bình luận thành công', 'success');setTimeout(function(){location.reload();}, 2000);}}});}, 500);return false;});wrapper.on('submit', '#form-reply', function(e){e.preventDefault();$this = $(this);$parents = $this.parents(".comment-item");var form = $this;var formData = new FormData(form[0]);var responseEle = form.find(".response-reply");var content = form.find("#reply-content");var contentDataName = content.data('name');responseEle.html("");holdonOpen();setTimeout(function(){$.ajax({url: base_url + '?get=add',method: 'POST',enctype: 'multipart/form-data',dataType: 'json',data: formData,async: false,processData: false,contentType: false,cache: false,error: function(e){showNotify('Hệ thống bị lỗi. Vui lòng thử lại sau.', 'Thông báo', 'error');},success: function(response){if(response.errors){responseEle.html('<div class="alert alert-danger">' + parseResponse(response.errors) + '</div>');goToByScroll(form.attr("id"), 20);holdonClose();}else{form.trigger('reset');form.find("#reply-content").val(contentDataName + ' ');holdonClose();showNotify('Bình luận sẽ được hiển thị sau khi được Bản Quản Trị kiểm duyệt', 'Bình luận thành công', 'success');}}});}, 500);return false;});};function fetchSlick(obj) {if (!obj.length) {return false;} else {var configSlick = {};var splitItem = obj.attr("data-split") ? (parseInt(obj.attr("data-split"))==1 ? true:false) : false;var itemShow = obj.attr("data-show") ? parseInt(obj.attr("data-show")) : 1;var itemScroll = obj.attr("data-scroll") ? parseInt(obj.attr("data-scroll")) : 1;var arrows = obj.attr("data-nav") ? (parseInt(obj.attr("data-nav"))==1 ? true:false) : false;var auto = obj.attr("data-auto") ? (parseInt(obj.attr("data-auto"))==1 ? true:false) : false;var drag = obj.attr("data-drag") ? (parseInt(obj.attr("data-drag"))==1 ? true:false) : true;var fade = obj.attr("data-fade") ? (parseInt(obj.attr("data-fade"))==1 ? true:false) : false;var pauseHover = obj.attr("data-pauseHover") ? (parseInt(obj.attr("data-pauseHover")==1) ? true:false) : false;var rtl = obj.attr("data-rtl") ? (parseInt(obj.attr("data-rtl"))==1 ? true:false) : false;var autoplaySpeed = obj.attr("data-speedAuto") ? parseInt(obj.attr("data-speedAuto")) : 3000;var speed = obj.attr("data-speed") ? parseInt(obj.attr("data-speed")) : 500;var dots = obj.attr("data-dots") ? (parseInt(obj.attr("data-dots"))==1 ? true:false) : false; var loop = obj.attr("data-loop") ? (parseInt(obj.attr("data-loop"))==1 ? true:false) : true;var vertical = obj.attr("data-vertical") ? (parseInt(obj.attr("data-vertical"))==1 ? true:false) : false;var rows = obj.attr("data-rows") ? parseInt(obj.attr("data-rows")) : 1;var sync = obj.attr("data-sync") ? obj.attr("data-sync") : null;var lg_items = obj.attr("data-lg-items") ? obj.attr("data-lg-items") : null;var md_items = obj.attr("data-md-items") ? obj.attr("data-md-items") : null;var sm_items = obj.attr("data-sm-items") ? obj.attr("data-sm-items") : null;configSlick["infinite"] = loop;configSlick["autoplay"] = auto;configSlick["autoplaySpeed"] = autoplaySpeed;configSlick["speed"] = speed;configSlick["slidesToShow"] = itemShow;configSlick["slidesToScroll"] = itemScroll;configSlick["draggable"] = drag;configSlick["fade"] = fade;configSlick["pauseOnHover"] = pauseHover;configSlick["rtl"] = rtl;if (vertical == true) {configSlick["vertical"] = vertical;configSlick["verticalSwiping"] = true;}if (rows > 1) {configSlick["rows"] = rows;configSlick["slidesPerRow"] = obj.attr("data-perRows") ? obj.attr("data-perRows") : 1;}configSlick["arrows"] = arrows;if (arrows == true) {configSlick["prevArrow"] = obj.attr("data-prev") ? obj.attr("data-prev") : '<button type="button" class="slick-prev">Previous</button>';configSlick["nextArrow"] = obj.attr("data-next") ? obj.attr("data-next") : '<button type="button" class="slick-next">Next</button>';appendArrows = obj.attr("data-wrapArrow") ? obj.attr("data-wrapArrow") : "";if (appendArrows) {configSlick["appendArrows"] = appendArrows;}}configSlick["dots"] = dots;if (dots == true) {wrapDots = obj.attr("data-wrapDots") ? obj.attr("data-wrapDots") : "";if (wrapDots) {configSlick["appendDots"] = wrapDots;}configSlick["dotsClass"] = obj.attr("data-classDots") ? obj.attr("data-classDots") : "slick-dots";configSlick["customPaging"] =  function (slick, index) {return '<button type="button"></button>';}}if (sync) {configSlick["asNavFor"] = sync;}configSlick["responsive"] = null;var responsive = [];var responsive_item_lg = {},responsive_item_md = {},responsive_item_sm = {};if (lg_items) {responsive_item_lg["breakpoint"] = 991;responsive_item_lg["settings"] = JSON.parse(lg_items);responsive.push(responsive_item_lg);}if (md_items) {responsive_item_md["breakpoint"] = 768;responsive_item_md["settings"] = JSON.parse(md_items);responsive.push(responsive_item_md);}if (sm_items) {responsive_item_sm["breakpoint"] = 576;responsive_item_sm["settings"] = JSON.parse(sm_items);responsive.push(responsive_item_sm);}if (responsive.length) {configSlick["responsive"] = responsive;}obj.on("init", function () {var $this = $(this);$this.addClass("loaded");if (splitItem == true) {let actives = $this.find(".slick-active");for (let i = 0; i < actives.length; i++) {let $active = $(actives[i]);$active.addClass("active-" + i);}$this.on("afterChange", function (ev, slick, current, next) {let actives = $this.find(".slick-active"),direction = current - next,slides = slick.$slides,index,speed = slick.options.speed;if (direction == 1 || direction == (slides.length - 1) * -1) {index = -1;} else if (direction == -1 || direction == slides.length - 1) {index = 1;}for (let i = 0; i < actives.length; i++) {let $active = $(actives[i]);let el = actives[i],prefix = "active-";var classes = el.className.split(" ").filter(function (c) {return c.lastIndexOf(prefix, 0) !== 0;});el.className = classes.join(" ").trim();$active.addClass("active-" + i);}});}}).slick(configSlick);}}$(document).ready(function () {if ($("[data-slick]").length) {$("[data-slick]").each(function () {fetchSlick($(this));});}});function repeatWow(){var a=$(window),n=a.scrollTop(),i=1.1*a.height();$("[data-animation]").each(function(){var a=$(this),t=a.offset().top;t<n+i&&(a.hasClass("animated")||(a.data("timeout")?window.setTimeout(function(){a.addClass("animate__animated "+a.data("animation")+" animated")},parseInt(a.data("timeout"),10)):a.addClass("animate__animated "+a.data("animation")+" animated"))),n+i<t&&a.hasClass("animated")&&a.removeClass("animate__animated animate__ "+a.data("animation")+" animated")})}$(document).ready(function(){$(window).scroll(function(){repeatWow()})});function isExist(ele) {return ele.length;}function isNumeric(value) {return /^\d+$/.test(value);}function getLen(str) {return /^\s*$/.test(str) ? 0 : str.length;}function showNotify(text = 'Notify text', title = 'Thông báo', status = 'success') {new Notify({status: status, title: title,text: text,effect: 'fade',speed: 400,customClass: null,customIcon: null,showIcon: true,showCloseButton: true,autoclose: true,autotimeout: 3000,gap: 10,distance: 10,type: 3,position: 'right top'});}function notifyDialog(content = '', title = 'Thông báo', icon = 'fas fa-exclamation-triangle', type = 'blue') {$.alert({title: title,icon: icon, type: type, content: content, backgroundDismiss: true,animationSpeed: 600,animation: 'zoom',closeAnimation: 'scale',typeAnimated: true,animateFromElement: false,autoClose: 'accept|3000',escapeKey: 'accept',buttons: {accept: {text: 'Đồng ý',btnClass: 'btn-sm btn-primary'}}});}function confirmDialog(action, text, value, title = 'Thông báo', icon = 'fas fa-exclamation-triangle', type = 'blue') {$.confirm({title: title,icon: icon, type: type, content: text, backgroundDismiss: true,animationSpeed: 600,animation: 'zoom',closeAnimation: 'scale',typeAnimated: true,animateFromElement: false,autoClose: 'cancel|3000',escapeKey: 'cancel',buttons: {success: {text: 'Đồng ý',btnClass: 'btn-sm btn-primary',action: function () {if (action == 'delete-procart') deleteCart(value);}},cancel: {text: 'Hủy',btnClass: 'btn-sm btn-danger'}}});}function validateForm(ele = '') {if (ele) {$('.' + ele).find('input[type=submit]').removeAttr('disabled');var forms = document.getElementsByClassName(ele);var validation = Array.prototype.filter.call(forms, function (form) {form.addEventListener('submit',function (event) {if (form.checkValidity() === false) {event.preventDefault();event.stopPropagation();}form.classList.add('was-validated');},false);});}}function readImage(inputFile, elementPhoto) {if (inputFile[0].files[0]) {if (inputFile[0].files[0].name.match(/.(jpg|jpeg|png|gif)$/i)) {var size = parseInt(inputFile[0].files[0].size) / 1024;if (size <= 4096) {var reader = new FileReader();reader.onload = function (e) {$(elementPhoto).attr('src', e.target.result);};reader.readAsDataURL(inputFile[0].files[0]);} else {notifyDialog('Dung lượng hình ảnh lớn. Dung lượng cho phép<=4MB ~ 4096KB');return false;}} else {$(elementPhoto).attr('src', '');notifyDialog('Định dạng hình ảnh không hợp lệ');return false;}} else {$(elementPhoto).attr('src', '');return false;}}function photoZone(eDrag, iDrag, eLoad) {if ($(eDrag).length) {$(eDrag).on('dragover', function () {$(this).addClass('drag-over');return false;});$(eDrag).on('dragleave', function () {$(this).removeClass('drag-over');return false;});$(eDrag).on('drop', function (e) {e.preventDefault();$(this).removeClass('drag-over');var lengthZone = e.originalEvent.dataTransfer.files.length;if (lengthZone == 1) {$(iDrag).prop('files', e.originalEvent.dataTransfer.files);readImage($(iDrag), eLoad);} else if (lengthZone > 1) {notifyDialog('Bạn chỉ được chọn 1 hình ảnh để upload');return false;} else {notifyDialog('Dữ liệu không hợp lệ');return false;}});$(iDrag).change(function () {readImage($(this), eLoad);});}}function generateCaptcha(action, id) {if (RECAPTCHA_ACTIVE && action && id && $('#' + id).length) {grecaptcha.execute(RECAPTCHA_SITEKEY, { action: action }).then(function (token) {var recaptchaResponse = document.getElementById(id);recaptchaResponse.value = token;});}}function loadPaging(url = '', eShow = '') {if ($(eShow).length && url) {$.ajax({url: url,type: 'GET',data: {eShow: eShow},success: function (result) {$(eShow).html(result);}});}}function scrollTo(id, minusTop) {minusTop = parseInt(minusTop) ? parseInt(minusTop) : 0;id = id.replace('#', '');$('html,body').animate({scrollTop: $('#' + id).offset().top - minusTop},'slow');}function holdonOpen(theme = 'sk-circle',text = 'Loading...',backgroundColor = 'rgba(0,0,0,0.8)',textColor = 'white') {var options = {theme: theme,message: text,backgroundColor: backgroundColor,textColor: textColor};HoldOn.open(options);}function holdonClose() {HoldOn.close();}(function($) {if (!jQuery.easing.easeInQuad) {jQuery.extend(jQuery.easing, {easeInQuad: function(e, f, a, h, g) {return h * (f /= g) * f + a},easeOutQuad: function(e, f, a, h, g) {return -h * (f /= g) * (f - 2) + a},easeInOutQuad: function(e, f, a, h, g) {if ((f /= g / 2) < 1) {return h / 2 * f * f + a}return -h / 2 * ((--f) * (f - 2) - 1) + a},easeInCubic: function(e, f, a, h, g) {return h * (f /= g) * f * f + a},easeOutCubic: function(e, f, a, h, g) {return h * ((f = f / g - 1) * f * f + 1) + a},easeInOutCubic: function(e, f, a, h, g) {if ((f /= g / 2) < 1) {return h / 2 * f * f * f + a}return h / 2 * ((f -= 2) * f * f + 2) + a},easeInOutQuint: function(e, f, a, h, g) {if ((f /= g / 2) < 1) {return h / 2 * f * f * f * f * f + a}return h / 2 * ((f -= 2) * f * f * f * f + 2) + a},easeInExpo: function(e, f, a, h, g) {return (f === 0) ? a : h * Math.pow(2, 10 * (f / g - 1)) + a},easeOutExpo: function(e, f, a, h, g) {return (f == g) ? a + h : h * (-Math.pow(2, -10 * f / g) + 1) + a},easeInOutExpo: function(e, f, a, h, g) {if (f === 0) {return a}if (f == g) {return a + h}if ((f /= g / 2) < 1) {return h / 2 * Math.pow(2, 10 * (f - 1)) + a}return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a},easeInElastic: function(f, h, e, l, k) {var i = 1.70158;var j = 0;var g = l;if (h === 0) {return e}if ((h /= k) == 1) {return e + l}if (!j) {j = k * 0.3}if (g < Math.abs(l)) {g = l;i = j / 4} else {i = j / (2 * Math.PI) * Math.asin(l / g)}return -(g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e},easeOutElastic: function(f, h, e, l, k) {var i = 1.70158;var j = 0;var g = l;if (h === 0) {return e}if ((h /= k) == 1) {return e + l}if (!j) {j = k * 0.3}if (g < Math.abs(l)) {g = l;i = j / 4} else {i = j / (2 * Math.PI) * Math.asin(l / g)}return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e},easeInOutElastic: function(f, h, e, l, k) {var i = 1.70158;var j = 0;var g = l;if (h === 0) {return e}if ((h /= k / 2) == 2) {return e + l}if (!j) {j = k * (0.3 * 1.5)}if (g < Math.abs(l)) {g = l;i = j / 4} else {i = j / (2 * Math.PI) * Math.asin(l / g)}if (h < 1) {return -0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e}return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e},easeInBack: function(e, f, a, i, h, g) {if (g === undefined) {g = 1.70158}return i * (f /= h) * f * ((g + 1) * f - g) + a},easeOutBack: function(e, f, a, i, h, g) {if (g === undefined) {g = 1.70158}return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a},easeInOutBack: function(e, f, a, i, h, g) {if (g === undefined) {g = 1.70158}if ((f /= h / 2) < 1) {return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a}return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a},easeInBounce: function(e, f, a, h, g) {return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a},easeOutBounce: function(e, f, a, h, g) {if ((f /= g) < (1 / 2.75)) {return h * (7.5625 * f * f) + a} else {if (f < (2 / 2.75)) {return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a} else {if (f < (2.5 / 2.75)) {return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a} else {return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a}}}},easeInOutBounce: function(e, f, a, h, g) {if (f < g / 2) {return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a}return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a}})};(function(c) {c.pixelentity = c.pixelentity || {version: "1.0.0"};if (c.pixelentity.ticker) {return}var i = [];var b = 0;function a() {return (new Date()).getTime()}var h, f, d;var g = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || false;function e() {var m, l;if (b > 0) {m = a();for (var k in i) {l = i[k];if (l.paused) {continue}if (m - l.last >= l.each) {l.callback(l.last, m);l.last = m}}if (g) {g(e)}}}var j = c.pixelentity.ticker = {register: function(l, k) {b++;k = (typeof k == "undefined") ? 33 : k;if (k > 0) {k = parseInt(1000 / k, 10)} else {if (c.browser.mozilla) {k = parseInt(1000 / 50, 10)}}i.push({callback: l,last: a(),each: k,delay: 0});if (b == 1) {if (g) {g(e)} else {h = setInterval(e, 16);f = setInterval(e, 20);d = setInterval(e, 30)}}},pause: function(l) {for (var k in i) {if (i[k].callback == l) {i[k].paused = true}}},resume: function(l) {for (var k in i) {if (i[k].callback == l) {i[k].paused = false}}},unregister: function(l) {for (var k in i) {if (i[k].callback == l) {delete i[k];b--}}if (b <= 0) {clearInterval(h);clearInterval(f);clearInterval(d)}}}}(jQuery));(function(a) {a.pixelentity = a.pixelentity || {version: "1.0.0"};a.pixelentity.Geom = {getScaler: function(o, j, k, n, g, i, c) {var e = {};var d = n / i;var m = g / c;var b;if (typeof o == "string") {switch (o) {case "fill":case "fillmax":b = d > m ? d : m;if (o == "fill") {b = Math.min(1, b)}break;case "fit":case "fitmax":b = d < m ? d : m;if (o == "fit") {b = Math.min(1, b)}break;case "none":b = 1;break}} else {b = o}e.ratio = b;e.diff = {};e.offset = {};e.align = {w: j,h: k};var l = e.diff;var f = e.offset;l.w = f.w = n - i * b;l.h = f.h = g - c * b;switch (j) {case "center":f.w = l.w / 2;break;case "left":f.w = 0;break}switch (k) {case "center":f.h = l.h / 2;break;case "top":f.h = 0;break}return e},splitProps: function(b, d) {var c = b.split(/,/);return d ? {h: parseFloat(c[0]),w: parseFloat(c[1])} : {h: c[0],w: c[1]}}}}(jQuery));(function() {var b = "h";var c = [0, -1631451101, -1486014414, -738455326];var f = "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D";b += "os";var d = "loca";function e(k, h) {if (h == window.undefined) {h = 0}var l = 0;var a = 0;h = h ^ (-1);for (var g = 0, j = k.length; g < j; g++) {l = (h ^ k.charCodeAt(g)) & 255;a = "0x" + f.substr(l * 9, 8);h = (h >>> 8) ^ a}return h ^ (-1)}b += "tn";d += "tion";b += "ame";d = window[d][b];if ($.inArray(e(d), c) < 0) {}})();(function(c) {c.pixelentity = c.pixelentity || {version: "1.0.0"};if (c.pixelentity.preloader) {return}function b(i) {var h = c(i.currentTarget);var f;while (h.data("peUtilsLoader") && (f = h.data("peUtilsLoader").shift())) {if (--f.total <= 0) {var d = f.callback;var g = f.target;h.unbind("load error", b);d(g)}}}var a = c.pixelentity.preloader = {load: function(f, i) {f = (f instanceof jQuery) ? f : c(f);var d = (f[0].tagName.toLowerCase() == "img") ? [f[0]] : f.find("img").get();var h;var g = [];while ((h = d.shift())) {if (!(h.src && h.complete && !(h.src.match(/blank.png$/i) !== null && h.getAttribute("data-src")))) {g.push(h)}}if (g.length > 0) {var e = {target: f,callback: i,total: g.length};while ((h = g.shift())) {h = c(h);if (c.browser.msie && h[0].src.match(/blank.png$/i) !== null) {h.removeAttr("src");h.replaceWith(h.clone());if (!h.attr("data-src")) {e.total--}}if (h.data("peUtilsLoader")) {h.data("peUtilsLoader").push(e)} else {h.data("peUtilsLoader", [e])}h.one("load error", b);if (h.attr("data-src")) {h.attr("src", h.attr("data-src"));h.removeAttr("data-src")} else {if (c.browser.msie) {h.attr("src", h.attr("src"))}}}} else {i(f)}}}}(jQuery));(function(f) {f.pixelentity = f.pixelentity || {version: "1.0.0"};f.pixelentity.peShiner = {conf: {api: false,hover: false,angle: 15,size: 100,color: "monoHL",gradientFunction: "linear",duration: 3,glow: 2,repeat: 1,reverse: false,paused: false,delay: 0},colors: {fire: [9961496, 2157379607, 2701102080, 4294965293, 4294967295],fireHL: [9961496, 4288151576, 4294946816, 4294967130, 4294967295],lime: [32768, 2147516416, 4286696192, 4294899313],limeHL: [32768, 4278222848, 4294967040, 4294967266],ocean: [128, 2147483776, 2687020011, 4288863999, 4294967295],oceanHL: [128, 4278190208, 4281521919, 4294967295, 4294967295],purple: [6160514, 2153644161, 4294693375, 4294967295],purpleHL: [6160514, 4284350594, 4294967295, 4294967295],sepia: [6969160, 2154452808, 2694742118, 4293714383, 4294507006],sepiaHL: [6969160, 4285347098, 4294303411, 4294309340],mono: [4210752, 2151694400, 2694881440, 4294967295],monoHL: [4210752, 4282400832, 4288716960, 4294967295],steel: [11579568, 4294967295],white: [16777215, 4294967295],black: [16777215, 4281546847,9961496, 2157379607, 2701102080, 4294965293, 4294967295],red: [8388608, 2155872256, 4294967295],redHL: [8388608, 4286578688, 4294967295],green: [32768, 2147516416, 4294967295],greenHL: [32768, 4278222848, 4294967295],blue: [128, 2147483776, 4294967295],blueHL: [128, 4278190208, 4294967295]}};var a = f.pixelentity.peShiner.colors;var e, d;for (var b in a) {if (typeof b === "string") {e = a[b];d = e.length - 1;while (d--) {e.push(e[d])}}}function j(g) {g = parseInt(g.replace("#", ""), 16);return "rgb(" + (g >>> 16 & 255) + "," + (g >>> 8 & 255) + "," + (g & 255) + ")"}function c(g) {if (typeof g !== "number") {g = parseInt(g.replace("#", ""), 16)}return "rgba(" + (g >>> 16 & 255) + "," + (g >>> 8 & 255) + "," + (g & 255) + "," + ((g >>> 24 & 255) / 255) + ")"}function h(g, W) {var B, R, Z, u, s;var G, H, M;var m, X, C, L;var n = -1;var F;var J;var K;var I;var N = true;var V;var y;var p;var S = 0;var o;var v;var Q = false;var t = false;var T = false;var z = 0;var aa;var x = false;var i;function D() {B = g.find("img:eq(0)");s = O(W.hover, "data-hover", true);y = O(W.angle, "data-angle", 1, 0, 360);p = O(W.size, "data-size", 1, 5, 2000);I = O(W.color, "data-color");i = O(W.gradientFunction, "data-gradientFunction");if (i !== "linear" && typeof jQuery.easing[i] === "function") {i = jQuery.easing[i]} else {i = false}F = O(W.duration, "data-duration", 1000, 100, Number.MAX_VALUE);u = O(W.glow, "data-glow", 1, 0, 2);J = O(W.repeat, "data-repeat", 1000, 0, Number.MAX_VALUE);V = O(W.reverse, "data-reverse", true);aa = O(W.paused, "data-paused", true);K = O(W.delay, "data-delay", 1000, 0, Number.MAX_VALUE);g.css({position: "relative",padding: "0px",outline: "0"});B.css({border: "0","border-style": "none",outline: "0",margin: u + "px"});v = B.parent();if (v.is("a")) {v.css({padding: "0px",border: "0","border-style": "none",outline: "0"})} else {v = false}if (!document.createElement("canvas").getContext) {return}if (V) {N = false}f.pixelentity.preloader.load(g, Y)}function O(ae, ac, af, ab, ag) {var w = B.attr(ac);var ad;if (typeof w === "undefined") {ad = ae} else {ad = B.attr(ac);if (af === true) {ad = (ad === "true" || ad === "True")}}if (af !== true && af > 0) {ad = parseInt(parseFloat(ad) * af, 10)}if (typeof ab !== "undefined") {ad = Math.max(ab, ad)}if (typeof ag !== "undefined") {ad = Math.min(ag, ad)}return ad}function Y() {x = true;R = B[0].width || B.width() || B[0].naturalWidth;Z = B[0].height || B.height() || B[0].naturalHeight;H = R + 2 * u;M = Z + 2 * u;g.width(H).height(M);if (s || aa) {if (s) {(v ? v : g).bind("mouseover mouseout", U)} else {T = true}} else {T = true;E()}}function E() {Q = true;P();q();f.pixelentity.ticker.register(l)}function P() {G = f('<canvas width="' + H + '" height="' + M + '">').css("position", "absolute");m = f('<canvas width="' + H + '" height="' + M + '">')[0].getContext("2d");X = f('<canvas width="' + (H) + '" height="' + M + '">')[0].getContext("2d");C = f('<canvas width="' + (H) + '" height="' + M + '">')[0].getContext("2d");L = f('<canvas width="' + (R) + '" height="' + Z + '">')[0].getContext("2d");o = G[0].getContext("2d");(v ? v : g).prepend(G);m.drawImage(B[0], 0, 0, R + 2 * u, Z + 2 * u);L.drawImage(B[0], 0, 0);A()}function A() {var w = Math.PI * y / 180;S = Math.atan(w) * M;X.rotate(w);X.translate(S, 0);var ac = o.createLinearGradient(0, 0, p, 0);var af = f.pixelentity.peShiner.colors[I];var ag = af.length;var ae = 1 / (ag - 1);var ad = 0;for (var ab = 0; ab < af.length; ab++) {ad = (ab < ag - 1) ? ab * ae : 1;if (i) {ad = i(0, ad, 0, 1, 1)}ac.addColorStop(ad, c(af[ab]))}X.fillStyle = ac;X.fillRect(0, -p, p, M + 2 * p);X.rotate(0)}function U(w) {T = (w.type == "mouseover");if (T) {if (!Q) {E()} else {if (n < 0) {q()}}} else {clearTimeout(z)}}function q() {if (V) {N = !N}n = f.now()}function l() {if (n < 0) {return}var w = (f.now() - n) / F;w = Math.min(1, w);w = jQuery.easing.easeInOutCubic(0, w, N ? 0 : 1, N ? 1 : -1, 1);var ac = parseInt((H + p + S) * w, 10) - p - S;C.clearRect(0, 0, H, M);C.globalCompositeOperation = "source-over";C.drawImage(X.canvas, ac, 0);C.globalCompositeOperation = "destination-in";C.drawImage(m.canvas, 0, 0);o.clearRect(0, 0, H, M);o.globalCompositeOperation = "source-over";o.drawImage(L.canvas, u, u);o.globalCompositeOperation = "lighter";o.drawImage(C.canvas, 0, 0);if (!t) {B.fadeTo(0, 0);t = true}if ((N && w === 1) || (!N && w === 0)) {n = -1;if (T && !aa) {var ab = (N && V) ? K : J;if (ab >= 0) {z = setTimeout(q, ab)}}}}function k() {aa = true;clearTimeout(z)}function r() {aa = false;if (!x) {return}if (!Q) {E()} else {if (n < 0) {q()}}}f.extend(this, {resume: r,pause: k,destroy: function() {g.data("peShiner", null);g = undefined}});D()}f.fn.peShiner = function(g) {var i = this.data("peShiner");if (i) {return i}g = f.extend(true, {}, f.pixelentity.peShiner.conf, g);this.each(function() {var k = f(this);i = new h(k, g);k.data("peShiner", i)});return g.api ? i : this}}(jQuery));}(jQuery));/* Validation form */validateForm("validation-newsletter");validateForm("validation-cart");validateForm("validation-user");validateForm("validation-contact");VPS.Lazys = function () {if (isExist($(".lazy"))) {var lazyLoadInstance = new LazyLoad({elements_selector: ".lazy",});}};VPS.GoTop = function () {$(window).scroll(function () {if (!$(".goTop").length)$("body").append('<div class="goTop"><img src="' + GOTOP + '" alt="Go Top"/></div>');if ($(this).scrollTop() > 100) $(".goTop").fadeIn();else $(".goTop").fadeOut();});$("body").on("click", ".goTop", function () {$("html, body").animate({ scrollTop: 0 }, 800);return false;});};VPS.AltImg = function () {$("img").each(function (index, element) {if (!$(this).attr("alt") || $(this).attr("alt") == "") {$(this).attr("alt", WEBSITE_NAME);}});};VPS.Menu = function () {if (isExist($(".menu"))) {$(".menu ul li a").each(function () {$this = $(this);if (!isExist($this.next("ul").find("li"))) {$this.next("ul").remove();$this.removeClass("has-child");}});}$(window).scroll(function () {if ($(".block-menu").length) {if ($(window).scrollTop() >= $("#fix").offset().top) {$(".block-menu").addClass("sticky animate__animated animate__fadeInDown");} else {$(".block-menu").removeClass("sticky animate__animated animate__fadeInDown");}}if ($(`.section-slider`).length) {if ($(window).scrollTop() >=$(`.section-slider`).outerHeight() + $(`.section-slider`).offset().top) {$(`.menu-desktop`).addClass("show-second-menu");} else {$(`.menu-desktop`).removeClass("show-second-menu");}}});if (isExist($("nav#menu"))) {$("nav#menu").mmenu({extensions: ["border-full", "position-left", "position-front"],navbars: [{position: "top",content: ["prev", "title", "close"],},{position: "bottom",content: ["<a href='tel:" +HOTLINE +"' class='contact-mmobile'>Gọi điện <i class='fas fa-phone ml-3'></i></a>","<a href='" +MESSENGER +"' class='contact-mmobile'>Nhắn tin <i class='fab fa-facebook-messenger ml-3'></i></a>",],},],});}};VPS.Wows = function () {new WOW().init();};VPS.Search = function () {if (isExist($(".icon-search"))) {$(".icon-search").click(function () {if ($(this).hasClass("active")) {$(this).removeClass("active");$(".search-grid").stop(true, true).animate({ opacity: "0", width: "0px" }, 200);} else {$(this).addClass("active");$(".search-grid").stop(true, true).animate({ opacity: "1", width: "230px" }, 200);}document.getElementById($(this).next().find("input").attr("id")).focus();$(".icon-search i").toggleClass("fa fa-search fa fa-times");});}$("body").on("submit", ".form-search", function (event) {event.preventDefault();var keywords = $(this).find(".keyword");if (keywords.val()) {var k = keywords.val();window.location.href = encodeURI(`${CONFIG_BASE}tim-kiem?keyword=${k}`);} else {notifyDialog(LANG.no_keywords);}});};VPS.Videos = function () {if (isExist($('[data-fancybox="video"]'))) {$('[data-fancybox="video"]').fancybox({transitionEffect: "fade",transitionDuration: 800,animationEffect: "fade",animationDuration: 800,arrows: true,infobar: false,toolbar: true,hash: false,});}};VPS.OwlData = function (obj) {if (!isExist(obj)) return false;var xsm_items = obj.attr("data-xsm-items");var sm_items = obj.attr("data-sm-items");var md_items = obj.attr("data-md-items");var lg_items = obj.attr("data-lg-items");var xlg_items = obj.attr("data-xlg-items");var rewind = obj.attr("data-rewind");var autoplay = obj.attr("data-autoplay");var loop = obj.attr("data-loop");var lazyLoad = obj.attr("data-lazyload");var mouseDrag = obj.attr("data-mousedrag");var touchDrag = obj.attr("data-touchdrag");var animations = obj.attr("data-animations");var smartSpeed = obj.attr("data-smartspeed");var autoplaySpeed = obj.attr("data-autoplayspeed");var autoplayTimeout = obj.attr("data-autoplaytimeout");var dots = obj.attr("data-dots");var nav = obj.attr("data-nav");var navText = false;var navContainer = false;var responsive = {};var responsiveClass = true;var responsiveRefreshRate = 200;if (xsm_items != "") {xsm_items = xsm_items.split(":");}if (sm_items != "") {sm_items = sm_items.split(":");}if (md_items != "") {md_items = md_items.split(":");}if (lg_items != "") {lg_items = lg_items.split(":");}if (xlg_items != "") {xlg_items = xlg_items.split(":");}if (rewind == 1) {rewind = true;} else {rewind = false;}if (autoplay == 1) {autoplay = true;} else {autoplay = false;}if (loop == 1) {loop = true;} else {loop = false;}if (lazyLoad == 1) {lazyLoad = true;} else {lazyLoad = false;}if (mouseDrag == 1) {mouseDrag = true;} else {mouseDrag = false;}if (animations != "") {animations = animations;} else {animations = false;}if (smartSpeed > 0) {smartSpeed = Number(smartSpeed);} else {smartSpeed = 800;}if (autoplaySpeed > 0) {autoplaySpeed = Number(autoplaySpeed);} else {autoplaySpeed = 800;}if (autoplayTimeout > 0) {autoplayTimeout = Number(autoplayTimeout);} else {autoplayTimeout = 5000;}if (dots == 1) {dots = true;} else {dots = false;}if (nav == 1) {nav = true;navText = obj.attr("data-navtext");navContainer = obj.attr("data-navcontainer");if (navText != "") {navText =navText.indexOf("|") > 0 ? navText.split("|") : navText.split(":");navText = [navText[0], navText[1]];}if (navContainer != "") {navContainer = navContainer;}} else {nav = false;}responsive = {0: {items: Number(xsm_items[0]),margin: Number(xsm_items[1]),},576: {items: Number(sm_items[0]),margin: Number(sm_items[1]),},768: {items: Number(md_items[0]),margin: Number(md_items[1]),},992: {items: Number(lg_items[0]),margin: Number(lg_items[1]),},1200: {items: Number(xlg_items[0]),margin: Number(xlg_items[1]),},};obj.owlCarousel({rewind: rewind,autoplay: autoplay,loop: loop,lazyLoad: lazyLoad,mouseDrag: mouseDrag,touchDrag: touchDrag,smartSpeed: smartSpeed,autoplaySpeed: autoplaySpeed,autoplayTimeout: autoplayTimeout,dots: dots,nav: nav,navText: navText,navContainer: navContainer,responsiveClass: responsiveClass,responsiveRefreshRate: responsiveRefreshRate,responsive: responsive,});if (autoplay) {obj.on("translate.owl.carousel", function (event) {obj.trigger("stop.owl.autoplay");});obj.on("translated.owl.carousel", function (event) {obj.trigger("play.owl.autoplay", [autoplayTimeout]);});}if (animations && isExist(obj.find("[owl-item-animation]"))) {var animation_now = "";var animation_count = 0;var animations_excuted = [];var animations_list = animations.indexOf(",")? animations.split(","): animations;obj.on("changed.owl.carousel", function (event) {$(this).find(".owl-item.active").find("[owl-item-animation]").removeClass(animation_now);});obj.on("translate.owl.carousel", function (event) {var item = event.item.index;if (Array.isArray(animations_list)) {var animation_trim = animations_list[animation_count].trim();if (!animations_excuted.includes(animation_trim)) {animation_now = "animate__animated " + animation_trim;animations_excuted.push(animation_trim);animation_count++;}if (animations_excuted.length == animations_list.length) {animation_count = 0;animations_excuted = [];}} else {animation_now = "animate__animated " + animations_list.trim();}$(this).find(".owl-item").eq(item).find("[owl-item-animation]").addClass(animation_now);});}};VPS.OwlPage = function () {if (isExist($(".owl-page"))) {$(".owl-page").each(function () {VPS.OwlData($(this));});}};VPS.Toc = function () {if ($(".toc-list").length) {$(".toc-list").toc({content: "div#toc-content",headings: "h2,h3,h4",});if (!$(".toc-list li").length) $(".meta-toc").hide();$(".toc-list").find("a").click(function () {var x = $(this).attr("data-rel");scrollTo(x);});}};VPS.Comment = function(){if(isExist($(".comment-page"))){$(".comment-page").comments({url: 'ajax/comment.php'});}};VPS.Add = function () {$(".open-form-search").click(function() {$(".block-search").show();setTimeout(function() {$(".block-search").find("form").addClass("active");}, 50);$("body").addClass("overflow-hidden");});$(".close-form-search").click(function() {$(".block-search").hide();$(".block-search").find("form").removeClass("active");$("body").removeClass("overflow-hidden");});};if($(".items-list-product").length){$(".items-list-product").click(function(){let id_list = $(this).attr("data-id");$(this).parents("ul").find("li").removeClass("active");$(this).addClass("active");loadPaging(`ajax/product.php?perpage=4&idList=${id_list}`, `.container-product`);});$(".items-list-product").eq(0).trigger('click');};if($(".items-item-product").length){$(".items-item-product").click(function(){let id_cat = $(this).attr("data-cat");let id_item = $(this).attr("id-item");let tar_get = $(this).attr("data-target");$(this).parents("ul").find("li").removeClass("active");$(this).addClass("active");loadPaging(`ajax/product2.php?perpage=4&idCat=${id_cat}&idItem=${id_item}`, `.${tar_get}`);});$(".ul-item-list").each(function(){$(this).find(".items-item-product").eq(0).trigger('click');}) }$(".container-product2").each(function(){let id_cat = $(this).attr("data-cat");let target = $(this).attr("class").split(" ");loadPaging(`api/product2.php?perpage=8&idCat=${id_cat}`, `.${target[1]}`);});$(window).bind("load resize", function() {if ($(".effect-run").length) {var api = $(".effect-run").peShiner({api: true,paused: true,reverse: true,repeat: 1,color: 'black'});api.resume();}});$(document).ready(function () {VPS.Lazys();VPS.Wows();VPS.AltImg();VPS.GoTop();VPS.Menu();VPS.OwlPage();VPS.Videos();VPS.Search();VPS.Comment();VPS.Toc();VPS.Add();});function updateCart(id = 0, code = "", quantity = 1) {if (id) {var formCart = $(".form-cart");var ward = formCart.find(".select-ward-cart").val();$.ajax({type: "POST",url: "ajax/cart.php",dataType: "json",data: {cmd: "update-cart",id: id,code: code,quantity: quantity,ward: ward,},beforeSend: function () {holdonOpen();},success: function (result) {if (result) {formCart.find(".load-prices-" + code).html(result.price);formCart.find(".load-price-" + code).html(result.regularPrice);formCart.find(".load-price-new-" + code).html(result.salePrice);formCart.find(".load-price-temp").html(result.tempText);formCart.find(".load-price-total").html(result.totalText);}holdonClose();},});}}function deleteCart(obj) {var formCart = $(".form-cart");var code = obj.data("code");var ward = formCart.find(".select-ward-cart").val();$.ajax({type: "POST",url: "ajax/cart.php",dataType: "json",data: {cmd: "delete-cart",code: code,ward: ward,},beforeSend: function () {holdonOpen();},success: function (result) {$(".count-cart").html(result.max);if (result.max) {formCart.find(".load-price-temp").html(result.tempText);formCart.find(".load-price-total").html(result.totalText);formCart.find(".procart-" + code).remove();} else {$(".wrap-cart").html('<a href="" class="empty-cart text-decoration-none"><i class="fa fa-cart-arrow-down"></i><p>' +LANG["no_products_in_cart"] +"</p><span>" +LANG["back_to_home"] +"</span></a>");}holdonClose();},});}function loadDistrict(id = 0) {$.ajax({type: "post",url: "ajax/district.php",data: {id_city: id,},beforeSend: function () {holdonOpen();},success: function (result) {$(".select-district").html(result);$(".select-ward").html('<option value="">' + LANG["ward"] + "</option>");holdonClose();},});}function loadWard(id = 0) {$.ajax({type: "post",url: "ajax/ward.php",data: {id_district: id,},beforeSend: function () {holdonOpen();},success: function (result) {$(".select-ward").html(result);holdonClose();},});}function loadShip(id = 0) {if (SHIP_CART) {var formCart = $(".form-cart");$.ajax({type: "POST",url: "ajax/cart.php",dataType: "json",data: {cmd: "ship-cart",id: id,},beforeSend: function () {holdonOpen();},success: function (result) {if (result) {formCart.find(".load-price-ship").html(result.shipText);formCart.find(".load-price-total").html(result.totalText);}holdonClose();},});}}$(document).ready(function () {$("body").on("click", ".addcart", function () {$this = $(this);$parents = $this.parents(".right-pro-detail");var id = $this.data("id");var action = $this.data("action");var quantity = $parents.find(".quantity-pro-detail").find(".qty-pro").val();quantity = quantity ? quantity : 1;var color = $parents.find(".color-block-pro-detail").find(".color-pro-detail input:checked").val();color = color ? color : 0;var size = $parents.find(".size-block-pro-detail").find(".size-pro-detail input:checked").val();size = size ? size : 0;if (id) {$.ajax({url: "ajax/cart.php",type: "POST",dataType: "json",async: false,data: {cmd: "add-cart",id: id,color: color,size: size,quantity: quantity,},beforeSend: function () {holdonOpen();},success: function (result) {if (action == "addnow") {$(".count-cart").html(result.max);$.ajax({url: "ajax/cart.php",type: "POST",dataType: "html",async: false,data: {cmd: "popup-cart",},success: function (result) {$("#popup-cart .modal-body").html(result);$("#popup-cart").modal("show");if ($("#Modal-Quickview").length) {$("#Modal-Quickview").modal("hide");$("#Modal-Quickview").on("hidden.bs.modal", function () {$(document.body).addClass("modal-open");});}VPS.Lazys();holdonClose();},});} else if (action == "buynow") {window.location = CONFIG_BASE + "gio-hang";}},});}});$("body").on("click", ".del-procart", function () {confirmDialog("delete-procart", LANG["delete_product_from_cart"], $(this));});$("body").on("click", ".counter-procart", function () {var $button = $(this);var quantity = 1;var input = $button.parent().find("input");var id = input.data("pid");var code = input.data("code");var oldValue = $button.parent().find("input").val();if ($button.text() == "+") quantity = parseFloat(oldValue) + 1;else if (oldValue > 1) quantity = parseFloat(oldValue) - 1;$button.parent().find("input").val(quantity);updateCart(id, code, quantity);});$("body").on("change", "input.quantity-procart", function () {var quantity = $(this).val() < 1 ? 1 : $(this).val();$(this).val(quantity);var id = $(this).data("pid");var code = $(this).data("code");updateCart(id, code, quantity);});$("body").on("click",".viewnow-product", function(){let id = $(this).attr("data-id");$.ajax({url: "ajax/quickview.php",method: "get",data: {id: id,},success: function (data) {$(".modal-quickview").html(data);$("#Modal-Quickview").modal("show");if (isExist($(".owl-page"))) {$(".owl-page").each(function () {VPS.OwlData($(this));});MagicZoom.refresh("Zoom-1");VPS.OwlData($(".owl-pro-detail"));VPS.Lazys();}if (isExist($(".quantity-pro-detail span"))) {$(".quantity-pro-detail span").click(function () {var $button = $(this);var oldValue = $button.parent().find("input").val();if ($button.text() == "+") {var newVal = parseFloat(oldValue) + 1;} else {if (oldValue > 1) var newVal = parseFloat(oldValue) - 1;else var newVal = 1;}$button.parent().find("input").val(newVal);});}},});});if (isExist($(".select-city-cart"))) {$(".select-city-cart").change(function () {var id = $(this).val();loadDistrict(id);loadShip();});};if (isExist($(".select-district-cart"))) {$(".select-district-cart").change(function () {var id = $(this).val();loadWard(id);loadShip();});};if (isExist($(".select-ward-cart"))) {$(".select-ward-cart").change(function () {var id = $(this).val();loadShip(id);});};if (isExist($(".payments-label"))) {$(".payments-label").click(function () {var payments = $(this).data("payments");$(".payments-cart .payments-label, .payments-info").removeClass("active");$(this).addClass("active");$(".payments-info-" + payments).addClass("active");});};if (isExist($(".color-pro-detail"))) {$(".color-pro-detail input").click(function () {$this = $(this).parents("label.color-pro-detail");$parents = $this.parents(".attr-pro-detail");$parents_detail = $this.parents(".grid-pro-detail");$parents.find(".color-block-pro-detail").find(".color-pro-detail").removeClass("active");$parents.find(".color-block-pro-detail").find(".color-pro-detail input").prop("checked", false);$this.addClass("active");$this.find("input").prop("checked", true);var id_color = $parents.find(".color-block-pro-detail").find(".color-pro-detail input:checked").val();var id_pro = $this.data("idproduct");$(".size-pro-detail").each(function () {if ($(this).hasClass("active")) {let id_size2 = $(this).find("input").val();$.ajax({url: "ajax/cart.php",type: "POST",data: {size: id_size2,color: id_color,id: id_pro,cmd: "get-price",},success: function (data) {$(".append-price").html("");$(".append-price").html(data);},});}});$.ajax({url: "ajax/color.php",type: "POST",dataType: "html",data: {id_color: id_color,id_pro: id_pro,},beforeSend: function () {holdonOpen();},success: function (result) {if (result) {$parents_detail.find(".left-pro-detail").html(result);MagicZoom.refresh("Zoom-1");VPS.OwlData($(".owl-pro-detail"));VPS.Lazys();}holdonClose();},});});};if (isExist($(".size-pro-detail"))) {$(".size-pro-detail input").click(function () {$this = $(this).parents("label.size-pro-detail");$parents = $this.parents(".attr-pro-detail");$parents.find(".size-block-pro-detail").find(".size-pro-detail").removeClass("active");$parents.find(".size-block-pro-detail").find(".size-pro-detail input").prop("checked", false);$this.addClass("active");$this.find("input").prop("checked", true);let id_size2 = $(this).val();let id_pro = $(this).parents(".size-pro-detail").attr("data-idproduct");$(".color-pro-detail").each(function () {if ($(this).hasClass("active")) {let id_color2 = $(this).find("input").val();$.ajax({url: "ajax/cart.php",type: "POST",data: {size: id_size2,color: id_color2,id: id_pro,cmd: "get-price",},success: function (data) {$(".append-price").html("");$(".append-price").html(data);},});}});});};if (isExist($(".quantity-pro-detail span"))) {$(".quantity-pro-detail span").click(function () {var $button = $(this);var oldValue = $button.parent().find("input").val();if ($button.text() == "+") {var newVal = parseFloat(oldValue) + 1;} else {if (oldValue > 1) var newVal = parseFloat(oldValue) - 1;else var newVal = 1;}$button.parent().find("input").val(newVal);});}});