/*! For license information please see 369.470ae1732a9433541922.min.js.LICENSE.txt */
(self.webpackChunkwhitelabel=self.webpackChunkwhitelabel||[]).push([[369],{9168:function(t,e,i){"use strict";var s,a,n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="object"===("undefined"==typeof window?"undefined":o(window));a=[i(4692)],s=function(t){var e,i="slider",s="bootstrapSlider";return r&&!window.console&&(window.console={}),r&&!window.console.log&&(window.console.log=function(){}),r&&!window.console.warn&&(window.console.warn=function(){}),function(t){var e=Array.prototype.slice;function i(){}function s(t){if(t){var s="undefined"==typeof console?i:function(t){console.error(t)};return t.bridget=function(t,e){a(e),n(t,e)},t.bridget}function a(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function n(i,a){t.fn[i]=function(n){if("string"==typeof n){for(var o=e.call(arguments,1),r=0,h=this.length;r<h;r++){var l=this[r],d=t.data(l,i);if(d)if(t.isFunction(d[n])&&"_"!==n.charAt(0)){var c=d[n].apply(d,o);if(void 0!==c&&c!==d)return c}else s("no such method '"+n+"' for "+i+" instance");else s("cannot call methods on "+i+" prior to initialization; attempted to call '"+n+"'")}return this}var p=this.map((function(){var e=t.data(this,i);return e?(e.option(n),e._init()):(e=new a(this,n),t.data(this,i,e)),t(this)}));return!p||p.length>1?p:p[0]}}}s(t)}(t),function(t){var a=void 0,n={formatInvalidInputErrorMsg:function(t){return"Invalid input value '"+t+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},o={linear:{getValue:function(t,e){return t<e.min?e.min:t>e.max?e.max:t},toValue:function(t){var e=t/100*(this.options.max-this.options.min),i=!0;if(this.options.ticks_positions.length>0){for(var s,a,n,r=0,h=1;h<this.options.ticks_positions.length;h++)if(t<=this.options.ticks_positions[h]){s=this.options.ticks[h-1],n=this.options.ticks_positions[h-1],a=this.options.ticks[h],r=this.options.ticks_positions[h];break}e=s+(t-n)/(r-n)*(a-s),i=!1}var l=(i?this.options.min:0)+Math.round(e/this.options.step)*this.options.step;return o.linear.getValue(l,this.options)},toPercentage:function(t){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var e,i,s,a=0,n=0;n<this.options.ticks.length;n++)if(t<=this.options.ticks[n]){e=n>0?this.options.ticks[n-1]:0,s=n>0?this.options.ticks_positions[n-1]:0,i=this.options.ticks[n],a=this.options.ticks_positions[n];break}if(n>0)return s+(t-e)/(i-e)*(a-s)}return 100*(t-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(t){var e=1-this.options.min,i=Math.log(this.options.min+e),s=Math.log(this.options.max+e),a=Math.exp(i+(s-i)*t/100)-e;return Math.round(a)===s?s:(a=this.options.min+Math.round((a-this.options.min)/this.options.step)*this.options.step,o.linear.getValue(a,this.options))},toPercentage:function(t){if(this.options.max===this.options.min)return 0;var e=1-this.options.min,i=Math.log(this.options.max+e),s=Math.log(this.options.min+e);return 100*(Math.log(t+e)-s)/(i-s)}}};function h(e,i){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof e?this.element=document.querySelector(e):e instanceof HTMLElement&&(this.element=e),i=i||{};for(var s=Object.keys(this.defaultOptions),a=i.hasOwnProperty("min"),n=i.hasOwnProperty("max"),r=0;r<s.length;r++){var h=s[r],l=i[h];l=null!==(l=void 0!==l?l:c(this.element,h))?l:this.defaultOptions[h],this.options||(this.options={}),this.options[h]=l}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var d=window.getComputedStyle(this.element);this.options.rtl=null!=d?"rtl"===d.direction:"rtl"===this.element.style.direction}function c(t,e){var i="data-slider-"+e.replace(/_/g,"-"),s=t.getAttribute(i);try{return JSON.parse(s)}catch(t){return s}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var p,u,m,f,v,g=this.element.style.width,y=!1,k=this.element.parentNode;if(this.sliderElem)y=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var b=document.createElement("div");b.className="slider-track",(u=document.createElement("div")).className="slider-track-low",(p=document.createElement("div")).className="slider-selection",(m=document.createElement("div")).className="slider-track-high",(f=document.createElement("div")).className="slider-handle min-slider-handle",f.setAttribute("role","slider"),f.setAttribute("aria-valuemin",this.options.min),f.setAttribute("aria-valuemax",this.options.max),(v=document.createElement("div")).className="slider-handle max-slider-handle",v.setAttribute("role","slider"),v.setAttribute("aria-valuemin",this.options.min),v.setAttribute("aria-valuemax",this.options.max),b.appendChild(u),b.appendChild(p),b.appendChild(m),this.rangeHighlightElements=[];var _=this.options.rangeHighlights;if(Array.isArray(_)&&_.length>0)for(var C=0;C<_.length;C++){var D=document.createElement("div"),w=_[C].class||"";D.className="slider-rangeHighlight slider-selection "+w,this.rangeHighlightElements.push(D),b.appendChild(D)}var x=Array.isArray(this.options.labelledby);if(x&&this.options.labelledby[0]&&f.setAttribute("aria-labelledby",this.options.labelledby[0]),x&&this.options.labelledby[1]&&v.setAttribute("aria-labelledby",this.options.labelledby[1]),!x&&this.options.labelledby&&(f.setAttribute("aria-labelledby",this.options.labelledby),v.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",r=0;r<this.options.ticks.length;r++){var E=document.createElement("div");if(E.className="slider-tick",this.options.ticks_tooltip){var P=this._addTickListener(),M=P.addMouseEnter(this,E,r),L=P.addMouseLeave(this,E);this.ticksCallbackMap[r]={mouseEnter:M,mouseLeave:L}}this.ticks.push(E),this.ticksContainer.appendChild(E)}p.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",r=0;r<this.options.ticks_labels.length;r++){var T=document.createElement("div"),S=0===this.options.ticks_positions.length,Y=this.options.reversed&&S?this.options.ticks_labels.length-(r+1):r;T.className="slider-tick-label",T.innerHTML=this.options.ticks_labels[Y],this.tickLabels.push(T),this.tickLabelContainer.appendChild(T)}var A=function(t){var e=document.createElement("div");e.className="tooltip-arrow";var i=document.createElement("div");i.className="tooltip-inner",t.appendChild(e),t.appendChild(i)},$=document.createElement("div");$.className="tooltip tooltip-main",$.setAttribute("role","presentation"),A($);var I=document.createElement("div");I.className="tooltip tooltip-min",I.setAttribute("role","presentation"),A(I);var N=document.createElement("div");N.className="tooltip tooltip-max",N.setAttribute("role","presentation"),A(N),this.sliderElem.appendChild(b),this.sliderElem.appendChild($),this.sliderElem.appendChild(I),this.sliderElem.appendChild(N),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(f),this.sliderElem.appendChild(v),k.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(t&&(this.$element=t(this.element),this.$sliderElem=t(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),o[this.options.scale]&&(this.options.scale=o[this.options.scale]),!0===y&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach((function(t){this._removeProperty(this.trackLow,t),this._removeProperty(this.trackSelection,t),this._removeProperty(this.trackHigh,t)}),this),[this.handle1,this.handle2].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top"),this._removeClass(t,"right"),this._removeClass(t,"left"),this._removeClass(t,"top")}),this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=g,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(n||(this.options.max=Math.max.apply(Math,this.options.ticks)),a||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=u||this.trackLow,this.trackSelection=p||this.trackSelection,this.trackHigh=m||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=f||this.handle1,this.handle2=v||this.handle2,!0===y)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),r=0;r<this.ticks.length;r++)this._removeClass(this.ticks[r],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),r=0;r<this.ticks.length;r++)this._addClass(this.ticks[r],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var H=this._addTickListener(),B=H.addMouseEnter(this,this.handle1),V=H.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:B,mouseLeave:V},B=H.addMouseEnter(this,this.handle2),V=H.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:B,mouseLeave:V}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(e=function(t,e){return h.call(this,t,e),this}).prototype={_init:function(){},constructor:e,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(t){return Array.isArray(t)?t[0]+" : "+t[1]:t},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(t,e,i){t||(t=0);var s=this.getValue();this._state.value=this._validateInputValue(t);var a=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=a(this._state.value[0]),this._state.value[1]=a(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=a(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var n=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(n),!0===e&&this._trigger("slide",n),(Array.isArray(n)?s[0]!==n[0]||s[1]!==n[1]:s!==n)&&!0===i&&this._trigger("change",{oldValue:s,newValue:n}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),t&&(this._unbindJQueryEventHandlers(),a===i&&this.$element.removeData(a),this.$element.removeData(s))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(t,e){return this._bindNonQueryEventHandler(t,e),this},off:function(e,i){t?(this.$element.off(e,i),this.$sliderElem.off(e,i)):this._unbindNonQueryEventHandler(e,i)},getAttribute:function(t){return t?this.options[t]:this.options},setAttribute:function(t,e){return this.options[t]=e,this},refresh:function(e){var n=this.getValue();return this._removeSliderEventHandlers(),h.call(this,this.element,this.options),e&&!0===e.useCurrentValue&&this.setValue(n),t&&(a===i?(t.data(this.element,i,this),t.data(this.element,s,this)):t.data(this.element,s,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(t,e){this.handle1.removeEventListener(t,e,!1),this.handle2.removeEventListener(t,e,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var t=this.ticksContainer.getElementsByClassName("slider-tick"),e=0;e<t.length;e++)t[e].removeEventListener("mouseenter",this.ticksCallbackMap[e].mouseEnter,!1),t[e].removeEventListener("mouseleave",this.ticksCallbackMap[e].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(t,e){void 0===this.eventToCallbackMap[t]&&(this.eventToCallbackMap[t]=[]),this.eventToCallbackMap[t].push(e)},_unbindNonQueryEventHandler:function(t,e){var i=this.eventToCallbackMap[t];if(void 0!==i)for(var s=0;s<i.length;s++)if(i[s]===e){i.splice(s,1);break}},_cleanUpEventCallbacksMap:function(){for(var t=Object.keys(this.eventToCallbackMap),e=0;e<t.length;e++){var i=t[e];delete this.eventToCallbackMap[i]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in")),this._state.over=!1},_setToolTipOnMouseOver:function(t){var e=this,i=this.options.formatter(t?t.value[0]:this._state.value[0]),s=a(t||this._state,this.options.reversed);function a(t,i){return i?[100-t.percentage[0],e.options.range?100-t.percentage[1]:t.percentage[1]]:[t.percentage[0],t.percentage[1]]}this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=s[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(t,e,i){var s=function(){var s=t._copyState(),a=e===t.handle1?s.value[0]:s.value[1],n=void 0;void 0!==i?(a=t.options.ticks[i],n=t.options.ticks_positions.length>0&&t.options.ticks_positions[i]||t._toPercentage(t.options.ticks[i])):n=t._toPercentage(a),s.value[0]=a,s.percentage[0]=n,t._setToolTipOnMouseOver(s),t._showTooltip()};return e.addEventListener("mouseenter",s,!1),s},addMouseLeave:function(t,e){var i=function(){t._hideTooltip()};return e.addEventListener("mouseleave",i,!1),i}}},_layout:function(){var t,e,i;if(t=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=t[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),e=this.options.formatter(this._state.value[0]),isNaN(e)?this.handle1.setAttribute("aria-valuetext",e):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=t[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),e=this.options.formatter(this._state.value[1]),isNaN(e)?this.handle2.setAttribute("aria-valuetext",e):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var s=0;s<this.options.rangeHighlights.length;s++){var a=this._toPercentage(this.options.rangeHighlights[s].start),n=this._toPercentage(this.options.rangeHighlights[s].end);if(this.options.reversed){var o=100-n;n=100-a,a=o}var r=this._createHighlightRange(a,n);r?"vertical"===this.options.orientation?(this.rangeHighlightElements[s].style.top=r.start+"%",this.rangeHighlightElements[s].style.height=r.size+"%"):(this.options.rtl?this.rangeHighlightElements[s].style.right=r.start+"%":this.rangeHighlightElements[s].style.left=r.start+"%",this.rangeHighlightElements[s].style.width=r.size+"%"):this.rangeHighlightElements[s].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var h,l="vertical"===this.options.orientation?"height":"width";h="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var d=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var c=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[h]=-d/2+"px"),c=this.tickLabelContainer.offsetHeight;else for(p=0;p<this.tickLabelContainer.childNodes.length;p++)this.tickLabelContainer.childNodes[p].offsetHeight>c&&(c=this.tickLabelContainer.childNodes[p].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=c+"px")}for(var p=0;p<this.options.ticks.length;p++){var u=this.options.ticks_positions[p]||this._toPercentage(this.options.ticks[p]);this.options.reversed&&(u=100-u),this.ticks[p].style[this.stylePos]=u+"%",this._removeClass(this.ticks[p],"in-selection"),this.options.range?u>=t[0]&&u<=t[1]&&this._addClass(this.ticks[p],"in-selection"):("after"===this.options.selection&&u>=t[0]||"before"===this.options.selection&&u<=t[0])&&this._addClass(this.ticks[p],"in-selection"),this.tickLabels[p]&&(this.tickLabels[p].style[l]=d+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[p]?(this.tickLabels[p].style.position="absolute",this.tickLabels[p].style[this.stylePos]=u+"%",this.tickLabels[p].style[h]=-d/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[p].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[p].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[h]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[p],"label-in-selection label-is-selection"),this.options.range?u>=t[0]&&u<=t[1]&&(this._addClass(this.tickLabels[p],"label-in-selection"),(u===t[0]||t[1])&&this._addClass(this.tickLabels[p],"label-is-selection")):(("after"===this.options.selection&&u>=t[0]||"before"===this.options.selection&&u<=t[0])&&this._addClass(this.tickLabels[p],"label-in-selection"),u===t[0]&&this._addClass(this.tickLabels[p],"label-is-selection")))}}if(this.options.range){i=this.options.formatter(this._state.value),this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=(t[1]+t[0])/2+"%";var m=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,m);var f=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,f),this.tooltip_min.style[this.stylePos]=t[0]+"%",this.tooltip_max.style[this.stylePos]=t[1]+"%"}else i=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=t[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(t[0],t[1])+"%",this.trackSelection.style.top=Math.min(t[0],t[1])+"%",this.trackSelection.style.height=Math.abs(t[0]-t[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(t[0],t[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(t[0],t[1])+"%":this.trackSelection.style.left=Math.min(t[0],t[1])+"%",this.trackSelection.style.width=Math.abs(t[0]-t[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";var v=this.tooltip_min.getBoundingClientRect(),g=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?v.right>g.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):v.right>g.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(t,e){return this._isHighlightRange(t,e)?t>e?{start:e,size:t-e}:{start:t,size:e-t}:null},_isHighlightRange:function(t,e){return 0<=t&&t<=100&&0<=e&&e<=100},_resize:function(t){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},_mousedown:function(t){if(!this._state.enabled)return!1;t.preventDefault&&t.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var e=this._getPercentage(t);if(this.options.range){var i=Math.abs(this._state.percentage[0]-e),s=Math.abs(this._state.percentage[1]-e);this._state.dragged=i<s?0:1,this._adjustPercentageForRangeSliders(e)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=e,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var a=this._calculateValue();return this._trigger("slideStart",a),this.setValue(a,!1,!0),t.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(t){this._mousedown(t)},_triggerFocusOnHandle:function(t){0===t&&this.handle1.focus(),1===t&&this.handle2.focus()},_keydown:function(t,e){if(!this._state.enabled)return!1;var i;switch(e.keyCode){case 37:case 40:i=-1;break;case 39:case 38:i=1}if(i){if(this.options.natural_arrow_keys){var s="horizontal"===this.options.orientation,a="vertical"===this.options.orientation,n=this.options.rtl,o=this.options.reversed;s?n?o||(i=-i):o&&(i=-i):a&&(o||(i=-i))}var r;if(this.ticksAreValid&&this.options.lock_to_ticks){var h=void 0;-1===(h=this.options.ticks.indexOf(this._state.value[t]))&&(h=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),h+=i,h=Math.max(0,Math.min(this.options.ticks.length-1,h)),r=this.options.ticks[h]}else r=this._state.value[t]+i*this.options.step;var l=this._toPercentage(r);if(this._state.keyCtrl=t,this.options.range){this._adjustPercentageForRangeSliders(l);var d=this._state.keyCtrl?this._state.value[0]:r,c=this._state.keyCtrl?r:this._state.value[1];r=[Math.max(this.options.min,Math.min(this.options.max,d)),Math.max(this.options.min,Math.min(this.options.max,c))]}else r=Math.max(this.options.min,Math.min(this.options.max,r));return this._trigger("slideStart",r),this.setValue(r,!0,!0),this._trigger("slideStop",r),this._pauseEvent(e),delete this._state.keyCtrl,!1}},_pauseEvent:function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1},_mousemove:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e;var i=this._calculateValue(!0);return this.setValue(i,!0,!0),!1},_touchmove:function(t){void 0!==t.changedTouches&&t.preventDefault&&t.preventDefault()},_adjustPercentageForRangeSliders:function(t){if(this.options.range){var e=this._getNumDigitsAfterDecimalPlace(t);e=e?e-1:0;var i=this._applyToFixedAndParseFloat(t,e);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],e)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],e)>i?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<t?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>t&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var i=this._calculateValue(!0);return this.setValue(i,!1,!0),this._trigger("slideStop",i),this._state.dragged=null,!1},_setValues:function(t,e){var i=0===t?0:100;this._state.percentage[t]!==i&&(e.data[t]=this._toValue(this._state.percentage[t]),e.data[t]=this._applyPrecision(e.data[t]))},_calculateValue:function(t){var e={};return this.options.range?(e.data=[this.options.min,this.options.max],this._setValues(0,e),this._setValues(1,e),t&&(e.data[0]=this._snapToClosestTick(e.data[0]),e.data[1]=this._snapToClosestTick(e.data[1]))):(e.data=this._toValue(this._state.percentage[0]),e.data=parseFloat(e.data),e.data=this._applyPrecision(e.data),t&&(e.data=this._snapToClosestTick(e.data))),e.data},_snapToClosestTick:function(t){for(var e=[t,1/0],i=0;i<this.options.ticks.length;i++){var s=Math.abs(this.options.ticks[i]-t);s<=e[1]&&(e=[this.options.ticks[i],s])}return e[1]<=this.options.ticks_snap_bounds?e[0]:t},_applyPrecision:function(t){var e=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(t,e)},_getNumDigitsAfterDecimalPlace:function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},_applyToFixedAndParseFloat:function(t,e){var i=t.toFixed(e);return parseFloat(i)},_getPercentage:function(t){!this.touchCapable||"touchstart"!==t.type&&"touchmove"!==t.type&&"touchend"!==t.type||(t=t.changedTouches[0]);var e=t[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(e=-e);var i=e/this._state.size*100;return i=Math.round(i/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(i=100-i),Math.max(0,Math.min(100,i))},_validateInputValue:function(t){if(isNaN(+t)){if(Array.isArray(t))return this._validateArray(t),t;throw new Error(n.formatInvalidInputErrorMsg(t))}return+t},_validateArray:function(t){for(var e=0;e<t.length;e++){var i=t[e];if("number"!=typeof i)throw new Error(n.formatInvalidInputErrorMsg(i))}},_setDataVal:function(t){this.element.setAttribute("data-value",t),this.element.setAttribute("value",t),this.element.value=t},_trigger:function(e,i){i=i||0===i?i:void 0;var s=this.eventToCallbackMap[e];if(s&&s.length)for(var a=0;a<s.length;a++)(0,s[a])(i);t&&this._triggerJQueryEvent(e,i)},_triggerJQueryEvent:function(t,e){var i={type:t,value:e};this.$element.trigger(i),this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(t,e){void 0!==t.textContent?t.textContent=e:void 0!==t.innerText&&(t.innerText=e)},_removeClass:function(t,e){for(var i=e.split(" "),s=t.className,a=0;a<i.length;a++){var n=i[a],o=new RegExp("(?:\\s|^)"+n+"(?:\\s|$)");s=s.replace(o," ")}t.className=s.trim()},_addClass:function(t,e){for(var i=e.split(" "),s=t.className,a=0;a<i.length;a++){var n=i[a];new RegExp("(?:\\s|^)"+n+"(?:\\s|$)").test(s)||(s+=" "+n)}t.className=s.trim()},_offsetLeft:function(t){return t.getBoundingClientRect().left},_offsetRight:function(t){return t.getBoundingClientRect().right},_offsetTop:function(t){for(var e=t.offsetTop;(t=t.offsetParent)&&!isNaN(t.offsetTop);)e+=t.offsetTop,"BODY"!==t.tagName&&(e-=t.scrollTop);return e},_offset:function(t){return{left:this._offsetLeft(t),right:this._offsetRight(t),top:this._offsetTop(t)}},_css:function(e,i,s){if(t)t.style(e,i,s);else{var a=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}));e.style[a]=s}},_toValue:function(t){return this.options.scale.toValue.apply(this,[t])},_toPercentage:function(t){return this.options.scale.toPercentage.apply(this,[t])},_setTooltipPosition:function(){var t=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var e,i="left"===(e=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";t.forEach(function(t){this._addClass(t,e),t.style[i]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?t.forEach(function(t){this._addClass(t,"bottom"),t.style.top="22px"}.bind(this)):t.forEach(function(t){this._addClass(t,"top"),t.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(t){for(var e=Math.abs(t-this.options.ticks[0]),i=0,s=0;s<this.options.ticks.length;++s){var a=Math.abs(t-this.options.ticks[s]);a<e&&(e=a,i=s)}return i},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},t&&t.fn&&(t.fn.slider?(r&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),a=s):(t.bridget(i,e),a=i),t.bridget(s,e),t((function(){t("input[data-provide=slider]")[a]()})))}(t),e},void 0===(n="function"==typeof s?s.apply(e,a):s)||(t.exports=n)},3335:function(t,e,i){var s,a;s=[i(5093),i(4692)],void 0===(a=function(t,e){return e.fn||(e.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),function(t,e){var i=function(i,s,a){if(this.parentEl="body",this.element=e(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof s&&null!==s||(s={}),"string"==typeof(s=e.extend(this.element.data(),s)).template||s.template instanceof e||(s.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=s.parentEl&&e(s.parentEl).length?e(s.parentEl):e(this.parentEl),this.container=e(s.template).appendTo(this.parentEl),"object"==typeof s.locale&&("string"==typeof s.locale.direction&&(this.locale.direction=s.locale.direction),"string"==typeof s.locale.format&&(this.locale.format=s.locale.format),"string"==typeof s.locale.separator&&(this.locale.separator=s.locale.separator),"object"==typeof s.locale.daysOfWeek&&(this.locale.daysOfWeek=s.locale.daysOfWeek.slice()),"object"==typeof s.locale.monthNames&&(this.locale.monthNames=s.locale.monthNames.slice()),"number"==typeof s.locale.firstDay&&(this.locale.firstDay=s.locale.firstDay),"string"==typeof s.locale.applyLabel&&(this.locale.applyLabel=s.locale.applyLabel),"string"==typeof s.locale.cancelLabel&&(this.locale.cancelLabel=s.locale.cancelLabel),"string"==typeof s.locale.weekLabel&&(this.locale.weekLabel=s.locale.weekLabel),"string"==typeof s.locale.customRangeLabel)){(p=document.createElement("textarea")).innerHTML=s.locale.customRangeLabel;var n=p.value;this.locale.customRangeLabel=n}if(this.container.addClass(this.locale.direction),"string"==typeof s.startDate&&(this.startDate=t(s.startDate,this.locale.format)),"string"==typeof s.endDate&&(this.endDate=t(s.endDate,this.locale.format)),"string"==typeof s.minDate&&(this.minDate=t(s.minDate,this.locale.format)),"string"==typeof s.maxDate&&(this.maxDate=t(s.maxDate,this.locale.format)),"object"==typeof s.startDate&&(this.startDate=t(s.startDate)),"object"==typeof s.endDate&&(this.endDate=t(s.endDate)),"object"==typeof s.minDate&&(this.minDate=t(s.minDate)),"object"==typeof s.maxDate&&(this.maxDate=t(s.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof s.applyButtonClasses&&(this.applyButtonClasses=s.applyButtonClasses),"string"==typeof s.applyClass&&(this.applyButtonClasses=s.applyClass),"string"==typeof s.cancelButtonClasses&&(this.cancelButtonClasses=s.cancelButtonClasses),"string"==typeof s.cancelClass&&(this.cancelButtonClasses=s.cancelClass),"object"==typeof s.maxSpan&&(this.maxSpan=s.maxSpan),"object"==typeof s.dateLimit&&(this.maxSpan=s.dateLimit),"string"==typeof s.opens&&(this.opens=s.opens),"string"==typeof s.drops&&(this.drops=s.drops),"boolean"==typeof s.showWeekNumbers&&(this.showWeekNumbers=s.showWeekNumbers),"boolean"==typeof s.showISOWeekNumbers&&(this.showISOWeekNumbers=s.showISOWeekNumbers),"string"==typeof s.buttonClasses&&(this.buttonClasses=s.buttonClasses),"object"==typeof s.buttonClasses&&(this.buttonClasses=s.buttonClasses.join(" ")),"boolean"==typeof s.showDropdowns&&(this.showDropdowns=s.showDropdowns),"number"==typeof s.minYear&&(this.minYear=s.minYear),"number"==typeof s.maxYear&&(this.maxYear=s.maxYear),"boolean"==typeof s.showCustomRangeLabel&&(this.showCustomRangeLabel=s.showCustomRangeLabel),"boolean"==typeof s.singleDatePicker&&(this.singleDatePicker=s.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof s.timePicker&&(this.timePicker=s.timePicker),"boolean"==typeof s.timePickerSeconds&&(this.timePickerSeconds=s.timePickerSeconds),"number"==typeof s.timePickerIncrement&&(this.timePickerIncrement=s.timePickerIncrement),"boolean"==typeof s.timePicker24Hour&&(this.timePicker24Hour=s.timePicker24Hour),"boolean"==typeof s.autoApply&&(this.autoApply=s.autoApply),"boolean"==typeof s.autoUpdateInput&&(this.autoUpdateInput=s.autoUpdateInput),"boolean"==typeof s.linkedCalendars&&(this.linkedCalendars=s.linkedCalendars),"function"==typeof s.isInvalidDate&&(this.isInvalidDate=s.isInvalidDate),"function"==typeof s.isCustomDate&&(this.isCustomDate=s.isCustomDate),"boolean"==typeof s.alwaysShowCalendars&&(this.alwaysShowCalendars=s.alwaysShowCalendars),0!=this.locale.firstDay)for(var o=this.locale.firstDay;o>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),o--;var r,h,l;if(void 0===s.startDate&&void 0===s.endDate&&e(this.element).is(":text")){var d=e(this.element).val(),c=d.split(this.locale.separator);r=h=null,2==c.length?(r=t(c[0],this.locale.format),h=t(c[1],this.locale.format)):this.singleDatePicker&&""!==d&&(r=t(d,this.locale.format),h=t(d,this.locale.format)),null!==r&&null!==h&&(this.setStartDate(r),this.setEndDate(h))}if("object"==typeof s.ranges){for(l in s.ranges){r="string"==typeof s.ranges[l][0]?t(s.ranges[l][0],this.locale.format):t(s.ranges[l][0]),h="string"==typeof s.ranges[l][1]?t(s.ranges[l][1],this.locale.format):t(s.ranges[l][1]),this.minDate&&r.isBefore(this.minDate)&&(r=this.minDate.clone());var p,u=this.maxDate;if(this.maxSpan&&u&&r.clone().add(this.maxSpan).isAfter(u)&&(u=r.clone().add(this.maxSpan)),u&&h.isAfter(u)&&(h=u.clone()),!(this.minDate&&h.isBefore(this.minDate,this.timepicker?"minute":"day")||u&&r.isAfter(u,this.timepicker?"minute":"day")))(p=document.createElement("textarea")).innerHTML=l,n=p.value,this.ranges[n]=[r,h]}var m="<ul>";for(l in this.ranges)m+='<li data-range-key="'+l+'">'+l+"</li>";this.showCustomRangeLabel&&(m+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),m+="</ul>",this.container.find(".ranges").prepend(m)}"function"==typeof a&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof s.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===s.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){var t,e,i,s;this.timePicker&&(this.endDate?(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,this.timePicker24Hour||("PM"===(s=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===s&&12===t&&(t=0))):(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,this.timePicker24Hour||("PM"===(s=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===s&&12===t&&(t=0))),this.leftCalendar.month.hour(t).minute(e).second(i),this.rightCalendar.month.hour(t).minute(e).second(i));this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(i){var s,a=(s="left"==i?this.leftCalendar:this.rightCalendar).month.month(),n=s.month.year(),o=s.month.hour(),r=s.month.minute(),h=s.month.second(),l=t([n,a]).daysInMonth(),d=t([n,a,1]),c=t([n,a,l]),p=t(d).subtract(1,"month").month(),u=t(d).subtract(1,"month").year(),m=t([u,p]).daysInMonth(),f=d.day();(s=[]).firstDay=d,s.lastDay=c;for(var v=0;v<6;v++)s[v]=[];var g=m-f+this.locale.firstDay+1;g>m&&(g-=7),f==this.locale.firstDay&&(g=m-6);for(var y=t([u,p,g,12,r,h]),k=(v=0,0),b=0;v<42;v++,k++,y=t(y).add(24,"hour"))v>0&&k%7==0&&(k=0,b++),s[b][k]=y.clone().hour(o).minute(r).second(h),y.hour(12),this.minDate&&s[b][k].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&s[b][k].isBefore(this.minDate)&&"left"==i&&(s[b][k]=this.minDate.clone()),this.maxDate&&s[b][k].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&s[b][k].isAfter(this.maxDate)&&"right"==i&&(s[b][k]=this.maxDate.clone());"left"==i?this.leftCalendar.calendar=s:this.rightCalendar.calendar=s;var _="left"==i?this.minDate:this.startDate,C=this.maxDate,D=("left"==i?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');D+="<thead>",D+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(D+="<th></th>"),_&&!_.isBefore(s.firstDay)||this.linkedCalendars&&"left"!=i?D+="<th></th>":D+='<th class="prev available"><span></span></th>';var w=this.locale.monthNames[s[1][1].month()]+s[1][1].format(" YYYY");if(this.showDropdowns){for(var x=s[1][1].month(),E=s[1][1].year(),P=C&&C.year()||this.maxYear,M=_&&_.year()||this.minYear,L=E==M,T=E==P,S='<select class="monthselect">',Y=0;Y<12;Y++)(!L||_&&Y>=_.month())&&(!T||C&&Y<=C.month())?S+="<option value='"+Y+"'"+(Y===x?" selected='selected'":"")+">"+this.locale.monthNames[Y]+"</option>":S+="<option value='"+Y+"'"+(Y===x?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Y]+"</option>";S+="</select>";for(var A='<select class="yearselect">',$=M;$<=P;$++)A+='<option value="'+$+'"'+($===E?' selected="selected"':"")+">"+$+"</option>";w=S+(A+="</select>")}if(D+='<th colspan="5" class="month">'+w+"</th>",C&&!C.isAfter(s.lastDay)||this.linkedCalendars&&"right"!=i&&!this.singleDatePicker?D+="<th></th>":D+='<th class="next available"><span></span></th>',D+="</tr>",D+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(D+='<th class="week">'+this.locale.weekLabel+"</th>"),e.each(this.locale.daysOfWeek,(function(t,e){D+="<th>"+e+"</th>"})),D+="</tr>",D+="</thead>",D+="<tbody>",null==this.endDate&&this.maxSpan){var I=this.startDate.clone().add(this.maxSpan).endOf("day");C&&!I.isBefore(C)||(C=I)}for(b=0;b<6;b++){for(D+="<tr>",this.showWeekNumbers?D+='<td class="week">'+s[b][0].week()+"</td>":this.showISOWeekNumbers&&(D+='<td class="week">'+s[b][0].isoWeek()+"</td>"),k=0;k<7;k++){var N=[];s[b][k].isSame(new Date,"day")&&N.push("today"),s[b][k].isoWeekday()>5&&N.push("weekend"),s[b][k].month()!=s[1][1].month()&&N.push("off","ends"),this.minDate&&s[b][k].isBefore(this.minDate,"day")&&N.push("off","disabled"),C&&s[b][k].isAfter(C,"day")&&N.push("off","disabled"),this.isInvalidDate(s[b][k])&&N.push("off","disabled"),s[b][k].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&N.push("active","start-date"),null!=this.endDate&&s[b][k].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&N.push("active","end-date"),null!=this.endDate&&s[b][k]>this.startDate&&s[b][k]<this.endDate&&N.push("in-range");var H=this.isCustomDate(s[b][k]);!1!==H&&("string"==typeof H?N.push(H):Array.prototype.push.apply(N,H));var B="",V=!1;for(v=0;v<N.length;v++)B+=N[v]+" ","disabled"==N[v]&&(V=!0);V||(B+="available"),D+='<td class="'+B.replace(/^\s+|\s+$/g,"")+'" data-title="r'+b+"c"+k+'">'+s[b][k].date()+"</td>"}D+="</tr>"}D+="</tbody>",D+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(D)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,i,s,a=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(a=this.startDate.clone().add(this.maxSpan)),"left"==t)i=this.startDate.clone(),s=this.minDate;else if("right"==t){i=this.endDate.clone(),s=this.startDate;var n=this.container.find(".drp-calendar.right .calendar-time");if(""!=n.html()&&(i.hour(isNaN(i.hour())?n.find(".hourselect option:selected").val():i.hour()),i.minute(isNaN(i.minute())?n.find(".minuteselect option:selected").val():i.minute()),i.second(isNaN(i.second())?n.find(".secondselect option:selected").val():i.second()),!this.timePicker24Hour)){var o=n.find(".ampmselect option:selected").val();"PM"===o&&i.hour()<12&&i.hour(i.hour()+12),"AM"===o&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),a&&i.isAfter(a)&&(i=a.clone())}e='<select class="hourselect">';for(var r=this.timePicker24Hour?0:1,h=this.timePicker24Hour?23:12,l=r;l<=h;l++){var d=l;this.timePicker24Hour||(d=i.hour()>=12?12==l?12:l+12:12==l?0:l);var c=i.clone().hour(d),p=!1;s&&c.minute(59).isBefore(s)&&(p=!0),a&&c.minute(0).isAfter(a)&&(p=!0),d!=i.hour()||p?e+=p?'<option value="'+l+'" disabled="disabled" class="disabled">'+l+"</option>":'<option value="'+l+'">'+l+"</option>":e+='<option value="'+l+'" selected="selected">'+l+"</option>"}for(e+="</select> ",e+=': <select class="minuteselect">',l=0;l<60;l+=this.timePickerIncrement){var u=l<10?"0"+l:l;c=i.clone().minute(l),p=!1,s&&c.second(59).isBefore(s)&&(p=!0),a&&c.second(0).isAfter(a)&&(p=!0),i.minute()!=l||p?e+=p?'<option value="'+l+'" disabled="disabled" class="disabled">'+u+"</option>":'<option value="'+l+'">'+u+"</option>":e+='<option value="'+l+'" selected="selected">'+u+"</option>"}if(e+="</select> ",this.timePickerSeconds){for(e+=': <select class="secondselect">',l=0;l<60;l++)u=l<10?"0"+l:l,c=i.clone().second(l),p=!1,s&&c.isBefore(s)&&(p=!0),a&&c.isAfter(a)&&(p=!0),i.second()!=l||p?e+=p?'<option value="'+l+'" disabled="disabled" class="disabled">'+u+"</option>":'<option value="'+l+'">'+u+"</option>":e+='<option value="'+l+'" selected="selected">'+u+"</option>";e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var m="",f="";s&&i.clone().hour(12).minute(0).second(0).isBefore(s)&&(m=' disabled="disabled" class="disabled"'),a&&i.clone().hour(0).minute(0).second(0).isAfter(a)&&(f=' disabled="disabled" class="disabled"'),i.hour()>=12?e+='<option value="AM"'+m+'>AM</option><option value="PM" selected="selected"'+f+">PM</option>":e+='<option value="AM" selected="selected"'+m+'>AM</option><option value="PM"'+f+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,i={top:0,left:0},s=this.drops,a=e(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},a=this.parentEl[0].clientWidth+this.parentEl.offset().left),s){case"auto":(t=this.element.offset().top+this.element.outerHeight()-i.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-i.top,s="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-i.top;break;default:t=this.element.offset().top+this.element.outerHeight()-i.top}this.container.css({top:0,left:0,right:"auto"});var n=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==s),"left"==this.opens){var o=a-this.element.offset().left-this.element.outerWidth();n+o>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:o,left:"auto"})}else if("center"==this.opens)(r=this.element.offset().left-i.left+this.element.outerWidth()/2-n/2)<0?this.container.css({top:t,right:"auto",left:9}):r+n>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:r,right:"auto"});else{var r;(r=this.element.offset().left-i.left)+n>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:r,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy((function(t){this.outsideClick(t)}),this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy((function(t){this.move(t)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var i=e(t.target);"focusin"==t.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),s=i.substr(1,1),a=i.substr(3,1),n=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[s][a]:this.rightCalendar.calendar[s][a],o=this.leftCalendar,r=this.rightCalendar,h=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(t,i){if(!e(i).hasClass("week")){var s=e(i).attr("data-title"),a=s.substr(1,1),l=s.substr(3,1),d=e(i).parents(".drp-calendar").hasClass("left")?o.calendar[a][l]:r.calendar[a][l];d.isAfter(h)&&d.isBefore(n)||d.isSame(n,"day")?e(i).addClass("in-range"):e(i).removeClass("in-range")}}))}},clickDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),s=i.substr(1,1),a=i.substr(3,1),n=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[s][a]:this.rightCalendar.calendar[s][a];if(this.endDate||n.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);this.timePicker24Hour||("PM"===(l=this.container.find(".left .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0));var r=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(r)&&(r=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var h=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;n=n.clone().hour(o).minute(r).second(h)}this.endDate=null,this.setStartDate(n.clone())}else if(!this.endDate&&n.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{var l;if(this.timePicker)o=parseInt(this.container.find(".right .hourselect").val(),10),this.timePicker24Hour||("PM"===(l=this.container.find(".right .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0)),r=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(r)&&(r=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),h=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,n=n.clone().hour(o).minute(r).second(h);this.setEndDate(n.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var i in this.ranges){if(this.timePicker){var s=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(s)==this.ranges[i][0].format(s)&&this.endDate.format(s)==this.ranges[i][1].format(s)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var i=e(t.target).closest(".drp-calendar").hasClass("left"),s=i?"left":"right",a=this.container.find(".drp-calendar."+s),n=parseInt(a.find(".monthselect").val(),10),o=a.find(".yearselect").val();i||(o<this.startDate.year()||o==this.startDate.year()&&n<this.startDate.month())&&(n=this.startDate.month(),o=this.startDate.year()),this.minDate&&(o<this.minDate.year()||o==this.minDate.year()&&n<this.minDate.month())&&(n=this.minDate.month(),o=this.minDate.year()),this.maxDate&&(o>this.maxDate.year()||o==this.maxDate.year()&&n>this.maxDate.month())&&(n=this.maxDate.month(),o=this.maxDate.year()),i?(this.leftCalendar.month.month(n).year(o),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(n).year(o),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var i=e(t.target).closest(".drp-calendar"),s=i.hasClass("left"),a=parseInt(i.find(".hourselect").val(),10),n=parseInt(i.find(".minuteselect").val(),10);isNaN(n)&&(n=parseInt(i.find(".minuteselect option:last").val(),10));var o=this.timePickerSeconds?parseInt(i.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var r=i.find(".ampmselect").val();"PM"===r&&a<12&&(a+=12),"AM"===r&&12===a&&(a=0)}if(s){var h=this.startDate.clone();h.hour(a),h.minute(n),h.second(o),this.setStartDate(h),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==h.format("YYYY-MM-DD")&&this.endDate.isBefore(h)&&this.setEndDate(h.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(a),l.minute(n),l.second(o),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),i=null,s=null;2===e.length&&(i=t(e[0],this.locale.format),s=t(e[1],this.locale.format)),(this.singleDatePicker||null===i||null===s)&&(s=i=t(this.element.val(),this.locale.format)),i.isValid()&&s.isValid()&&(this.setStartDate(i),this.setEndDate(s),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,s){var a=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each((function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,a,s))})),this},i}(t,e)}.apply(e,s))||(t.exports=a)},9264:function(){if("undefined"==typeof jQuery)throw new Error("Jasny Bootstrap's JavaScript requires jQuery");!function(t){"use strict";void 0===t.support.transition&&(t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;t(this).one(t.support.transition.end,(function(){i=!0}));return setTimeout((function(){i||t(s).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}()})))}(window.jQuery),function(t){"use strict";var e=function(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,s),this.state=null,this.placement=null,this.options.recalc&&(this.calcClone(),t(window).on("resize",t.proxy(this.recalc,this))),this.options.autohide&&t(document).on("click",t.proxy(this.autohide,this)),this.options.toggle&&this.toggle(),this.options.disablescrolling&&(this.options.disableScrolling=this.options.disablescrolling,delete this.options.disablescrolling)};e.DEFAULTS={toggle:!0,placement:"auto",autohide:!0,recalc:!0,disableScrolling:!0,modal:!1},e.prototype.offset=function(){switch(this.placement){case"left":case"right":return this.$element.outerWidth();case"top":case"bottom":return this.$element.outerHeight()}},e.prototype.calcPlacement=function(){function e(t,e){return"auto"===a.css(e)?t:"auto"===a.css(t)||parseInt(a.css(t),10)>parseInt(a.css(e),10)?e:t}if("auto"===this.options.placement){this.$element.hasClass("in")||this.$element.css("visiblity","hidden !important").addClass("in");var i=t(window).width()/this.$element.width(),s=t(window).height()/this.$element.height(),a=this.$element;this.placement=i>=s?e("left","right"):e("top","bottom"),"hidden !important"===this.$element.css("visibility")&&this.$element.removeClass("in").css("visiblity","")}else this.placement=this.options.placement},e.prototype.opposite=function(t){switch(t){case"top":return"bottom";case"left":return"right";case"bottom":return"top";case"right":return"left"}},e.prototype.getCanvasElements=function(){var e=this.options.canvas?t(this.options.canvas):this.$element,i=e.find("*").filter((function(){return"fixed"===t(this).css("position")})).not(this.options.exclude);return e.add(i)},e.prototype.slide=function(e,i,s){if(!t.support.transition){var a={};return a[this.placement]="+="+i,e.animate(a,350,s)}var n=this.placement,o=this.opposite(n);e.each((function(){"auto"!==t(this).css(n)&&t(this).css(n,(parseInt(t(this).css(n),10)||0)+i),"auto"!==t(this).css(o)&&t(this).css(o,(parseInt(t(this).css(o),10)||0)-i)})),this.$element.one(t.support.transition.end,s).emulateTransitionEnd(350)},e.prototype.disableScrolling=function(){var e=t("body").width(),i="padding-"+this.opposite(this.placement);if(void 0===t("body").data("offcanvas-style")&&t("body").data("offcanvas-style",t("body").attr("style")||""),t("body").css("overflow","hidden"),t("body").width()>e){var s=parseInt(t("body").css(i),10)+t("body").width()-e;setTimeout((function(){t("body").css(i,s)}),1)}t("body").on("touchmove.bs",(function(t){t.preventDefault()}))},e.prototype.enableScrolling=function(){t("body").off("touchmove.bs")},e.prototype.show=function(){if(!this.state){var e=t.Event("show.bs.offcanvas");if(this.$element.trigger(e),!e.isDefaultPrevented()){this.state="slide-in",this.calcPlacement();var i=this.getCanvasElements(),s=this.placement,a=this.opposite(s),n=this.offset();-1!==i.index(this.$element)&&(t(this.$element).data("offcanvas-style",t(this.$element).attr("style")||""),this.$element.css(s,-1*n),this.$element.css(s)),i.addClass("canvas-sliding").each((function(){void 0===t(this).data("offcanvas-style")&&t(this).data("offcanvas-style",t(this).attr("style")||""),"static"===t(this).css("position")&&t(this).css("position","relative"),"auto"!==t(this).css(s)&&"0px"!==t(this).css(s)||"auto"!==t(this).css(a)&&"0px"!==t(this).css(a)||t(this).css(s,0)})),this.options.disableScrolling&&this.disableScrolling(),this.options.modal&&this.toggleBackdrop();var o=function(){"slide-in"==this.state&&(this.state="slid",i.removeClass("canvas-sliding").addClass("canvas-slid"),this.$element.trigger("shown.bs.offcanvas"))};setTimeout(t.proxy((function(){this.$element.addClass("in"),this.slide(i,n,t.proxy(o,this))}),this),1)}}},e.prototype.hide=function(){if("slid"===this.state){var e=t.Event("hide.bs.offcanvas");if(this.$element.trigger(e),!e.isDefaultPrevented()){this.state="slide-out";var i=t(".canvas-slid"),s=(this.placement,-1*this.offset()),a=function(){"slide-out"==this.state&&(this.state=null,this.placement=null,this.$element.removeClass("in"),i.removeClass("canvas-sliding"),i.add(this.$element).add("body").each((function(){t(this).attr("style",t(this).data("offcanvas-style")).removeData("offcanvas-style")})),this.$element.trigger("hidden.bs.offcanvas"))};this.options.disableScrolling&&this.enableScrolling(),this.options.modal&&this.toggleBackdrop(),i.removeClass("canvas-slid").addClass("canvas-sliding"),setTimeout(t.proxy((function(){this.slide(i,s,t.proxy(a,this))}),this),1)}}},e.prototype.toggle=function(){"slide-in"!==this.state&&"slide-out"!==this.state&&this["slid"===this.state?"hide":"show"]()},e.prototype.toggleBackdrop=function(e){if(e=e||t.noop,"slide-in"==this.state){var i=t.support.transition;this.$backdrop=t('<div class="modal-backdrop fade" />').insertAfter(this.$element),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else if("slide-out"==this.state&&this.$backdrop){this.$backdrop.removeClass("in"),t("body").off("touchmove.bs");var s=this;t.support.transition?this.$backdrop.one(t.support.transition.end,(function(){s.$backdrop.remove(),e(),s.$backdrop=null})).emulateTransitionEnd(150):(this.$backdrop.remove(),this.$backdrop=null,e())}else e&&e()},e.prototype.calcClone=function(){this.$calcClone=this.$element.clone().html("").addClass("offcanvas-clone").removeClass("in").appendTo(t("body"))},e.prototype.recalc=function(){if("none"!==this.$calcClone.css("display")&&("slid"===this.state||"slide-in"===this.state)){this.state=null,this.placement=null;var e=this.getCanvasElements();this.$element.removeClass("in"),e.removeClass("canvas-slid"),e.add(this.$element).add("body").each((function(){t(this).attr("style",t(this).data("offcanvas-style")).removeData("offcanvas-style")}))}},e.prototype.autohide=function(e){0===t(e.target).closest(this.$element).length&&this.hide()};var i=t.fn.offcanvas;t.fn.offcanvas=function(i){return this.each((function(){var s=t(this),a=s.data("bs.offcanvas"),n=t.extend({},e.DEFAULTS,s.data(),"object"==typeof i&&i);a||s.data("bs.offcanvas",a=new e(this,n)),"string"==typeof i&&a[i]()}))},t.fn.offcanvas.Constructor=e,t.fn.offcanvas.noConflict=function(){return t.fn.offcanvas=i,this},t(document).on("click.bs.offcanvas.data-api","[data-toggle=offcanvas]",(function(e){var i,s=t(this),a=s.attr("data-target")||e.preventDefault()||(i=s.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),n=t(a),o=n.data("bs.offcanvas"),r=o?"toggle":s.data();e.stopPropagation(),o?o.toggle():n.offcanvas(r)}))}(window.jQuery),function(t){"use strict";var e=function(i,s){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,s),this.$element.on("click.bs.rowlink","td:not(.rowlink-skip)",t.proxy(this.click,this))};e.DEFAULTS={target:"a"},e.prototype.click=function(e){var i=t(e.currentTarget).closest("tr").find(this.options.target)[0];if(t(e.target)[0]!==i)if(e.preventDefault(),i.click)i.click();else if(document.createEvent){var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(s)}};var i=t.fn.rowlink;t.fn.rowlink=function(i){return this.each((function(){var s=t(this),a=s.data("bs.rowlink");a||s.data("bs.rowlink",a=new e(this,i))}))},t.fn.rowlink.Constructor=e,t.fn.rowlink.noConflict=function(){return t.fn.rowlink=i,this},t(document).on("click.bs.rowlink.data-api",'[data-link="row"]',(function(e){if(0===t(e.target).closest(".rowlink-skip").length){var i=t(this);i.data("bs.rowlink")||(i.rowlink(i.data()),t(e.target).trigger("click.bs.rowlink"))}}))}(window.jQuery),function(t){"use strict";var e=void 0!==window.orientation,i=navigator.userAgent.toLowerCase().indexOf("android")>-1,s="Microsoft Internet Explorer"==window.navigator.appName,a=function(e,s){i||(this.$element=t(e),this.options=t.extend({},a.DEFAULTS,s),this.mask=String(this.options.mask),this.init(),this.listen(),this.checkVal())};a.DEFAULTS={mask:"",placeholder:"_",definitions:{9:"[0-9]",a:"[A-Za-z]",w:"[A-Za-z0-9]","*":"."}},a.prototype.init=function(){var e=this.options.definitions;this.mask.length;this.tests=[],this.partialPosition=this.mask.length,this.firstNonMaskPos=null,t.each(this.mask.split(""),t.proxy((function(t,i){"?"==i?this.partialPosition=t:e[i]?(this.tests.push(new RegExp(e[i])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1)):this.tests.push(null)}),this)),this.buffer=t.map(this.mask.split(""),t.proxy((function(t){return"?"!=t?e[t]?this.options.placeholder:t:void 0}),this)),this.focusText=this.$element.val(),this.$element.data("rawMaskFn",t.proxy((function(){return t.map(this.buffer,(function(t,e){return this.tests[e]&&t!=this.options.placeholder?t:null})).join("")}),this))},a.prototype.listen=function(){if(!this.$element.attr("readonly")){var e=(s?"paste":"input")+".bs.inputmask";this.$element.on("unmask.bs.inputmask",t.proxy(this.unmask,this)).on("focus.bs.inputmask",t.proxy(this.focusEvent,this)).on("blur.bs.inputmask",t.proxy(this.blurEvent,this)).on("keydown.bs.inputmask",t.proxy(this.keydownEvent,this)).on("keypress.bs.inputmask",t.proxy(this.keypressEvent,this)).on(e,t.proxy(this.pasteEvent,this))}},a.prototype.caret=function(t,e){if(0!==this.$element.length){if("number"==typeof t)return e="number"==typeof e?e:t,this.$element.each((function(){if(this.setSelectionRange)this.setSelectionRange(t,e);else if(this.createTextRange){var i=this.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select()}}));if(this.$element[0].setSelectionRange)t=this.$element[0].selectionStart,e=this.$element[0].selectionEnd;else if(document.selection&&document.selection.createRange){var i=document.selection.createRange();t=0-i.duplicate().moveStart("character",-1e5),e=t+i.text.length}return{begin:t,end:e}}},a.prototype.seekNext=function(t){for(var e=this.mask.length;++t<=e&&!this.tests[t];);return t},a.prototype.seekPrev=function(t){for(;--t>=0&&!this.tests[t];);return t},a.prototype.shiftL=function(t,e){var i=this.mask.length;if(!(0>t)){for(var s=t,a=this.seekNext(e);i>s;s++)if(this.tests[s]){if(!(i>a&&this.tests[s].test(this.buffer[a])))break;this.buffer[s]=this.buffer[a],this.buffer[a]=this.options.placeholder,a=this.seekNext(a)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}},a.prototype.shiftR=function(t){for(var e=this.mask.length,i=t,s=this.options.placeholder;e>i;i++)if(this.tests[i]){var a=this.seekNext(i),n=this.buffer[i];if(this.buffer[i]=s,!(e>a&&this.tests[a].test(n)))break;s=n}},a.prototype.unmask=function(){this.$element.unbind(".bs.inputmask").removeData("bs.inputmask")},a.prototype.focusEvent=function(){this.focusText=this.$element.val();var t=this.mask.length,e=this.checkVal();this.writeBuffer();var i=this,s=function(){e==t?i.caret(0,e):i.caret(e)};s(),setTimeout(s,50)},a.prototype.blurEvent=function(){this.checkVal(),this.$element.val()!==this.focusText&&(this.$element.trigger("change"),this.$element.trigger("input"))},a.prototype.keydownEvent=function(t){var i=t.which;if(8==i||46==i||e&&127==i){var s=this.caret(),a=s.begin,n=s.end;return n-a==0&&(a=46!=i?this.seekPrev(a):n=this.seekNext(a-1),n=46==i?this.seekNext(n):n),this.clearBuffer(a,n),this.shiftL(a,n-1),!1}return 27==i?(this.$element.val(this.focusText),this.caret(0,this.checkVal()),!1):void 0},a.prototype.keypressEvent=function(t){var e=this.mask.length,i=t.which,s=this.caret();if(t.ctrlKey||t.altKey||t.metaKey||32>i)return!0;if(i){s.end-s.begin!=0&&(this.clearBuffer(s.begin,s.end),this.shiftL(s.begin,s.end-1));var a=this.seekNext(s.begin-1);if(e>a){var n=String.fromCharCode(i);if(this.tests[a].test(n)){this.shiftR(a),this.buffer[a]=n,this.writeBuffer();var o=this.seekNext(a);this.caret(o)}}return!1}},a.prototype.pasteEvent=function(){var t=this;setTimeout((function(){t.caret(t.checkVal(!0))}),0)},a.prototype.clearBuffer=function(t,e){for(var i=this.mask.length,s=t;e>s&&i>s;s++)this.tests[s]&&(this.buffer[s]=this.options.placeholder)},a.prototype.writeBuffer=function(){return this.$element.val(this.buffer.join("")).val()},a.prototype.checkVal=function(t){for(var e=this.mask.length,i=this.$element.val(),s=-1,a=0,n=0;e>a;a++)if(this.tests[a]){for(this.buffer[a]=this.options.placeholder;n++<i.length;){var o=i.charAt(n-1);if(this.tests[a].test(o)){this.buffer[a]=o,s=a;break}}if(n>i.length)break}else this.buffer[a]==i.charAt(n)&&a!=this.partialPosition&&(n++,s=a);return!t&&s+1<this.partialPosition?(this.$element.val(""),this.clearBuffer(0,e)):(t||s+1>=this.partialPosition)&&(this.writeBuffer(),t||this.$element.val(this.$element.val().substring(0,s+1))),this.partialPosition?a:this.firstNonMaskPos};var n=t.fn.inputmask;t.fn.inputmask=function(e){return this.each((function(){var i=t(this),s=i.data("bs.inputmask");s||i.data("bs.inputmask",s=new a(this,e))}))},t.fn.inputmask.Constructor=a,t.fn.inputmask.noConflict=function(){return t.fn.inputmask=n,this},t(document).on("focus.bs.inputmask.data-api","[data-mask]",(function(){var e=t(this);e.data("bs.inputmask")||e.inputmask(e.data())}))}(window.jQuery),function(t){"use strict";var e="Microsoft Internet Explorer"==window.navigator.appName,i=function(e,i){if(this.$element=t(e),this.$input=this.$element.find(":file"),0!==this.$input.length){this.name=this.$input.attr("name")||i.name,this.$hidden=this.$element.find('input[type=hidden][name="'+this.name+'"]'),0===this.$hidden.length&&(this.$hidden=t('<input type="hidden">').insertBefore(this.$input)),this.$preview=this.$element.find(".fileinput-preview");var s=this.$preview.css("height");"inline"!==this.$preview.css("display")&&"0px"!==s&&"none"!==s&&this.$preview.css("line-height",s),this.original={exists:this.$element.hasClass("fileinput-exists"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()},this.listen()}};i.prototype.listen=function(){this.$input.on("change.bs.fileinput",t.proxy(this.change,this)),t(this.$input[0].form).on("reset.bs.fileinput",t.proxy(this.reset,this)),this.$element.find('[data-trigger="fileinput"]').on("click.bs.fileinput",t.proxy(this.trigger,this)),this.$element.find('[data-dismiss="fileinput"]').on("click.bs.fileinput",t.proxy(this.clear,this))},i.prototype.change=function(e){var i=void 0===e.target.files?e.target&&e.target.value?[{name:e.target.value.replace(/^.+\\/,"")}]:[]:e.target.files;if(e.stopPropagation(),0!==i.length){this.$hidden.val(""),this.$hidden.attr("name",""),this.$input.attr("name",this.name);var s=i[0];if(this.$preview.length>0&&(void 0!==s.type?s.type.match(/^image\/(gif|png|jpeg)$/):s.name.match(/\.(gif|png|jpe?g)$/i))&&"undefined"!=typeof FileReader){var a=new FileReader,n=this.$preview,o=this.$element;a.onload=function(e){var a=t("<img>");a[0].src=e.target.result,i[0].result=e.target.result,o.find(".fileinput-filename").text(s.name),"none"!=n.css("max-height")&&a.css("max-height",parseInt(n.css("max-height"),10)-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10)-parseInt(n.css("border-top"),10)-parseInt(n.css("border-bottom"),10)),n.html(a),o.addClass("fileinput-exists").removeClass("fileinput-new"),o.trigger("change.bs.fileinput",i)},a.readAsDataURL(s)}else this.$element.find(".fileinput-filename").text(s.name),this.$preview.text(s.name),this.$element.addClass("fileinput-exists").removeClass("fileinput-new"),this.$element.trigger("change.bs.fileinput")}else this.clear()},i.prototype.clear=function(t){if(t&&t.preventDefault(),this.$hidden.val(""),this.$hidden.attr("name",this.name),this.$input.attr("name",""),e){var i=this.$input.clone(!0);this.$input.after(i),this.$input.remove(),this.$input=i}else this.$input.val("");this.$preview.html(""),this.$element.find(".fileinput-filename").text(""),this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),void 0!==t&&(this.$input.trigger("change"),this.$element.trigger("clear.bs.fileinput"))},i.prototype.reset=function(){this.clear(),this.$hidden.val(this.original.hiddenVal),this.$preview.html(this.original.preview),this.$element.find(".fileinput-filename").text(""),this.original.exists?this.$element.addClass("fileinput-exists").removeClass("fileinput-new"):this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),this.$element.trigger("reset.bs.fileinput")},i.prototype.trigger=function(t){this.$input.trigger("click"),t.preventDefault()};var s=t.fn.fileinput;t.fn.fileinput=function(e){return this.each((function(){var s=t(this),a=s.data("bs.fileinput");a||s.data("bs.fileinput",a=new i(this,e)),"string"==typeof e&&a[e]()}))},t.fn.fileinput.Constructor=i,t.fn.fileinput.noConflict=function(){return t.fn.fileinput=s,this},t(document).on("click.fileinput.data-api",'[data-provides="fileinput"]',(function(e){var i=t(this);if(!i.data("bs.fileinput")){i.fileinput(i.data());var s=t(e.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]');s.length>0&&(e.preventDefault(),s.trigger("click.bs.fileinput"))}}))}(window.jQuery)},1340:function(t,e,i){var s,a,n;!function(){"use strict";a=[i(4692)],void 0===(n="function"==typeof(s=function(t){t.fn.marquee=function(e){return this.each((function(){var i,s,a,n,o,r=t.extend({},t.fn.marquee.defaults,e),h=t(this),l=3,d="animation-play-state",c=!1,p=function(t,e,i){for(var s=["webkit","moz","MS","o",""],a=0;a<s.length;a++)s[a]||(e=e.toLowerCase()),t.addEventListener(s[a]+e,i,!1)},u=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i+":"+t[i]);return e.push(),"{"+e.join(",")+"}"},m=function(){h.timer=setTimeout(T,r.delayBeforeStart)},f={pause:function(){c&&r.allowCss3Support?i.css(d,"paused"):t.fn.pause&&i.pause(),h.data("runningStatus","paused"),h.trigger("paused")},resume:function(){c&&r.allowCss3Support?i.css(d,"running"):t.fn.resume&&i.resume(),h.data("runningStatus","resumed"),h.trigger("resumed")},toggle:function(){f["resumed"===h.data("runningStatus")?"pause":"resume"]()},destroy:function(){clearTimeout(h.timer),h.find("*").addBack().off(),h.html(h.find(".js-marquee:first").html())}};if("string"!=typeof e){var v;t.each(r,(function(t){if(void 0!==(v=h.attr("data-"+t))){switch(v){case"true":v=!0;break;case"false":v=!1}r[t]=v}})),r.speed&&(r.duration=parseInt(h.width(),10)/r.speed*1e3),n="up"===r.direction||"down"===r.direction,r.gap=r.duplicated?parseInt(r.gap):0,h.wrapInner('<div class="js-marquee"></div>');var g=h.find(".js-marquee").css({"margin-right":r.gap,float:"left"});if(r.duplicated&&g.clone(!0).appendTo(h),h.wrapInner('<div style="width:100000px" class="js-marquee-wrapper"></div>'),i=h.find(".js-marquee-wrapper"),n){var y=h.height();i.removeAttr("style"),h.height(y),h.find(".js-marquee").css({float:"none","margin-bottom":r.gap,"margin-right":0}),r.duplicated&&h.find(".js-marquee:last").css({"margin-bottom":0});var k=h.find(".js-marquee:first").height()+r.gap;r.startVisible&&!r.duplicated?(r._completeDuration=(parseInt(k,10)+parseInt(y,10))/parseInt(y,10)*r.duration,r.duration=parseInt(k,10)/parseInt(y,10)*r.duration):r.duration=(parseInt(k,10)+parseInt(y,10))/parseInt(y,10)*r.duration}else o=h.find(".js-marquee:first").width()+r.gap,s=h.width(),r.startVisible&&!r.duplicated?(r._completeDuration=(parseInt(o,10)+parseInt(s,10))/parseInt(s,10)*r.duration,r.duration=parseInt(o,10)/parseInt(s,10)*r.duration):r.duration=(parseInt(o,10)+parseInt(s,10))/parseInt(s,10)*r.duration;if(r.duplicated&&(r.duration=r.duration/2),r.allowCss3Support){var b=document.body||document.createElement("div"),_="marqueeAnimation-"+Math.floor(1e7*Math.random()),C="Webkit Moz O ms Khtml".split(" "),D="animation",w="",x="";if(void 0!==b.style.animation&&(x="@keyframes "+_+" ",c=!0),!1===c)for(var E=0;E<C.length;E++)if(void 0!==b.style[C[E]+"AnimationName"]){var P="-"+C[E].toLowerCase()+"-";D=P+D,d=P+d,x="@"+P+"keyframes "+_+" ",c=!0;break}c&&(w=_+" "+r.duration/1e3+"s "+r.delayBeforeStart/1e3+"s infinite "+r.css3easing,h.data("css3AnimationIsSupported",!0))}var M=function(){i.css("transform","translateY("+("up"===r.direction?y+"px":"-"+k+"px")+")")},L=function(){i.css("transform","translateX("+("left"===r.direction?s+"px":"-"+o+"px")+")")};r.duplicated?(n?r.startVisible?i.css("transform","translateY(0)"):i.css("transform","translateY("+("up"===r.direction?y+"px":"-"+(2*k-r.gap)+"px")+")"):r.startVisible?i.css("transform","translateX(0)"):i.css("transform","translateX("+("left"===r.direction?s+"px":"-"+(2*o-r.gap)+"px")+")"),r.startVisible||(l=1)):r.startVisible?l=2:n?M():L();var T=function(){if(r.duplicated&&(1===l?(r._originalDuration=r.duration,r.duration=n?"up"===r.direction?r.duration+y/(k/r.duration):2*r.duration:"left"===r.direction?r.duration+s/(o/r.duration):2*r.duration,w&&(w=_+" "+r.duration/1e3+"s "+r.delayBeforeStart/1e3+"s "+r.css3easing),l++):2===l&&(r.duration=r._originalDuration,w&&(_+="0",x=t.trim(x)+"0 ",w=_+" "+r.duration/1e3+"s 0s infinite "+r.css3easing),l++)),n?r.duplicated?(l>2&&i.css("transform","translateY("+("up"===r.direction?0:"-"+k+"px")+")"),a={transform:"translateY("+("up"===r.direction?"-"+k+"px":0)+")"}):r.startVisible?2===l?(w&&(w=_+" "+r.duration/1e3+"s "+r.delayBeforeStart/1e3+"s "+r.css3easing),a={transform:"translateY("+("up"===r.direction?"-"+k+"px":y+"px")+")"},l++):3===l&&(r.duration=r._completeDuration,w&&(_+="0",x=t.trim(x)+"0 ",w=_+" "+r.duration/1e3+"s 0s infinite "+r.css3easing),M()):(M(),a={transform:"translateY("+("up"===r.direction?"-"+i.height()+"px":y+"px")+")"}):r.duplicated?(l>2&&i.css("transform","translateX("+("left"===r.direction?0:"-"+o+"px")+")"),a={transform:"translateX("+("left"===r.direction?"-"+o+"px":0)+")"}):r.startVisible?2===l?(w&&(w=_+" "+r.duration/1e3+"s "+r.delayBeforeStart/1e3+"s "+r.css3easing),a={transform:"translateX("+("left"===r.direction?"-"+o+"px":s+"px")+")"},l++):3===l&&(r.duration=r._completeDuration,w&&(_+="0",x=t.trim(x)+"0 ",w=_+" "+r.duration/1e3+"s 0s infinite "+r.css3easing),L()):(L(),a={transform:"translateX("+("left"===r.direction?"-"+o+"px":s+"px")+")"}),h.trigger("beforeStarting"),c){i.css(D,w);var e=x+" { 100%  "+u(a)+"}",d=i.find("style");0!==d.length?d.filter(":last").html(e):t("head").append("<style>"+e+"</style>"),p(i[0],"AnimationIteration",(function(){h.trigger("finished")})),p(i[0],"AnimationEnd",(function(){T(),h.trigger("finished")}))}else i.animate(a,r.duration,r.easing,(function(){h.trigger("finished"),r.pauseOnCycle?m():T()}));h.data("runningStatus","resumed")};h.on("pause",f.pause),h.on("resume",f.resume),r.pauseOnHover&&(h.on("mouseenter",f.pause),h.on("mouseleave",f.resume)),c&&r.allowCss3Support?T():m()}else t.isFunction(f[e])&&(i||(i=h.find(".js-marquee-wrapper")),!0===h.data("css3AnimationIsSupported")&&(c=!0),f[e]())}))},t.fn.marquee.defaults={allowCss3Support:!0,css3easing:"linear",easing:"linear",delayBeforeStart:1e3,direction:"left",duplicated:!1,duration:5e3,speed:0,gap:20,pauseOnCycle:!1,pauseOnHover:!1,startVisible:!1}})?s.apply(e,a):s)||(t.exports=n)}()}}]);