!function(){var e={902:function(){ /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ !function(e){var t=0,n=function(t,n){this.options=n,this.$elementFilestyle=[],this.$element=e(t)};n.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(e){if(!0===e)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==e)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(e){if(!0===e)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==e)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(e){if(!0===e)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==e)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".icon-span-filestyle").remove())}},input:function(e){if(!0===e)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==e)return this.options.input;if(this.options.input){this.options.input=!1,this.$elementFilestyle.find(":text").remove();var t=this.pushNameFiles();t.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' '+t.length+""),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")}}},size:function(e){if(void 0===e)return this.options.size;var t=this.$elementFilestyle.find("label"),n=this.$elementFilestyle.find("input");t.removeClass("btn-lg btn-sm"),n.removeClass("input-lg input-sm"),"nr"!=e&&(t.addClass("btn-"+e),n.addClass("input-"+e))},placeholder:function(e){if(void 0===e)return this.options.placeholder;this.options.placeholder=e,this.$elementFilestyle.find("input").attr("placeholder",e)},buttonText:function(e){if(void 0===e)return this.options.buttonText;this.options.buttonText=e,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(e){if(void 0===e)return this.options.buttonName;this.options.buttonName=e,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(e){if(void 0===e)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?' ':""},htmlInput:function(){return this.options.input?' ':""},pushNameFiles:function(){var e="",t=[];void 0===this.$element[0].files?t[0]={name:this.$element[0]&&this.$element[0].value}:t=this.$element[0].files;for(var n=0;n",n=i.options.buttonBefore?r+i.htmlInput():i.htmlInput()+r,i.$elementFilestyle=e('
'+n+"
"),i.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress((function(e){if(13===e.keyCode||32===e.charCode)return i.$elementFilestyle.find("label").click(),!1})),i.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(i.$elementFilestyle),i.options.disabled&&i.$element.attr("disabled","true"),i.$element.change((function(){var e=i.pushNameFiles();0==i.options.input&&i.options.badge?0==i.$elementFilestyle.find(".badge").length?i.$elementFilestyle.find("label").append(' '+e.length+""):0==e.length?i.$elementFilestyle.find(".badge").remove():i.$elementFilestyle.find(".badge").html(e.length):i.$elementFilestyle.find(".badge").remove()})),window.navigator.userAgent.search(/firefox/i)>-1&&i.$elementFilestyle.find("label").click((function(){return i.$element.click(),!1}))}};var r=e.fn.filestyle;e.fn.filestyle=function(t,r){var i="",o=this.each((function(){if("file"===e(this).attr("type")){var o=e(this),s=o.data("filestyle"),a=e.extend({},e.fn.filestyle.defaults,t,"object"==typeof t&&t);s||(o.data("filestyle",s=new n(this,a)),s.constructor()),"string"==typeof t&&(i=s[t](r))}}));return void 0!==typeof i?i:o},e.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},e.fn.filestyle.noConflict=function(){return e.fn.filestyle=r,this},e((function(){e(".filestyle").each((function(){var t=e(this),n={input:"false"!==t.attr("data-input"),icon:"false"!==t.attr("data-icon"),buttonBefore:"true"===t.attr("data-buttonBefore"),disabled:"true"===t.attr("data-disabled"),size:t.attr("data-size"),buttonText:t.attr("data-buttonText"),buttonName:t.attr("data-buttonName"),iconName:t.attr("data-iconName"),badge:"false"!==t.attr("data-badge"),placeholder:t.attr("data-placeholder")};t.filestyle(n)}))}))}(window.jQuery)},290:function(){ /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ !function(e){e.fn.scrollbox=function(t){return(t=e.extend({linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1},t)).scrollOffset="vertical"===t.direction?"scrollTop":"scrollLeft",t.queue&&(t.queue=e("#"+t.queue)),this.each((function(){var n,r,i,o,s,a,l,c,u,f=e(this),d=null,p=null,h=!1,m=0,g=0;t.onMouseOverPause&&(f.bind("mouseover",(function(){h=!0})),f.bind("mouseout",(function(){h=!1}))),n=f.children(t.listElement+":first-child"),!1===t.infiniteLoop&&0===t.switchAmount&&(t.switchAmount=n.children().length),a=function(){var i,s,a,l,c;if(!h&&(i=n.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?i.outerHeight(!0):i.outerWidth(!0),t.linear?a=Math.min(f[0][t.scrollOffset]+t.step,l):(c=Math.max(3,parseInt(.3*(l-f[0][t.scrollOffset]),10)),a=Math.min(f[0][t.scrollOffset]+c,l)),f[0][t.scrollOffset]=a,a>=l)){for(s=0;s0?(n.append(t.queue.find(t.listItemElement)[0]),n.children(t.listItemElement+":first-child").remove()):n.append(n.children(t.listItemElement+":first-child")),++m;if(f[0][t.scrollOffset]=0,clearInterval(d),d=null,e.isFunction(t.afterForward)&&t.afterForward.call(f,{switchCount:m,currentFirstChild:n.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void r();if(!1===t.infiniteLoop&&m>=t.switchAmount)return;t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}},l=function(){if(!h){var i,s,a,l,c;if(0===f[0][t.scrollOffset]){for(s=0;s0?(g--,p=setTimeout(o,0)):(g++,p=setTimeout(i,0)))},o=function(){clearInterval(d),d=setInterval(a,t.speed)},i=function(){clearInterval(d),d=setInterval(l,t.speed)},c=function(){t.autoPlay=!0,h=!1,clearInterval(d),d=setInterval(a,t.speed)},u=function(){h=!0},s=function(e){t.delay=e||t.delay,clearTimeout(p),t.autoPlay&&(p=setTimeout(o,1e3*t.delay))},t.autoPlay&&(p=setTimeout(o,1e3*t.startDelay)),f.bind("resetClock",(function(e){s(e)})),f.bind("forward",(function(){t.triggerStackable?null!==d?g++:o():(clearTimeout(p),o())})),f.bind("backward",(function(){t.triggerStackable?null!==d?g--:i():(clearTimeout(p),i())})),f.bind("pauseHover",(function(){u()})),f.bind("forwardHover",(function(){c()})),f.bind("speedUp",(function(e,n){"undefined"===n&&(n=Math.max(1,parseInt(t.speed/2,10))),t.speed=n})),f.bind("speedDown",(function(e,n){"undefined"===n&&(n=2*t.speed),t.speed=n})),f.bind("updateConfig",(function(n,r){t=e.extend(t,r)}))}))}}(jQuery)},355:function(){!function(e){"use strict";var t=0;function n(t,n){return e.map(t,(function(e){return function(e,t){return e+".touchspin_"+t}(e,n)}))}e.fn.TouchSpin=function(r){if("destroy"!==r){var i={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},o={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each((function(){var s,a,l,c,u,f,d,p,h=e(this),m=h.data(),g=0,v=!1;function y(){var e,t,n;""!==(e=h.val())?s.decimals>0&&"."===e||(t=parseFloat(e),isNaN(t)&&(t=""!==s.replacementval?s.replacementval:0),n=t,t.toString()!==e&&(n=t),ts.max&&(n=s.max),n=function(e){switch(s.forcestepdivisibility){case"round":return(Math.round(e/s.step)*s.step).toFixed(s.decimals);case"floor":return(Math.floor(e/s.step)*s.step).toFixed(s.decimals);case"ceil":return(Math.ceil(e/s.step)*s.step).toFixed(s.decimals);default:return e}}(n),Number(e).toString()!==n.toString()&&(h.val(n),h.trigger("change"))):""!==s.replacementval&&(h.val(s.replacementval),h.trigger("change"))}function b(){if(s.booster){var e=Math.pow(2,Math.floor(g/s.boostat))*s.step;return s.maxboostedstep&&e>s.maxboostedstep&&(e=s.maxboostedstep,c=Math.round(c/e)*e),Math.max(s.step,e)}return s.step}function w(){y(),c=parseFloat(l.input.val()),isNaN(c)&&(c=0);var e=c,t=b();(c+=t)>s.max&&(c=s.max,h.trigger("touchspin.on.max"),C()),l.input.val(Number(c).toFixed(s.decimals)),e!==c&&h.trigger("change")}function x(){y(),c=parseFloat(l.input.val()),isNaN(c)&&(c=0);var e=c,t=b();(c-=t)'+s.prefix+"",c=''+s.postfix+"";i.hasClass("input-group-btn")?(n='",i.append(n)):(n='",e(n).insertBefore(h));o.hasClass("input-group-btn")?(r='",o.prepend(r)):(r='",e(r).insertAfter(h));e(l).insertBefore(h),e(c).insertAfter(h),a=t}(n):function(){var t;t=s.verticalbuttons?'
'+s.prefix+''+s.postfix+'
':'
'+s.prefix+''+s.postfix+'
";a=e(t).insertBefore(h),e(".bootstrap-touchspin-prefix",a).after(h),h.hasClass("input-sm")?a.addClass("input-group-sm"):h.hasClass("input-lg")&&a.addClass("input-group-lg")}()}(),l={down:e(".bootstrap-touchspin-down",a),up:e(".bootstrap-touchspin-up",a),input:e("input",a),prefix:e(".bootstrap-touchspin-prefix",a).addClass(s.prefix_extraclass),postfix:e(".bootstrap-touchspin-postfix",a).addClass(s.postfix_extraclass)},function(){""===s.prefix&&l.prefix.hide();""===s.postfix&&l.postfix.hide()}(),h.on("keydown",(function(e){var t=e.keyCode||e.which;38===t?("up"!==v&&(w(),_()),e.preventDefault()):40===t&&("down"!==v&&(x(),S()),e.preventDefault())})),h.on("keyup",(function(e){var t=e.keyCode||e.which;(38===t||40===t)&&C()})),h.on("blur",(function(){y()})),l.down.on("keydown",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("down"!==v&&(x(),S()),e.preventDefault())})),l.down.on("keyup",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||C()})),l.up.on("keydown",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("up"!==v&&(w(),_()),e.preventDefault())})),l.up.on("keyup",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||C()})),l.down.on("mousedown.touchspin",(function(e){l.down.off("touchstart.touchspin"),h.is(":disabled")||(x(),S(),e.preventDefault(),e.stopPropagation())})),l.down.on("touchstart.touchspin",(function(e){l.down.off("mousedown.touchspin"),h.is(":disabled")||(x(),S(),e.preventDefault(),e.stopPropagation())})),l.up.on("mousedown.touchspin",(function(e){l.up.off("touchstart.touchspin"),h.is(":disabled")||(w(),_(),e.preventDefault(),e.stopPropagation())})),l.up.on("touchstart.touchspin",(function(e){l.up.off("mousedown.touchspin"),h.is(":disabled")||(w(),_(),e.preventDefault(),e.stopPropagation())})),l.up.on("mouseout touchleave touchend touchcancel",(function(e){v&&(e.stopPropagation(),C())})),l.down.on("mouseout touchleave touchend touchcancel",(function(e){v&&(e.stopPropagation(),C())})),l.down.on("mousemove touchmove",(function(e){v&&(e.stopPropagation(),e.preventDefault())})),l.up.on("mousemove touchmove",(function(e){v&&(e.stopPropagation(),e.preventDefault())})),e(document).on(n(["mouseup","touchend","touchcancel"],t).join(" "),(function(e){v&&(e.preventDefault(),C())})),e(document).on(n(["mousemove","touchmove","scroll","scrollstart"],t).join(" "),(function(e){v&&(e.preventDefault(),C())})),h.on("mousewheel DOMMouseScroll",(function(e){if(s.mousewheel&&h.is(":focus")){var t=e.originalEvent.wheelDelta||-e.originalEvent.deltaY||-e.originalEvent.detail;e.stopPropagation(),e.preventDefault(),t<0?x():w()}})),h.on("touchspin.uponce",(function(){C(),w()})),h.on("touchspin.downonce",(function(){C(),x()})),h.on("touchspin.startupspin",(function(){_()})),h.on("touchspin.startdownspin",(function(){S()})),h.on("touchspin.stopspin",(function(){C()})),h.on("touchspin.updatesettings",(function(t,n){!function(t){(function(t){s=e.extend({},s,t)})(t),y();var n=l.input.val();""!==n&&(n=Number(l.input.val()),l.input.val(n.toFixed(s.decimals)))}(n)})),l.input.css("display","block");var c}()}))}this.each((function(){var t=e(this).data();e(document).off(n(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],t.spinnerid).join(" "))}))}}(jQuery)},65:function(){ /*! * Bootstrap v4.0.0-alpha.5 (https://getbootstrap.com) * Copyright 2011-2016 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t,n,r,i,o,s,a,l,c,u,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=function(){function e(e,t){for(var n=0;nthis._items.length-1||e<0)){if(this._isSliding)return void t(this._element).one(h.SLID,(function(){return n.to(e)}));if(r===e)return this.pause(),void this.cycle();var i=e>r?c:u;this._slide(i,this._items[e])}},o.prototype.dispose=function(){t(this._element).off(i),t.removeData(this._element,r),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},o.prototype._getConfig=function(e){return e=t.extend({},a,e),p.typeCheckConfig(n,e,l),e},o.prototype._addEventListeners=function(){this._config.keyboard&&t(this._element).on(h.KEYDOWN,t.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||t(this._element).on(h.MOUSEENTER,t.proxy(this.pause,this)).on(h.MOUSELEAVE,t.proxy(this.cycle,this))},o.prototype._keydown=function(e){if(e.preventDefault(),!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}},o.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(S)),this._items.indexOf(e)},o.prototype._getItemByDirection=function(e,t){var n=e===c,r=e===u,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var s=(i+(e===u?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},o.prototype._triggerSlideEvent=function(e,n){var r=t.Event(h.SLIDE,{relatedTarget:e,direction:n});return t(this._element).trigger(r),r},o.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(w).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(g)}},o.prototype._slide=function(e,n){var r=this,i=t(this._element).find(x)[0],o=n||i&&this._getItemByDirection(e,i),s=Boolean(this._interval),a=e===c?b:y;if(o&&t(o).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(o,a).isDefaultPrevented()&&i&&o){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(o);var l=t.Event(h.SLID,{relatedTarget:o,direction:a});p.supportsTransitionEnd()&&t(this._element).hasClass(v)?(t(o).addClass(e),p.reflow(o),t(i).addClass(a),t(o).addClass(a),t(i).one(p.TRANSITION_END,(function(){t(o).removeClass(a).removeClass(e),t(o).addClass(g),t(i).removeClass(g).removeClass(e).removeClass(a),r._isSliding=!1,setTimeout((function(){return t(r._element).trigger(l)}),0)})).emulateTransitionEnd(600)):(t(i).removeClass(g),t(o).addClass(g),this._isSliding=!1,t(this._element).trigger(l)),s&&this.cycle()}},o._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(r),i=t.extend({},a,t(this).data());"object"===(void 0===e?"undefined":f(e))&&t.extend(i,e);var s="string"==typeof e?e:i.slide;if(n||(n=new o(this,i),t(this).data(r,n)),"number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw new Error('No method named "'+s+'"');n[s]()}else i.interval&&(n.pause(),n.cycle())}))},o._dataApiClickHandler=function(e){var n=p.getSelectorFromElement(this);if(n){var i=t(n)[0];if(i&&t(i).hasClass(m)){var s=t.extend({},t(i).data(),t(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),o._jQueryInterface.call(t(i),s),a&&t(i).data(r).to(a),e.preventDefault()}}},d(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return a}}]),o}();t(document).on(h.CLICK_DATA_API,E,k._dataApiClickHandler),t(window).on(h.LOAD_DATA_API,(function(){t(T).each((function(){var e=t(this);k._jQueryInterface.call(e,e.data())}))})),t.fn[n]=k._jQueryInterface,t.fn[n].Constructor=k,t.fn[n].noConflict=function(){return t.fn[n]=s,k._jQueryInterface}}(jQuery),function(t){var n="collapse",r="bs.collapse",i="."+r,o=t.fn[n],s={toggle:!0,parent:""},a={toggle:"boolean",parent:"string"},l={SHOW:"show"+i,SHOWN:"shown"+i,HIDE:"hide"+i,HIDDEN:"hidden"+i,CLICK_DATA_API:"click"+i+".data-api"},c="in",u="collapse",h="collapsing",m="collapsed",g="width",v="height",y=".card > .in, .card > .collapsing",b='[data-toggle="collapse"]',w=function(){function i(n,r){e(this,i),this._isTransitioning=!1,this._element=n,this._config=this._getConfig(r),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return i.prototype.toggle=function(){t(this._element).hasClass(c)?this.hide():this.show()},i.prototype.show=function(){var e=this;if(!this._isTransitioning&&!t(this._element).hasClass(c)){var n=void 0,o=void 0;if(this._parent&&((n=t.makeArray(t(y))).length||(n=null)),!(n&&(o=t(n).data(r),o&&o._isTransitioning))){var s=t.Event(l.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){n&&(i._jQueryInterface.call(t(n),"hide"),o||t(n).data(r,null));var a=this._getDimension();t(this._element).removeClass(u).addClass(h),this._element.style[a]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(m).attr("aria-expanded",!0),this.setTransitioning(!0);var f=function(){t(e._element).removeClass(h).addClass(u).addClass(c),e._element.style[a]="",e.setTransitioning(!1),t(e._element).trigger(l.SHOWN)};if(!p.supportsTransitionEnd())return void f();var d="scroll"+(a[0].toUpperCase()+a.slice(1));t(this._element).one(p.TRANSITION_END,f).emulateTransitionEnd(600),this._element.style[a]=this._element[d]+"px"}}}},i.prototype.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(c)){var n=t.Event(l.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension(),i=r===g?"offsetWidth":"offsetHeight";this._element.style[r]=this._element[i]+"px",p.reflow(this._element),t(this._element).addClass(h).removeClass(u).removeClass(c),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(m).attr("aria-expanded",!1),this.setTransitioning(!0);var o=function(){e.setTransitioning(!1),t(e._element).removeClass(h).addClass(u).trigger(l.HIDDEN)};return this._element.style[r]="",p.supportsTransitionEnd()?void t(this._element).one(p.TRANSITION_END,o).emulateTransitionEnd(600):void o()}}},i.prototype.setTransitioning=function(e){this._isTransitioning=e},i.prototype.dispose=function(){t.removeData(this._element,r),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i.prototype._getConfig=function(e){return(e=t.extend({},s,e)).toggle=Boolean(e.toggle),p.typeCheckConfig(n,e,a),e},i.prototype._getDimension=function(){return t(this._element).hasClass(g)?g:v},i.prototype._getParent=function(){var e=this,n=t(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(r).each((function(t,n){e._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])})),n},i.prototype._addAriaAndCollapsedClass=function(e,n){if(e){var r=t(e).hasClass(c);e.setAttribute("aria-expanded",r),n.length&&t(n).toggleClass(m,!r).attr("aria-expanded",r)}},i._getTargetFromElement=function(e){var n=p.getSelectorFromElement(e);return n?t(n)[0]:null},i._jQueryInterface=function(e){return this.each((function(){var n=t(this),o=n.data(r),a=t.extend({},s,n.data(),"object"===(void 0===e?"undefined":f(e))&&e);if(!o&&a.toggle&&/show|hide/.test(e)&&(a.toggle=!1),o||(o=new i(this,a),n.data(r,o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e]()}}))},d(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}}]),i}();t(document).on(l.CLICK_DATA_API,b,(function(e){e.preventDefault();var n=w._getTargetFromElement(this),i=t(n).data(r)?"toggle":t(this).data();w._jQueryInterface.call(t(n),i)})),t.fn[n]=w._jQueryInterface,t.fn[n].Constructor=w,t.fn[n].noConflict=function(){return t.fn[n]=o,w._jQueryInterface}}(jQuery),function(t){var n="dropdown",r="bs.dropdown",i="."+r,o=".data-api",s=t.fn[n],a={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,CLICK:"click"+i,CLICK_DATA_API:"click"+i+o,KEYDOWN_DATA_API:"keydown"+i+o},l="dropdown-backdrop",c="disabled",u="open",f=".dropdown-backdrop",h='[data-toggle="dropdown"]',m=".dropdown form",g='[role="menu"]',v='[role="listbox"]',y=".navbar-nav",b='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',w=function(){function n(t){e(this,n),this._element=t,this._addEventListeners()}return n.prototype.toggle=function(){if(this.disabled||t(this).hasClass(c))return!1;var e=n._getParentFromElement(this),r=t(e).hasClass(u);if(n._clearMenus(),r)return!1;if("ontouchstart"in document.documentElement&&!t(e).closest(y).length){var i=document.createElement("div");i.className=l,t(i).insertBefore(this),t(i).on("click",n._clearMenus)}var o={relatedTarget:this},s=t.Event(a.SHOW,o);return t(e).trigger(s),!s.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),t(e).toggleClass(u),t(e).trigger(t.Event(a.SHOWN,o)),!1)},n.prototype.dispose=function(){t.removeData(this._element,r),t(this._element).off(i),this._element=null},n.prototype._addEventListeners=function(){t(this._element).on(a.CLICK,this.toggle)},n._jQueryInterface=function(e){return this.each((function(){var i=t(this).data(r);if(i||t(this).data(r,i=new n(this)),"string"==typeof e){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e].call(this)}}))},n._clearMenus=function(e){if(!e||3!==e.which){var r=t(f)[0];r&&r.parentNode.removeChild(r);for(var i=t.makeArray(t(h)),o=0;o0&&a--,40===e.which&&adocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},o.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}if(this._activeTarget&&e=this._offsets[i]&&(void 0===this._offsets[i+1]||e .nav-item .fade, > .fade",g=".active",v="> .nav-item > .active, > .active",y='[data-toggle="tab"], [data-toggle="pill"]',b=".dropdown-toggle",w="> .dropdown-menu .active",x=function(){function n(t){e(this,n),this._element=t}return n.prototype.show=function(){var e=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!t(this._element).hasClass(l)){var n=void 0,r=void 0,i=t(this._element).closest(h)[0],o=p.getSelectorFromElement(this._element);i&&(r=(r=t.makeArray(t(i).find(g)))[r.length-1]);var a=t.Event(s.HIDE,{relatedTarget:this._element}),c=t.Event(s.SHOW,{relatedTarget:r});if(r&&t(r).trigger(a),t(this._element).trigger(c),!c.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(n=t(o)[0]),this._activate(this._element,i);var u=function(){var n=t.Event(s.HIDDEN,{relatedTarget:e._element}),i=t.Event(s.SHOWN,{relatedTarget:r});t(r).trigger(n),t(e._element).trigger(i)};n?this._activate(n,n.parentNode,u):u()}}},n.prototype.dispose=function(){t.removeClass(this._element,r),this._element=null},n.prototype._activate=function(e,n,r){var i=t(n).find(v)[0],o=r&&p.supportsTransitionEnd()&&(i&&t(i).hasClass(c)||Boolean(t(n).find(m)[0])),s=t.proxy(this._transitionComplete,this,e,i,o,r);i&&o?t(i).one(p.TRANSITION_END,s).emulateTransitionEnd(150):s(),i&&t(i).removeClass(u)},n.prototype._transitionComplete=function(e,n,r,i){if(n){t(n).removeClass(l);var o=t(n).find(w)[0];o&&t(o).removeClass(l),n.setAttribute("aria-expanded",!1)}if(t(e).addClass(l),e.setAttribute("aria-expanded",!0),r?(p.reflow(e),t(e).addClass(u)):t(e).removeClass(c),e.parentNode&&t(e.parentNode).hasClass(a)){var s=t(e).closest(f)[0];s&&t(s).find(b).addClass(l),e.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(e){return this.each((function(){var i=t(this),o=i.data(r);if(o||(o=o=new n(this),i.data(r,o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e]()}}))},d(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),n}();t(document).on(s.CLICK_DATA_API,y,(function(e){e.preventDefault(),x._jQueryInterface.call(t(this),"show")})),t.fn[n]=x._jQueryInterface,t.fn[n].Constructor=x,t.fn[n].noConflict=function(){return t.fn[n]=o,x._jQueryInterface}}(jQuery),function(t){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var n="tooltip",r="bs.tooltip",i="."+r,o=t.fn[n],s={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},a={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},l={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},c="in",u="out",h={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},m="fade",g="in",v=".tooltip-inner",y={element:!1,enabled:!1},b="hover",w="focus",x="manual",S=function(){function o(t,n){e(this,o),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=t,this.config=this._getConfig(n),this.tip=null,this._setListeners()}return o.prototype.enable=function(){this._isEnabled=!0},o.prototype.disable=function(){this._isEnabled=!1},o.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.prototype.toggle=function(e){if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(g))return void this._leave(null,this);this._enter(null,this)}},o.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},o.prototype.show=function(){var e=this,n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var r=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!r)return;var i=this.getTipElement(),s=p.getUID(this.constructor.NAME);i.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(i).addClass(m);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,l=this._getAttachment(a);t(i).data(this.constructor.DATA_KEY,this).appendTo(document.body),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:l,element:i,target:this.element,classes:y,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),p.reflow(i),this._tether.position(),t(i).addClass(g);var c=function(){var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===u&&e._leave(null,e)};if(p.supportsTransitionEnd()&&t(this.tip).hasClass(m))return void t(this.tip).one(p.TRANSITION_END,c).emulateTransitionEnd(o._TRANSITION_DURATION);c()}},o.prototype.hide=function(e){var n=this,r=this.getTipElement(),i=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==c&&r.parentNode&&r.parentNode.removeChild(r),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),e&&e()};t(this.element).trigger(i),i.isDefaultPrevented()||(t(r).removeClass(g),p.supportsTransitionEnd()&&t(this.tip).hasClass(m)?t(r).one(p.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},o.prototype.isWithContent=function(){return Boolean(this.getTitle())},o.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},o.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(v),this.getTitle()),e.removeClass(m).removeClass(g),this.cleanupTether()},o.prototype.setElementContent=function(e,n){var r=this.config.html;"object"===(void 0===n?"undefined":f(n))&&(n.nodeType||n.jquery)?r?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[r?"html":"text"](n)},o.prototype.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},o.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},o.prototype._getAttachment=function(e){return l[e.toUpperCase()]},o.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,t.proxy(e.toggle,e));else if(n!==x){var r=n===b?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===b?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,t.proxy(e._enter,e)).on(i,e.config.selector,t.proxy(e._leave,e))}})),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o.prototype._fixTitle=function(){var e=f(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o.prototype._enter=function(e,n){var r=this.constructor.DATA_KEY;return(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?w:b]=!0),t(n.getTipElement()).hasClass(g)||n._hoverState===c?void(n._hoverState=c):(clearTimeout(n._timeout),n._hoverState=c,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout((function(){n._hoverState===c&&n.show()}),n.config.delay.show)):void n.show())},o.prototype._leave=function(e,n){var r=this.constructor.DATA_KEY;if((n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?w:b]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=u,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout((function(){n._hoverState===u&&n.hide()}),n.config.delay.hide)):void n.hide()},o.prototype._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},o.prototype._getConfig=function(e){return(e=t.extend({},this.constructor.Default,t(this.element).data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),p.typeCheckConfig(n,e,this.constructor.DefaultType),e},o.prototype._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},o._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(r),i="object"===(void 0===e?"undefined":f(e))?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,i),t(this).data(r,n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}}))},d(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return a}}]),o}();return t.fn[n]=S._jQueryInterface,t.fn[n].Constructor=S,t.fn[n].noConflict=function(){return t.fn[n]=o,S._jQueryInterface},S}(jQuery));!function(t){var n="popover",r="bs.popover",i="."+r,o=t.fn[n],s=t.extend({},h.Default,{placement:"right",trigger:"click",content:"",template:''}),a=t.extend({},h.DefaultType,{content:"(string|element|function)"}),l="fade",c="in",u=".popover-title",p=".popover-content",m={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},g=function(o){function h(){return e(this,h),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,o),h.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},h.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},h.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(u),this.getTitle()),this.setElementContent(e.find(p),this._getContent()),e.removeClass(l).removeClass(c),this.cleanupTether()},h.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},h._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(r),i="object"===(void 0===e?"undefined":f(e))?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new h(this,i),t(this).data(r,n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}}))},d(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return a}}]),h}(h);t.fn[n]=g._jQueryInterface,t.fn[n].Constructor=g,t.fn[n].noConflict=function(){return t.fn[n]=o,g._jQueryInterface}}(jQuery)}()},58:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},799:function(e,t,n){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},90:function(e){e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s1&&"flex-start"===e.style.alignContent)for(t=0;r=e.lines[++i];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&"flex-end"===e.style.alignContent)for(t=e.flexStyle.crossSpace;r=e.lines[++i];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&"center"===e.style.alignContent)for(t=e.flexStyle.crossSpace/2;r=e.lines[++i];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&"space-between"===e.style.alignContent)for(n=e.flexStyle.crossSpace/(e.lines.length-1),t=0;r=e.lines[++i];)r.crossStart=t,t+=r.cross+n;else if(e.lines.length>1&&"space-around"===e.style.alignContent)for(t=(n=2*e.flexStyle.crossSpace/(2*e.lines.length))/2;r=e.lines[++i];)r.crossStart=t,t+=r.cross+n;else for(n=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;r=e.lines[++i];)r.crossStart=t,r.cross+=n,t+=r.cross}},{}],2:[function(e,t,n){t.exports=function(e){for(var t,n=-1;line=e.lines[++n];)for(t=-1;child=line.children[++t];){var r=child.style.alignSelf;"auto"===r&&(r=e.style.alignItems),"flex-start"===r?child.flexStyle.crossStart=line.crossStart:"flex-end"===r?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===r?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(e,t,n){t.exports=function(e,t){var n="row"===t||"row-reverse"===t,r=e.mainAxis;r?n&&"inline"===r||!n&&"block"===r||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter}):(e.flexStyle=n?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter))),e.mainAxis=n?"inline":"block",e.crossAxis=n?"block":"inline","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(e,t,n){var r=e("../reduce");t.exports=function(e){if(e.mainSpace>0){var t=r(e.children,(function(e,t){return e+parseFloat(t.style.flexGrow)}),0);t>0&&(e.main=r(e.children,(function(n,r){return"auto"===r.flexStyle.main?r.flexStyle.main=r.flexStyle.mainOffset+parseFloat(r.style.flexGrow)/t*e.mainSpace:r.flexStyle.main+=parseFloat(r.style.flexGrow)/t*e.mainSpace,r.flexStyle.mainOuter=r.flexStyle.main+r.flexStyle.mainBefore+r.flexStyle.mainAfter,n+r.flexStyle.mainOuter}),0),e.mainSpace=0)}}},{"../reduce":12}],5:[function(e,t,n){var r=e("../reduce");t.exports=function(e){if(e.mainSpace<0){var t=r(e.children,(function(e,t){return e+parseFloat(t.style.flexShrink)}),0);t>0&&(e.main=r(e.children,(function(n,r){return r.flexStyle.main+=parseFloat(r.style.flexShrink)/t*e.mainSpace,r.flexStyle.mainOuter=r.flexStyle.main+r.flexStyle.mainBefore+r.flexStyle.mainAfter,n+r.flexStyle.mainOuter}),0),e.mainSpace=0)}}},{"../reduce":12}],6:[function(e,t,n){var r=e("../reduce");t.exports=function(e){var t;e.lines=[t={main:0,cross:0,children:[]}];for(var n,i=-1;n=e.children[++i];)"nowrap"===e.style.flexWrap||0===t.children.length||"auto"===e.flexStyle.main||e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter>=t.main+n.flexStyle.mainOuter?(t.main+=n.flexStyle.mainOuter,t.cross=Math.max(t.cross,n.flexStyle.crossOuter)):e.lines.push(t={main:n.flexStyle.mainOuter,cross:n.flexStyle.crossOuter,children:[]}),t.children.push(n);e.flexStyle.mainLines=r(e.lines,(function(e,t){return Math.max(e,t.main)}),0),e.flexStyle.crossLines=r(e.lines,(function(e,t){return e+t.cross}),0),"auto"===e.flexStyle.main&&(e.flexStyle.main=Math.max(e.flexStyle.mainOffset,e.flexStyle.mainLines+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter)),"auto"===e.flexStyle.cross&&(e.flexStyle.cross=Math.max(e.flexStyle.crossOffset,e.flexStyle.crossLines+e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter)),e.flexStyle.crossSpace=e.flexStyle.cross-e.flexStyle.crossInnerBefore-e.flexStyle.crossInnerAfter-e.flexStyle.crossBorderBefore-e.flexStyle.crossBorderAfter-e.flexStyle.crossLines,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}},{"../reduce":12}],7:[function(e,t,n){function r(t){for(var n,r=-1;n=t.children[++r];)e("./flex-direction")(n,t.style.flexDirection);e("./flex-direction")(t,t.style.flexDirection),e("./order")(t),e("./flexbox-lines")(t),e("./align-content")(t),r=-1;for(var i;i=t.lines[++r];)i.mainSpace=t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter-i.main,e("./flex-grow")(i),e("./flex-shrink")(i),e("./margin-main")(i),e("./margin-cross")(i),e("./justify-content")(i,t.style.justifyContent,t);e("./align-items")(t)}t.exports=r},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,n){t.exports=function(e,t,n){var r,i,o,s=n.flexStyle.mainInnerBefore,a=-1;if("flex-end"===t)for(r=e.mainSpace,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter;else if("center"===t)for(r=e.mainSpace/2,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter;else if("space-between"===t)for(i=e.mainSpace/(e.children.length-1),r=0,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter+i;else if("space-around"===t)for(r=(i=2*e.mainSpace/(2*e.children.length))/2,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter+i;else for(r=0,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter}},{}],9:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e.children[++n];){var r=0;"auto"===t.flexStyle.crossBefore&&++r,"auto"===t.flexStyle.crossAfter&&++r;var i=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=i/r),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=i/r),"auto"===t.flexStyle.cross?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(e,t,n){t.exports=function(e){for(var t,n=0,r=-1;t=e.children[++r];)"auto"===t.flexStyle.mainBefore&&++n,"auto"===t.flexStyle.mainAfter&&++n;if(n>0){for(r=-1;t=e.children[++r];)"auto"===t.flexStyle.mainBefore&&(t.flexStyle.mainBefore=e.mainSpace/n),"auto"===t.flexStyle.mainAfter&&(t.flexStyle.mainAfter=e.mainSpace/n),"auto"===t.flexStyle.main?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(e,t,n){var r=/^(column|row)-reverse$/;t.exports=function(e){e.children.sort((function(e,t){return e.style.order-t.style.order||e.index-t.index})),r.test(e.style.flexDirection)&&e.children.reverse()}},{}],12:[function(e,t,n){function r(e,t,n){for(var r=e.length,i=-1;++i0)){var a=t.originalEvent?t.originalEvent:t;if(!a.pointerType||"mouse"!=a.pointerType||0!=n.fallbackToMouseEvents){var l,c=a.touches,u=c?c[0]:a;return _e=w,c?Ce=c.length:!1!==n.preventDefaultEvents&&t.preventDefault(),de=0,pe=null,he=null,we=null,me=0,ge=0,ve=0,ye=1,be=0,(f={})[r]=te(r),f[i]=te(i),f[o]=te(o),f[s]=te(s),xe=f,K(),Z(0,u),!c||Ce===n.fingers||n.fingers===y||W()?(Te=oe(),2==Ce&&(Z(1,c[1]),ge=ve=re(Ee[0].start,Ee[1].start)),(n.swipeStatus||n.pinchStatus)&&(l=L(a,_e))):l=!1,!1===l?(L(a,_e=_),l):(n.hold&&(Ne=setTimeout(e.proxy((function(){Se.trigger("hold",[a.target]),n.hold&&(l=n.hold.call(Se,a,a.target))}),this),n.longTapThreshold)),G(!0),null)}}var f}function O(t){var f,d,p,h,m=t.originalEvent?t.originalEvent:t;if(_e!==S&&_e!==_&&!X()){var b,w=m.touches,C=J(w?w[0]:m);if(ke=oe(),w&&(Ce=w.length),n.hold&&clearTimeout(Ne),_e=x,2==Ce&&(0==ge?(Z(1,w[1]),ge=ve=re(Ee[0].start,Ee[1].start)):(J(w[1]),ve=re(Ee[0].end,Ee[1].end),Ee[0].end,Ee[1].end,we=1>ye?l:a),ye=(ve/ge*1).toFixed(2),be=Math.abs(ge-ve)),Ce===n.fingers||n.fingers===y||!w||W()){if(pe=ie(C.start,C.end),function(e,t){if(!1!==n.preventDefaultEvents)if(n.allowPageScroll===c)e.preventDefault();else{var a=n.allowPageScroll===u;switch(t){case r:(n.swipeLeft&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case i:(n.swipeRight&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case o:(n.swipeUp&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault();break;case s:(n.swipeDown&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault()}}}(t,he=ie(C.last,C.end)),p=C.start,h=C.end,de=Math.round(Math.sqrt(Math.pow(h.x-p.x,2)+Math.pow(h.y-p.y,2))),me=ne(),d=de,(f=pe)!=c&&(d=Math.max(d,ee(f)),xe[f].distance=d),b=L(m,_e),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var E=!0;if(n.triggerOnTouchLeave){var T=function(t){var n=(t=e(t)).offset(),r={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return r}(this);E=function(e,t){return e.x>t.left&&e.xt.top&&e.yn.longTapThreshold&&b>de&&n.longTap&&!1!==r?r=F(e,t,m):!(1!==Ce&&C||!(isNaN(de)||de=n.threshold),e}function M(){var e=!1;return null!==n.cancelThreshold&&null!==pe&&(e=ee(pe)-de>=n.cancelThreshold),e}function V(){return!(n.maxTimeThreshold&&me>=n.maxTimeThreshold)}function H(){var e=$(),t=z(),r=null===n.pinchThreshold||be>=n.pinchThreshold;return e&&t&&r}function W(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function R(){var e=V(),t=B(),n=$(),r=z();return!M()&&r&&n&&t&&e}function q(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function $(){return Ce===n.fingers||n.fingers===y||!C}function z(){return 0!==Ee[0].end.x}function U(){return!!n.tap}function Q(){return!!n.doubleTap}function Y(){if(null==Ie)return!1;var e=oe();return Q()&&e-Ie<=n.doubleTapThreshold}function K(){Ae=0,Oe=0}function X(){var e=!1;return Ae&&oe()-Ae<=n.fingerReleaseThreshold&&(e=!0),e}function G(e){Se&&(!0===e?(Se.on(le,O),Se.on(ce,I),ue&&Se.on(ue,N)):(Se.off(le,O,!1),Se.off(ce,I,!1),ue&&Se.off(ue,N,!1)),Se.data(k+"_intouch",!0===e))}function Z(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,Ee[e]=n,n}function J(e){var t=void 0!==e.identifier?e.identifier:0,n=function(e){return Ee[e]||null}(t);return null===n&&(n=Z(t,e)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function ee(e){return xe[e]?xe[e].distance:void 0}function te(e){return{direction:e,distance:0}}function ne(){return ke-Te}function re(e,t){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+r*r))}function ie(e,t){if(a=t,(n=e).x==a.x&&n.y==a.y)return c;var n,a,l=function(e,t){var n=e.x-t.x,r=t.y-e.y,i=Math.atan2(r,n),o=Math.round(180*i/Math.PI);return 0>o&&(o=360-Math.abs(o)),o}(e,t);return 45>=l&&l>=0||360>=l&&l>=315?r:l>=135&&225>=l?i:l>45&&135>l?s:o}function oe(){return(new Date).getTime()}n=e.extend({},n);var se=C||T||!n.fallbackToMouseEvents,ae=se?T?E?"MSPointerDown":"pointerdown":"touchstart":"mousedown",le=se?T?E?"MSPointerMove":"pointermove":"touchmove":"mousemove",ce=se?T?E?"MSPointerUp":"pointerup":"touchend":"mouseup",ue=se?T?"mouseleave":null:"mouseleave",fe=T?E?"MSPointerCancel":"pointercancel":"touchcancel",de=0,pe=null,he=null,me=0,ge=0,ve=0,ye=1,be=0,we=0,xe=null,Se=e(t),_e="start",Ce=0,Ee={},Te=0,ke=0,Ae=0,Oe=0,Ie=0,Pe=null,Ne=null;try{Se.on(ae,A),Se.on(fe,P)}catch(t){e.error("events not supported "+ae+","+fe+" on jQuery.swipe")}this.enable=function(){return this.disable(),Se.on(ae,A),Se.on(fe,P),Se},this.disable=function(){return j(),Se},this.destroy=function(){j(),Se.data(k,null),Se=null},this.option=function(t,r){if("object"==typeof t)n=e.extend(n,t);else if(void 0!==n[t]){if(void 0===r)return n[t];n[t]=r}else{if(!t)return n;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",o="up",s="down",a="in",l="out",c="none",u="auto",f="swipe",d="pinch",p="tap",h="doubletap",m="longtap",g="horizontal",v="vertical",y="all",b=10,w="start",x="move",S="end",_="cancel",C="ontouchstart"in window,E=window.navigator.msPointerEnabled&&!window.PointerEvent&&!C,T=(window.PointerEvent||window.navigator.msPointerEnabled)&&!C,k="TouchSwipe";e.fn.swipe=function(n){var r=e(this),i=r.data(k);if(i&&"string"==typeof n){if(i[n])return i[n].apply(i,Array.prototype.slice.call(arguments,1));e.error("Method "+n+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof n)i.option.apply(i,arguments);else if(!(i||"object"!=typeof n&&n))return t.apply(this,arguments);return r},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:w,PHASE_MOVE:x,PHASE_END:S,PHASE_CANCEL:_},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:o,DOWN:s,IN:a,OUT:l},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:g,VERTICAL:v,AUTO:u},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}},n.amdO.jQuery?(i=[n(669)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o)):s(e.exports?n(669):jQuery)},531:function(e,t,n){var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return function(e,t){var n,r,s,a,l,c,u,f,d,p=1,h=e.length,m="";for(r=0;r=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?m+=n:(!i.number.test(a.type)||f&&!a.sign?d="":(d=f?"+":"-",n=n.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(d+n).length,l=a.width&&u>0?c.repeat(u):"",m+=a.align?d+n+l:"0"===c?d+l+n:l+d+n)}return m}(function(e){if(a[e])return a[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var s=[],l=t[2],c=[];if(null===(c=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=i.key_access.exec(l)))s.push(c[1]);else{if(null===(c=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}t[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return a[e]=r}(e),arguments)}function s(e,t){return o.apply(null,[e].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(r=function(){return{sprintf:o,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},682:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){return"string"==typeof e}function s(e){return void 0===e}function a(e,t){t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}))}function l(e,t,n){return void 0===e&&(e=""),s(t)||s(t[e])?n?n+"-"+e:e:!1===t[e]?"":t[e]}function c(e,t){t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}))}function u(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&e.classList.contains(n)&&c(e,n)})),t.forEach((function(t){e.classList.contains(t)||a(e,t)}))}n.r(t);var f=[];function d(e){f.push(e)}function p(){for(var e;e=f.pop();)e()}var h=null;function m(e){void 0===e&&(e={});var t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(){if(h)return h;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var i=n-r;return h={width:i,height:i}}var v=function(){var e=0;return function(){return++e}}(),y={},b=null;function w(e,t){var n;t===document?(n=document,t=document.documentElement):n=t.ownerDocument;var r=n.documentElement,i=x(t),o=function(e){var t=b;t&&e.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",v()),m(t.style,{top:0,left:0,position:"absolute"}),e.appendChild(t),b=t);var n=t.getAttribute("data-tether-id");s(y[n])&&(y[n]=x(t),d((function(){delete y[n]})));return y[n]}(e);return i.top-=o.top,i.left-=o.left,s(i.width)&&(i.width=document.body.scrollWidth-i.left-i.right),s(i.height)&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-r.clientTop,i.left=i.left-r.clientLeft,i.right=n.body.clientWidth-i.width-i.left,i.bottom=n.body.clientHeight-i.height-i.top,i}function x(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var o=x(i);n.top+=o.top,n.bottom+=o.top,n.left+=o.left,n.right+=o.left}}}catch(e){}return n}var S={position:function(e){var t=this,n=e.top,r=e.left,i=this.cache("element-bounds",(function(){return w(t.element)})),o=i.height,s=i.width,a=this.getTargetBounds(),c=n+o,f=r+s,p=[];n<=a.bottom&&c>=a.top&&["left","right"].forEach((function(e){var t=a[e];t!==r&&t!==f||p.push(e)})),r<=a.right&&f>=a.left&&["top","bottom"].forEach((function(e){var t=a[e];t!==n&&t!==c||p.push(e)}));var h=this.options,m=h.classes,g=h.classPrefix;return this.all.push(l("abutted",m,g)),["left","top","right","bottom"].forEach((function(e){t.all.push(l("abutted",m,g)+"-"+e)})),p.length&&this.add.push(l("abutted",m,g)),p.forEach((function(e){t.add.push(l("abutted",m,g)+"-"+e)})),d((function(){!1!==t.options.addTargetClasses&&u(t.target,t.add,t.all),u(t.element,t.add,t.all)})),!0}},_=["left","top","right","bottom"];var C={position:function(e){var t=this,n=e.top,r=e.left,i=e.targetAttachment;if(!this.options.constraints)return!0;var a=this.cache("element-bounds",(function(){return w(t.bodyElement,t.element)})),c=a.height,f=a.width;if(0===f&&0===c&&!s(this.lastSize)){var p=this.lastSize;f=p.width,c=p.height}var h=this.cache("target-bounds",(function(){return t.getTargetBounds()})),g=h.height,v=h.width,y=this.options,b=y.classes,x=y.classPrefix,S=function(e,t,n){var r=[l("pinned",e,t),l("out-of-bounds",e,t)];return n.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&r.push(t),n&&r.push(n)})),r.forEach((function(e){["left","top","right","bottom"].forEach((function(t){r.push(e+"-"+t)}))})),r}(b,x,this.options.constraints),C=[],E=m({},i),T=m({},this.attachment);return this.options.constraints.forEach((function(e){var a,u,d=e.to,p=e.attachment,h=e.pin;if(s(p)&&(p=""),p.indexOf(" ")>=0){var m=p.split(" ");u=m[0],a=m[1]}else a=u=p;var y=function(e,t,n){if(!n)return null;if("scrollParent"===n?n=t.scrollParents[0]:"window"===n&&(n=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),n===document&&(n=n.documentElement),!s(n.nodeType)){var r=n,i=w(e,n),o=i,a=getComputedStyle(n);if(n=[o.left,o.top,i.width+o.left,i.height+o.top],r.ownerDocument!==document){var l=r.ownerDocument.defaultView;n[0]+=l.pageXOffset,n[1]+=l.pageYOffset,n[2]+=l.pageXOffset,n[3]+=l.pageYOffset}_.forEach((function(e,t){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?n[t]+=parseFloat(a["border"+e+"Width"]):n[t]-=parseFloat(a["border"+e+"Width"])}))}return n}(t.bodyElement,t,d);"target"!==u&&"both"!==u||(ny[3]&&"bottom"===E.top&&(n-=g,E.top="top")),"together"===u&&(n=function(e,t,n,r,i,o){return"top"===e.top&&("bottom"===t.top&&on[3]&&o-(r-i)>=n[1]&&(o-=r-i,e.top="bottom",t.top="bottom")),"bottom"===e.top&&("top"===t.top&&o+r>n[3]?(o-=i,e.top="top",o-=r,t.top="bottom"):"bottom"===t.top&&on[3]&&"top"===t.top?(o-=r,t.top="bottom"):oy[2]&&"right"===E.left&&(r-=v,E.left="left")),"together"===a&&(r=function(e,t,n,r,i,o){return on[2]&&"right"===e.left?"left"===t.left?(o-=i,e.left="left",o-=r,t.left="right"):"right"===t.left&&(o-=i,e.left="left",o+=r,t.left="left"):"center"===e.left&&(o+r>n[2]&&"left"===t.left?(o-=r,t.left="right"):oy[3]&&"top"===T.top&&(n-=c,T.top="bottom")),"element"!==a&&"both"!==a||(ry[2]&&("left"===T.left?(r-=f,T.left="right"):"center"===T.left&&(r-=f/2,T.left="right"))),o(h)?h=h.split(",").map((function(e){return e.trim()})):!0===h&&(h=["top","left","right","bottom"]);var S,k=[],A=[];(r=function(e,t,n,r,i,o){return e=0?(e=t[0],i.push("left")):o.push("left")),e+n>t[2]&&(r.indexOf("right")>=0?(e=t[2]-n,i.push("right")):o.push("right")),e}(r,y,f,h=h||[],k,A),n=function(e,t,n,r,i,o){return e=0?(e=t[1],i.push("top")):o.push("top")),e+n>t[3]&&(r.indexOf("bottom")>=0?(e=t[3]-n,i.push("bottom")):o.push("bottom")),e}(n,y,c,h,k,A),k.length)&&(S=s(t.options.pinnedClass)?l("pinned",b,x):t.options.pinnedClass,C.push(S),k.forEach((function(e){C.push(S+"-"+e)})));!function(e,t,n,r,i){var o;e.length&&(o=s(i)?l("out-of-bounds",n,r):i,t.push(o),e.forEach((function(e){t.push(o+"-"+e)})))}(A,C,b,x,t.options.outOfBoundsClass),(k.indexOf("left")>=0||k.indexOf("right")>=0)&&(T.left=E.left=!1),(k.indexOf("top")>=0||k.indexOf("bottom")>=0)&&(T.top=E.top=!1),E.top===i.top&&E.left===i.left&&T.top===t.attachment.top&&T.left===t.attachment.left||(t.updateAttachClasses(T,E),t.trigger("update",{attachment:T,targetAttachment:E}))})),d((function(){!1!==t.options.addTargetClasses&&u(t.target,C,S),u(t.element,C,S)})),{top:n,left:r}}},E={position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r,i,s=this.options.shift;if("function"==typeof s&&(s=s.call(this,{top:t,left:n})),o(s)){(s=s.split(" "))[1]=s[1]||s[0];var a=s;r=a[0],i=a[1],r=parseFloat(r,10),i=parseFloat(i,10)}else{var l=[s.top,s.left];r=l[0],i=l[1]}return{top:t+=r,left:n+=i}}}},T=function(){function e(){}var t=e.prototype;return t.on=function(e,t,n,r){return void 0===r&&(r=!1),s(this.bindings)&&(this.bindings={}),s(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r}),this},t.once=function(e,t,n){return this.on(e,t,n,!0)},t.off=function(e,t){var n=this;return s(this.bindings)||s(this.bindings[e])||(s(t)?delete this.bindings[e]:this.bindings[e].forEach((function(r,i){r.handler===t&&n.bindings[e].splice(i,1)}))),this},t.trigger=function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i16)return B=Math.min(B-16,250),void(M=setTimeout(e,250));!s(F)&&q()-F<10||(null!=M&&(clearTimeout(M),M=null),F=q(),R(),B=q()-F)},s(window)||s(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,V)}));var $=function(e){ /*! tether 2.0.0 */ var t,n;function f(t){var n;return(n=e.call(this)||this).position=n.position.bind(i(n)),W.push(i(n)),n.history=[],n.setOptions(t,!1),L.modules.forEach((function(e){s(e.initialize)||e.initialize.call(i(n))})),n.position(),n}n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var h=f.prototype;return h.setOptions=function(e,t){var n=this;void 0===t&&(t=!0);var r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether",bodyElement:document.body};this.options=m(r,e);var i=this.options,a=i.element,l=i.target,c=i.targetModifier,u=i.bodyElement;if(this.element=a,this.target=l,this.targetModifier=c,"string"==typeof u&&(u=document.querySelector(u)),this.bodyElement=u,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(s(n[e]))throw new Error("Tether Error: Both element and target must be defined");s(n[e].jquery)?o(n[e])&&(n[e]=document.querySelector(n[e])):n[e]=n[e][0]})),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=j(this.options.targetAttachment),this.attachment=j(this.options.attachment),this.offset=j(this.options.offset),this.targetOffset=j(this.options.targetOffset),s(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var i=void 0;try{i=getComputedStyle(r)}catch(e){}if(s(i)||null===i)return n.push(r),n;var o=i,a=o.overflow,l=o.overflowX,c=o.overflowY;/(auto|scroll|overlay)/.test(a+c+l)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(i.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}(this.target),!1!==this.options.enabled&&this.enable(t)},h.getTargetBounds=function(){return s(this.targetModifier)?w(this.bodyElement,this.target):"visible"===this.targetModifier?function(e,t){if(t===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var n=w(e,t),r={height:n.height,width:n.width,top:n.top,left:n.left};return r.height=Math.min(r.height,n.height-(pageYOffset-n.top)),r.height=Math.min(r.height,n.height-(n.top+n.height-(pageYOffset+innerHeight))),r.height=Math.min(innerHeight,r.height),r.height-=2,r.width=Math.min(r.width,n.width-(pageXOffset-n.left)),r.width=Math.min(r.width,n.width-(n.left+n.width-(pageXOffset+innerWidth))),r.width=Math.min(innerWidth,r.width),r.width-=2,r.topt.clientWidth||[o.overflow,o.overflowX].indexOf("scroll")>=0||!i)&&(s=15);var a=n.height-parseFloat(o.borderTopWidth)-parseFloat(o.borderBottomWidth)-s,l={width:15,height:.975*a*(a/t.scrollHeight),left:n.left+n.width-parseFloat(o.borderLeftWidth)-15},c=0;a<408&&i&&(c=-11e-5*Math.pow(a,2)-.00727*a+22.58),i||(l.height=Math.max(l.height,24));var u=r/(t.scrollHeight-a);return l.top=u*(a-l.height-c)+n.top+parseFloat(o.borderTopWidth),i&&(l.height=Math.max(l.height,24)),l}(this.bodyElement,this.target):void 0},h.clearCache=function(){this._cache={}},h.cache=function(e,t){return s(this._cache)&&(this._cache={}),s(this._cache[e])&&(this._cache[e]=t.call(this)),this._cache[e]},h.enable=function(e){var t=this;void 0===e&&(e=!0);var n=this.options,r=n.classes,i=n.classPrefix;!1!==this.options.addTargetClasses&&a(this.target,l("enabled",r,i)),a(this.element,l("enabled",r,i)),this.enabled=!0,this.scrollParents.forEach((function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)})),e&&this.position()},h.disable=function(){var e=this,t=this.options,n=t.classes,r=t.classPrefix;c(this.target,l("enabled",n,r)),c(this.element,l("enabled",n,r)),this.enabled=!1,s(this.scrollParents)||this.scrollParents.forEach((function(t){t&&t.removeEventListener&&t.removeEventListener("scroll",e.position)}))},h.destroy=function(){var e,t=this;this.disable(),this._removeClasses(),W.forEach((function(e,n){e===t&&W.splice(n,1)})),0===W.length&&(e=this.bodyElement,b&&e.removeChild(b),b=null)},h.updateAttachClasses=function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=this.options,i=r.classes,o=r.classPrefix;!s(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),s(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,e.top&&this.add.push(l("element-attached",i,o)+"-"+e.top),e.left&&this.add.push(l("element-attached",i,o)+"-"+e.left),t.top&&this.add.push(l("target-attached",i,o)+"-"+t.top),t.left&&this.add.push(l("target-attached",i,o)+"-"+t.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(e){n.all.push(l("element-attached",i,o)+"-"+e),n.all.push(l("target-attached",i,o)+"-"+e)})),d((function(){s(n._addAttachClasses)||(u(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&u(n.target,n._addAttachClasses,n.all),delete n._addAttachClasses)}))},h.position=function(e){var t=this;if(void 0===e&&(e=!0),this.enabled){this.clearCache();var n=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=k[t.left]),"auto"===r&&(r=A[t.top]),{left:n,top:r}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var r=this.cache("element-bounds",(function(){return w(t.bodyElement,t.element)})),i=r.width,o=r.height;if(0!==i||0!==o||s(this.lastSize))this.lastSize={width:i,height:o};else{var a=this.lastSize;i=a.width,o=a.height}var l=this.cache("target-bounds",(function(){return t.getTargetBounds()})),c=l,u=N(P(this.attachment),{width:i,height:o}),f=N(P(n),c),d=N(this.offset,{width:i,height:o}),h=N(this.targetOffset,c);u=I(u,d),f=I(f,h);for(var m=l.left+f.left-u.left,v=l.top+f.top-u.top,y=0;y_.documentElement.clientHeight&&(x=this.cache("scrollbar-size",g),S.viewport.bottom-=x.height),C.innerWidth>_.documentElement.clientWidth&&(x=this.cache("scrollbar-size",g),S.viewport.right-=x.width),-1!==["","static"].indexOf(_.body.style.position)&&-1!==["","static"].indexOf(_.body.parentElement.style.position)||(S.page.bottom=_.body.scrollHeight-v-o,S.page.right=_.body.scrollWidth-m-i),!s(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&s(this.targetModifier)){var E=this.cache("target-offsetparent",(function(){return D(t.target)})),T=this.cache("target-offsetparent-bounds",(function(){return w(t.bodyElement,E)})),O=getComputedStyle(E),j=T,F={};if(["Top","Left","Bottom","Right"].forEach((function(e){F[e.toLowerCase()]=parseFloat(O["border"+e+"Width"])})),T.right=_.body.scrollWidth-T.left-j.width+F.right,T.bottom=_.body.scrollHeight-T.top-j.height+F.bottom,S.page.top>=T.top+F.top&&S.page.bottom>=T.bottom&&S.page.left>=T.left+F.left&&S.page.right>=T.right){var B=E.scrollLeft,M=E.scrollTop;S.offset={top:S.page.top-T.top+M-F.top,left:S.page.left-T.left+B-F.left}}}return this.move(S),this.history.unshift(S),this.history.length>3&&this.history.pop(),e&&p(),!0}},h.move=function(e){var t=this;if(!s(this.element.parentNode)){var n,r,i,o={};for(var a in e)for(var l in o[a]={},e[a]){for(var c=!1,u=0;u=r&&r>=n-i))){c=!0;break}}c||(o[a][l]=!0)}var p={top:"",left:"",right:"",bottom:""},h=function(e,n){var r,i;!1!==(!s(t.options.optimizations)?t.options.optimizations.gpu:null)?(e.top?(p.top=0,r=n.top):(p.bottom=0,r=-n.bottom),e.left?(p.left=0,i=n.left):(p.right=0,i=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),p[H]="translateX("+i+"px) translateY("+r+"px)","msTransform"!==H&&(p[H]+=" translateZ(0)")):(e.top?p.top=n.top+"px":p.bottom=n.bottom+"px",e.left?p.left=n.left+"px":p.right=n.right+"px")},g=!0;!s(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(g=!1);var v,y,b=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right))p.position="absolute",h(o.page,e.page);else if(g&&(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right))p.position="fixed",h(o.viewport,e.viewport);else if(!s(o.offset)&&o.offset.top&&o.offset.left){p.position="absolute";var w=this.cache("target-offsetparent",(function(){return D(t.target)}));D(this.element)!==w&&d((function(){t.element.parentNode.removeChild(t.element),w.appendChild(t.element)})),h(o.offset,e.offset),b=!0}else p.position="absolute",h({top:!0,left:!0},e.page);if(!b)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var x=!0,S=this.element.parentNode;S&&1===S.nodeType&&"BODY"!==S.tagName&&(y=void 0,((y=(v=S).ownerDocument).fullscreenElement||y.webkitFullscreenElement||y.mozFullScreenElement||y.msFullscreenElement)!==v);){if("static"!==getComputedStyle(S).position){x=!1;break}S=S.parentNode}x||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var _={},C=!1;for(var E in p){var T=p[E];this.element.style[E]!==T&&(C=!0,_[E]=T)}C&&d((function(){m(t.element.style,_),t.trigger("repositioned")}))}},h._addClasses=function(){var e=this.options,t=e.classes,n=e.classPrefix;a(this.element,l("element",t,n)),!1!==this.options.addTargetClasses&&a(this.target,l("target",t,n))},h._removeClasses=function(){var e=this,t=this.options,n=t.classes,r=t.classPrefix;c(this.element,l("element",n,r)),!1!==this.options.addTargetClasses&&c(this.target,l("target",n,r)),this.all.forEach((function(t){e.element.classList.remove(t),e.target.classList.remove(t)}))},f}(T);$.modules=[],L.position=R;var z=m($,L);z.modules.push({initialize:function(){var e=this,t=this.options,n=t.classes,r=t.classPrefix;this.markers={},["target","element"].forEach((function(t){var i=document.createElement("div");i.className=l(t+"-marker",n,r);var o=document.createElement("div");o.className=l("marker-dot",n,r),i.appendChild(o),e[t].appendChild(i),e.markers[t]={dot:o,el:i}}))},position:function(e){var t={element:e.manualOffset,target:e.manualTargetOffset};for(var n in t){var r=t[n];for(var i in r){var s,a=r[i];(!o(a)||-1===a.indexOf("%")&&-1===a.indexOf("px"))&&(a+="px"),this.markers[n]&&(null==(s=this.markers[n].dot)?void 0:s.style[i])!==a&&(this.markers[n].dot.style[i]=a)}}return!0}}),t.default=z},924:function(e,t,n){var r,i;/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */ /*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */!function(e){"use strict";if(!e.jQuery){var t=function(e,n){return new t.fn.init(e,n)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var n;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(n in e);return void 0===n||i.call(e,n)},t.each=function(e,t,n){var r=0,i=e.length,o=l(e);if(n){if(o)for(;r0&&n-1 in e))}}(window),function(o){"use strict";"object"==typeof e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}((function(){"use strict";return function(e,t,n,r){var i,o=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]>=0?t:Math.max(0,r+t),a=(n<0?r+n:Math.min(n,r))-s;if(a>0)if(o=new Array(a),this.charAt)for(i=0;i=0}:function(e,t){for(var n=0;nf&&Math.abs(a.v)>f;);return o?function(e){return c[e*(c.length-1)|0]}:u}}();m.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(e,t){m.Easings[t[0]]=E.apply(null,t[1])}));var v=m.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){o&&!(o>9)||m.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var e=0;e8)&&3===s.split(" ").length&&(s+=" 1"),s;case"inject":return/^rgb/.test(i)?i:(o<=8?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(o<=8?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function n(e,t,n){if("border-box"===v.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(n||!1)){var r,i,o=0,s="width"===e?["Left","Right"]:["Top","Bottom"],a=["padding"+s[0],"padding"+s[1],"border"+s[0]+"Width","border"+s[1]+"Width"];for(r=0;r=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,r,i,s){var a=n;if("scroll"===n)s.container?s.container["scroll"+s.direction]=r:"Left"===s.direction?t.scrollTo(r,s.alternateValue):t.scrollTo(s.alternateValue,r);else if(v.Normalizations.registered[n]&&"transform"===v.Normalizations.registered[n]("name",e))v.Normalizations.registered[n]("inject",e,r),a="transform",r=x(e).transformCache[n];else{if(v.Hooks.registered[n]){var l=n,c=v.Hooks.getRoot(n);i=i||v.getPropertyValue(e,c),r=v.Hooks.injectValue(l,r,i),n=c}if(v.Normalizations.registered[n]&&(r=v.Normalizations.registered[n]("inject",e,r),n=v.Normalizations.registered[n]("name",e)),a=v.Names.prefixCheck(n)[0],o<=8)try{e.style[a]=r}catch(e){m.debug&&console.log("Browser does not support ["+r+"] for ["+a+"]")}else{var u=x(e);u&&u.isSVG&&v.Names.SVGAttribute(n)?e.setAttribute(n,r):e.style[a]=r}m.debug>=2&&console.log("Set "+n+" ("+a+"): "+r)}return[a,r]},flushTransformCache:function(e){var t="",n=x(e);if((o||m.State.isAndroid&&!m.State.isChrome)&&n&&n.isSVG){var r=function(t){return parseFloat(v.getPropertyValue(e,t))},i={translate:[r("translateX"),r("translateY")],skewX:[r("skewX")],skewY:[r("skewY")],scale:1!==r("scale")?[r("scale"),r("scale")]:[r("scaleX"),r("scaleY")],rotate:[r("rotateZ"),0,0]};f.each(x(e).transformCache,(function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(t+=e+"("+i[e].join(" ")+") ",delete i[e])}))}else{var s,a;f.each(x(e).transformCache,(function(n){if(s=x(e).transformCache[n],"transformPerspective"===n)return a=s,!0;9===o&&"rotateZ"===n&&(n="rotate"),t+=n+s+" "})),a&&(t="perspective"+a+" "+t)}v.setPropertyValue(e,"transform",t)}};v.Hooks.register(),v.Normalizations.register(),m.hook=function(e,t,n){var i;return e=u(e),f.each(e,(function(e,o){if(x(o)===r&&m.init(o),n===r)i===r&&(i=v.getPropertyValue(o,t));else{var s=v.setPropertyValue(o,t,n);"transform"===s[0]&&m.CSS.flushTransformCache(o),i=s}})),i};var y=function(){var e;function i(){return o?b.promise||null:s}var o,s,a,l,p,h,g=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||d.isString(arguments[0].properties));d.isWrapped(this)?(o=!1,a=0,l=this,s=this):(o=!0,a=1,l=g?arguments[0].elements||arguments[0].e:arguments[0]);var b={promise:null,resolver:null,rejecter:null};if(o&&m.Promise&&(b.promise=new m.Promise((function(e,t){b.resolver=e,b.rejecter=t}))),g?(p=arguments[0].properties||arguments[0].p,h=arguments[0].options||arguments[0].o):(p=arguments[a],h=arguments[a+1]),l=u(l)){var w,C=l.length,E=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(p)&&!f.isPlainObject(h)){h={};for(var O=a+1;O=4&&"("===j?I++:(I&&I<5||I>=4&&")"===j&&--I<5)&&(I=0),0===P&&"r"===j||1===P&&"g"===j||2===P&&"b"===j||3===P&&"a"===j||P>=3&&"("===j?(3===P&&"a"===j&&(N=1),P++):N&&","===j?++N>3&&(P=N=0):(N&&P<(N?5:4)||P>=(N?4:3)&&")"===j&&--P<(N?5:4))&&(P=N=0)}}T===w.length&&k===h.length||(m.debug&&console.error('Trying to pattern match mis-matched strings ["'+h+'", "'+w+'"]'),c=r),c&&(A.length?(m.debug&&console.log('Pattern found "'+c+'" -> ',A,O,"["+w+","+h+"]"),w=A,h=O,S=_=""):c=r)}if(c||(w=(x=E(i,w))[0],_=x[1],h=(x=E(i,h))[0].replace(/^([+-\/*])=/,(function(e,t){return C=t,""})),S=x[1],w=parseFloat(w)||0,h=parseFloat(h)||0,"%"===S&&(/^(fontSize|lineHeight)$/.test(i)?(h/=100,S="em"):/^scale/.test(i)?(h/=100,S=""):/(Red|Green|Blue)$/i.test(i)&&(h=h/100*255,S=""))),/[\/*]/.test(C))S=_;else if(_!==S&&0!==w)if(0===h)S=_;else{o=o||function(){var r={myParent:e.parentNode||n.body,position:v.getPropertyValue(e,"position"),fontSize:v.getPropertyValue(e,"fontSize")},i=r.position===L.lastPosition&&r.myParent===L.lastParent,o=r.fontSize===L.lastFontSize;L.lastParent=r.myParent,L.lastPosition=r.position,L.lastFontSize=r.fontSize;var s=100,a={};if(o&&i)a.emToPx=L.lastEmToPx,a.percentToPxWidth=L.lastPercentToPxWidth,a.percentToPxHeight=L.lastPercentToPxHeight;else{var l=g&&g.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");m.init(l),r.myParent.appendChild(l),f.each(["overflow","overflowX","overflowY"],(function(e,t){m.CSS.setPropertyValue(l,t,"hidden")})),m.CSS.setPropertyValue(l,"position",r.position),m.CSS.setPropertyValue(l,"fontSize",r.fontSize),m.CSS.setPropertyValue(l,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(e,t){m.CSS.setPropertyValue(l,t,s+"%")})),m.CSS.setPropertyValue(l,"paddingLeft",s+"em"),a.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(l,"width",null,!0))||1)/s,a.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(l,"height",null,!0))||1)/s,a.emToPx=L.lastEmToPx=(parseFloat(v.getPropertyValue(l,"paddingLeft"))||1)/s,r.myParent.removeChild(l)}return null===L.remToPx&&(L.remToPx=parseFloat(v.getPropertyValue(n.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(t.innerWidth)/100,L.vhToPx=parseFloat(t.innerHeight)/100),a.remToPx=L.remToPx,a.vwToPx=L.vwToPx,a.vhToPx=L.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(a),e),a}();var $=/margin|padding|left|right|width|text|word|letter/i.test(i)||/X$/.test(i)||"x"===i?"x":"y";switch(_){case"%":w*="x"===$?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:w*=o[_+"ToPx"]}switch(S){case"%":w*=1/("x"===$?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:w*=1/o[S+"ToPx"]}}switch(C){case"+":h=w+h;break;case"-":h=w-h;break;case"*":h*=w;break;case"/":h=w/h}a[i]={rootPropertyValue:p,startValue:w,currentValue:w,endValue:h,unitType:S,easing:b},c&&(a[i].pattern=c),m.debug&&console.log("tweensContainer ("+i+"): "+JSON.stringify(a[i]),e)}else m.debug&&console.log("Skipping ["+u+"] due to a lack of browser support.")};for(var W in p)if(p.hasOwnProperty(W)){var R=v.Names.camelCase(W),q=(S=p[W],_=void 0,A=void 0,O=void 0,I=void 0,d.isFunction(S)&&(S=S.call(e,i,C)),d.isArray(S)?(A=S[0],!d.isArray(S[1])&&/^[\d-]/.test(S[1])||d.isFunction(S[1])||v.RegEx.isHex.test(S[1])?I=S[1]:d.isString(S[1])&&!v.RegEx.isHex.test(S[1])&&m.Easings[S[1]]||d.isArray(S[1])?(O=_?S[1]:T(S[1],s.duration),I=S[2]):I=S[1]||S[2]):A=S,_||(O=O||s.easing),d.isFunction(A)&&(A=A.call(e,i,C)),d.isFunction(I)&&(I=I.call(e,i,C)),[A||0,O,I]);if(c(v.Lists.colors)){var $=q[0],z=q[1],U=q[2];if(v.RegEx.isHex.test($)){for(var Q=["Red","Green","Blue"],Y=v.Values.hexToRgb($),K=U?v.Values.hexToRgb(U):r,X=0;X=.001?function(t,n){for(var i=0;i<4;++i){var o=p(n,e,r);if(0===o)return n;n-=(d(n,e,r)-t)/o}return n}(t,s):0===a?s:function(t,n,i){var o,s,a=0;do{(o=d(s=n+(i-n)/2,e,r)-t)>0?i=s:n=s}while(Math.abs(o)>1e-7&&++a<10);return s}(t,n,n+o)}var m=!1;function g(){m=!0,e===n&&r===i||function(){for(var t=0;t<11;++t)l[t]=d(t*o,e,r)}()}var v=function(t){return m||g(),e===n&&r===i?t:0===t?0:1===t?1:d(h(t),n,i)};v.getControlPoints=function(){return[{x:e,y:n},{x:r,y:i}]};var y="generateBezier("+[e,n,r,i]+")";return v.toString=function(){return y},v}function T(e,t){var n=e;return d.isString(e)?m.Easings[e]||(n=!1):n=d.isArray(e)&&1===e.length?C.apply(null,e):d.isArray(e)&&2===e.length?g.apply(null,e.concat([t])):!(!d.isArray(e)||4!==e.length)&&E.apply(null,e),!1===n&&(n=m.Easings[m.defaults.easing]?m.defaults.easing:h),n}function k(e){if(e){var t=m.timestamp&&!0!==e?e:a.now(),n=m.State.calls.length;n>1e4&&(m.State.calls=function(e){for(var t=-1,n=e?e.length:0,r=[];++t{const n=i()(`#${t.id.replace("_desktop_","_mobile_")}`);n.length&&o(i()(t),n)})):i()("*[id^='_mobile_']").each(((e,t)=>{const n=i()(`#${t.id.replace("_mobile_","_desktop_")}`);n.length&&o(i()(t),n)})),t().emit("responsive update",{mobile:t().responsive.mobile})}t().themeSelectors={product:{tabs:".tabs .nav-link",activeNavClass:"js-product-nav-active",activeTabClass:"js-product-tab-active",activeTabs:".tabs .nav-link.active, .js-product-nav-active",imagesModal:".js-product-images-modal",thumb:".js-thumb",thumbContainer:".thumb-container, .js-thumb-container",arrows:".js-arrows",selected:".selected, .js-thumb-selected",modalProductCover:".js-modal-product-cover",cover:".js-qv-product-cover",customizationModal:".js-customization-modal"},listing:{searchFilterToggler:"#search_filter_toggler, .js-search-toggler",searchFiltersWrapper:"#search_filters_wrapper",searchFilterControls:"#search_filter_controls",searchFilters:"#search_filters",activeSearchFilters:"#js-active-search-filters",listTop:"#js-product-list-top",product:".js-product",list:"#js-product-list",listBottom:"#js-product-list-bottom",listHeader:"#js-product-list-header",searchFiltersClearAll:".js-search-filters-clear-all",searchLink:".js-search-link"},order:{returnForm:"#order-return-form, .js-order-return-form"},arrowDown:".arrow-down, .js-arrow-down",arrowUp:".arrow-up, .js-arrow-up",clear:".clear",fileInput:".js-file-input",contentWrapper:"#content-wrapper, .js-content-wrapper",footer:"#footer, .js-footer",modalContent:".js-modal-content",modal:"#modal, .js-checkout-modal",touchspin:".js-touchspin",checkout:{termsLink:".js-terms a",giftCheckbox:".js-gift-checkbox",imagesLink:".card-block .cart-summary-products p a, .js-show-details",carrierExtraContent:".carrier-extra-content, .js-carrier-extra-content",btn:".checkout a"},cart:{productLineQty:".js-cart-line-product-quantity",quickview:".quickview",touchspin:".bootstrap-touchspin",promoCode:"#promo-code",displayPromo:".display-promo",promoCodeButton:".promo-code-button",discountCode:".js-discount .code",discountName:"[name=discount_name]",actions:'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]'},notifications:{dangerAlert:"#notifications article.alert-danger",container:"#notifications .notifications-container"},passwordPolicy:{template:"#password-feedback",hint:".js-hint-password",container:".password-strength-feedback",strengthText:".password-strength-text",requirementScore:".password-requirements-score",requirementLength:".password-requirements-length",requirementScoreIcon:".password-requirements-score i",requirementLengthIcon:".password-requirements-length i",progressBar:".progress-bar",inputColumn:".js-input-column"}},i()(document).ready((()=>{t().emit("themeSelectorsInit")})), /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ t().responsive=t().responsive||{},t().responsive.current_width=window.innerWidth,t().responsive.min_width=768,t().responsive.mobile=t().responsive.current_width{const e=t().responsive.current_width,n=t().responsive.min_width,r=window.innerWidth,i=e>=n&&r=n;t().responsive.current_width=r,t().responsive.mobile=t().responsive.current_width{t().responsive.mobile&&s()})),i()(document).ready((()=>{1===i()("body#checkout").length&&(i()(t().themeSelectors.checkout.termsLink).on("click",(e=>{e.preventDefault();let n=i()(e.target).attr("href");n&&(n+="?content_only=1",i().get(n,(e=>{i()(t().themeSelectors.modal).find(t().themeSelectors.modalContent).html(i()(e).find(".page-cms").contents())})).fail((e=>{t().emit("handleError",{eventType:"clickTerms",resp:e})}))),i()(t().themeSelectors.modal).modal("show")})),i()(t().themeSelectors.checkout.giftCheckbox).on("click",(()=>{i()("#gift").slideToggle()})),i()(t().themeSelectors.checkout.imagesLink).on("click",(function(){const e=i()(this).find("i.material-icons");"expand_more"===e.text()?e.text("expand_less"):e.text("expand_more")}))),t().on("updatedDeliveryForm",(e=>{void 0!==e.deliveryOption&&0!==e.deliveryOption.length&&(i()(t().themeSelectors.checkout.carrierExtraContent).hide(),e.deliveryOption.next(t().themeSelectors.checkout.carrierExtraContent).slideDown())}))})),i()(document).ready((function(){i()("body#order-detail")&&i()(`${t().themeSelectors.order.returnForm} table thead input[type=checkbox]`).on("click",(function(){const e=i()(this).prop("checked");i()(`${t().themeSelectors.order.returnForm} table tbody input[type=checkbox]`).each(((t,n)=>{i()(n).prop("checked",e)}))}))}));n(924); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ function a(e,t){if(void 0===t)return;const n=i()(e).siblings('source[type="image/webp"]'),r=i()(e).siblings('source[type="image/avif"]');void 0!==t.webp&&n.length&&n.attr("srcset",t.webp),void 0!==t.avif&&r.length&&r.attr("srcset",t.avif)} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class l{init(){i()(".js-product-miniature").each(((e,t)=>{if(i()(t).find(".color").length>5){let e=0;i()(t).find(".color").each(((t,n)=>{t>4&&(i()(n).hide(),e+=1)})),i()(t).find(".js-count").append(`+${e}`)}}))}} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ i()(document).ready((()=>{const e=e=>{const t=i()(".js-qv-product-images"),n=i()(".js-qv-product-images li img").height()+20,r=t.position().top;t.velocity({translateY:"up"===e?r+n:r-n},(()=>{t.position().top>=0?i()(".arrow-up").css("opacity",".2"):t.position().top+t.height()<=i()(".js-qv-mask").height()&&i()(".arrow-down").css("opacity",".2")}))};t().on("clickQuickView",(n=>{const r={action:"quickview",id_product:n.dataset.idProduct,id_product_attribute:n.dataset.idProductAttribute};i().post(t().urls.pages.product,r,null,"json").then((n=>{i()("body").append(n.quickview_html);const r=i()(`#quickview-modal-${n.product.id}-${n.product.id_product_attribute}`);r.modal("show"),(n=>{const r=i()(t().themeSelectors.product.arrows),o=n.find(".js-qv-product-images");i()(t().themeSelectors.product.thumb).on("click",(e=>{i()(t().themeSelectors.product.thumb).hasClass("selected")&&i()(t().themeSelectors.product.thumb).removeClass("selected"),i()(e.currentTarget).addClass("selected"),i()(t().themeSelectors.product.cover).attr("src",i()(e.target).data("image-large-src")),i()(t().themeSelectors.product.cover).attr("alt",i()(e.target).attr("alt")),i()(t().themeSelectors.product.cover).attr("title",i()(e.target).attr("title")),a(i()(t().themeSelectors.product.cover),i()(e.target).data("image-large-sources"))})),o.find("li").length<=4?r.hide():r.on("click",(n=>{i()(n.target).hasClass("arrow-up")&&i()(".js-qv-product-images").position().top<0?(e("up"),i()(t().themeSelectors.arrowDown).css("opacity","1")):i()(n.target).hasClass("arrow-down")&&o.position().top+o.height()>i()(".js-qv-mask").height()&&(e("down"),i()(t().themeSelectors.arrowUp).css("opacity","1"))})),n.find(t().selectors.quantityWanted).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6}),i()(t().themeSelectors.touchspin).off("touchstart.touchspin")})(r),r.on("hidden.bs.modal",(()=>{r.remove()}))})).fail((e=>{t().emit("handleError",{eventType:"clickQuickView",resp:e})}))})),i()("body").on("click",t().themeSelectors.listing.searchFilterToggler,(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.footer).addClass("hidden-sm-down")})),i()(`${t().themeSelectors.listing.searchFilterControls} ${t().themeSelectors.clear}`).on("click",(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.footer).removeClass("hidden-sm-down")})),i()(`${t().themeSelectors.listing.searchFilterControls} .ok`).on("click",(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.footer).removeClass("hidden-sm-down")}));const n=function(e){if(void 0!==e.target.dataset.searchUrl)return e.target.dataset.searchUrl;if(void 0===i()(e.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return i()(e.target).parent()[0].dataset.searchUrl};i()("body").on("change",`${t().themeSelectors.listing.searchFilters} input[data-search-url]`,(e=>{t().emit("updateFacets",n(e))})),i()("body").on("click",t().themeSelectors.listing.searchFiltersClearAll,(e=>{t().emit("updateFacets",n(e))})),i()("body").on("click",t().themeSelectors.listing.searchLink,(e=>{e.preventDefault(),t().emit("updateFacets",i()(e.target).closest("a").get(0).href)})),window.addEventListener("popstate",(e=>{e.state&&e.state.current_url&&(window.location.href=e.state.current_url)})),i()("body").on("change",`${t().themeSelectors.listing.searchFilters} select`,(e=>{const n=i()(e.target).closest("form");t().emit("updateFacets",`?${n.serialize()}`)})),t().on("updateProductList",(e=>{!function(e){i()(t().themeSelectors.listing.searchFilters).replaceWith(e.rendered_facets),i()(t().themeSelectors.listing.activeSearchFilters).replaceWith(e.rendered_active_filters),i()(t().themeSelectors.listing.listTop).replaceWith(e.rendered_products_top);const n=i()(e.rendered_products),r=i()(t().themeSelectors.listing.product);r.length>0?r.removeClass().addClass(r.first().attr("class")):r.removeClass().addClass(n.first().attr("class")),i()(t().themeSelectors.listing.list).replaceWith(n),i()(t().themeSelectors.listing.listBottom).replaceWith(e.rendered_products_bottom),e.rendered_products_header&&i()(t().themeSelectors.listing.listHeader).replaceWith(e.rendered_products_header),(new l).init()}(e),window.scrollTo(0,0)}))})); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class c{init(){const e=i()(".js-modal-arrows"),t=i()(".js-modal-product-images");i()("body").on("click",".js-modal-thumb",(e=>{i()(".js-modal-thumb").hasClass("selected")&&i()(".js-modal-thumb").removeClass("selected"),i()(e.currentTarget).addClass("selected"),i()(prestashop.themeSelectors.product.modalProductCover).attr("src",i()(e.target).data("image-large-src")),i()(prestashop.themeSelectors.product.modalProductCover).attr("title",i()(e.target).attr("title")),i()(prestashop.themeSelectors.product.modalProductCover).attr("alt",i()(e.target).attr("alt")),a(i()(prestashop.themeSelectors.product.modalProductCover),i()(e.target).data("image-large-sources"))})).on("click","aside#thumbnails",(e=>{"thumbnails"===e.target.id&&i()("#product-modal").modal("hide")})),i()(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",(e=>{i()(e.target).hasClass("arrow-up")&&t.position().top<0?(this.move("up"),i()(".js-modal-arrow-down").css("opacity","1")):i()(e.target).hasClass("arrow-down")&&t.position().top+t.height()>i()(".js-modal-mask").height()&&(this.move("down"),i()(".js-modal-arrow-up").css("opacity","1"))}))}move(e){const t=i()(".js-modal-product-images"),n=i()(".js-modal-product-images li img").height()+10,r=t.position().top;t.velocity({translateY:"up"===e?r+n:r-n},(()=>{t.position().top>=0?i()(".js-modal-arrow-up").css("opacity",".2"):t.position().top+t.height()<=i()(".js-modal-mask").height()&&i()(".js-modal-arrow-down").css("opacity",".2")}))}} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ i()(document).ready((()=>{function e(){const e=i()(t().themeSelectors.product.cover),n=i()(t().themeSelectors.product.modalProductCover);let r=i()(t().themeSelectors.product.selected);const o=(r,i)=>{const o=i.find(t().themeSelectors.product.thumb);r.removeClass("selected"),o.addClass("selected"),n.prop("src",o.data("image-large-src")),e.prop("src",o.data("image-medium-src")),e.attr("title",o.attr("title")),n.attr("title",o.attr("title")),e.attr("alt",o.attr("alt")),n.attr("alt",o.attr("alt")),a(e,o.data("image-medium-sources")),a(n,o.data("image-large-sources"))};i()(t().themeSelectors.product.thumb).on("click",(e=>{r=i()(t().themeSelectors.product.selected),o(r,i()(e.target).closest(t().themeSelectors.product.thumbContainer))})),e.swipe({swipe:(e,n)=>{r=i()(t().themeSelectors.product.selected);const s=r.closest(t().themeSelectors.product.thumbContainer);"right"===n?s.prev().length>0?o(r,s.prev()):s.next().length>0&&o(r,s.next()):"left"===n&&(s.next().length>0?o(r,s.next()):s.prev().length>0&&o(r,s.prev()))},allowPageScroll:"vertical"})}function n(){i()("#main .js-qv-product-images li").length>2?(i()("#main .js-qv-mask").addClass("scroll"),i()(".scroll-box-arrows").addClass("scroll"),i()("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),i()(".scroll-box-arrows .left").click((()=>{i()("#main .js-qv-mask").trigger("backward")})),i()(".scroll-box-arrows .right").click((()=>{i()("#main .js-qv-mask").trigger("forward")}))):(i()("#main .js-qv-mask").removeClass("scroll"),i()(".scroll-box-arrows").removeClass("scroll"))}function r(){i()(t().themeSelectors.fileInput).on("change",(e=>{const t=i()(e.currentTarget)[0],n=t?t.files[0]:null;t&&n&&i()(t).prev().text(n.name)}))}!function(){const e=i()(t().selectors.quantityWanted);e.TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(e.attr("min"),10),max:1e6}),i()(t().themeSelectors.touchspin).off("touchstart.touchspin"),e.on("focusout",(()=>{(""===e.val()||e.val(){""!==e.val()&&(i()(n.currentTarget).trigger("touchspin.stopspin"),t().emit("updateProduct",{eventType:"updatedProductQuantity",event:n}))}))}(),r(),e(),n(),function(){const e=i()(t().themeSelectors.product.tabs);e.on("show.bs.tab",(e=>{const n=i()(e.target);n.addClass(t().themeSelectors.product.activeNavClass),i()(n.attr("href")).addClass(t().themeSelectors.product.activeTabClass)})),e.on("hide.bs.tab",(e=>{const n=i()(e.target);n.removeClass(t().themeSelectors.product.activeNavClass),i()(n.attr("href")).removeClass(t().themeSelectors.product.activeTabClass)}))}(),t().on("updatedProduct",(o=>{if(r(),e(),o&&o.product_minimal_quantity){const e=parseInt(o.product_minimal_quantity,10),n=t().selectors.quantityWanted;i()(n).trigger("touchspin.updatesettings",{min:e})}n(),i()(i()(t().themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"),i()(t().themeSelectors.product.imagesModal).replaceWith(o.product_images_modal);(new c).init()}))})),t().cart=t().cart||{},t().cart.active_inputs=null;const u='input[name="product-quantity-spin"]';let f=!1,d=!1,p="";const h=()=>{const e=i()(t().themeSelectors.checkout.btn);if((i()(t().themeSelectors.notifications.dangerAlert).length||""!==p&&!f)&&e.addClass("disabled"),""!==p){const n=`\n \n `;i()(t().themeSelectors.notifications.container).html(n),p="",d=!1,f&&e.removeClass("disabled")}else!f&&d&&(f=!1,d=!1,i()(t().themeSelectors.notifications.container).html(""),e.removeClass("disabled"))},m=e=>{const{hasError:t,errors:n}=e;f=null!=t&&t;const r=null!=n?n:"";p=r instanceof Array?r.join(" "):r,d=!0};function g(){i().each(i()(u),((e,t)=>{i()(t).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt(i()(t).attr("min"),10),max:1e6})})),i()(t().themeSelectors.touchspin).off("touchstart.touchspin"),h()}const v=e=>!window.shouldPreventModal||(e.preventDefault(),!1);i()(document).ready((()=>{const e=t().themeSelectors.cart.productLineQty,n=[];t().on("updateCart",(()=>{i()(t().themeSelectors.cart.quickview).modal("hide")})),t().on("updatedCart",(()=>{window.shouldPreventModal=!1,i()(t().themeSelectors.product.customizationModal).on("show.bs.modal",(e=>{v(e)})),g()})),g();const r=i()("body");function o(e){const t=e.split("-");let n,r,i="";for(n=0;n{let e;for(;n.length>0;)e=n.pop(),e.abort()};i()(t().themeSelectors.product.customizationModal).on("show.bs.modal",(e=>{v(e)}));function l(e){const r=i()(e.currentTarget),o=r.data("update-url"),s=r.attr("value"),l=r.val();if(l!=parseInt(l,10)||l<0||isNaN(l))return window.shouldPreventModal=!1,void r.val(s);const c=l-s;var u,f;0!==c&&("0"===l?r.closest(".product-line-actions").find('[data-link-action="delete-from-cart"]').click():(r.attr("value",l),function(e,r,o){a(),window.shouldPreventModal=!0,i().ajax({url:e,method:"POST",data:r,dataType:"json",beforeSend(e){n.push(e)}}).then((e=>{m(e),o.val(e.quantity);const n=o&&o.dataset?o.dataset:e;t().emit("updateCart",{reason:n,resp:e})})).fail((e=>{t().emit("handleError",{eventType:"updateProductQuantityInCart",resp:e})}))}(o,(u=c,{ajax:"1",qty:Math.abs(u),action:"update",op:(f=u,f>0?"up":"down")}),r)))}r.on("click",t().themeSelectors.cart.actions,(e=>{a(),window.shouldPreventModal=!0,e.preventDefault();const r=i()(e.currentTarget),{dataset:o}=e.currentTarget,l=s(r,e.namespace);l&&i().ajax({url:l.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend(e){n.push(e)}}).then((e=>{const n=(s=r,i()(s.parents(t().themeSelectors.cart.touchspin).find("input")));var s;m(e),n.val(e.quantity),t().emit("updateCart",{reason:o,resp:e})})).fail((e=>{t().emit("handleError",{eventType:"updateProductInCart",resp:e,cartAction:l.type})}))})),r.on("touchspin.on.stopspin",u, /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ function(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}}(l)),r.on("focusout keyup",e,(e=>"keyup"===e.type?(13===e.keyCode&&(d=!0,l(e)),!1):(d||l(e),!1)));r.on("hidden.bs.collapse",t().themeSelectors.cart.promoCode,(()=>{i()(t().themeSelectors.cart.displayPromo).show(400)})),r.on("click",t().themeSelectors.cart.promoCodeButton,(e=>{e.preventDefault(),i()(t().themeSelectors.cart.promoCode).collapse("toggle")})),r.on("click",t().themeSelectors.cart.displayPromo,(e=>{i()(e.currentTarget).hide(400)})),r.on("click",t().themeSelectors.cart.discountCode,(e=>{e.stopPropagation();const n=i()(e.currentTarget);return i()(t().themeSelectors.cart.discountName).val(n.text()),i()(t().themeSelectors.cart.promoCode).collapse("show"),i()(t().themeSelectors.cart.displayPromo).hide(400),!1}))}));var y=n(58),b=n.n(y); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class w{constructor(e){this.el=e}init(){this.el.on("show.bs.dropdown",((e,t)=>{t?i()(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideDown():i()(e.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()})),this.el.on("hide.bs.dropdown",((e,t)=>{t?i()(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideUp():i()(e.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()})),this.el.find("select.link").each(((e,t)=>{i()(t).on("change",(function(){window.location=i()(this).val()}))}))}} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class x{init(){this.parentFocus(),this.togglePasswordVisibility()}parentFocus(){i()(".js-child-focus").on("focus",(function(){i()(this).closest(".js-parent-focus").addClass("focus")})),i()(".js-child-focus").on("focusout",(function(){i()(this).closest(".js-parent-focus").removeClass("focus")}))}togglePasswordVisibility(){i()('button[data-action="show-password"]').on("click",(function(){const e=i()(this).closest(".input-group").children("input.js-visible-password");"password"===e.attr("type")?(e.attr("type","text"),i()(this).text(i()(this).data("textHide"))):(e.attr("type","password"),i()(this).text(i()(this).data("textShow")))}))}}var S=n(531); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ const{passwordPolicy:_}=prestashop.themeSelectors,C=(e,t,n)=>{return r=void 0,i=null,o=function*(){const{prestashop:r}=window,i=e.value,o=t.querySelector(_.requirementScoreIcon),s=yield r.checkPasswordScore(i),a=(e=>{switch(e){case 0:case 1:return{color:"bg-danger"};case 2:return{color:"bg-warning"};case 3:case 4:return{color:"bg-success"};default:throw new Error("Invalid password strength indicator.")}})(s.score),l=i.length,c=[];$(e).popover("dispose"),t.style.display=""===i?"none":"block",""!==s.feedback.warning&&s.feedback.warning in n&&c.push(n[s.feedback.warning]),s.feedback.suggestions.forEach((e=>{e in n&&c.push(n[e])})),$(e).popover({html:!0,placement:"top",content:c.join("
")}).popover("show");const u=l>=parseInt(e.dataset.minlength,10)&&l<=parseInt(e.dataset.maxlength,10),f=parseInt(e.dataset.minscore,10)<=s.score;t.querySelector(_.requirementLengthIcon).classList.toggle("text-success",u),o.classList.toggle("text-success",f),e.classList.remove("border-success","border-danger"),e.classList.add(f&&u?"border-success":"border-danger"),e.classList.add("form-control","border");const d=20*s.score+20,p=t.querySelector(_.progressBar);p&&(p.style.width=`${d}%`,p.classList.remove("bg-success","bg-danger","bg-warning"),p.classList.add(a.color))},new Promise(((e,t)=>{var n=e=>{try{a(o.next(e))}catch(e){t(e)}},s=e=>{try{a(o.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,s);a((o=o.apply(r,i)).next())}));var r,i,o};var E=e=>{document.querySelectorAll(e).forEach((e=>{const t=null==e?void 0:e.querySelector(_.inputColumn),n=null==e?void 0:e.querySelector("input"),r=document.createElement("div"),i=document.querySelector(_.template);let o;if(i&&e&&t&&n&&(r.innerHTML=i.innerHTML,t.append(r),o=e.querySelector(_.container),o)){const e=document.querySelector(_.hint);if(e){const t=JSON.parse(e.innerHTML),r=o.querySelector(_.requirementLength),i=o.querySelector(_.requirementScore),s=null==r?void 0:r.querySelector("span"),a=null==i?void 0:i.querySelector("span");s&&r&&r.dataset.translation&&(s.innerText=(0,S.sprintf)(r.dataset.translation,n.dataset.minlength,n.dataset.maxlength)),a&&i&&i.dataset.translation&&(a.innerText=(0,S.sprintf)(i.dataset.translation,t[n.dataset.minscore])),n.addEventListener("keyup",(()=>C(n,o,t))),n.addEventListener("blur",(()=>{$(n).popover("dispose")}))}}return e?{element:e}:{error:new Error("The password policy elements are undefined.")}}))}; /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class T extends w{init(){let e;const n=this;this.el.find("li").on("mouseenter mouseleave",(t=>{if(this.el.parent().hasClass("mobile"))return;const n=i()(t.currentTarget).attr("class");if(e!==n){const n=Array.prototype.slice.call(t.currentTarget.classList).map((e=>"string"==typeof e&&`.${e}`));e=n.join(""),e&&0===i()(t.target).data("depth")&&i()(`${e} .js-sub-menu`).css({top:i()(`${e}`).height()+i()(`${e}`).position().top})}})),i()("#menu-icon").on("click",(()=>{i()("#mobile_top_menu_wrapper").toggle(),n.toggleMobileMenu()})),this.el.on("click",(e=>{this.el.parent().hasClass("mobile")||e.stopPropagation()})),t().on("responsive update",(()=>{i()(".js-sub-menu").removeAttr("style"),n.toggleMobileMenu()})),super.init()}toggleMobileMenu(){i()("#header").toggleClass("is-open"),i()("#mobile_top_menu_wrapper").is(":visible")?i()("#notifications, #wrapper, #footer").hide():i()("#notifications, #wrapper, #footer").show()}}n(902),n(290); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ t().blockcart=t().blockcart||{},t().blockcart.showModal=e=>{function n(){return i()("#blockcart-modal")}let r=n();r.length&&r.remove(),i()("body").append(e),r=n(),r.modal("show").on("hidden.bs.modal",(e=>{t().emit("updateProduct",{reason:e.currentTarget.dataset,event:e})}))}; /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ for(const e in b().prototype)t()[e]=b().prototype[e];i()(document).ready((()=>{const e=i()(".js-dropdown"),t=new x,n=i()('.js-top-menu ul[data-depth="0"]'),r=new w(e),o=new T(n),s=new l,a=new c;r.init(),t.init(),o.init(),s.init(),a.init(),E(".field-password-policy"),i()('.carousel[data-touch="true"]').swipe({swipe(e,t){"left"===t&&i()(this).carousel("next"),"right"===t&&i()(this).carousel("prev")},allowPageScroll:"vertical"})}))}()}();