!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 <contact@prestashop.com>
 * @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(' <span class="badge">'+t.length+"</span>"),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?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},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<t.length;n++)e+=t[n].name.split("\\").pop()+", ";return""!==e?this.$elementFilestyle.find(":text").val(e.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),t},constructor:function(){var n,r,i=this,o=i.$element.attr("id");""!==o&&o||(o="filestyle-"+t,i.$element.attr({id:o}),t++),r='<span class="group-span-filestyle '+(i.options.input?"input-group-btn":"")+'"><label for="'+o+'" class="btn '+i.options.buttonName+" "+("nr"==i.options.size?"":"btn-"+i.options.size)+'" '+(i.options.disabled?'disabled="true"':"")+">"+i.htmlIcon()+'<span class="buttonText">'+i.options.buttonText+"</span></label></span>",n=i.options.buttonBefore?r+i.htmlInput():i.htmlInput()+r,i.$elementFilestyle=e('<div class="bootstrap-filestyle input-group">'+n+"</div>"),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(' <span class="badge">'+e.length+"</span>"):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 <contact@prestashop.com>
 * @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;s<t.switchItems;s++)t.queue&&t.queue.find(t.listItemElement).length>0?(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;s<t.switchItems;s++)n.children(t.listItemElement+":last-child").insertBefore(n.children(t.listItemElement+":first-child"));i=n.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?i.height():i.width(),f[0][t.scrollOffset]=l}if(t.linear?a=Math.max(f[0][t.scrollOffset]-t.step,0):(c=Math.max(3,parseInt(.3*f[0][t.scrollOffset],10)),a=Math.max(f[0][t.scrollOffset]-c,0)),f[0][t.scrollOffset]=a,0===a){if(--m,clearInterval(d),d=null,e.isFunction(t.afterBackward)&&t.afterBackward.call(f,{switchCount:m,currentFirstChild:n.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void r();t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}}},r=function(){0!==g&&(g>0?(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),t<s.min&&(n=s.min),t>s.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.min&&(c=s.min,h.trigger("touchspin.on.min"),C()),l.input.val(c.toFixed(s.decimals)),e!==c&&h.trigger("change")}function S(){C(),g=0,v="down",h.trigger("touchspin.on.startspin"),h.trigger("touchspin.on.startdownspin"),d=setTimeout((function(){u=setInterval((function(){g++,x()}),s.stepinterval)}),s.stepintervaldelay)}function _(){C(),g=0,v="up",h.trigger("touchspin.on.startspin"),h.trigger("touchspin.on.startupspin"),p=setTimeout((function(){f=setInterval((function(){g++,w()}),s.stepinterval)}),s.stepintervaldelay)}function C(){switch(clearTimeout(d),clearTimeout(p),clearInterval(u),clearInterval(f),v){case"up":h.trigger("touchspin.on.stopupspin"),h.trigger("touchspin.on.stopspin");break;case"down":h.trigger("touchspin.on.stopdownspin"),h.trigger("touchspin.on.stopspin")}g=0,v=!1}!function(){if(h.data("alreadyinitialized"))return;if(h.data("alreadyinitialized",!0),t+=1,h.data("spinnerid",t),!h.is("input"))return void console.log("Must be an input.");s=e.extend({},i,m,(c={},e.each(o,(function(e,t){var n="bts-"+t;h.is("[data-"+n+"]")&&(c[e]=h.data(n))})),c),r),""!==s.initval&&""===h.val()&&h.val(s.initval),y(),function(){var t=h.val(),n=h.parent();""!==t&&(t=Number(t).toFixed(s.decimals));h.data("initvalue",t).val(t),h.addClass("form-control"),n.hasClass("input-group")?function(t){t.addClass("bootstrap-touchspin");var n,r,i=h.prev(),o=h.next(),l='<span class="input-group-addon bootstrap-touchspin-prefix">'+s.prefix+"</span>",c='<span class="input-group-addon bootstrap-touchspin-postfix">'+s.postfix+"</span>";i.hasClass("input-group-btn")?(n='<button class="'+s.buttondown_class+' bootstrap-touchspin-down" type="button">'+s.buttondown_txt+"</button>",i.append(n)):(n='<span class="input-group-btn"><button class="'+s.buttondown_class+' bootstrap-touchspin-down" type="button">'+s.buttondown_txt+"</button></span>",e(n).insertBefore(h));o.hasClass("input-group-btn")?(r='<button class="'+s.buttonup_class+' bootstrap-touchspin-up" type="button">'+s.buttonup_txt+"</button>",o.prepend(r)):(r='<span class="input-group-btn"><button class="'+s.buttonup_class+' bootstrap-touchspin-up" type="button">'+s.buttonup_txt+"</button></span>",e(r).insertAfter(h));e(l).insertBefore(h),e(c).insertAfter(h),a=t}(n):function(){var t;t=s.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+s.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+s.postfix+'</span><span class="input-group-btn-vertical"><button class="'+s.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+s.verticalupclass+'"></i></button><button class="'+s.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+s.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+s.buttondown_class+' bootstrap-touchspin-down" type="button">'+s.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+s.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+s.postfix+'</span><span class="input-group-btn"><button class="'+s.buttonup_class+' bootstrap-touchspin-up" type="button">'+s.buttonup_txt+"</button></span></div>";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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(e){return(e[0]||e).nodeType}function r(t){var n=this,r=!1;return e(this).one(s.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||s.triggerTransitionEnd(n)}),t),this}var i=!1,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},s={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},reflow:function(e){new Function("bs","return bs")(e.offsetHeight)},triggerTransitionEnd:function(t){e(t).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},typeCheckConfig:function(e,r,i){for(var o in i)if(i.hasOwnProperty(o)){var s,a=i[o],l=r[o];if(s=l&&n(l)?"element":t(l),!new RegExp(a).test(s))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+s+'" but expected type "'+a+'".')}}};return i=function(){if(window.QUnit)return!1;var e=document.createElement("bootstrap");for(var t in o)if(void 0!==e.style[t])return{end:o[t]};return!1}(),e.fn.emulateTransitionEnd=r,s.supportsTransitionEnd()&&(e.event.special[s.TRANSITION_END]={bindType:i.end,delegateType:i.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),s}(jQuery),h=(t=jQuery,n="alert",i="."+(r="bs.alert"),o=t.fn[n],s={CLOSE:"close"+i,CLOSED:"closed"+i,CLICK_DATA_API:"click"+i+".data-api"},a="alert",l="fade",c="in",u=function(){function n(t){e(this,n),this._element=t}return n.prototype.close=function(e){e=e||this._element;var t=this._getRootElement(e);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.prototype.dispose=function(){t.removeData(this._element,r),this._element=null},n.prototype._getRootElement=function(e){var n=p.getSelectorFromElement(e),r=!1;return n&&(r=t(n)[0]),r||(r=t(e).closest("."+a)[0]),r},n.prototype._triggerCloseEvent=function(e){var n=t.Event(s.CLOSE);return t(e).trigger(n),n},n.prototype._removeElement=function(e){return t(e).removeClass(c),p.supportsTransitionEnd()&&t(e).hasClass(l)?void t(e).one(p.TRANSITION_END,t.proxy(this._destroyElement,this,e)).emulateTransitionEnd(150):void this._destroyElement(e)},n.prototype._destroyElement=function(e){t(e).detach().trigger(s.CLOSED).remove()},n._jQueryInterface=function(e){return this.each((function(){var i=t(this),o=i.data(r);o||(o=new n(this),i.data(r,o)),"close"===e&&o[e](this)}))},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},d(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),n}(),t(document).on(s.CLICK_DATA_API,'[data-dismiss="alert"]',u._handleDismiss(new u)),t.fn[n]=u._jQueryInterface,t.fn[n].Constructor=u,t.fn[n].noConflict=function(){return t.fn[n]=o,u._jQueryInterface},function(t){var n="button",r="bs.button",i="."+r,o=".data-api",s=t.fn[n],a="active",l="btn",c="focus",u='[data-toggle^="button"]',f='[data-toggle="buttons"]',p="input",h=".active",m=".btn",g={CLICK_DATA_API:"click"+i+o,FOCUS_BLUR_DATA_API:"focus"+i+o+" blur"+i+o},v=function(){function n(t){e(this,n),this._element=t}return n.prototype.toggle=function(){var e=!0,n=t(this._element).closest(f)[0];if(n){var r=t(this._element).find(p)[0];if(r){if("radio"===r.type)if(r.checked&&t(this._element).hasClass(a))e=!1;else{var i=t(n).find(h)[0];i&&t(i).removeClass(a)}e&&(r.checked=!t(this._element).hasClass(a),t(this._element).trigger("change")),r.focus()}}else this._element.setAttribute("aria-pressed",!t(this._element).hasClass(a));e&&t(this._element).toggleClass(a)},n.prototype.dispose=function(){t.removeData(this._element,r),this._element=null},n._jQueryInterface=function(e){return this.each((function(){var i=t(this).data(r);i||(i=new n(this),t(this).data(r,i)),"toggle"===e&&i[e]()}))},d(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),n}();t(document).on(g.CLICK_DATA_API,u,(function(e){e.preventDefault();var n=e.target;t(n).hasClass(l)||(n=t(n).closest(m)),v._jQueryInterface.call(t(n),"toggle")})).on(g.FOCUS_BLUR_DATA_API,u,(function(e){var n=t(e.target).closest(m)[0];t(n).toggleClass(c,/^focus(in)?$/.test(e.type))})),t.fn[n]=v._jQueryInterface,t.fn[n].Constructor=v,t.fn[n].noConflict=function(){return t.fn[n]=s,v._jQueryInterface}}(jQuery),function(t){var n="carousel",r="bs.carousel",i="."+r,o=".data-api",s=t.fn[n],a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},l={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},c="next",u="prev",h={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,LOAD_DATA_API:"load"+i+o,CLICK_DATA_API:"click"+i+o},m="carousel",g="active",v="slide",y="right",b="left",w=".active",x=".active.carousel-item",S=".carousel-item",_=".next, .prev",C=".carousel-indicators",E="[data-slide], [data-slide-to]",T='[data-ride="carousel"]',k=function(){function o(n,r){e(this,o),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(r),this._element=t(n)[0],this._indicatorsElement=t(this._element).find(C)[0],this._addEventListeners()}return o.prototype.next=function(){this._isSliding||this._slide(c)},o.prototype.nextWhenVisible=function(){document.hidden||this.next()},o.prototype.prev=function(){this._isSliding||this._slide(u)},o.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(_)[0]&&p.supportsTransitionEnd()&&(p.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},o.prototype.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(t.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))},o.prototype.to=function(e){var n=this;this._activeElement=t(this._element).find(x)[0];var r=this._getItemIndex(this._activeElement);if(!(e>this._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;o<i.length;o++){var s=n._getParentFromElement(i[o]),l={relatedTarget:i[o]};if(t(s).hasClass(u)&&!(e&&"click"===e.type&&/input|textarea/i.test(e.target.tagName)&&t.contains(s,e.target))){var c=t.Event(a.HIDE,l);t(s).trigger(c),c.isDefaultPrevented()||(i[o].setAttribute("aria-expanded","false"),t(s).removeClass(u).trigger(t.Event(a.HIDDEN,l)))}}}},n._getParentFromElement=function(e){var n=void 0,r=p.getSelectorFromElement(e);return r&&(n=t(r)[0]),n||e.parentNode},n._dataApiKeydownHandler=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(c))){var r=n._getParentFromElement(this),i=t(r).hasClass(u);if(!i&&27!==e.which||i&&27===e.which){if(27===e.which){var o=t(r).find(h)[0];t(o).trigger("focus")}return void t(this).trigger("click")}var s=t.makeArray(t(b));if((s=s.filter((function(e){return e.offsetWidth||e.offsetHeight}))).length){var a=s.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}},d(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),n}();t(document).on(a.KEYDOWN_DATA_API,h,w._dataApiKeydownHandler).on(a.KEYDOWN_DATA_API,g,w._dataApiKeydownHandler).on(a.KEYDOWN_DATA_API,v,w._dataApiKeydownHandler).on(a.CLICK_DATA_API,w._clearMenus).on(a.CLICK_DATA_API,h,w.prototype.toggle).on(a.CLICK_DATA_API,m,(function(e){e.stopPropagation()})),t.fn[n]=w._jQueryInterface,t.fn[n].Constructor=w,t.fn[n].noConflict=function(){return t.fn[n]=s,w._jQueryInterface}}(jQuery),function(t){var n="modal",r="bs.modal",i="."+r,o=t.fn[n],s={backdrop:!0,keyboard:!0,focus:!0,show:!0},a={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},l={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,FOCUSIN:"focusin"+i,RESIZE:"resize"+i,CLICK_DISMISS:"click.dismiss"+i,KEYDOWN_DISMISS:"keydown.dismiss"+i,MOUSEUP_DISMISS:"mouseup.dismiss"+i,MOUSEDOWN_DISMISS:"mousedown.dismiss"+i,CLICK_DATA_API:"click"+i+".data-api"},c="modal-scrollbar-measure",u="modal-backdrop",h="modal-open",m="fade",g="in",v=".modal-dialog",y='[data-toggle="modal"]',b='[data-dismiss="modal"]',w=".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed",x=function(){function o(n,r){e(this,o),this._config=this._getConfig(r),this._element=n,this._dialog=t(n).find(v)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return o.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},o.prototype.show=function(e){var n=this,r=t.Event(l.SHOW,{relatedTarget:e});t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(h),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(l.CLICK_DISMISS,b,t.proxy(this.hide,this)),t(this._dialog).on(l.MOUSEDOWN_DISMISS,(function(){t(n._element).one(l.MOUSEUP_DISMISS,(function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop(t.proxy(this._showElement,this,e)))},o.prototype.hide=function(e){e&&e.preventDefault();var n=t.Event(l.HIDE);t(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(l.FOCUSIN),t(this._element).removeClass(g),t(this._element).off(l.CLICK_DISMISS),t(this._dialog).off(l.MOUSEDOWN_DISMISS),p.supportsTransitionEnd()&&t(this._element).hasClass(m)?t(this._element).one(p.TRANSITION_END,t.proxy(this._hideModal,this)).emulateTransitionEnd(300):this._hideModal())},o.prototype.dispose=function(){t.removeData(this._element,r),t(window).off(i),t(document).off(i),t(this._element).off(i),t(this._backdrop).off(i),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},o.prototype._getConfig=function(e){return e=t.extend({},s,e),p.typeCheckConfig(n,e,a),e},o.prototype._showElement=function(e){var n=this,r=p.supportsTransitionEnd()&&t(this._element).hasClass(m);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,r&&p.reflow(this._element),t(this._element).addClass(g),this._config.focus&&this._enforceFocus();var i=t.Event(l.SHOWN,{relatedTarget:e}),o=function(){n._config.focus&&n._element.focus(),t(n._element).trigger(i)};r?t(this._dialog).one(p.TRANSITION_END,o).emulateTransitionEnd(300):o()},o.prototype._enforceFocus=function(){var e=this;t(document).off(l.FOCUSIN).on(l.FOCUSIN,(function(n){document===n.target||e._element===n.target||t(e._element).has(n.target).length||e._element.focus()}))},o.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(l.KEYDOWN_DISMISS,(function(t){27===t.which&&e.hide()})):this._isShown||t(this._element).off(l.KEYDOWN_DISMISS)},o.prototype._setResizeEvent=function(){this._isShown?t(window).on(l.RESIZE,t.proxy(this._handleUpdate,this)):t(window).off(l.RESIZE)},o.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop((function(){t(document.body).removeClass(h),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(l.HIDDEN)}))},o.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},o.prototype._showBackdrop=function(e){var n=this,r=t(this._element).hasClass(m)?m:"";if(this._isShown&&this._config.backdrop){var i=p.supportsTransitionEnd()&&r;if(this._backdrop=document.createElement("div"),this._backdrop.className=u,r&&t(this._backdrop).addClass(r),t(this._backdrop).appendTo(document.body),t(this._element).on(l.CLICK_DISMISS,(function(e){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide()))})),i&&p.reflow(this._backdrop),t(this._backdrop).addClass(g),!e)return;if(!i)return void e();t(this._backdrop).one(p.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(g);var o=function(){n._removeBackdrop(),e&&e()};p.supportsTransitionEnd()&&t(this._element).hasClass(m)?t(this._backdrop).one(p.TRANSITION_END,o).emulateTransitionEnd(150):o()}else e&&e()},o.prototype._handleUpdate=function(){this._adjustDialog()},o.prototype._adjustDialog=function(){var e=this._element.scrollHeight>document.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<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},o.prototype._setScrollbar=function(){var e=parseInt(t(w).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},o.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},o.prototype._getScrollbarWidth=function(){var e=document.createElement("div");e.className=c,document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},o._jQueryInterface=function(e,n){return this.each((function(){var i=t(this).data(r),s=t.extend({},o.Default,t(this).data(),"object"===(void 0===e?"undefined":f(e))&&e);if(i||(i=new o(this,s),t(this).data(r,i)),"string"==typeof e){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e](n)}else s.show&&i.show(n)}))},d(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}}]),o}();t(document).on(l.CLICK_DATA_API,y,(function(e){var n=this,i=void 0,o=p.getSelectorFromElement(this);o&&(i=t(o)[0]);var s=t(i).data(r)?"toggle":t.extend({},t(i).data(),t(this).data());"A"===this.tagName&&e.preventDefault();var a=t(i).one(l.SHOW,(function(e){e.isDefaultPrevented()||a.one(l.HIDDEN,(function(){t(n).is(":visible")&&n.focus()}))}));x._jQueryInterface.call(t(i),s,this)})),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){var n="scrollspy",r="bs.scrollspy",i="."+r,o=t.fn[n],s={offset:10,method:"auto",target:""},a={offset:"number",method:"string",target:"(string|element)"},l={ACTIVATE:"activate"+i,SCROLL:"scroll"+i,LOAD_DATA_API:"load"+i+".data-api"},c="dropdown-item",u="active",h='[data-spy="scroll"]',m=".active",g="li",v=".nav-link",y=".dropdown",b=".dropdown-item",w=".dropdown-toggle",x="offset",S="position",_=function(){function o(n,r){e(this,o),this._element=n,this._scrollElement="BODY"===n.tagName?window:n,this._config=this._getConfig(r),this._selector=this._config.target+" "+v+","+this._config.target+" "+b,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(l.SCROLL,t.proxy(this._process,this)),this.refresh(),this._process()}return o.prototype.refresh=function(){var e=this,n=this._scrollElement!==this._scrollElement.window?S:x,r="auto"===this._config.method?n:this._config.method,i=r===S?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map((function(e){var n=void 0,o=p.getSelectorFromElement(e);return o&&(n=t(o)[0]),n&&(n.offsetWidth||n.offsetHeight)?[t(n)[r]().top+i,o]:null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},o.prototype.dispose=function(){t.removeData(this._element,r),t(this._scrollElement).off(i),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},o.prototype._getConfig=function(e){if("string"!=typeof(e=t.extend({},s,e)).target){var r=t(e.target).attr("id");r||(r=p.getUID(n),t(e.target).attr("id",r)),e.target="#"+r}return p.typeCheckConfig(n,e,a),e},o.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop},o.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o.prototype._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._scrollElement.offsetHeight;if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}if(this._activeTarget&&e<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}},o.prototype._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}));var r=t(n.join(","));r.hasClass(c)?(r.closest(y).find(w).addClass(u),r.addClass(u)):r.parents(g).find(v).addClass(u),t(this._scrollElement).trigger(l.ACTIVATE,{relatedTarget:e})},o.prototype._clear=function(){t(this._selector).filter(m).removeClass(u)},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||(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}}]),o}();t(window).on(l.LOAD_DATA_API,(function(){for(var e=t.makeArray(t(h)),n=e.length;n--;){var r=t(e[n]);_._jQueryInterface.call(r,r.data())}})),t.fn[n]=_._jQueryInterface,t.fn[n].Constructor=_,t.fn[n].noConflict=function(){return t.fn[n]=o,_._jQueryInterface}}(jQuery),function(t){var n="tab",r="bs.tab",i="."+r,o=t.fn[n],s={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,CLICK_DATA_API:"click"+i+".data-api"},a="dropdown-menu",l="active",c="fade",u="in",f=".dropdown",h="ul:not(.dropdown-menu)",m="> .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:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',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:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),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;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(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<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=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<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=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;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){t.exports=function(e){var t,n,r,i=-1;if(e.lines.length>1&&"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;++i<r;)i in e&&(n=t(n,e[i],i));return n}t.exports=r},{}],13:[function(e,t,n){function r(e){a(s(e))}var i=e("./read"),o=e("./write"),s=e("./readAll"),a=e("./writeAll");t.exports=r,t.exports.read=i,t.exports.write=o,t.exports.readAll=s,t.exports.writeAll=a},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(e,t,n){function r(e,t,n){var r=e[t],s=String(r).match(o);if(!s){var c=t.match(l);return c?"none"===e["border"+c[1]+"Style"]?0:a[r]||0:r}var u=s[1],f=s[2];return"px"===f?1*u:"cm"===f?.3937*u*96:"in"===f?96*u:"mm"===f?.3937*u*96/10:"pc"===f?12*u*96/72:"pt"===f?96*u/72:"rem"===f?16*u:i(r,n)}function i(e,t){s.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+e+"!important",t.parentNode.insertBefore(s,t.nextSibling);var n=s.offsetWidth;return t.parentNode.removeChild(s),n}t.exports=r;var o=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,s=document.createElement("div"),a={medium:4,none:0,thick:6,thin:2},l=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(e,t,n){function r(e){var t={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(e instanceof Element){var n=e.hasAttribute("data-style"),r=n?e.getAttribute("data-style"):e.getAttribute("style")||"";n||e.setAttribute("data-style",r),s(t,window.getComputedStyle&&getComputedStyle(e)||{});var a=e.currentStyle||{};for(var l in i(t,a),o(t,r),t)t[l]=c(t,l,e);var u=e.getBoundingClientRect();t.offsetHeight=u.height||e.offsetHeight,t.offsetWidth=u.width||e.offsetWidth}return{element:e,style:t}}function i(e,t){for(var n in e)if(n in t)e[n]=t[n];else{var r=n.replace(/[A-Z]/g,"-$&").toLowerCase();r in t&&(e[n]=t[r])}"-js-display"in t&&(e.display=t["-js-display"])}function o(e,t){for(var n;n=a.exec(t);)e[n[1].toLowerCase().replace(/-[a-z]/g,(function(e){return e.slice(1).toUpperCase()}))]=n[2]}function s(e,t){for(var n in e)n in t&&!l.test(n)&&(e[n]=t[n])}t.exports=r;var a=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,l=/^(alignSelf|height|width)$/,c=e("./getComputedLength")},{"./getComputedLength":14}],16:[function(e,t,n){function r(e){var t=[];return i(e,t),t}function i(e,t){for(var n,r=o(e),a=[],l=-1;n=e.childNodes[++l];){var c=3===n.nodeType&&!/^\s*$/.test(n.nodeValue);if(r&&c){var u=n;(n=e.insertBefore(document.createElement("flex-item"),u)).appendChild(u)}if(n instanceof Element){var f=i(n,t);if(r){var d=n.style;d.display="inline-block",d.position="absolute",f.style=s(n).style,a.push(f)}}}var p={element:e,children:a};return r&&(p.style=s(e).style,t.push(p)),p}function o(e){var t=e instanceof Element,n=t&&e.getAttribute("data-style"),r=t&&e.currentStyle&&e.currentStyle["-js-display"];return a.test(n)||l.test(r)}t.exports=r;var s=e("../read"),a=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,l=/^(inline-)?flex$/i},{"../read":15}],17:[function(e,t,n){function r(e){o(e);var t=e.element.style,n="inline"===e.mainAxis?["main","cross"]:["cross","main"];t.boxSizing="content-box",t.display="block",t.position="relative",t.width=i(e.flexStyle[n[0]]-e.flexStyle[n[0]+"InnerBefore"]-e.flexStyle[n[0]+"InnerAfter"]-e.flexStyle[n[0]+"BorderBefore"]-e.flexStyle[n[0]+"BorderAfter"]),t.height=i(e.flexStyle[n[1]]-e.flexStyle[n[1]+"InnerBefore"]-e.flexStyle[n[1]+"InnerAfter"]-e.flexStyle[n[1]+"BorderBefore"]-e.flexStyle[n[1]+"BorderAfter"]);for(var r,s=-1;r=e.children[++s];){var a=r.element.style,l="inline"===r.mainAxis?["main","cross"]:["cross","main"];a.boxSizing="content-box",a.display="block",a.position="absolute","auto"!==r.flexStyle[l[0]]&&(a.width=i(r.flexStyle[l[0]]-r.flexStyle[l[0]+"InnerBefore"]-r.flexStyle[l[0]+"InnerAfter"]-r.flexStyle[l[0]+"BorderBefore"]-r.flexStyle[l[0]+"BorderAfter"])),"auto"!==r.flexStyle[l[1]]&&(a.height=i(r.flexStyle[l[1]]-r.flexStyle[l[1]+"InnerBefore"]-r.flexStyle[l[1]+"InnerAfter"]-r.flexStyle[l[1]+"BorderBefore"]-r.flexStyle[l[1]+"BorderAfter"])),a.top=i(r.flexStyle[l[1]+"Start"]),a.left=i(r.flexStyle[l[0]+"Start"]),a.marginTop=i(r.flexStyle[l[1]+"Before"]),a.marginRight=i(r.flexStyle[l[0]+"After"]),a.marginBottom=i(r.flexStyle[l[1]+"After"]),a.marginLeft=i(r.flexStyle[l[0]+"Before"])}}function i(e){return"string"==typeof e?e:Math.max(e,0)+"px"}t.exports=r;var o=e("../flexbox")},{"../flexbox":7}],18:[function(e,t,n){function r(e){for(var t,n=-1;t=e[++n];)i(t)}t.exports=r;var i=e("../write")},{"../write":17}]},{},[13])(13)},277:function(e,t,n){var r,i,o,s;
/*!
 * @fileOverview TouchSwipe - jQuery Plugin
 * @version 1.6.18
 *
 * @author Matt Bryson http://www.github.com/mattbryson
 * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
 * @see http://labs.rampinteractive.co.uk/touchSwipe/
 * @see http://plugins.jquery.com/project/touchSwipe
 * @license
 * Copyright (c) 2010-2015 Matt Bryson
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 */s=function(e){"use strict";function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=c),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each((function(){var r=e(this),i=r.data(k);i||(i=new n(this,t),r.data(k,i))}))}function n(t,n){function A(t){if(!(!0===Se.data(k+"_intouch")||e(t.target).closest(n.excludedElements,Se).length>0)){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.x<t.right&&e.y>t.top&&e.y<t.bottom}(C.end,T)}!n.triggerOnTouchEnd&&E?_e=D(x):n.triggerOnTouchLeave&&!E&&(_e=D(S)),_e!=_&&_e!=S||L(m,_e)}}else L(m,_e=_);!1===b&&L(m,_e=_)}}function I(e){var t=e.originalEvent?e.originalEvent:e,r=t.touches;if(r){if(r.length&&!X())return function(e){Ae=oe(),Oe=e.touches.length+1}(t),!0;if(r.length&&X())return!0}return X()&&(Ce=Oe),ke=oe(),me=ne(),M()||!B()?L(t,_e=_):n.triggerOnTouchEnd||!1===n.triggerOnTouchEnd&&_e===x?(!1!==n.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),L(t,_e=S)):!n.triggerOnTouchEnd&&U()?F(t,_e=S,p):_e===x&&L(t,_e=_),G(!1),null}function P(){Ce=0,ke=0,Te=0,ge=0,ve=0,ye=1,K(),G(!1)}function N(e){var t=e.originalEvent?e.originalEvent:e;n.triggerOnTouchLeave&&L(t,_e=D(S))}function j(){Se.off(ae,A),Se.off(fe,P),Se.off(le,O),Se.off(ce,I),ue&&Se.off(ue,N),G(!1)}function D(e){var t=e,r=V(),i=B(),o=M();return!r||o?t=_:!i||e!=x||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!i&&e==S&&n.triggerOnTouchLeave&&(t=_):t=S,t}function L(e,t){var r,i=e.touches;return(!(!R()||!q())||q())&&(r=F(e,t,f)),(!(!H()||!W())||W())&&!1!==r&&(r=F(e,t,d)),Y()&&Q()&&!1!==r?r=F(e,t,h):me>n.longTapThreshold&&b>de&&n.longTap&&!1!==r?r=F(e,t,m):!(1!==Ce&&C||!(isNaN(de)||de<n.threshold)||!U())&&!1!==r&&(r=F(e,t,p)),t===_&&P(),t===S&&(i&&i.length||P()),r}function F(t,c,u){var g;if(u==f){if(Se.trigger("swipeStatus",[c,pe||null,de||0,me||0,Ce,Ee,he]),n.swipeStatus&&!1===(g=n.swipeStatus.call(Se,t,c,pe||null,de||0,me||0,Ce,Ee,he)))return!1;if(c==S&&R()){if(clearTimeout(Pe),clearTimeout(Ne),Se.trigger("swipe",[pe,de,me,Ce,Ee,he]),n.swipe&&!1===(g=n.swipe.call(Se,t,pe,de,me,Ce,Ee,he)))return!1;switch(pe){case r:Se.trigger("swipeLeft",[pe,de,me,Ce,Ee,he]),n.swipeLeft&&(g=n.swipeLeft.call(Se,t,pe,de,me,Ce,Ee,he));break;case i:Se.trigger("swipeRight",[pe,de,me,Ce,Ee,he]),n.swipeRight&&(g=n.swipeRight.call(Se,t,pe,de,me,Ce,Ee,he));break;case o:Se.trigger("swipeUp",[pe,de,me,Ce,Ee,he]),n.swipeUp&&(g=n.swipeUp.call(Se,t,pe,de,me,Ce,Ee,he));break;case s:Se.trigger("swipeDown",[pe,de,me,Ce,Ee,he]),n.swipeDown&&(g=n.swipeDown.call(Se,t,pe,de,me,Ce,Ee,he))}}}if(u==d){if(Se.trigger("pinchStatus",[c,we||null,be||0,me||0,Ce,ye,Ee]),n.pinchStatus&&!1===(g=n.pinchStatus.call(Se,t,c,we||null,be||0,me||0,Ce,ye,Ee)))return!1;if(c==S&&H())switch(we){case a:Se.trigger("pinchIn",[we||null,be||0,me||0,Ce,ye,Ee]),n.pinchIn&&(g=n.pinchIn.call(Se,t,we||null,be||0,me||0,Ce,ye,Ee));break;case l:Se.trigger("pinchOut",[we||null,be||0,me||0,Ce,ye,Ee]),n.pinchOut&&(g=n.pinchOut.call(Se,t,we||null,be||0,me||0,Ce,ye,Ee))}}return u==p?c!==_&&c!==S||(clearTimeout(Pe),clearTimeout(Ne),Q()&&!Y()?(Ie=oe(),Pe=setTimeout(e.proxy((function(){Ie=null,Se.trigger("tap",[t.target]),n.tap&&(g=n.tap.call(Se,t,t.target))}),this),n.doubleTapThreshold)):(Ie=null,Se.trigger("tap",[t.target]),n.tap&&(g=n.tap.call(Se,t,t.target)))):u==h?c!==_&&c!==S||(clearTimeout(Pe),clearTimeout(Ne),Ie=null,Se.trigger("doubletap",[t.target]),n.doubleTap&&(g=n.doubleTap.call(Se,t,t.target))):u==m&&(c!==_&&c!==S||(clearTimeout(Pe),Ie=null,Se.trigger("longtap",[t.target]),n.longTap&&(g=n.longTap.call(Se,t,t.target)))),g}function B(){var e=!0;return null!==n.threshold&&(e=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<h;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((a=e[r]).keys)for(n=t[p],s=0;s<a.keys.length;s++){if(null==n)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[s],a.keys[s-1]));n=n[a.keys[s]]}else n=a.param_no?t[a.param_no]:t[p++];if(i.not_type.test(a.type)&&i.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),i.numeric_arg.test(a.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(i.number.test(a.type)&&(f=n>=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||(n<y[1]&&"top"===E.top&&(n+=g,E.top="bottom"),n+c>y[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&&o<n[1]?(o+=i,e.top="bottom",o+=r,t.top="top"):"top"===t.top&&o+r>n[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&&o<n[1]&&o+(2*r-i)<=n[3]&&(o+=r-i,e.top="top",t.top="top")),"middle"===e.top&&(o+r>n[3]&&"top"===t.top?(o-=r,t.top="bottom"):o<n[1]&&"bottom"===t.top&&(o+=r,t.top="top")),o}(E,T,y,c,g,n)),"target"!==a&&"both"!==a||(r<y[0]&&"left"===E.left&&(r+=v,E.left="right"),r+f>y[2]&&"right"===E.left&&(r-=v,E.left="left")),"together"===a&&(r=function(e,t,n,r,i,o){return o<n[0]&&"left"===e.left?"right"===t.left?(o+=i,e.left="right",o+=r,t.left="left"):"left"===t.left&&(o+=i,e.left="right",o-=r,t.left="right"):o+r>n[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"):o<n[0]&&"right"===t.left&&(o+=r,t.left="left")),o}(E,T,y,f,v,r)),"element"!==u&&"both"!==u||(n<y[1]&&"bottom"===T.top&&(n+=c,T.top="top"),n+c>y[3]&&"top"===T.top&&(n-=c,T.top="bottom")),"element"!==a&&"both"!==a||(r<y[0]&&("right"===T.left?(r+=f,T.left="left"):"center"===T.left&&(r+=f/2,T.left="left")),r+f>y[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<t[0]&&(r.indexOf("left")>=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<t[1]&&(r.indexOf("top")>=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;i<n;i++)r[i-1]=arguments[i];return!s(this.bindings)&&this.bindings[e]&&this.bindings[e].forEach((function(n,i){var o=n.ctx,s=n.handler,a=n.once,l=o||t;s.apply(l,r),a&&t.bindings[e].splice(i,1)})),this},e}(),k={center:"center",left:"right",right:"left"},A={middle:"middle",top:"bottom",bottom:"top"},O={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function I(){for(var e={top:0,left:0},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;o(n)&&(n=parseFloat(n)),o(r)&&(r=parseFloat(r)),e.top+=n,e.left+=r})),e}function P(e){var t=e.left,n=e.top;return s(O[e.left])||(t=O[e.left]),s(O[e.top])||(n=O[e.top]),{left:t,top:n}}function N(e,t){return o(e.left)&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left)/100*t.width),o(e.top)&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top)/100*t.height),e}function j(e){var t=e.split(" ");return{top:t[0],left:t[1]}}function D(e){return e.offsetParent||document.documentElement}var L={modules:[C,S,E]};var F,B,M,V,H=function(){if(s(document))return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),W=[],R=function(){W.forEach((function(e){e.position(!1)})),p()};function q(){return performance.now()}F=null,B=null,M=null,V=function e(){if(!s(B)&&B>16)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.top<pageYOffset&&(r.top=pageYOffset),r.left<pageXOffset&&(r.left=pageXOffset),r}(this.bodyElement,this.target):"scroll-handle"===this.targetModifier?function(e,t){var n,r=t.scrollTop,i=t===document.body;i?(t=document.documentElement,n={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):n=w(e,t);var o=getComputedStyle(t),s=0;(t.scrollWidth>t.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<L.modules.length;++y){var b=L.modules[y].position.call(this,{left:m,top:v,targetAttachment:n,targetPos:l,elementPos:r,offset:u,targetOffset:f,manualOffset:d,manualTargetOffset:h,scrollbarSize:x,attachment:this.attachment});if(!1===b)return!1;s(b)||"object"!=typeof b||(v=b.top,m=b.left)}var x,S={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-o+innerHeight,left:m-pageXOffset,right:pageXOffset-m-i+innerWidth}},_=this.target.ownerDocument,C=_.defaultView;if(C.innerHeight>_.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<this.history.length;++u){var f=this.history[u];if(!(s(f[a])||(n=f[a][l],r=e[a][l],i=void 0,void 0===i&&(i=1),n+i>=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(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(e.hasOwnProperty(r)&&!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(e[r],r,e[r]))break;return e},t.data=function(e,r,i){if(void 0===i){var o=e[t.expando],s=o&&n[o];if(void 0===r)return s;if(s&&r in s)return s[r]}else if(void 0!==r){var a=e[t.expando]||(e[t.expando]=++t.uuid);return n[a]=n[a]||{},n[a][r]=i,i}},t.removeData=function(e,r){var i=e[t.expando],o=i&&n[i];o&&(r?t.each(r,(function(e,t){delete o[t]})):delete n[i])},t.extend=function(){var e,n,r,i,o,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==t.type(a)&&(a={}),l===c&&(a=this,l--);l<c;l++)if(o=arguments[l])for(i in o)o.hasOwnProperty(i)&&(e=a[i],a!==(r=o[i])&&(u&&r&&(t.isPlainObject(r)||(n=t.isArray(r)))?(n?(n=!1,s=e&&t.isArray(e)?e:[]):s=e&&t.isPlainObject(e)?e:{},a[i]=t.extend(u,s,r)):void 0!==r&&(a[i]=r)));return a},t.queue=function(e,n,r){if(e){n=(n||"fx")+"queue";var i,o,s,a=t.data(e,n);return r?(!a||t.isArray(r)?a=t.data(e,n,(s=o||[],(i=r)&&(l(Object(i))?function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[i++]=t[r++];e.length=i}(s,"string"==typeof i?[i]:i):[].push.call(s,i)),s)):a.push(r),a):a||[]}},t.dequeue=function(e,n){t.each(e.nodeType?[e]:e,(function(e,r){n=n||"fx";var i=t.queue(r,n),o=i.shift();"inprogress"===o&&(o=i.shift()),o&&("fx"===n&&i.unshift("inprogress"),o.call(r,(function(){t.dequeue(r,n)})))}))},t.fn=t.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],n=function(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}(e),r=this.offset(),i=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return r.top-=parseFloat(e.style.marginTop)||0,r.left-=parseFloat(e.style.marginLeft)||0,n.style&&(i.top+=parseFloat(n.style.borderTopWidth)||0,i.left+=parseFloat(n.style.borderLeftWidth)||0),{top:r.top-i.top,left:r.left-i.left}}};var n={};t.expando="velocity"+(new Date).getTime(),t.uuid=0;for(var r={},i=r.hasOwnProperty,o=r.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),a=0;a<s.length;a++)r["[object "+s[a]+"]"]=s[a].toLowerCase();t.fn.init.prototype=t.fn,e.Velocity={Utilities:t}}function l(e){var n=e.length,r=t.type(e);return"function"!==r&&!t.isWindow(e)&&(!(1!==e.nodeType||!n)||("array"===r||0===n||"number"==typeof n&&n>0&&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+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return r}(),s=(i=0,t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){var t,n=(new Date).getTime();return t=Math.max(0,16-(n-i)),i=n+t,setTimeout((function(){e(n+t)}),t)}),a=function(){var e=t.performance||{};if("function"!=typeof e.now){var n=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date).getTime();e.now=function(){return(new Date).getTime()-n}}return e}();var l=function(){var e=Array.prototype.slice;try{return e.call(n.documentElement),e}catch(t){return function(t,n){var r=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof n&&(n=r),this.slice)return e.call(this,t,n);var i,o=[],s=t>=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<a;i++)o[i]=this.charAt(s+i);else for(i=0;i<a;i++)o[i]=this[s+i];return o}}}(),c=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}};function u(e){return d.isWrapped(e)?e=l.call(e):d.isNode(e)&&(e=[e]),e}var f,d={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&d.isNumber(e.length)&&!d.isString(e)&&!d.isFunction(e)&&!d.isNode(e)&&(0===e.length||d.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},p=!1;if(e.fn&&e.fn.jquery?(f=e,p=!0):f=t.Velocity.Utilities,o<=8&&!p)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(o<=7)){var h="swing",m={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:400,easing:h,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){f.data(e,"velocity",{isSVG:d.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();f.each(m.State.calls,(function(t,n){if(n){if(e!==r&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]={resume:!1}}})),f.each(m.State.delayedElements,(function(e,n){n&&S(n,t)}))},resumeAll:function(e){var t=(new Date).getTime();f.each(m.State.calls,(function(t,n){if(n){if(e!==r&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]&&(n[5].resume=!0)}})),f.each(m.State.delayedElements,(function(e,n){n&&_(n,t)}))}};t.pageYOffset!==r?(m.State.scrollAnchor=t,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop");var g=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var i={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:i.v,dv:e(i)}}function n(n,r){var i={dx:n.v,dv:e(n)},o=t(n,.5*r,i),s=t(n,.5*r,o),a=t(n,r,s),l=1/6*(i.dx+2*(o.dx+s.dx)+a.dx),c=1/6*(i.dv+2*(o.dv+s.dv)+a.dv);return n.x=n.x+l*r,n.v=n.v+c*r,n}return function e(t,r,i){var o,s,a,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,f=1e-4;for(t=parseFloat(t)||500,r=parseFloat(r)||20,i=i||null,l.tension=t,l.friction=r,s=(o=null!==i)?(u=e(t,r))/i*.016:.016;a=n(a||l,s),c.push(1+a.x),u+=16,Math.abs(a.x)>f&&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<v.Lists.colors.length;e++){var t="color"===v.Lists.colors[e]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,r,i;if(o)for(n in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(n)){i=(r=v.Hooks.templates[n])[0].split(" ");var s=r[1].match(v.RegEx.valueSplit);"Color"===i[0]&&(i.push(i.shift()),s.push(s.shift()),v.Hooks.templates[n]=[i.join(" "),s.join(" ")])}for(n in v.Hooks.templates)if(v.Hooks.templates.hasOwnProperty(n))for(var a in i=(r=v.Hooks.templates[n])[0].split(" "))if(i.hasOwnProperty(a)){var l=n+i[a],c=a;v.Hooks.registered[l]=[n,c]}},getRoot:function(e){var t=v.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var n=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&c(v.Lists.units)?n:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,(function(e,t,n){return v.Lists.colorNames.hasOwnProperty(n)?(t||"rgba(")+v.Lists.colorNames[n]+(t?"":",1)"):t+n}))},cleanRootPropertyValue:function(e,t){return v.RegEx.valueUnwrap.test(t)&&(t=t.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(t)&&(t=v.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=v.Hooks.registered[e];if(n){var r=n[0],i=n[1];return(t=v.Hooks.cleanRootPropertyValue(r,t)).toString().match(v.RegEx.valueSplit)[i]}return t},injectValue:function(e,t,n){var r=v.Hooks.registered[e];if(r){var i,o=r[0],s=r[1];return(i=(n=v.Hooks.cleanRootPropertyValue(o,n)).toString().match(v.RegEx.valueSplit))[s]=t,i.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var r;return r=v.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(r=n.toString().match(v.RegEx.valueUnwrap))?r[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return m.State.isFirefox?"filter":"-webkit-filter";case"extract":var r=parseFloat(n);if(!r&&0!==r){var i=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);r=i?i[1]:0}return r;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(o<=8)switch(e){case"name":return"filter";case"extract":var r=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=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;e<v.Lists.transformsBase.length;e++)!function(){var t=v.Lists.transformsBase[e];v.Normalizations.registered[t]=function(e,n,i){switch(e){case"name":return"transform";case"extract":return x(n)===r||x(n).transformCache[t]===r?/^scale/i.test(t)?1:0:x(n).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":m.State.isAndroid&&x(n).transformCache[t]===r&&i<1&&(i=1),o=!/(\d)$/i.test(i);break;case"skew":case"rotate":o=!/(deg|\d)$/i.test(i)}return o||(x(n).transformCache[t]="("+i+")"),x(n).transformCache[t]}}}();for(var t=0;t<v.Lists.colors.length;t++)!function(){var e=v.Lists.colors[t];v.Normalizations.registered[e]=function(t,n,i){switch(t){case"name":return e;case"extract":var s;if(v.RegEx.wrappedValueAlreadyExtracted.test(i))s=i;else{var a,l={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?a=l[i]!==r?l[i]:l.black:v.RegEx.isHex.test(i)?a="rgb("+v.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(a=l.black),s=(a||i).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!o||o>8)&&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<a.length;r++)i=parseFloat(v.getPropertyValue(t,a[r])),isNaN(i)||(o+=i);return n?-o:o}return 0}function i(e,t){return function(r,i,o){switch(r){case"name":return e;case"extract":return parseFloat(o)+n(e,i,t);case"inject":return parseFloat(o)-n(e,i,t)+"px"}}}v.Normalizations.registered.innerWidth=i("width",!0),v.Normalizations.registered.innerHeight=i("height",!0),v.Normalizations.registered.outerWidth=i("width"),v.Normalizations.registered.outerHeight=i("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(o||m.State.isAndroid&&!m.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(m.State.prefixMatches[e])return[m.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,r=t.length;n<r;n++){var i;if(i=0===n?e:t[n]+e.replace(/^\w/,(function(e){return e.toUpperCase()})),d.isString(m.State.prefixElement.style[i]))return m.State.prefixMatches[e]=i,[i,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(d.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var n=e.getAttribute(o<=7?"className":"class")||"";e.setAttribute("class",n+(n?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(d.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=e.getAttribute(o<=7?"className":"class")||"";e.setAttribute("class",n.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,n,i,s){function a(e,n){var i=0;if(o<=8)i=f.css(e,n);else{var l=!1;/^(width|height)$/.test(n)&&0===v.getPropertyValue(e,"display")&&(l=!0,v.setPropertyValue(e,"display",v.Values.getDisplayType(e)));var c,u=function(){l&&v.setPropertyValue(e,"display","none")};if(!s){if("height"===n&&"border-box"!==v.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var d=e.offsetHeight-(parseFloat(v.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(e,"paddingBottom"))||0);return u(),d}if("width"===n&&"border-box"!==v.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(v.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(e,"paddingRight"))||0);return u(),p}}c=x(e)===r?t.getComputedStyle(e,null):x(e).computedStyle?x(e).computedStyle:x(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),""!==(i=9===o&&"filter"===n?c.getPropertyValue(n):c[n])&&null!==i||(i=e.style[n]),u()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(n)){var h=a(e,"position");("fixed"===h||"absolute"===h&&/top|left/i.test(n))&&(i=f(e).position()[n]+"px")}return i}var l;if(v.Hooks.registered[n]){var c=n,u=v.Hooks.getRoot(c);i===r&&(i=v.getPropertyValue(e,v.Names.prefixCheck(u)[0])),v.Normalizations.registered[u]&&(i=v.Normalizations.registered[u]("extract",e,i)),l=v.Hooks.extractValue(c,i)}else if(v.Normalizations.registered[n]){var d,p;"transform"!==(d=v.Normalizations.registered[n]("name",e))&&(p=a(e,v.Names.prefixCheck(d)[0]),v.Values.isCSSNullValue(p)&&v.Hooks.templates[n]&&(p=v.Hooks.templates[n][1])),l=v.Normalizations.registered[n]("extract",e,p)}if(!/^[\d-]/.test(l)){var h=x(e);if(h&&h.isSVG&&v.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(e){l=0}else l=e.getAttribute(n);else l=a(e,v.Names.prefixCheck(n)[0])}return v.Values.isCSSNullValue(l)&&(l=0),m.debug>=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<arguments.length;O++)d.isArray(arguments[O])||!/^(fast|normal|slow)$/i.test(arguments[O])&&!/^\d/.test(arguments[O])?d.isString(arguments[O])||d.isArray(arguments[O])?h.easing=arguments[O]:d.isFunction(arguments[O])&&(h.complete=arguments[O]):h.duration=arguments[O]}switch(p){case"scroll":w="scroll";break;case"reverse":w="reverse";break;case"pause":var I=(new Date).getTime();return f.each(l,(function(e,t){S(t,I)})),f.each(m.State.calls,(function(e,t){var n=!1;t&&f.each(t[1],(function(e,i){var o=h===r?"":h;return!0!==o&&t[2].queue!==o&&(h!==r||!1!==t[2].queue)||(f.each(l,(function(e,r){if(r===i)return t[5]={resume:!1},n=!0,!1})),!n&&void 0)}))})),i();case"resume":return f.each(l,(function(e,t){_(t)})),f.each(m.State.calls,(function(e,t){var n=!1;t&&f.each(t[1],(function(e,i){var o=h===r?"":h;return!0!==o&&t[2].queue!==o&&(h!==r||!1!==t[2].queue)||(!t[5]||(f.each(l,(function(e,r){if(r===i)return t[5].resume=!0,n=!0,!1})),!n&&void 0))}))})),i();case"finish":case"finishAll":case"stop":f.each(l,(function(e,t){x(t)&&x(t).delayTimer&&(clearTimeout(x(t).delayTimer.setTimeout),x(t).delayTimer.next&&x(t).delayTimer.next(),delete x(t).delayTimer),"finishAll"!==p||!0!==h&&!d.isString(h)||(f.each(f.queue(t,d.isString(h)?h:""),(function(e,t){d.isFunction(t)&&t()})),f.queue(t,d.isString(h)?h:"",[]))}));var P=[];return f.each(m.State.calls,(function(e,t){t&&f.each(t[1],(function(n,i){var o=h===r?"":h;if(!0!==o&&t[2].queue!==o&&(h!==r||!1!==t[2].queue))return!0;f.each(l,(function(n,r){if(r===i)if((!0===h||d.isString(h))&&(f.each(f.queue(r,d.isString(h)?h:""),(function(e,t){d.isFunction(t)&&t(null,!0)})),f.queue(r,d.isString(h)?h:"",[])),"stop"===p){var s=x(r);s&&s.tweensContainer&&(!0===o||""===o)&&f.each(s.tweensContainer,(function(e,t){t.endValue=t.currentValue})),P.push(e)}else"finish"!==p&&"finishAll"!==p||(t[2].duration=1)}))}))})),"stop"===p&&(f.each(P,(function(e,t){A(t,!0)})),b.promise&&b.resolver(l)),i();default:if(!f.isPlainObject(p)||d.isEmptyObject(p)){if(d.isString(p)&&m.Redirects[p]){var N=(e=f.extend({},h)).duration,j=e.delay||0;return!0===e.backwards&&(l=f.extend(!0,[],l).reverse()),f.each(l,(function(t,n){parseFloat(e.stagger)?e.delay=j+parseFloat(e.stagger)*t:d.isFunction(e.stagger)&&(e.delay=j+e.stagger.call(n,t,C)),e.drag&&(e.duration=parseFloat(N)||(/^(callout|transition)/.test(p)?1e3:400),e.duration=Math.max(e.duration*(e.backwards?1-t/C:(t+1)/C),.75*e.duration,200)),m.Redirects[p].call(n,n,e||{},t,C,l,b.promise?b:r)})),i()}var D="Velocity: First argument ("+p+") was not a property map, a known action, or a registered redirect. Aborting.";return b.promise?b.rejecter(new Error(D)):t.console&&console.log(D),i()}w="start"}var L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},F=[];f.each(l,(function(e,i){d.isNode(i)&&function(e,i){var o,s=f.extend({},m.defaults,h),a={};switch(x(e)===r&&m.init(e),parseFloat(s.delay)&&!1!==s.queue&&f.queue(e,s.queue,(function(t,n){if(!0===n)return!0;m.velocityQueueEntryFlag=!0;var r=m.State.delayedElements.count++;m.State.delayedElements[r]=e;var i=function(e){return function(){m.State.delayedElements[e]=!1,t()}}(r);x(e).delayBegin=(new Date).getTime(),x(e).delay=parseFloat(s.delay),x(e).delayTimer={setTimeout:setTimeout(t,parseFloat(s.delay)),next:i}})),s.duration.toString().toLowerCase()){case"fast":s.duration=200;break;case"normal":s.duration=400;break;case"slow":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}function u(u){var g,y,S,_,A,O,I;if(s.begin&&0===E)try{s.begin.call(l,l)}catch(e){setTimeout((function(){throw e}),1)}if("scroll"===w){var P,N,j,D=/^x$/i.test(s.axis)?"Left":"Top",B=parseFloat(s.offset)||0;s.container?d.isWrapped(s.container)||d.isNode(s.container)?(s.container=s.container[0]||s.container,j=(P=s.container["scroll"+D])+f(e).position()[D.toLowerCase()]+B):s.container=null:(P=m.State.scrollAnchor[m.State["scrollProperty"+D]],N=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===D?"Top":"Left")]],j=f(e).offset()[D.toLowerCase()]+B),a={scroll:{rootPropertyValue:!1,startValue:P,currentValue:P,endValue:j,unitType:"",easing:s.easing,scrollData:{container:s.container,direction:D,alternateValue:N}},element:e},m.debug&&console.log("tweensContainer (scroll): ",a.scroll,e)}else if("reverse"===w){if(!(g=x(e)))return;if(!g.tweensContainer)return void f.dequeue(e,s.queue);for(var M in"none"===g.opts.display&&(g.opts.display="auto"),"hidden"===g.opts.visibility&&(g.opts.visibility="visible"),g.opts.loop=!1,g.opts.begin=null,g.opts.complete=null,h.easing||delete s.easing,h.duration||delete s.duration,s=f.extend({},g.opts,s),y=f.extend(!0,{},g?g.tweensContainer:null))if(y.hasOwnProperty(M)&&"element"!==M){var V=y[M].startValue;y[M].startValue=y[M].currentValue=y[M].endValue,y[M].endValue=V,d.isEmptyObject(h)||(y[M].easing=s.easing),m.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(y[M]),e)}a=y}else if("start"===w){(g=x(e))&&g.tweensContainer&&!0===g.isAnimating&&(y=g.tweensContainer);var H=function(i,l){var c,u=v.Hooks.getRoot(i),p=!1,h=l[0],b=l[1],w=l[2];if(g&&g.isSVG||"tween"===u||!1!==v.Names.prefixCheck(u)[1]||v.Normalizations.registered[u]!==r){(s.display!==r&&null!==s.display&&"none"!==s.display||s.visibility!==r&&"hidden"!==s.visibility)&&/opacity|filter/.test(i)&&!w&&0!==h&&(w=0),s._cacheValues&&y&&y[i]?(w===r&&(w=y[i].endValue+y[i].unitType),p=g.rootPropertyValueCache[u]):v.Hooks.registered[i]?w===r?(p=v.getPropertyValue(e,u),w=v.getPropertyValue(e,i,p)):p=v.Hooks.templates[u][1]:w===r&&(w=v.getPropertyValue(e,i));var x,S,_,C=!1,E=function(e,t){var n,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(e){return n=e,""})),n||(n=v.Values.getUnitType(e)),[r,n]};if(w!==h&&d.isString(w)&&d.isString(h)){c="";var T=0,k=0,A=[],O=[],I=0,P=0,N=0;for(w=v.Hooks.fixColors(w),h=v.Hooks.fixColors(h);T<w.length&&k<h.length;){var j=w[T],D=h[k];if(/[\d\.-]/.test(j)&&/[\d\.-]/.test(D)){for(var F=j,B=D,M=".",V=".";++T<w.length;){if((j=w[T])===M)M="..";else if(!/\d/.test(j))break;F+=j}for(;++k<h.length;){if((D=h[k])===V)V="..";else if(!/\d/.test(D))break;B+=D}var H=v.Hooks.getUnit(w,T),W=v.Hooks.getUnit(h,k);if(T+=H.length,k+=W.length,H===W)F===B?c+=F+H:(c+="{"+A.length+(P?"!":"")+"}"+H,A.push(parseFloat(F)),O.push(parseFloat(B)));else{var R=parseFloat(F),q=parseFloat(B);c+=(I<5?"calc":"")+"("+(R?"{"+A.length+(P?"!":"")+"}":"0")+H+" + "+(q?"{"+(A.length+(R?1:0))+(P?"!":"")+"}":"0")+W+")",R&&(A.push(R),O.push(0)),q&&(A.push(0),O.push(q))}}else{if(j!==D){I=0;break}c+=j,T++,k++,0===I&&"c"===j||1===I&&"a"===j||2===I&&"l"===j||3===I&&"c"===j||I>=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<Q.length;X++){var G=[Y[X]];z&&G.push(z),K!==r&&G.push(K[X]),H(R+Q[X],G)}continue}}H(R,q)}a.element=e}a.element&&(v.Values.addClass(e,"velocity-animating"),F.push(a),(g=x(e))&&(""===s.queue&&(g.tweensContainer=a,g.opts=s),g.isAnimating=!0),E===C-1?(m.State.calls.push([F,l,s,null,b.resolver,null,0]),!1===m.State.isTicking&&(m.State.isTicking=!0,k())):E++)}if(!1!==m.mock&&(!0===m.mock?s.duration=s.delay=1:(s.duration*=parseFloat(m.mock)||1,s.delay*=parseFloat(m.mock)||1)),s.easing=T(s.easing,s.duration),s.begin&&!d.isFunction(s.begin)&&(s.begin=null),s.progress&&!d.isFunction(s.progress)&&(s.progress=null),s.complete&&!d.isFunction(s.complete)&&(s.complete=null),s.display!==r&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),"auto"===s.display&&(s.display=m.CSS.Values.getDisplayType(e))),s.visibility!==r&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&m.State.isMobile&&!m.State.isGingerbread,!1===s.queue)if(s.delay){var g=m.State.delayedElements.count++;m.State.delayedElements[g]=e;var y=function(e){return function(){m.State.delayedElements[e]=!1,u()}}(g);x(e).delayBegin=(new Date).getTime(),x(e).delay=parseFloat(s.delay),x(e).delayTimer={setTimeout:setTimeout(u,parseFloat(s.delay)),next:y}}else u();else f.queue(e,s.queue,(function(e,t){if(!0===t)return b.promise&&b.resolver(l),!0;m.velocityQueueEntryFlag=!0,u()}));""!==s.queue&&"fx"!==s.queue||"inprogress"===f.queue(e)[0]||f.dequeue(e)}(i,e)})),(e=f.extend({},m.defaults,h)).loop=parseInt(e.loop,10);var B=2*e.loop-1;if(e.loop)for(var M=0;M<B;M++){var V={delay:e.delay,progress:e.progress};M===B-1&&(V.display=e.display,V.visibility=e.visibility,V.complete=e.complete),y(l,"reverse",V)}return i()}b.promise&&(p&&h&&!1===h.promiseRejectEmpty?b.resolver():b.rejecter())};(m=f.extend(y,m)).animate=y;var b=t.requestAnimationFrame||s;if(!m.State.isMobile&&n.hidden!==r){var w=function(){n.hidden?(b=function(e){return setTimeout((function(){e(!0)}),16)},k()):b=t.requestAnimationFrame||s};w(),n.addEventListener("visibilitychange",w)}return e.Velocity=m,e!==t&&(e.fn.velocity=y,e.fn.velocity.defaults=m.defaults),f.each(["Down","Up"],(function(e,t){m.Redirects["slide"+t]=function(e,n,i,o,s,a){var l=f.extend({},n),c=l.begin,u=l.complete,d={},p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===r&&(l.display="Down"===t?"inline"===m.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){for(var n in 0===i&&c&&c.call(s,s),p)if(p.hasOwnProperty(n)){d[n]=e.style[n];var r=v.getPropertyValue(e,n);p[n]="Down"===t?[r,0]:[0,r]}d.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in d)d.hasOwnProperty(t)&&(e.style[t]=d[t]);i===o-1&&(u&&u.call(s,s),a&&a.resolver(s))},m(e,p,l)}})),f.each(["In","Out"],(function(e,t){m.Redirects["fade"+t]=function(e,n,i,o,s,a){var l=f.extend({},n),c=l.complete,u={opacity:"In"===t?1:0};0!==i&&(l.begin=null),l.complete=i!==o-1?null:function(){c&&c.call(s,s),a&&a.resolver(s)},l.display===r&&(l.display="In"===t?"auto":"none"),m(this,u,l)}})),m}function x(e){var t=f.data(e,"velocity");return null===t?r:t}function S(e,t){var n=x(e);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-t+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function _(e,t){var n=x(e);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function C(e){return function(t){return Math.round(t*e)*(1/e)}}function E(e,n,r,i){var o=.1,s="Float32Array"in t;if(4!==arguments.length)return!1;for(var a=0;a<4;++a)if("number"!=typeof arguments[a]||isNaN(arguments[a])||!isFinite(arguments[a]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var l=s?new Float32Array(11):new Array(11);function c(e,t){return 1-3*t+3*e}function u(e,t){return 3*t-6*e}function f(e){return 3*e}function d(e,t,n){return((c(t,n)*e+u(t,n))*e+f(t))*e}function p(e,t,n){return 3*c(t,n)*e*e+2*u(t,n)*e+f(t)}function h(t){for(var n=0,i=1;10!==i&&l[i]<=t;++i)n+=o;--i;var s=n+(t-l[i])/(l[i+1]-l[i])*o,a=p(s,e,r);return a>=.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<n;){var i=e[t];i&&r.push(i)}return r}(m.State.calls),n=m.State.calls.length);for(var i=0;i<n;i++)if(m.State.calls[i]){var s=m.State.calls[i],l=s[0],c=s[2],u=s[3],p=!u,h=null,g=s[5],y=s[6];if(u||(u=m.State.calls[i][3]=t-16),g){if(!0!==g.resume)continue;u=s[3]=Math.round(t-y-16),s[5]=null}y=s[6]=t-u;for(var w=Math.min(y/c.duration,1),S=0,_=l.length;S<_;S++){var C=l[S],E=C.element;if(x(E)){var T=!1;if(c.display!==r&&null!==c.display&&"none"!==c.display){if("flex"===c.display){f.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(e,t){v.setPropertyValue(E,"display",t)}))}v.setPropertyValue(E,"display",c.display)}for(var O in c.visibility!==r&&"hidden"!==c.visibility&&v.setPropertyValue(E,"visibility",c.visibility),C)if(C.hasOwnProperty(O)&&"element"!==O){var I,P=C[O],N=d.isString(P.easing)?m.Easings[P.easing]:P.easing;if(d.isString(P.pattern)){var j=1===w?function(e,t,n){var r=P.endValue[t];return n?Math.round(r):r}:function(e,t,n){var r=P.startValue[t],i=P.endValue[t]-r,o=r+i*N(w,c,i);return n?Math.round(o):o};I=P.pattern.replace(/{(\d+)(!)?}/g,j)}else if(1===w)I=P.endValue;else{var D=P.endValue-P.startValue;I=P.startValue+D*N(w,c,D)}if(!p&&I===P.currentValue)continue;if(P.currentValue=I,"tween"===O)h=I;else{var L;if(v.Hooks.registered[O]){L=v.Hooks.getRoot(O);var F=x(E).rootPropertyValueCache[L];F&&(P.rootPropertyValue=F)}var B=v.setPropertyValue(E,O,P.currentValue+(o<9&&0===parseFloat(I)?"":P.unitType),P.rootPropertyValue,P.scrollData);v.Hooks.registered[O]&&(v.Normalizations.registered[L]?x(E).rootPropertyValueCache[L]=v.Normalizations.registered[L]("extract",null,B[1]):x(E).rootPropertyValueCache[L]=B[1]),"transform"===B[0]&&(T=!0)}}c.mobileHA&&x(E).transformCache.translate3d===r&&(x(E).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&v.flushTransformCache(E)}}c.display!==r&&"none"!==c.display&&(m.State.calls[i][2].display=!1),c.visibility!==r&&"hidden"!==c.visibility&&(m.State.calls[i][2].visibility=!1),c.progress&&c.progress.call(s[1],s[1],w,Math.max(0,u+c.duration-t),u,h),1===w&&A(i)}}m.State.isTicking&&b(k)}function A(e,t){if(!m.State.calls[e])return!1;for(var n=m.State.calls[e][0],i=m.State.calls[e][1],o=m.State.calls[e][2],s=m.State.calls[e][4],a=!1,l=0,c=n.length;l<c;l++){var u=n[l].element;t||o.loop||("none"===o.display&&v.setPropertyValue(u,"display",o.display),"hidden"===o.visibility&&v.setPropertyValue(u,"visibility",o.visibility));var d=x(u);if(!0!==o.loop&&(f.queue(u)[1]===r||!/\.velocityQueueEntryFlag/i.test(f.queue(u)[1]))&&d){d.isAnimating=!1,d.rootPropertyValueCache={};var p=!1;f.each(v.Lists.transforms3D,(function(e,t){var n=/^scale/.test(t)?1:0,i=d.transformCache[t];d.transformCache[t]!==r&&new RegExp("^\\("+n+"[^.]").test(i)&&(p=!0,delete d.transformCache[t])})),o.mobileHA&&(p=!0,delete d.transformCache.translate3d),p&&v.flushTransformCache(u),v.Values.removeClass(u,"velocity-animating")}if(!t&&o.complete&&!o.loop&&l===c-1)try{o.complete.call(i,i)}catch(e){setTimeout((function(){throw e}),1)}s&&!0!==o.loop&&s(i),d&&!0===o.loop&&!t&&(f.each(d.tweensContainer,(function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var n=t.startValue;t.startValue=t.endValue,t.endValue=n}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)})),m(u,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&f.dequeue(u,o.queue)}m.State.calls[e]=!1;for(var h=0,g=m.State.calls.length;h<g;h++)if(!1!==m.State.calls[h]){a=!0;break}!1===a&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}))},263:function(e,t,n){var r=n(682),i=n(799);void 0===i.Tether&&(i.Tether=r),e.exports=r},669:function(e){"use strict";e.exports=jQuery}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";n(263),n(65),n(90),n(355),n(277);var e=prestashop,t=n.n(e),r=n(669),i=n.n(r);function o(e,t){const n=t.children().detach();t.empty().append(e.children().detach()),e.append(n)}function s(){t().responsive.mobile?i()("*[id^='_desktop_']").each(((e,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 <contact@prestashop.com>
 * @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<t().responsive.min_width,i()(window).on("resize",(()=>{const e=t().responsive.current_width,n=t().responsive.min_width,r=window.innerWidth,i=e>=n&&r<n||e<n&&r>=n;t().responsive.current_width=r,t().responsive.mobile=t().responsive.current_width<t().responsive.min_width,i&&s()})),i()(document).ready((()=>{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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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.attr("min"))&&(e.val(e.attr("min")),e.trigger("change"))})),i()("body").on("change keyup",t().selectors.quantityWanted,(n=>{""!==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        <article class="alert alert-danger" role="alert" data-alert="danger">\n          <ul>\n            <li>${p}</li>\n          </ul>\n        </article>\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<t.length;n+=1)r=t[n],0!==n&&(r=r.substring(0,1).toUpperCase()+r.substring(1)),i+=r;return i}function s(n,r){if(!function(e){return"on.startupspin"===e||"on.startdownspin"===e}(r))return{url:n.attr("href"),type:o(n.data("link-action"))};const i=function(n){const r=n.parents(t().themeSelectors.cart.touchspin).find(e);return r.is(":focus")?null:r}(n);if(!i)return!1;let s={};return s=function(e){return"on.startupspin"===e}(r)?{url:i.data("up-url"),type:"increaseProductQuantity"}:{url:i.data("down-url"),type:"decreaseProductQuantity"},s}const a=()=>{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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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("<br/>")}).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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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 <contact@prestashop.com>
 * @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"})}))}()}();