a.max?a.max:t),Number(n).toString()!==t.toString()&&(c.val(t),c.trigger("change"))):""!==a.replacementval&&(c.val(a.replacementval),c.trigger("change"))}function p(){if(a.booster){var e=Math.pow(2,Math.floor(u/a.boostat))*a.step;return a.maxboostedstep&&e>a.maxboostedstep&&(e=a.maxboostedstep,i=Math.round(i/e)*e),Math.max(a.step,e)}return a.step}function h(){d(),i=parseFloat(n.input.val());var e=i=isNaN(i)?0:i,t=p();(i+=t)>a.max&&(i=a.max,c.trigger("touchspin.on.max"),v()),n.input.val(Number(i).toFixed(a.decimals)),e!==i&&c.trigger("change")}function m(){d(),i=parseFloat(n.input.val());var e=i=isNaN(i)?0:i,t=p();(i-=t)'+a.prefix+"",s=''+a.postfix+"";i.hasClass("input-group-btn")?(t='",i.append(t)):(t='",S(t).insertBefore(c));r.hasClass("input-group-btn")?(n='",r.prepend(n)):(n='",S(n).insertAfter(c));S(o).insertBefore(c),S(s).insertAfter(c),l=e}(t):function(){var e;e=a.verticalbuttons?''+a.prefix+''+a.postfix+'
':''+a.prefix+''+a.postfix+'
";l=S(e).insertBefore(c),S(".bootstrap-touchspin-prefix",l).after(c),c.hasClass("input-sm")?l.addClass("input-group-sm"):c.hasClass("input-lg")&&l.addClass("input-group-lg")}()}(),n={down:S(".bootstrap-touchspin-down",l),up:S(".bootstrap-touchspin-up",l),input:S("input",l),prefix:S(".bootstrap-touchspin-prefix",l).addClass(a.prefix_extraclass),postfix:S(".bootstrap-touchspin-postfix",l).addClass(a.postfix_extraclass)},function(){""===a.prefix&&n.prefix.hide();""===a.postfix&&n.postfix.hide()}(),c.on("keydown",function(e){var t=e.keyCode||e.which;38===t?("up"!==f&&(h(),y()),e.preventDefault()):40===t&&("down"!==f&&(m(),g()),e.preventDefault())}),c.on("keyup",function(e){e=e.keyCode||e.which;38!==e&&40!==e||v()}),c.on("blur",function(){d()}),n.down.on("keydown",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("down"!==f&&(m(),g()),e.preventDefault())}),n.down.on("keyup",function(e){e=e.keyCode||e.which;32!==e&&13!==e||v()}),n.up.on("keydown",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("up"!==f&&(h(),y()),e.preventDefault())}),n.up.on("keyup",function(e){e=e.keyCode||e.which;32!==e&&13!==e||v()}),n.down.on("mousedown.touchspin",function(e){n.down.off("touchstart.touchspin"),c.is(":disabled")||(m(),g(),e.preventDefault(),e.stopPropagation())}),n.down.on("touchstart.touchspin",function(e){n.down.off("mousedown.touchspin"),c.is(":disabled")||(m(),g(),e.preventDefault(),e.stopPropagation())}),n.up.on("mousedown.touchspin",function(e){n.up.off("touchstart.touchspin"),c.is(":disabled")||(h(),y(),e.preventDefault(),e.stopPropagation())}),n.up.on("touchstart.touchspin",function(e){n.up.off("mousedown.touchspin"),c.is(":disabled")||(h(),y(),e.preventDefault(),e.stopPropagation())}),n.up.on("mouseout touchleave touchend touchcancel",function(e){f&&(e.stopPropagation(),v())}),n.down.on("mouseout touchleave touchend touchcancel",function(e){f&&(e.stopPropagation(),v())}),n.down.on("mousemove touchmove",function(e){f&&(e.stopPropagation(),e.preventDefault())}),n.up.on("mousemove touchmove",function(e){f&&(e.stopPropagation(),e.preventDefault())}),S(document).on(C(["mouseup","touchend","touchcancel"],_).join(" "),function(e){f&&(e.preventDefault(),v())}),S(document).on(C(["mousemove","touchmove","scroll","scrollstart"],_).join(" "),function(e){f&&(e.preventDefault(),v())}),c.on("mousewheel DOMMouseScroll",function(e){var t;a.mousewheel&&c.is(":focus")&&(t=e.originalEvent.wheelDelta||-e.originalEvent.deltaY||-e.originalEvent.detail,e.stopPropagation(),e.preventDefault(),(t<0?m:h)())}),c.on("touchspin.uponce",function(){v(),h()}),c.on("touchspin.downonce",function(){v(),m()}),c.on("touchspin.startupspin",function(){y()}),c.on("touchspin.startdownspin",function(){g()}),c.on("touchspin.stopspin",function(){v()}),c.on("touchspin.updatesettings",function(e,t){!function(e){(function(e){a=S.extend({},a,e)})(e),d();e=n.input.val();""!==e&&(e=Number(n.input.val()),n.input.val(e.toFixed(a.decimals)))}(t)}),n.input.css("display","block")))})}this.each(function(){var e=S(this).data();S(document).off(C(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],e.spinnerid).join(" "))})}}(jQuery)},249:function(){function m(e){return(m="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})(e)}if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e(e){var t=this,n=!1;return r(this).one(o.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||o.triggerTransitionEnd(t)},e),this}function i(e,t){for(var n=0;nthis._items.length-1||e<0))if(this._isSliding)a(this._element).one(u.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();this._slide(n .in, .card > .collapsing",e='[data-toggle="collapse"]',m=(g.prototype.toggle=function(){o(this._element).hasClass(l)?this.hide():this.show()},g.prototype.show=function(){var e,t,n,i,r=this;this._isTransitioning||o(this._element).hasClass(l)||(n=i=void 0,this._parent&&((i=o.makeArray(o(h))).length||(i=null)),i&&((n=o(i).data(s))&&n._isTransitioning)||(e=o.Event(a.SHOW),o(this._element).trigger(e),e.isDefaultPrevented()||(i&&(g._jQueryInterface.call(o(i),"hide"),n||o(i).data(s,null)),t=this._getDimension(),o(this._element).removeClass(c).addClass(u),this._element.style[t]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&o(this._triggerArray).removeClass(f).attr("aria-expanded",!0),this.setTransitioning(!0),n=function(){o(r._element).removeClass(u).addClass(c).addClass(l),r._element.style[t]="",r.setTransitioning(!1),o(r._element).trigger(a.SHOWN)},_.supportsTransitionEnd()?(i="scroll"+(t[0].toUpperCase()+t.slice(1)),o(this._element).one(_.TRANSITION_END,n).emulateTransitionEnd(600),this._element.style[t]=this._element[i]+"px"):n())))},g.prototype.hide=function(){var e=this;if(!this._isTransitioning&&o(this._element).hasClass(l)){var t=o.Event(a.HIDE);if(o(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element[n===d?"offsetWidth":"offsetHeight"]+"px",_.reflow(this._element),o(this._element).addClass(u).removeClass(c).removeClass(l),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&o(this._triggerArray).addClass(f).attr("aria-expanded",!1),this.setTransitioning(!0);t=function(){e.setTransitioning(!1),o(e._element).removeClass(u).addClass(c).trigger(a.HIDDEN)};return this._element.style[n]="",_.supportsTransitionEnd()?void o(this._element).one(_.TRANSITION_END,t).emulateTransitionEnd(600):void t()}}},g.prototype.setTransitioning=function(e){this._isTransitioning=e},g.prototype.dispose=function(){o.removeData(this._element,s),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},g.prototype._getConfig=function(e){return(e=o.extend({},r,e)).toggle=Boolean(e.toggle),_.typeCheckConfig(t,e,i),e},g.prototype._getDimension=function(){return o(this._element).hasClass(d)?d:p},g.prototype._getParent=function(){var n=this,e=o(this._config.parent)[0],t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return o(e).find(t).each(function(e,t){n._addAriaAndCollapsedClass(g._getTargetFromElement(t),[t])}),e},g.prototype._addAriaAndCollapsedClass=function(e,t){var n;e&&(n=o(e).hasClass(l),e.setAttribute("aria-expanded",n),t.length&&o(t).toggleClass(f,!n).attr("aria-expanded",n))},g._getTargetFromElement=function(e){e=_.getSelectorFromElement(e);return e?o(e)[0]:null},g._jQueryInterface=function(i){return this.each(function(){var e=o(this),t=e.data(s),n=o.extend({},r,e.data(),"object"===(void 0===i?"undefined":x(i))&&i);if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new g(this,n),e.data(s,t)),"string"==typeof i){if(void 0===t[i])throw new Error('No method named "'+i+'"');t[i]()}})},S(g,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return r}}]),g);function g(e,t){w(this,g),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=o.makeArray(o('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}o(document).on(a.CLICK_DATA_API,e,function(e){e.preventDefault();var t=m._getTargetFromElement(this),e=o(t).data(s)?"toggle":o(this).data();m._jQueryInterface.call(o(t),e)}),o.fn[t]=m._jQueryInterface,o.fn[t].Constructor=m,o.fn[t].noConflict=function(){return o.fn[t]=n,m._jQueryInterface}}(jQuery),function(a){var e="dropdown",n="bs.dropdown",t="."+n,i=".data-api",r=a.fn[e],l={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,CLICK:"click"+t,CLICK_DATA_API:"click"+t+i,KEYDOWN_DATA_API:"keydown"+t+i},o="dropdown-backdrop",s="disabled",c="open",u=".dropdown-backdrop",f='[data-toggle="dropdown"]',d=".dropdown form",p='[role="menu"]',i='[role="listbox"]',h=".navbar-nav",m='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',g=(y.prototype.toggle=function(){if(this.disabled||a(this).hasClass(s))return!1;var e=y._getParentFromElement(this),t=a(e).hasClass(c);if(y._clearMenus(),t)return!1;"ontouchstart"in document.documentElement&&!a(e).closest(h).length&&((n=document.createElement("div")).className=o,a(n).insertBefore(this),a(n).on("click",y._clearMenus));var t={relatedTarget:this},n=a.Event(l.SHOW,t);return a(e).trigger(n),!n.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),a(e).toggleClass(c),a(e).trigger(a.Event(l.SHOWN,t)),!1)},y.prototype.dispose=function(){a.removeData(this._element,n),a(this._element).off(t),this._element=null},y.prototype._addEventListeners=function(){a(this._element).on(l.CLICK,this.toggle)},y._jQueryInterface=function(t){return this.each(function(){var e=a(this).data(n);if(e||a(this).data(n,e=new y(this)),"string"==typeof t){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t].call(this)}})},y._clearMenus=function(e){if(!e||3!==e.which){var t=a(u)[0];t&&t.parentNode.removeChild(t);for(var n=a.makeArray(a(f)),i=0;idocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},m.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},m.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth=this._offsets[i]&&(void 0===this._offsets[i+1]||e .nav-item .fade, > .fade",p=".active",h="> .nav-item > .active, > .active",e='[data-toggle="tab"], [data-toggle="pill"]',m=".dropdown-toggle",g="> .dropdown-menu .active",n=(y.prototype.show=function(){var e,n,t,i,r,o,s=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&a(this._element).hasClass(c)||(n=e=void 0,o=a(this._element).closest(d)[0],t=_.getSelectorFromElement(this._element),o&&(n=(n=a.makeArray(a(o).find(p)))[n.length-1]),i=a.Event(l.HIDE,{relatedTarget:this._element}),r=a.Event(l.SHOW,{relatedTarget:n}),n&&a(n).trigger(i),a(this._element).trigger(r),r.isDefaultPrevented()||i.isDefaultPrevented()||(t&&(e=a(t)[0]),this._activate(this._element,o),o=function(){var e=a.Event(l.HIDDEN,{relatedTarget:s._element}),t=a.Event(l.SHOWN,{relatedTarget:n});a(n).trigger(e),a(s._element).trigger(t)},e?this._activate(e,e.parentNode,o):o()))},y.prototype.dispose=function(){a.removeClass(this._element,i),this._element=null},y.prototype._activate=function(e,t,n){var i=a(t).find(h)[0],t=n&&_.supportsTransitionEnd()&&(i&&a(i).hasClass(s)||Boolean(a(t).find(r)[0])),n=a.proxy(this._transitionComplete,this,e,i,t,n);i&&t?a(i).one(_.TRANSITION_END,n).emulateTransitionEnd(150):n(),i&&a(i).removeClass(u)},y.prototype._transitionComplete=function(e,t,n,i){var r;t&&(a(t).removeClass(c),(r=a(t).find(g)[0])&&a(r).removeClass(c),t.setAttribute("aria-expanded",!1)),a(e).addClass(c),e.setAttribute("aria-expanded",!0),n?(_.reflow(e),a(e).addClass(u)):a(e).removeClass(s),e.parentNode&&a(e.parentNode).hasClass(o)&&((n=a(e).closest(f)[0])&&a(n).find(m).addClass(c),e.setAttribute("aria-expanded",!0)),i&&i()},y._jQueryInterface=function(n){return this.each(function(){var e=a(this),t=e.data(i);if(t||(t=new y(this),e.data(i,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},S(y,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),y);function y(e){w(this,y),this._element=e}a(document).on(l.CLICK_DATA_API,e,function(e){e.preventDefault(),n._jQueryInterface.call(a(this),"show")}),a.fn.tab=n._jQueryInterface,a.fn.tab.Constructor=n,a.fn.tab.noConflict=function(){return a.fn.tab=t,n._jQueryInterface}}(jQuery),g=function(o){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var t="tooltip",i="bs.tooltip",e="."+i,n=o.fn[t],r={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},s={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"},a={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},l="in",c="out",u={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},f="fade",d="in",p=".tooltip-inner",h={element:!1,enabled:!1},m="hover",g="focus",y="manual",v=(b.prototype.enable=function(){this._isEnabled=!0},b.prototype.disable=function(){this._isEnabled=!1},b.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},b.prototype.toggle=function(e){var t,n;e?(t=this.constructor.DATA_KEY,(n=o(e.currentTarget).data(t))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),o(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):o(this.getTipElement()).hasClass(d)?this._leave(null,this):this._enter(null,this)},b.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),o.removeData(this.element,this.constructor.DATA_KEY),o(this.element).off(this.constructor.EVENT_KEY),this.tip&&o(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},b.prototype.show=function(){var e,t=this,n=o.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(o(this.element).trigger(n),e=o.contains(this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented()&&e&&(n=this.getTipElement(),e=_.getUID(this.constructor.NAME),n.setAttribute("id",e),this.element.setAttribute("aria-describedby",e),this.setContent(),this.config.animation&&o(n).addClass(f),e="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,e=this._getAttachment(e),o(n).data(this.constructor.DATA_KEY,this).appendTo(document.body),o(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:e,element:n,target:this.element,classes:h,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),_.reflow(n),this._tether.position(),o(n).addClass(d),n=function(){var e=t._hoverState;t._hoverState=null,o(t.element).trigger(t.constructor.Event.SHOWN),e===c&&t._leave(null,t)},_.supportsTransitionEnd()&&o(this.tip).hasClass(f)?o(this.tip).one(_.TRANSITION_END,n).emulateTransitionEnd(b._TRANSITION_DURATION):n()))},b.prototype.hide=function(e){function t(){n._hoverState!==l&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),o(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),e&&e()}var n=this,i=this.getTipElement(),r=o.Event(this.constructor.Event.HIDE);o(this.element).trigger(r),r.isDefaultPrevented()||(o(i).removeClass(d),_.supportsTransitionEnd()&&o(this.tip).hasClass(f)?o(i).one(_.TRANSITION_END,t).emulateTransitionEnd(150):t(),this._hoverState="")},b.prototype.isWithContent=function(){return Boolean(this.getTitle())},b.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},b.prototype.setContent=function(){var e=o(this.getTipElement());this.setElementContent(e.find(p),this.getTitle()),e.removeClass(f).removeClass(d),this.cleanupTether()},b.prototype.setElementContent=function(e,t){var n=this.config.html;"object"===(void 0===t?"undefined":x(t))&&(t.nodeType||t.jquery)?n?o(t).parent().is(e)||e.empty().append(t):e.text(o(t).text()):e[n?"html":"text"](t)},b.prototype.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},b.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},b.prototype._getAttachment=function(e){return a[e.toUpperCase()]},b.prototype._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?o(n.element).on(n.constructor.Event.CLICK,n.config.selector,o.proxy(n.toggle,n)):e!==y&&(t=e===m?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,e=e===m?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,o(n.element).on(t,n.config.selector,o.proxy(n._enter,n)).on(e,n.config.selector,o.proxy(n._leave,n)))}),this.config.selector?this.config=o.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},b.prototype._fixTitle=function(){var e=x(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",""))},b.prototype._enter=function(e,t){var n=this.constructor.DATA_KEY;return(t=t||o(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),o(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?g:m]=!0),o(t.getTipElement()).hasClass(d)||t._hoverState===l?void(t._hoverState=l):(clearTimeout(t._timeout),t._hoverState=l,t.config.delay&&t.config.delay.show?void(t._timeout=setTimeout(function(){t._hoverState===l&&t.show()},t.config.delay.show)):void t.show())},b.prototype._leave=function(e,t){var n=this.constructor.DATA_KEY;if((t=t||o(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),o(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?g:m]=!1),!t._isWithActiveTrigger())return clearTimeout(t._timeout),t._hoverState=c,t.config.delay&&t.config.delay.hide?void(t._timeout=setTimeout(function(){t._hoverState===c&&t.hide()},t.config.delay.hide)):void t.hide()},b.prototype._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},b.prototype._getConfig=function(e){return(e=o.extend({},this.constructor.Default,o(this.element).data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),_.typeCheckConfig(t,e,this.constructor.DefaultType),e},b.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},b._jQueryInterface=function(n){return this.each(function(){var e=o(this).data(i),t="object"===(void 0===n?"undefined":x(n))?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new b(this,t),o(this).data(i,e)),"string"==typeof n)){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})},S(b,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return r}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return u}},{key:"EVENT_KEY",get:function(){return e}},{key:"DefaultType",get:function(){return s}}]),b);function b(e,t){w(this,b),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}return o.fn[t]=v._jQueryInterface,o.fn[t].Constructor=v,o.fn[t].noConflict=function(){return o.fn[t]=n,v._jQueryInterface},v}(jQuery),function(i){var e,t="popover",r="bs.popover",n="."+r,o=i.fn[t],s=i.extend({},g.Default,{placement:"right",trigger:"click",content:"",template:''}),a=i.extend({},g.DefaultType,{content:"(string|element|function)"}),l="fade",c="in",u=".popover-title",f=".popover-content",d={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},p=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+m(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,e=g),h.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},h.prototype.getTipElement=function(){return this.tip=this.tip||i(this.config.template)[0]},h.prototype.setContent=function(){var e=i(this.getTipElement());this.setElementContent(e.find(u),this.getTitle()),this.setElementContent(e.find(f),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(n){return this.each(function(){var e=i(this).data(r),t="object"===(void 0===n?"undefined":x(n))?n:null;if((e||!/destroy|hide/.test(n))&&(e||(e=new h(this,t),i(this).data(r,e)),"string"==typeof n)){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})},S(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return a}}]),h);function h(){return w(this,h),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=m(t)&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}i.fn[t]=p._jQueryInterface,i.fn[t].Constructor=p,i.fn[t].noConflict=function(){return i.fn[t]=o,p._jQueryInterface}}(jQuery)},291:function(e){function t(e){return(t="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})(e)}function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(e){return"function"==typeof e}function c(e){return"object"===t(e)&&null!==e}function u(e){return void 0===e}((e.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,i,r,o,s;if(this._events||(this._events={}),"error"===e&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var a=new Error('Uncaught, unspecified "error" event. ('+t+")");throw a.context=t,a}if(u(n=this._events[e]))return!1;if(l(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),n.apply(this,r)}else if(c(n))for(r=Array.prototype.slice.call(arguments,1),i=(s=n.slice()).length,o=0;on&&(this._events[e].warned=!0,console.trace),this},i.prototype.once=function(e,t){if(!l(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var n,i,r,o;if(!l(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=(n=this._events[e]).length,i=-1,n===t||l(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(c(n)){for(o=r;0=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(r,e,t){e.exports=function(e){for(var t,n,i=-1;t=e.children[++i];)r("./flex-direction")(t,e.style.flexDirection);for(r("./flex-direction")(e,e.style.flexDirection),r("./order")(e),r("./flexbox-lines")(e),r("./align-content")(e),i=-1;n=e.lines[++i];)n.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-n.main,r("./flex-grow")(n),r("./flex-shrink")(n),r("./margin-main")(n),r("./margin-cross")(n),r("./justify-content")(n,e.style.justifyContent,e);r("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,n){t.exports=function(e,t,n){var i,r,o,n=n.flexStyle.mainInnerBefore,s=-1;if("flex-end"===t)for(i=e.mainSpace,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter;else if("center"===t)for(i=e.mainSpace/2,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter;else if("space-between"===t)for(r=e.mainSpace/(e.children.length-1),i=0,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter+r;else if("space-around"===t)for(i=(r=2*e.mainSpace/(2*e.children.length))/2,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter+r;else for(i=0,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter}},{}],9:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e.children[++n];){var i=0;"auto"===t.flexStyle.crossBefore&&++i,"auto"===t.flexStyle.crossAfter&&++i;var r=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=r/i),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=r/i),"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,i=-1;t=e.children[++i];)"auto"===t.flexStyle.mainBefore&&++n,"auto"===t.flexStyle.mainAfter&&++n;if(0e.left&&t.xe.top&&t.ys.longTapThreshold&&H=s.threshold:e}function d(){var e=!1;return e=null!==s.cancelThreshold&&null!==W?k(W)-H>=s.cancelThreshold:e}function p(){return!s.maxTimeThreshold||!(q>=s.maxTimeThreshold)}function h(){var e=v(),t=b(),n=null===s.pinchThreshold||Q>=s.pinchThreshold;return e&&t&&n}function m(){return s.pinchStatus||s.pinchIn||s.pinchOut}function g(){var e=p(),t=f(),n=v(),i=b();return!d()&&i&&n&&t&&e}function y(){return s.swipe||s.swipeStatus||s.swipeLeft||s.swipeRight||s.swipeUp||s.swipeDown}function v(){return Z===s.fingers||s.fingers===_e||!Oe}function b(){return 0!==J[0].end.x}function w(){return s.tap}function x(){return!!s.doubleTap}function S(){if(null==re)return!1;var e=N();return x()&&e-re<=s.doubleTapThreshold}function _(){ie=ne=0}function C(){var e=!1;return e=ne&&N()-ne<=s.fingerReleaseThreshold?!0:e}function T(e){X&&(!0===e?(X.on(F,n),X.on(L,i),V&&X.on(V,o)):(X.off(F,n,!1),X.off(L,i,!1),V&&X.off(V,o,!1)),X.data(De+"_intouch",!0===e))}function E(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,J[e]=n}function A(e){var t=void 0!==e.identifier?e.identifier:0,n=J[t]||null;return(n=null===n?E(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 k(e){return K[e]?K[e].distance:void 0}function O(e){return{direction:e,distance:0}}function I(){return te-ee}function P(e,t){var n=Math.abs(e.x-t.x),t=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+t*t))}function D(e,t){if(i=t,(n=e).x==i.x&&n.y==i.y)return he;var n,i,e=(i=t,e=(t=e).x-i.x,t=i.y-t.y,e=Math.atan2(t,e),e=(e=Math.round(180*e/Math.PI))<0?360-Math.abs(e):e);return e<=45&&0<=e||e<=360&&315<=e?le:135<=e&&e<=225?ce:45=0)i.push(r)}i.push(e.ownerDocument.body);if(e.ownerDocument!==document)i.push(e.ownerDocument.defaultView);return i}var o=function(){var e=0;return function(){return++e}}(),a={},l=function e(){var t=r;if(!t||!document.body.contains(t)){t=document.createElement("div");t.setAttribute("data-tether-id",o());S(t.style,{top:0,left:0,position:"absolute"});document.body.appendChild(t);r=t}var n=t.getAttribute("data-tether-id");if(typeof a[n]==="undefined"){a[n]=s(t);k(function(){delete a[n]})}return a[n]};function u(){if(r)document.body.removeChild(r);r=null}function C(e){var t=undefined;if(e===document){t=document;e=document.documentElement}else t=e.ownerDocument;var n=t.documentElement;var i=s(e);var r=l();i.top-=r.top;i.left-=r.left;if(typeof i.width==="undefined")i.width=document.body.scrollWidth-i.left-i.right;if(typeof i.height==="undefined")i.height=document.body.scrollHeight-i.top-i.bottom;i.top=i.top-n.clientTop;i.left=i.left-n.clientLeft;i.right=t.body.clientWidth-i.width-i.left;i.bottom=t.body.clientHeight-i.height-i.top;return i}function T(e){return e.offsetParent||document.documentElement}var f=null;function E(){if(f)return f;var e=document.createElement("div");e.style.width="100%";e.style.height="200px";var t=document.createElement("div");S(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 i=e.offsetWidth;if(n===i)i=t.clientWidth;document.body.removeChild(t);var r=n-i;f={width:r,height:r};return f}function S(){var n=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var e=[];Array.prototype.push.apply(e,arguments);e.slice(1).forEach(function(e){if(e)for(var t in e)if({}.hasOwnProperty.call(e,t))n[t]=e[t]});return n}function d(t,e){if(typeof t.classList!=="undefined")e.split(" ").forEach(function(e){if(e.trim())t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi");var i=m(t).replace(n," ");g(t,i)}}function p(t,e){if(typeof t.classList!=="undefined")e.split(" ").forEach(function(e){if(e.trim())t.classList.add(e)});else{d(t,e);var n=m(t)+(" "+e);g(t,n)}}function h(e,t){if(typeof e.classList!=="undefined")return e.classList.contains(t);var n=m(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function m(e){if(e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString)return e.className.baseVal;return e.className}function g(e,t){e.setAttribute("class",t)}function A(t,n,e){e.forEach(function(e){if(n.indexOf(e)===-1&&h(t,e))d(t,e)});n.forEach(function(e){if(!h(t,e))p(t,e)})}var n=[],k=function e(t){n.push(t)},O=function e(){var t=undefined;while(t=n.pop())t()},e=function(){function e(){i(this,e)}t(e,[{key:"on",value:function e(t,n,i){var r=arguments.length<=3||arguments[3]===undefined?false:arguments[3];if(typeof this.bindings==="undefined")this.bindings={};if(typeof this.bindings[t]==="undefined")this.bindings[t]=[];this.bindings[t].push({handler:n,ctx:i,once:r})}},{key:"once",value:function e(t,n,i){this.on(t,n,i,true)}},{key:"off",value:function e(t,n){if(typeof this.bindings==="undefined"||typeof this.bindings[t]==="undefined")return;if(typeof n==="undefined")delete this.bindings[t];else{var i=0;while(i1?i-1:0),o=1;o=t&&t>=e-n}var x=function(){if(typeof document==="undefined")return"";var e=document.createElement("div");var t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"];for(var n=0;n16){n=Math.min(n-16,250);i=setTimeout(e,250);return}if(typeof t!=="undefined"&&N()-t<10)return;if(i!=null){clearTimeout(i);i=null}t=N();D();n=N()-t};if(typeof window!=="undefined"&&typeof window.addEventListener!=="undefined")["resize","scroll","touchmove"].forEach(function(e){window.addEventListener(e,r)})})();var j={center:"center",left:"right",right:"left"},B={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},L=function e(t,n){var i=t.left;var r=t.top;if(i==="auto")i=j[n.left];if(r==="auto")r=B[n.top];return{left:i,top:r}},V=function e(t){var n=t.left;var i=t.top;if(typeof F[t.left]!=="undefined")n=F[t.left];if(typeof F[t.top]!=="undefined")i=F[t.top];return{left:n,top:i}};function M(){var i={top:0,left:0};for(var e=arguments.length,t=Array(e),n=0;ni.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body;var s=0;if(o)s=15;var a=t.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-s;var n={width:15,height:a*.975*(a/i.scrollHeight),left:t.left+t.width-parseFloat(r.borderLeftWidth)-15};var l=0;if(a<408&&this.target===document.body)l=-11e-5*Math.pow(a,2)-.00727*a+22.58;if(this.target!==document.body)n.height=Math.max(n.height,24);var c=this.target.scrollTop/(i.scrollHeight-a);n.top=c*(a-n.height-l)+t.top+parseFloat(r.borderTopWidth);if(this.target===document.body)n.height=Math.max(n.height,24);return n}}else return C(this.target)}},{key:"clearCache",value:function e(){this._cache={}}},{key:"cache",value:function e(t,n){if(typeof this._cache==="undefined")this._cache={};if(typeof this._cache[t]==="undefined")this._cache[t]=n.call(this);return this._cache[t]}},{key:"enable",value:function e(){var t=this;var n=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!(this.options.addTargetClasses===false))p(this.target,this.getClass("enabled"));p(this.element,this.getClass("enabled"));this.enabled=true;this.scrollParents.forEach(function(e){if(e!==t.target.ownerDocument)e.addEventListener("scroll",t.position)});if(n)this.position()}},{key:"disable",value:function e(){var t=this;d(this.target,this.getClass("enabled"));d(this.element,this.getClass("enabled"));this.enabled=false;if(typeof this.scrollParents!=="undefined")this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function e(){var n=this;this.disable();P.forEach(function(e,t){if(e===n)P.splice(t,1)});if(P.length===0)u()}},{key:"updateAttachClasses",value:function e(t,n){var i=this;t=t||this.attachment;n=n||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];if(typeof this._addAttachClasses!=="undefined"&&this._addAttachClasses.length)this._addAttachClasses.splice(0,this._addAttachClasses.length);if(typeof this._addAttachClasses==="undefined")this._addAttachClasses=[];var o=this._addAttachClasses;if(t.top)o.push(this.getClass("element-attached")+"-"+t.top);if(t.left)o.push(this.getClass("element-attached")+"-"+t.left);if(n.top)o.push(this.getClass("target-attached")+"-"+n.top);if(n.left)o.push(this.getClass("target-attached")+"-"+n.left);var s=[];r.forEach(function(e){s.push(i.getClass("element-attached")+"-"+e);s.push(i.getClass("target-attached")+"-"+e)});k(function(){if(!(typeof i._addAttachClasses!=="undefined"))return;A(i.element,i._addAttachClasses,s);if(!(i.options.addTargetClasses===false))A(i.target,i._addAttachClasses,s);delete i._addAttachClasses})}},{key:"position",value:function e(){var a=this;var t=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!this.enabled)return;this.clearCache();var n=L(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return C(a.element)});var r=i.width;var o=i.height;if(r===0&&o===0&&typeof this.lastSize!=="undefined"){var s=this.lastSize;r=s.width;o=s.height}else this.lastSize={width:r,height:o};var l=this.cache("target-bounds",function(){return a.getTargetBounds()});var c=l;var u=H(V(this.attachment),{width:r,height:o});var f=H(V(n),c);var d=H(this.offset,{width:r,height:o});var p=H(this.targetOffset,c);u=M(u,d);f=M(f,p);var h=l.left+f.left-u.left;var m=l.top+f.top-u.top;for(var g=0;g<_.modules.length;++g){var y=_.modules[g];var v=y.position.call(this,{left:h,top:m,targetAttachment:n,targetPos:l,elementPos:i,offset:u,targetOffset:f,manualOffset:d,manualTargetOffset:p,scrollbarSize:S,attachment:this.attachment});if(v===false)return false;else if(typeof v==="undefined"||Q(v)!=="object")continue;else{m=v.top;h=v.left}}var b={page:{top:m,left:h},viewport:{top:m-pageYOffset,bottom:pageYOffset-m-o+innerHeight,left:h-pageXOffset,right:pageXOffset-h-r+innerWidth}};var w=this.target.ownerDocument;var x=w.defaultView;var S=undefined;if(x.innerHeight>w.documentElement.clientHeight){S=this.cache("scrollbar-size",E);b.viewport.bottom-=S.height}if(x.innerWidth>w.documentElement.clientWidth){S=this.cache("scrollbar-size",E);b.viewport.right-=S.width}if(["","static"].indexOf(w.body.style.position)===-1||["","static"].indexOf(w.body.parentElement.style.position)===-1){b.page.bottom=w.body.scrollHeight-m-o;b.page.right=w.body.scrollWidth-h-r}if(typeof this.options.optimizations!=="undefined"&&this.options.optimizations.moveElement!==false&&!(typeof this.targetModifier!=="undefined"))(function(){var e=a.cache("target-offsetparent",function(){return T(a.target)});var t=a.cache("target-offsetparent-bounds",function(){return C(e)});var n=getComputedStyle(e);var i=t;var r={};["Top","Left","Bottom","Right"].forEach(function(e){r[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])});t.right=w.body.scrollWidth-t.left-i.width+r.right;t.bottom=w.body.scrollHeight-t.top-i.height+r.bottom;if(b.page.top>=t.top+r.top&&b.page.bottom>=t.bottom)if(b.page.left>=t.left+r.left&&b.page.right>=t.right){var o=e.scrollTop;var s=e.scrollLeft;b.offset={top:b.page.top-t.top+o-r.top,left:b.page.left-t.left+s-r.left}}})();this.move(b);this.history.unshift(b);if(this.history.length>3)this.history.pop();if(t)O();return true}},{key:"move",value:function e(t){var a=this;if(!(typeof this.element.parentNode!=="undefined"))return;var n={};for(var i in t){n[i]={};for(var r in t[i]){var o=false;for(var s=0;s=0){var s=n.split(" ");var a=I(s,2);o=a[0];r=a[1]}else r=o=n;var l=$(f,t);if(o==="target"||o==="both"){if(dl[3]&&w.top==="bottom"){d-=y;w.top="top"}}if(o==="together"){if(w.top==="top")if(x.top==="bottom"&&dl[3]&&d-(m-y)>=l[1]){d-=m-y;w.top="bottom";x.top="bottom"}if(w.top==="bottom")if(x.top==="top"&&d+m>l[3]){d-=y;w.top="top";d-=m;x.top="bottom"}else if(x.top==="bottom"&&dl[3]&&x.top==="top"){d-=m;x.top="bottom"}else if(dl[2]&&w.left==="right"){p-=v;w.left="left"}}if(r==="together")if(pl[2]&&w.left==="right"){if(x.left==="left"){p-=v;w.left="left";p-=g;x.left="right"}else if(x.left==="right"){p-=v;w.left="left";p+=g;x.left="left"}}else if(w.left==="center")if(p+g>l[2]&&x.left==="left"){p-=g;x.left="right"}else if(pl[3]&&x.top==="top"){d-=m;x.top="bottom"}}if(r==="element"||r==="both"){if(pl[2])if(x.left==="left"){p-=g;x.left="right"}else if(x.left==="center"){p-=g/2;x.left="right"}}if(typeof i==="string")i=i.split(",").map(function(e){return e.trim()});else if(i===true)i=["top","left","right","bottom"];i=i||[];var c=[];var u=[];if(d=0){d=l[1];c.push("top")}else u.push("top");if(d+m>l[3])if(i.indexOf("bottom")>=0){d=l[3]-m;c.push("bottom")}else u.push("bottom");if(p=0){p=l[0];c.push("left")}else u.push("left");if(p+g>l[2])if(i.indexOf("right")>=0){p=l[2]-g;c.push("right")}else u.push("right");if(c.length)(function(){var t=undefined;if(typeof f.options.pinnedClass!=="undefined")t=f.options.pinnedClass;else t=f.getClass("pinned");b.push(t);c.forEach(function(e){b.push(t+"-"+e)})})();if(u.length)(function(){var t=undefined;if(typeof f.options.outOfBoundsClass!=="undefined")t=f.options.outOfBoundsClass;else t=f.getClass("out-of-bounds");b.push(t);u.forEach(function(e){b.push(t+"-"+e)})})();if(c.indexOf("left")>=0||c.indexOf("right")>=0)x.left=w.left=false;if(c.indexOf("top")>=0||c.indexOf("bottom")>=0)x.top=w.top=false;if(w.top!==h.top||w.left!==h.left||x.top!==f.attachment.top||x.left!==f.attachment.left){f.updateAttachClasses(x,w);f.trigger("update",{attachment:x,targetAttachment:w})}});k(function(){if(!(f.options.addTargetClasses===false))A(f.target,b,o);A(f.element,b,o)});return{top:d,left:p}}});var b,C=(b=_.Utils).getBounds,A=b.updateClasses,k=b.defer;_.modules.push({position:function e(t){var n=this;var i=t.top;var r=t.left;var o=this.cache("element-bounds",function(){return C(n.element)});var s=o.height;var a=o.width;var l=this.getTargetBounds();var c=i+s;var u=r+a;var f=[];if(i<=l.bottom&&c>=l.top)["left","right"].forEach(function(e){var t=l[e];if(t===r||t===u)f.push(e)});if(r<=l.right&&u>=l.left)["top","bottom"].forEach(function(e){var t=l[e];if(t===i||t===c)f.push(e)});var d=[];var p=[];var h=["left","top","right","bottom"];d.push(this.getClass("abutted"));h.forEach(function(e){d.push(n.getClass("abutted")+"-"+e)});if(f.length)p.push(this.getClass("abutted"));f.forEach(function(e){p.push(n.getClass("abutted")+"-"+e)});k(function(){if(!(n.options.addTargetClasses===false))A(n.target,p,d);A(n.element,p,d)});return true}});var I=function(){function n(e,t){var n=[];var i=true;var r=false;var o=undefined;try{for(var s=e[Symbol.iterator](),a;!(i=(a=s.next()).done);i=true){n.push(a.value);if(t&&n.length===t)break}}catch(e){r=true;o=e}finally{try{if(!i&&s["return"])s["return"]()}finally{if(r)throw o}}return n}return function(e,t){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return n(e,t);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return _.modules.push({position:function e(t){var n=t.top;var i=t.left;if(!this.options.shift)return;var r=this.options.shift;if(typeof this.options.shift==="function")r=this.options.shift.call(this,{top:n,left:i});var o=undefined,s=undefined;if(typeof r==="string"){r=r.split(" ");r[1]=r[1]||r[0];var a=r;var l=I(a,2);o=l[0];s=l[1];o=parseFloat(o,10);s=parseFloat(s,10)}else{o=r.top;s=r.left}n+=o;i+=s;return{top:n,left:i}}}),z})?n.apply(t,[]):n)||(e.exports=n)},225:function(t,n,i){var r;function u(e){return(u="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})(e)}t=i.nmd(t),function(t){"use strict";if(!t.jQuery){var c=function e(t,n){return new e.fn.init(t,n)};c.isWindow=function(e){return e&&e===e.window},c.type=function(e){return e?"object"===u(e)||"function"==typeof e?n[o.call(e)]||"object":u(e):e+""},c.isArray=Array.isArray||function(e){return"array"===c.type(e)},c.isPlainObject=function(e){if(!e||"object"!==c.type(e)||e.nodeType||c.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(var t in e);return void 0===t||i.call(e,t)},c.each=function(e,t,n){var i=0,r=e.length,o=a(e);if(n){if(o)for(;ic&&++ol()(".js-qv-mask").height()&&(i("down"),l()(a().themeSelectors.arrowUp).css("opacity","1"))}),e.find(a().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}),l()(a().themeSelectors.touchspin).off("touchstart.touchspin")},i=function(e){var t=l()(".js-qv-product-images"),n=l()(".js-qv-product-images li img").height()+20,i=t.position().top;t.velocity({translateY:"up"===e?i+n:i-n},function(){0<=t.position().top?l()(".arrow-up").css("opacity",".2"):t.position().top+t.height()<=l()(".js-qv-mask").height()&&l()(".arrow-down").css("opacity",".2")})};l()("body").on("click",a().themeSelectors.listing.searchFilterToggler,function(){l()(a().themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"),l()(a().themeSelectors.contentWrapper).addClass("hidden-sm-down"),l()(a().themeSelectors.footer).addClass("hidden-sm-down")}),l()("".concat(a().themeSelectors.listing.searchFilterControls," ").concat(a().themeSelectors.clear)).on("click",function(){l()(a().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),l()(a().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),l()(a().themeSelectors.footer).removeClass("hidden-sm-down")}),l()("".concat(a().themeSelectors.listing.searchFilterControls," .ok")).on("click",function(){l()(a().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),l()(a().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),l()(a().themeSelectors.footer).removeClass("hidden-sm-down")});function t(e){if(void 0!==e.target.dataset.searchUrl)return e.target.dataset.searchUrl;if(void 0===l()(e.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return l()(e.target).parent()[0].dataset.searchUrl}l()("body").on("change","".concat(a().themeSelectors.listing.searchFilters," input[data-search-url]"),function(e){a().emit("updateFacets",t(e))}),l()("body").on("click",a().themeSelectors.listing.searchFiltersClearAll,function(e){a().emit("updateFacets",t(e))}),l()("body").on("click",a().themeSelectors.listing.searchLink,function(e){e.preventDefault(),a().emit("updateFacets",l()(e.target).closest("a").get(0).href)}),window.addEventListener("popstate",function(e){e.state&&e.state.current_url&&(window.location.href=e.state.current_url)}),l()("body").on("change","".concat(a().themeSelectors.listing.searchFilters," select"),function(e){e=l()(e.target).closest("form");a().emit("updateFacets","?".concat(e.serialize()))}),a().on("updateProductList",function(e){!function(e){l()(a().themeSelectors.listing.searchFilters).replaceWith(e.rendered_facets),l()(a().themeSelectors.listing.activeSearchFilters).replaceWith(e.rendered_active_filters),l()(a().themeSelectors.listing.listTop).replaceWith(e.rendered_products_top);var t=l()(e.rendered_products),n=l()(a().themeSelectors.listing.product);0l()(".js-modal-mask").height()&&(t.move("down"),l()(".js-modal-arrow-up").css("opacity","1"))})}},{key:"move",value:function(e){var t=l()(".js-modal-product-images"),n=l()(".js-modal-product-images li img").height()+10,i=t.position().top;t.velocity({translateY:"up"===e?i+n:i-n},function(){0<=t.position().top?l()(".js-modal-arrow-up").css("opacity",".2"):t.position().top+t.height()<=l()(".js-modal-mask").height()&&l()(".js-modal-arrow-down").css("opacity",".2")})}}])&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();l()(document).ready(function(){var t,e;function i(){function i(e,t){t=t.find(a().themeSelectors.product.thumb),l()(a().themeSelectors.product.modalProductCover).attr("src",t.data("image-large-src")),e.removeClass("selected"),t.addClass("selected"),n.prop("src",t.data("image-medium-src"))}var n=l()(a().themeSelectors.product.cover),r=l()(a().themeSelectors.product.selected);l()(a().themeSelectors.product.thumb).on("click",function(e){r=l()(a().themeSelectors.product.selected),i(r,l()(e.target).closest(a().themeSelectors.product.thumbContainer))}),n.swipe({swipe:function(e,t){var n=(r=l()(a().themeSelectors.product.selected)).closest(a().themeSelectors.product.thumbContainer);"right"===t?0"),l()("#notifications .container").html(e),p="",d=!1,n&&t.removeClass("disabled")):!n&&d&&(d=n=!1,l()("#notifications .container").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(e){n=e.hasOwnProperty("hasError");e=e.errors||"";p=e instanceof Array?e.join(" "):e,d=!0}},e=k(291),t=k.n(e);function g(e,t){for(var n=0;n