diff --git a/bower.json b/bower.json index 0c3765514..cf3dcb39c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "locawebstyle", - "version": "3.10.0", + "version": "3.10.1", "homepage": "http://locaweb.github.io/locawebstyle/", "authors": [ "Locaweb Front-end Team " diff --git a/config.rb b/config.rb index 36e9aeaec..ea6947a60 100644 --- a/config.rb +++ b/config.rb @@ -86,7 +86,7 @@ def assets_files(dir) set :base_url, "" -set :stable, "3.10.0" +set :stable, "3.10.1" set :css_dir, 'assets/stylesheets' set :js_dir, 'assets/javascripts' diff --git a/dist/javascripts/locastyle.js b/dist/javascripts/locastyle.js index 71cb20150..58271e132 100644 --- a/dist/javascripts/locastyle.js +++ b/dist/javascripts/locastyle.js @@ -1,4 +1,4 @@ -/** +/*! Locastyle version: 3.10.1*/ /*! Locastyle version: 3.10.1*/ /** * * Copyright 2013 LinkedIn Corp. All rights reserved. @@ -14,14 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -!function(t,e){var n,a,s,i,o,r,l,c,u,d,h=window.Sizzle||null,f=t[e],p="undefined",g=!1,m=typeof window.jQuery!==p,v=!1,b=window.document;try{v=typeof window.sessionStorage!==p}catch(y){}d={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,cookieName:"hopscotch.tour.state"},f||(Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),u=function(){g&&f.startTour()},r={addClass:function(t,e){var n,a,s,i;if(t.className){for(a=e.split(/\s+/),n=" "+t.className+" ",s=0,i=a.length;i>s;++s)n.indexOf(" "+a[s]+" ")<0&&(n+=a[s]+" ");t.className=n.replace(/^\s+|\s+$/g,"")}else t.className=e},removeClass:function(t,e){var n,a,s,i;for(a=e.split(/\s+/),n=" "+t.className+" ",s=0,i=a.length;i>s;++s)n=n.replace(" "+a[s]+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")},getPixelValue:function(t){var e=typeof t;return"number"===e?t:"string"===e?parseInt(t,10):0},valOrDefault:function(t,e){return typeof t!==p?t:e},invokeCallbackArrayHelper:function(t){var e;return Array.isArray(t)&&(e=c[t[0]],"function"==typeof e)?e.apply(this,t.slice(1)):void 0},invokeCallbackArray:function(t){var e,n;if(Array.isArray(t)){if("string"==typeof t[0])return r.invokeCallbackArrayHelper(t);for(e=0,n=t.length;n>e;++e)r.invokeCallback(t[e])}},invokeCallback:function(t){return"function"==typeof t?t():"string"==typeof t&&c[t]?c[t]():r.invokeCallbackArray(t)},invokeEventCallbacks:function(t,e){var n,a,s=l[t];if(e)return this.invokeCallback(e);for(n=0,a=s.length;a>n;++n)this.invokeCallback(s[n].cb)},getScrollTop:function(){var t;return t=typeof window.pageYOffset!==p?window.pageYOffset:b.documentElement.scrollTop},getScrollLeft:function(){var t;return t=typeof window.pageXOffset!==p?window.pageXOffset:b.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||b.documentElement.clientHeight},getWindowWidth:function(){return window.innerWidth||b.documentElement.clientWidth},addEvtListener:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},removeEvtListener:function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},documentIsReady:function(){return"complete"===b.readyState||"interactive"===b.readyState},evtPreventDefault:function(t){t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)},extend:function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},getStepTargetHelper:function(t){var e;return/^[#\.]/.test(t)?b.querySelector?b.querySelector(t):m?(e=jQuery(t),e.length?e[0]:null):h?(e=new h(t),e.length?e[0]:null):/^#[a-zA-Z][\w-_:.]*$/.test(t)?b.getElementById(t.substring(1)):null:b.getElementById(t)},getStepTarget:function(t){var e;if(!t||!t.target)return null;if("string"==typeof t.target)return t.target=r.getStepTargetHelper(t.target),t.target;if(Array.isArray(t.target)){var n,a;for(n=0,a=t.target.length;a>n;n++)if("string"==typeof t.target[n]&&(e=r.getStepTargetHelper(t.target[n])))return t.target=e,e;return null}return t.target},getI18NString:function(t){return o[t]||i[t]},setState:function(t,e,n){var a,s="";v?sessionStorage.setItem(t,e):(n&&(a=new Date,a.setTime(a.getTime()+24*n*60*60*1e3),s="; expires="+a.toGMTString()),b.cookie=t+"="+e+s+"; path=/")},getState:function(t){var e,n,a,s=t+"=",i=b.cookie.split(";");if(v)a=sessionStorage.getItem(t);else for(e=0;e=0?" prev":" next",r.addClass(n,a),n},setPosition:function(t){var e,n,a,s,i,o,l,c=6,u=r.getStepTarget(t),d=this.element,h=this.arrowEl;e=r.getPixelValue(t.width)||this.opt.bubbleWidth,a=r.valOrDefault(t.padding,this.opt.bubblePadding),r.removeClass(d,"fade-in-down fade-in-up fade-in-left fade-in-right"),!t.placement&&t.orientation&&(t.placement=t.orientation),s=u.getBoundingClientRect(),"top"===t.placement?(n=d.offsetHeight,i=s.top-n-this.opt.arrowWidth,o=s.left):"bottom"===t.placement?(i=s.bottom+this.opt.arrowWidth,o=s.left):"left"===t.placement?(i=s.top,o=s.left-e-2*a-2*c-this.opt.arrowWidth):"right"===t.placement&&(i=s.top,o=s.right+this.opt.arrowWidth),l="center"!==t.arrowOffset?r.getPixelValue(t.arrowOffset):t.arrowOffset,l?"top"===t.placement||"bottom"===t.placement?(h.style.top="","center"===l?h.style.left=e/2+a-h.offsetWidth/2+"px":h.style.left=l+"px"):("left"===t.placement||"right"===t.placement)&&(h.style.left="","center"===l?(n=n||d.offsetHeight,h.style.top=n/2+a-h.offsetHeight/2+"px"):h.style.top=l+"px"):(h.style.top="",h.style.left=""),"center"===t.xOffset?o=s.left+u.offsetWidth/2-e/2-a:o+=r.getPixelValue(t.xOffset),"center"===t.yOffset?(n=n||d.offsetHeight,i=s.top+u.offsetHeight/2-n/2-a):i+=r.getPixelValue(t.yOffset),t.fixedElement||(i+=r.getScrollTop(),o+=r.getScrollLeft()),d.style.position=t.fixedElement?"fixed":"absolute",d.style.top=i+"px",d.style.left=o+"px"},_initNavButtons:function(){var t=b.createElement("div");return this.prevBtnEl=this._createButton("hopscotch-prev",r.getI18NString("prevBtn")),this.nextBtnEl=this._createButton("hopscotch-next",r.getI18NString("nextBtn")),this.doneBtnEl=this._createButton("hopscotch-done",r.getI18NString("doneBtn")),this.ctaBtnEl=this._createButton("hopscotch-cta"),r.addClass(this.doneBtnEl,"hide"),t.appendChild(this.prevBtnEl),t.appendChild(this.ctaBtnEl),t.appendChild(this.nextBtnEl),t.appendChild(this.doneBtnEl),r.addEvtListener(this.prevBtnEl,"click",function(t){f.prevStep(!0)}),r.addEvtListener(this.nextBtnEl,"click",function(t){f.nextStep(!0)}),r.addEvtListener(this.doneBtnEl,"click",function(t){f.endTour()}),t.className="hopscotch-actions",this.buttonsEl=t,this.containerEl.appendChild(t),this},_getCloseFn:function(){var t=this;return this.closeFn||(this.closeFn=function(e){t.opt.onClose&&r.invokeCallback(t.opt.onClose),t.opt.id&&!t.opt.isTourBubble?f.getCalloutManager().removeCallout(t.opt.id):t.destroy(),r.evtPreventDefault(e)}),this.closeFn},initCloseButton:function(){var t=b.createElement("a");return t.className="hopscotch-bubble-close",t.href="#",t.title=r.getI18NString("closeTooltip"),t.innerHTML=r.getI18NString("closeTooltip"),this.opt.isTourBubble?r.addEvtListener(t,"click",function(t){var e=f.getCurrStepNum(),n=f.getCurrTour(),a=e===n.steps.length-1;r.invokeEventCallbacks("close"),f.endTour(!0,a),t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)}):r.addEvtListener(t,"click",this._getCloseFn()),r.valOrDefault(this.opt.showCloseButton,!0)||r.addClass(t,"hide"),this.closeBtnEl=t,this.containerEl.appendChild(t),this},_initArrow:function(){var t,e;return this.arrowEl=b.createElement("div"),this.arrowEl.className="hopscotch-bubble-arrow-container",e=b.createElement("div"),e.className="hopscotch-bubble-arrow-border",t=b.createElement("div"),t.className="hopscotch-bubble-arrow",this.arrowEl.appendChild(e),this.arrowEl.appendChild(t),this.element.appendChild(this.arrowEl),this},_setupCTAButton:function(t){var e=this;this._showButton(this.ctaBtnEl,!!t.showCTAButton),t.showCTAButton&&t.ctaLabel&&(this.ctaBtnEl.innerHTML=t.ctaLabel,this._ctaFn=function(){e.opt.isTourBubble||f.getCalloutManager().removeCallout(t.id),t.onCTA&&"function"==typeof t.onCTA&&t.onCTA()},r.addEvtListener(this.ctaBtnEl,"click",this._ctaFn))},_removeCTACallback:function(){this.ctaBtnEl&&this._ctaFn&&(r.removeEvtListener(this.ctaBtnEl,"click",this._ctaFn),this._ctaFn=null)},render:function(t,e,n,a){var s,i,o,l,c=this.element;return t?this.currStep=t:this.currStep&&(t=this.currStep),!t.placement&&t.orientation&&(t.placement=t.orientation),s=r.valOrDefault(t.showNextButton,this.opt.showNextButton),i=r.valOrDefault(t.showPrevButton,this.opt.showPrevButton),this.setTitle(t.title||""),this.setContent(t.content||""),this.opt.isTourBubble&&this.setNum(e),this.placement=t.placement,this.showPrevButton(this.prevBtnEl&&i&&e>0),this.showNextButton(this.nextBtnEl&&s&&!n),this.nextBtnEl.innerHTML=t.showSkip?r.getI18NString("skipBtn"):r.getI18NString("nextBtn"),n?r.removeClass(this.doneBtnEl,"hide"):r.addClass(this.doneBtnEl,"hide"),this._setupCTAButton(t),this._setArrow(t.placement),o=r.getPixelValue(t.width)||this.opt.bubbleWidth,l=r.valOrDefault(t.padding,this.opt.bubblePadding),this.containerEl.style.width=o+"px",this.containerEl.style.padding=l+"px",c.style.zIndex=t.zindex||"","top"===t.placement?(c.style.top="-9999px",c.style.left="-9999px",r.removeClass(c,"hide"),this.setPosition(t),r.addClass(c,"hide")):this.setPosition(t),a&&a(!t.fixedElement),this},setTitle:function(t){return t?(this.titleEl.innerHTML=t,r.removeClass(this.titleEl,"hide")):r.addClass(this.titleEl,"hide"),this},setContent:function(t){return t?(this.contentEl.innerHTML=t,r.removeClass(this.contentEl,"hide")):r.addClass(this.contentEl,"hide"),this},setNum:function(t){var e=r.getI18NString("stepNums");e&&th||h>=u.steps.length?null:u.steps[h]},C=function(){w.nextStep()},x=function(t){var e,n,a,s,i,o,l=$(),c=l.element,u=r.getPixelValue(c.style.top),d=u+r.getPixelValue(c.offsetHeight),h=r.getStepTarget(k()),f=h.getBoundingClientRect(),g=f.top+r.getScrollTop(),v=f.bottom+r.getScrollTop(),y=g>u?u:g,w=d>v?d:v,C=r.getScrollTop(),x=C+r.getWindowHeight(),D=y-_("scrollTopMargin");y>=C&&(y<=C+_("scrollTopMargin")||x>=w)?t&&t():_("smoothScroll")?typeof YAHOO!==p&&typeof YAHOO.env!==p&&typeof YAHOO.env.ua!==p&&typeof YAHOO.util!==p&&typeof YAHOO.util.Scroll!==p?(e=YAHOO.env.ua.webkit?b.body:b.documentElement,a=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,n=new YAHOO.util.Scroll(e,{scroll:{to:[0,D]}},_("scrollDuration")/1e3,a),n.onComplete.subscribe(t),n.animate()):m?jQuery("body, html").animate({scrollTop:D},_("scrollDuration"),t):(0>D&&(D=0),s=C>y?-1:1,i=Math.abs(C-D)/(_("scrollDuration")/10),(o=function(){var e=r.getScrollTop(),n=e+s*i;return s>0&&n>=D||0>s&&D>=n?(n=D,t&&t(),void window.scrollTo(0,n)):(window.scrollTo(0,n),r.getScrollTop()===e?void(t&&t()):void setTimeout(o,10))})()):(window.scrollTo(0,D),t&&t())},D=function(t,e){var n,a,s;h+t>=0&&h+t0?a.multipage:h>0&&u.steps[h-1].multipage,i=function(n){var i;return-1===n?this.endTour(!0):(t&&(i=e>0?r.invokeEventCallbacks("next",a.onNext):r.invokeEventCallbacks("prev",a.onPrev)),s?void r.setState(_("cookieName"),u.id+":"+h,1):(i=r.valOrDefault(i,!0),void(i?this.showStep(n):this.endTour(!1))))},!s&&_("skipIfNoElement"))D(e,function(t){i.call(l,t)});else if(h+e>=0&&h+e=u.steps.length)throw"Specified step number out of bounds.";h=e}return r.documentIsReady()?(h||u.id!==f||typeof v===p?h||(h=0):h=v,M(h,function(t){var e=-1!==t&&r.getStepTarget(u.steps[t]);return e?(r.invokeEventCallbacks("start"),n=$(),n.hide(!1),a.isActive=!0,void(r.getStepTarget(k())?a.showStep(t):(r.invokeEventCallbacks("error"),_("skipIfNoElement")&&a.nextStep(!1)))):void a.endTour(!1,!1)}),this):(g=!0,this)},this.showStep=function(t){var e=u.steps[t];return e.delay?setTimeout(function(){E(t)},e.delay):E(t),this},this.prevStep=function(t){return S.call(this,t,-1),this},this.nextStep=function(t){var e=k(),n=r.getStepTarget(e);return e.nextOnTargetClick&&r.removeEvtListener(n,"click",C),S.call(this,t,1),this},this.endTour=function(t,e){var n=$();return t=r.valOrDefault(t,!0),e=r.valOrDefault(e,!0),h=0,v=void 0,n.hide(),t&&r.clearState(_("cookieName")),this.isActive&&(this.isActive=!1,u&&e&&r.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),u=null,this},this.getCurrTour=function(){return u},this.getCurrTarget=function(){return r.getStepTarget(k())},this.getCurrStepNum=function(){return h},this.listen=function(t,e,n){return t&&l[t].push({cb:e,fromTour:n}),this},this.unlisten=function(t,e){var n,a,s=l[t];for(n=0,a=s.length;a>n;++n)s[n]===e&&s.splice(n,1);return this},this.removeCallbacks=function(t,e){var n,a,s,i;for(i in l)if(!t||t===i)if(e)for(n=l[i],a=0,s=n.length;s>a;++a)n[a].fromTour&&(n.splice(a--,1),--s);else l[i]=[];return this},this.registerHelper=function(t,e){"string"==typeof t&&"function"==typeof e&&(c[t]=e)},this.unregisterHelper=function(t){c[t]=null},this.invokeHelper=function(t){var e,n,a=[];for(e=1,n=arguments.length;n>e;++e)a.push(arguments[e]);c[t]&&c[t].call(null,a)},this.setCookieName=function(t){return i.cookieName=t,this},this.resetDefaultOptions=function(){return i={},this},this.resetDefaultI18N=function(){return o={},this},this.getState=function(){return r.getState(_("cookieName"))},y=function(t,e){var n,a,s,l,c=["next","prev","start","end","show","error","close"];for(i||this.resetDefaultOptions(),r.extend(i,t),t&&r.extend(o,t.i18n),s=0,l=c.length;l>s;++s)a="on"+c[s].charAt(0).toUpperCase()+c[s].substring(1),t[a]&&this.listen(c[s],t[a],e);return n=$(!0),this},this.configure=function(t){return y.call(this,t,!1)},Y.call(this,t)},f=new n,t[e]=f)}(window,"hopscotch"),/*! +!function(t,e){var n,a,i,o,s,r,l,c,u,d,h=window.Sizzle||null,f=t[e],p="undefined",m=!1,g=typeof window.jQuery!==p,v=!1,y=window.document;try{v=typeof window.sessionStorage!==p}catch(b){}d={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,cookieName:"hopscotch.tour.state"},f||(Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),u=function(){m&&f.startTour()},r={addClass:function(t,e){var n,a,i,o;if(t.className){for(a=e.split(/\s+/),n=" "+t.className+" ",i=0,o=a.length;o>i;++i)n.indexOf(" "+a[i]+" ")<0&&(n+=a[i]+" ");t.className=n.replace(/^\s+|\s+$/g,"")}else t.className=e},removeClass:function(t,e){var n,a,i,o;for(a=e.split(/\s+/),n=" "+t.className+" ",i=0,o=a.length;o>i;++i)n=n.replace(" "+a[i]+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")},getPixelValue:function(t){var e=typeof t;return"number"===e?t:"string"===e?parseInt(t,10):0},valOrDefault:function(t,e){return typeof t!==p?t:e},invokeCallbackArrayHelper:function(t){var e;return Array.isArray(t)&&(e=c[t[0]],"function"==typeof e)?e.apply(this,t.slice(1)):void 0},invokeCallbackArray:function(t){var e,n;if(Array.isArray(t)){if("string"==typeof t[0])return r.invokeCallbackArrayHelper(t);for(e=0,n=t.length;n>e;++e)r.invokeCallback(t[e])}},invokeCallback:function(t){return"function"==typeof t?t():"string"==typeof t&&c[t]?c[t]():r.invokeCallbackArray(t)},invokeEventCallbacks:function(t,e){var n,a,i=l[t];if(e)return this.invokeCallback(e);for(n=0,a=i.length;a>n;++n)this.invokeCallback(i[n].cb)},getScrollTop:function(){var t;return t=typeof window.pageYOffset!==p?window.pageYOffset:y.documentElement.scrollTop},getScrollLeft:function(){var t;return t=typeof window.pageXOffset!==p?window.pageXOffset:y.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||y.documentElement.clientHeight},getWindowWidth:function(){return window.innerWidth||y.documentElement.clientWidth},addEvtListener:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},removeEvtListener:function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},documentIsReady:function(){return"complete"===y.readyState||"interactive"===y.readyState},evtPreventDefault:function(t){t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)},extend:function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},getStepTargetHelper:function(t){var e;return/^[#\.]/.test(t)?y.querySelector?y.querySelector(t):g?(e=jQuery(t),e.length?e[0]:null):h?(e=new h(t),e.length?e[0]:null):/^#[a-zA-Z][\w-_:.]*$/.test(t)?y.getElementById(t.substring(1)):null:y.getElementById(t)},getStepTarget:function(t){var e;if(!t||!t.target)return null;if("string"==typeof t.target)return t.target=r.getStepTargetHelper(t.target),t.target;if(Array.isArray(t.target)){var n,a;for(n=0,a=t.target.length;a>n;n++)if("string"==typeof t.target[n]&&(e=r.getStepTargetHelper(t.target[n])))return t.target=e,e;return null}return t.target},getI18NString:function(t){return s[t]||o[t]},setState:function(t,e,n){var a,i="";v?sessionStorage.setItem(t,e):(n&&(a=new Date,a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()),y.cookie=t+"="+e+i+"; path=/")},getState:function(t){var e,n,a,i=t+"=",o=y.cookie.split(";");if(v)a=sessionStorage.getItem(t);else for(e=0;e=0?" prev":" next",r.addClass(n,a),n},setPosition:function(t){var e,n,a,i,o,s,l,c=6,u=r.getStepTarget(t),d=this.element,h=this.arrowEl;e=r.getPixelValue(t.width)||this.opt.bubbleWidth,a=r.valOrDefault(t.padding,this.opt.bubblePadding),r.removeClass(d,"fade-in-down fade-in-up fade-in-left fade-in-right"),!t.placement&&t.orientation&&(t.placement=t.orientation),i=u.getBoundingClientRect(),"top"===t.placement?(n=d.offsetHeight,o=i.top-n-this.opt.arrowWidth,s=i.left):"bottom"===t.placement?(o=i.bottom+this.opt.arrowWidth,s=i.left):"left"===t.placement?(o=i.top,s=i.left-e-2*a-2*c-this.opt.arrowWidth):"right"===t.placement&&(o=i.top,s=i.right+this.opt.arrowWidth),l="center"!==t.arrowOffset?r.getPixelValue(t.arrowOffset):t.arrowOffset,l?"top"===t.placement||"bottom"===t.placement?(h.style.top="","center"===l?h.style.left=e/2+a-h.offsetWidth/2+"px":h.style.left=l+"px"):("left"===t.placement||"right"===t.placement)&&(h.style.left="","center"===l?(n=n||d.offsetHeight,h.style.top=n/2+a-h.offsetHeight/2+"px"):h.style.top=l+"px"):(h.style.top="",h.style.left=""),"center"===t.xOffset?s=i.left+u.offsetWidth/2-e/2-a:s+=r.getPixelValue(t.xOffset),"center"===t.yOffset?(n=n||d.offsetHeight,o=i.top+u.offsetHeight/2-n/2-a):o+=r.getPixelValue(t.yOffset),t.fixedElement||(o+=r.getScrollTop(),s+=r.getScrollLeft()),d.style.position=t.fixedElement?"fixed":"absolute",d.style.top=o+"px",d.style.left=s+"px"},_initNavButtons:function(){var t=y.createElement("div");return this.prevBtnEl=this._createButton("hopscotch-prev",r.getI18NString("prevBtn")),this.nextBtnEl=this._createButton("hopscotch-next",r.getI18NString("nextBtn")),this.doneBtnEl=this._createButton("hopscotch-done",r.getI18NString("doneBtn")),this.ctaBtnEl=this._createButton("hopscotch-cta"),r.addClass(this.doneBtnEl,"hide"),t.appendChild(this.prevBtnEl),t.appendChild(this.ctaBtnEl),t.appendChild(this.nextBtnEl),t.appendChild(this.doneBtnEl),r.addEvtListener(this.prevBtnEl,"click",function(t){f.prevStep(!0)}),r.addEvtListener(this.nextBtnEl,"click",function(t){f.nextStep(!0)}),r.addEvtListener(this.doneBtnEl,"click",function(t){f.endTour()}),t.className="hopscotch-actions",this.buttonsEl=t,this.containerEl.appendChild(t),this},_getCloseFn:function(){var t=this;return this.closeFn||(this.closeFn=function(e){t.opt.onClose&&r.invokeCallback(t.opt.onClose),t.opt.id&&!t.opt.isTourBubble?f.getCalloutManager().removeCallout(t.opt.id):t.destroy(),r.evtPreventDefault(e)}),this.closeFn},initCloseButton:function(){var t=y.createElement("a");return t.className="hopscotch-bubble-close",t.href="#",t.title=r.getI18NString("closeTooltip"),t.innerHTML=r.getI18NString("closeTooltip"),this.opt.isTourBubble?r.addEvtListener(t,"click",function(t){var e=f.getCurrStepNum(),n=f.getCurrTour(),a=e===n.steps.length-1;r.invokeEventCallbacks("close"),f.endTour(!0,a),t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)}):r.addEvtListener(t,"click",this._getCloseFn()),r.valOrDefault(this.opt.showCloseButton,!0)||r.addClass(t,"hide"),this.closeBtnEl=t,this.containerEl.appendChild(t),this},_initArrow:function(){var t,e;return this.arrowEl=y.createElement("div"),this.arrowEl.className="hopscotch-bubble-arrow-container",e=y.createElement("div"),e.className="hopscotch-bubble-arrow-border",t=y.createElement("div"),t.className="hopscotch-bubble-arrow",this.arrowEl.appendChild(e),this.arrowEl.appendChild(t),this.element.appendChild(this.arrowEl),this},_setupCTAButton:function(t){var e=this;this._showButton(this.ctaBtnEl,!!t.showCTAButton),t.showCTAButton&&t.ctaLabel&&(this.ctaBtnEl.innerHTML=t.ctaLabel,this._ctaFn=function(){e.opt.isTourBubble||f.getCalloutManager().removeCallout(t.id),t.onCTA&&"function"==typeof t.onCTA&&t.onCTA()},r.addEvtListener(this.ctaBtnEl,"click",this._ctaFn))},_removeCTACallback:function(){this.ctaBtnEl&&this._ctaFn&&(r.removeEvtListener(this.ctaBtnEl,"click",this._ctaFn),this._ctaFn=null)},render:function(t,e,n,a){var i,o,s,l,c=this.element;return t?this.currStep=t:this.currStep&&(t=this.currStep),!t.placement&&t.orientation&&(t.placement=t.orientation),i=r.valOrDefault(t.showNextButton,this.opt.showNextButton),o=r.valOrDefault(t.showPrevButton,this.opt.showPrevButton),this.setTitle(t.title||""),this.setContent(t.content||""),this.opt.isTourBubble&&this.setNum(e),this.placement=t.placement,this.showPrevButton(this.prevBtnEl&&o&&e>0),this.showNextButton(this.nextBtnEl&&i&&!n),this.nextBtnEl.innerHTML=t.showSkip?r.getI18NString("skipBtn"):r.getI18NString("nextBtn"),n?r.removeClass(this.doneBtnEl,"hide"):r.addClass(this.doneBtnEl,"hide"),this._setupCTAButton(t),this._setArrow(t.placement),s=r.getPixelValue(t.width)||this.opt.bubbleWidth,l=r.valOrDefault(t.padding,this.opt.bubblePadding),this.containerEl.style.width=s+"px",this.containerEl.style.padding=l+"px",c.style.zIndex=t.zindex||"","top"===t.placement?(c.style.top="-9999px",c.style.left="-9999px",r.removeClass(c,"hide"),this.setPosition(t),r.addClass(c,"hide")):this.setPosition(t),a&&a(!t.fixedElement),this},setTitle:function(t){return t?(this.titleEl.innerHTML=t,r.removeClass(this.titleEl,"hide")):r.addClass(this.titleEl,"hide"),this},setContent:function(t){return t?(this.contentEl.innerHTML=t,r.removeClass(this.contentEl,"hide")):r.addClass(this.contentEl,"hide"),this},setNum:function(t){var e=r.getI18NString("stepNums");e&&th||h>=u.steps.length?null:u.steps[h]},C=function(){w.nextStep()},$=function(t){var e,n,a,i,o,s,l=_(),c=l.element,u=r.getPixelValue(c.style.top),d=u+r.getPixelValue(c.offsetHeight),h=r.getStepTarget(k()),f=h.getBoundingClientRect(),m=f.top+r.getScrollTop(),v=f.bottom+r.getScrollTop(),b=m>u?u:m,w=d>v?d:v,C=r.getScrollTop(),$=C+r.getWindowHeight(),T=b-x("scrollTopMargin");b>=C&&(b<=C+x("scrollTopMargin")||$>=w)?t&&t():x("smoothScroll")?typeof YAHOO!==p&&typeof YAHOO.env!==p&&typeof YAHOO.env.ua!==p&&typeof YAHOO.util!==p&&typeof YAHOO.util.Scroll!==p?(e=YAHOO.env.ua.webkit?y.body:y.documentElement,a=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,n=new YAHOO.util.Scroll(e,{scroll:{to:[0,T]}},x("scrollDuration")/1e3,a),n.onComplete.subscribe(t),n.animate()):g?jQuery("body, html").animate({scrollTop:T},x("scrollDuration"),t):(0>T&&(T=0),i=C>b?-1:1,o=Math.abs(C-T)/(x("scrollDuration")/10),(s=function(){var e=r.getScrollTop(),n=e+i*o;return i>0&&n>=T||0>i&&T>=n?(n=T,t&&t(),void window.scrollTo(0,n)):(window.scrollTo(0,n),r.getScrollTop()===e?void(t&&t()):void setTimeout(s,10))})()):(window.scrollTo(0,T),t&&t())},T=function(t,e){var n,a,i;h+t>=0&&h+t0?a.multipage:h>0&&u.steps[h-1].multipage,o=function(n){var o;return-1===n?this.endTour(!0):(t&&(o=e>0?r.invokeEventCallbacks("next",a.onNext):r.invokeEventCallbacks("prev",a.onPrev)),i?void r.setState(x("cookieName"),u.id+":"+h,1):(o=r.valOrDefault(o,!0),void(o?this.showStep(n):this.endTour(!1))))},!i&&x("skipIfNoElement"))T(e,function(t){o.call(l,t)});else if(h+e>=0&&h+e=u.steps.length)throw"Specified step number out of bounds.";h=e}return r.documentIsReady()?(h||u.id!==f||typeof v===p?h||(h=0):h=v,E(h,function(t){var e=-1!==t&&r.getStepTarget(u.steps[t]);return e?(r.invokeEventCallbacks("start"),n=_(),n.hide(!1),a.isActive=!0,void(r.getStepTarget(k())?a.showStep(t):(r.invokeEventCallbacks("error"),x("skipIfNoElement")&&a.nextStep(!1)))):void a.endTour(!1,!1)}),this):(m=!0,this)},this.showStep=function(t){var e=u.steps[t];return e.delay?setTimeout(function(){M(t)},e.delay):M(t),this},this.prevStep=function(t){return S.call(this,t,-1),this},this.nextStep=function(t){var e=k(),n=r.getStepTarget(e);return e.nextOnTargetClick&&r.removeEvtListener(n,"click",C),S.call(this,t,1),this},this.endTour=function(t,e){var n=_();return t=r.valOrDefault(t,!0),e=r.valOrDefault(e,!0),h=0,v=void 0,n.hide(),t&&r.clearState(x("cookieName")),this.isActive&&(this.isActive=!1,u&&e&&r.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),u=null,this},this.getCurrTour=function(){return u},this.getCurrTarget=function(){return r.getStepTarget(k())},this.getCurrStepNum=function(){return h},this.listen=function(t,e,n){return t&&l[t].push({cb:e,fromTour:n}),this},this.unlisten=function(t,e){var n,a,i=l[t];for(n=0,a=i.length;a>n;++n)i[n]===e&&i.splice(n,1);return this},this.removeCallbacks=function(t,e){var n,a,i,o;for(o in l)if(!t||t===o)if(e)for(n=l[o],a=0,i=n.length;i>a;++a)n[a].fromTour&&(n.splice(a--,1),--i);else l[o]=[];return this},this.registerHelper=function(t,e){"string"==typeof t&&"function"==typeof e&&(c[t]=e)},this.unregisterHelper=function(t){c[t]=null},this.invokeHelper=function(t){var e,n,a=[];for(e=1,n=arguments.length;n>e;++e)a.push(arguments[e]);c[t]&&c[t].call(null,a)},this.setCookieName=function(t){return o.cookieName=t,this},this.resetDefaultOptions=function(){return o={},this},this.resetDefaultI18N=function(){return s={},this},this.getState=function(){return r.getState(x("cookieName"))},b=function(t,e){var n,a,i,l,c=["next","prev","start","end","show","error","close"];for(o||this.resetDefaultOptions(),r.extend(o,t),t&&r.extend(s,t.i18n),i=0,l=c.length;l>i;++i)a="on"+c[i].charAt(0).toUpperCase()+c[i].substring(1),t[a]&&this.listen(c[i],t[a],e);return n=_(!0),this},this.configure=function(t){return b.call(this,t,!1)},O.call(this,t)},f=new n,t[e]=f)}(window,"hopscotch"),/*! * jQuery Cookie Plugin v1.4.0 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ -function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function n(t){return r.raw?t:decodeURIComponent(t)}function a(t){return e(r.json?JSON.stringify(t):String(t))}function s(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(o," ")),r.json?JSON.parse(t):t}catch(e){}}function i(e,n){var a=r.raw?e:s(e);return t.isFunction(n)?n(a):a}var o=/\+/g,r=t.cookie=function(s,o,l){if(void 0!==o&&!t.isFunction(o)){if(l=t.extend({},r.defaults,l),"number"==typeof l.expires){var c=l.expires,u=l.expires=new Date;u.setTime(+u+864e5*c)}return document.cookie=[e(s),"=",a(o),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=s?void 0:{},h=document.cookie?document.cookie.split("; "):[],f=0,p=h.length;p>f;f++){var g=h[f].split("="),m=n(g.shift()),v=g.join("=");if(s&&s===m){d=i(v,o);break}s||void 0===(v=i(v))||(d[m]=v)}return d};r.defaults={},t.removeCookie=function(e,n){return void 0===t.cookie(e)?!1:(t.cookie(e,"",t.extend({},n,{expires:-1})),!t.cookie(e))}}),/** +function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function n(t){return r.raw?t:decodeURIComponent(t)}function a(t){return e(r.json?JSON.stringify(t):String(t))}function i(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(s," ")),r.json?JSON.parse(t):t}catch(e){}}function o(e,n){var a=r.raw?e:i(e);return t.isFunction(n)?n(a):a}var s=/\+/g,r=t.cookie=function(i,s,l){if(void 0!==s&&!t.isFunction(s)){if(l=t.extend({},r.defaults,l),"number"==typeof l.expires){var c=l.expires,u=l.expires=new Date;u.setTime(+u+864e5*c)}return document.cookie=[e(i),"=",a(s),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=i?void 0:{},h=document.cookie?document.cookie.split("; "):[],f=0,p=h.length;p>f;f++){var m=h[f].split("="),g=n(m.shift()),v=m.join("=");if(i&&i===g){d=o(v,s);break}i||void 0===(v=o(v))||(d[g]=v)}return d};r.defaults={},t.removeCookie=function(e,n){return void 0===t.cookie(e)?!1:(t.cookie(e,"",t.extend({},n,{expires:-1})),!t.cookie(e))}}),/** * jquery.mask.js * @version: v1.6.4 * @author: Igor Escobar @@ -53,21 +53,21 @@ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery) * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ -function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(window.jQuery||window.Zepto)}(function(t){"use strict";var e=function(e,n,a){var s,i=this;e=t(e),n="function"==typeof n?n(e.val(),void 0,e,a):n,i.init=function(){a=a||{},i.byPassKeys=[9,16,17,18,36,37,38,39,40,91],i.translation={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}},i.translation=t.extend({},i.translation,a.translation),i=t.extend(!0,{},i,a),e.each(function(){a.maxlength!==!1&&e.attr("maxlength",n.length),a.placeholder&&e.attr("placeholder",a.placeholder),e.attr("autocomplete","off"),o.destroyEvents(),o.events();var t=o.getCaret();o.val(o.getMasked()),o.setCaret(t+o.getMaskCharactersBeforeCount(t,!0))})};var o={getCaret:function(){var t,n=0,a=e.get(0),s=document.selection,i=a.selectionStart;return s&&!~navigator.appVersion.indexOf("MSIE 10")?(t=s.createRange(),t.moveStart("character",e.is("input")?-e.val().length:-e.text().length),n=t.text.length):(i||"0"===i)&&(n=i),n},setCaret:function(t){if(e.is(":focus")){var n,a=e.get(0);a.setSelectionRange?a.setSelectionRange(t,t):a.createTextRange&&(n=a.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select())}},events:function(){e.on("keydown.mask",function(){s=o.val()}),e.on("keyup.mask",o.behaviour),e.on("paste.mask drop.mask",function(){setTimeout(function(){e.keydown().keyup()},100)}),e.on("change.mask",function(){e.data("changeCalled",!0)}),e.on("blur.mask",function(e){var n=t(e.target);n.prop("defaultValue")!==n.val()&&(n.prop("defaultValue",n.val()),n.data("changeCalled")||n.trigger("change")),n.data("changeCalled",!1)}),e.on("focusout.mask",function(){a.clearIfNotMatch&&o.val().length0?n?e.val(t):e.text(t):n?e.val():e.text()},getMaskCharactersBeforeCount:function(t,e){for(var a=0,s=0,o=n.length;o>s&&t>s;s++)i.translation[n.charAt(s)]||(t=e?t+1:t,a++);return a},determineCaretPos:function(t,e,a,s){var r=i.translation[n.charAt(Math.min(t-1,n.length-1))];return r?Math.min(t+a-e-s,a):o.determineCaretPos(t+1,e,a,s)},behaviour:function(e){e=e||window.event;var n=e.keyCode||e.which;if(-1===t.inArray(n,i.byPassKeys)){var a=o.getCaret(),s=o.val(),r=s.length,l=r>a,c=o.getMasked(),u=c.length,d=o.getMaskCharactersBeforeCount(u-1)-o.getMaskCharactersBeforeCount(r-1);return c!==s&&o.val(c),!l||65===n&&e.ctrlKey||(8!==n&&46!==n&&(a=o.determineCaretPos(a,r,u,d)),o.setCaret(a)),o.callbacks(e)}},getMasked:function(t){var e,s,r=[],l=o.val(),c=0,u=n.length,d=0,h=l.length,f=1,p="push",g=-1;for(a.reverse?(p="unshift",f=-1,e=0,c=u-1,d=h-1,s=function(){return c>-1&&d>-1}):(e=u-1,s=function(){return u>c&&h>d});s();){var m=n.charAt(c),v=l.charAt(d),b=i.translation[m];b?(v.match(b.pattern)?(r[p](v),b.recursive&&(-1===g?g=c:c===e&&(c=g-f),e===g&&(c-=f)),c+=f):b.optional&&(c+=f,d-=f),d+=f):(t||r[p](m),v===m&&(d+=f),c+=f)}var y=n.charAt(e);return u!==h+1||i.translation[y]||r.push(y),r.join("")},callbacks:function(t){var i=o.val(),r=o.val()!==s;r===!0&&"function"==typeof a.onChange&&a.onChange(i,t,e,a),r===!0&&"function"==typeof a.onKeyPress&&a.onKeyPress(i,t,e,a),"function"==typeof a.onComplete&&i.length===n.length&&a.onComplete(i,t,e,a)}};i.remove=function(){var t=o.getCaret(),e=o.getMaskCharactersBeforeCount(t);o.destroyEvents(),o.val(i.getCleanVal()).removeAttr("maxlength"),o.setCaret(t-e)},i.getCleanVal=function(){return o.getMasked(!0)},i.init()};t.fn.mask=function(n,a){return this.unmask(),this.each(function(){t(this).data("mask",new e(this,n,a))})},t.fn.unmask=function(){return this.each(function(){try{t(this).data("mask").remove()}catch(e){}})},t.fn.cleanVal=function(){return t(this).data("mask").getCleanVal()},t("*[data-mask]").each(function(){var e=t(this),n={},a="data-mask-";"true"===e.attr(a+"reverse")&&(n.reverse=!0),"false"===e.attr(a+"maxlength")&&(n.maxlength=!1),"true"===e.attr(a+"clearifnotmatch")&&(n.clearIfNotMatch=!0),e.mask(e.attr("data-mask"),n)})}), +function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(window.jQuery||window.Zepto)}(function(t){"use strict";var e=function(e,n,a){var i,o=this;e=t(e),n="function"==typeof n?n(e.val(),void 0,e,a):n,o.init=function(){a=a||{},o.byPassKeys=[9,16,17,18,36,37,38,39,40,91],o.translation={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}},o.translation=t.extend({},o.translation,a.translation),o=t.extend(!0,{},o,a),e.each(function(){a.maxlength!==!1&&e.attr("maxlength",n.length),a.placeholder&&e.attr("placeholder",a.placeholder),e.attr("autocomplete","off"),s.destroyEvents(),s.events();var t=s.getCaret();s.val(s.getMasked()),s.setCaret(t+s.getMaskCharactersBeforeCount(t,!0))})};var s={getCaret:function(){var t,n=0,a=e.get(0),i=document.selection,o=a.selectionStart;return i&&!~navigator.appVersion.indexOf("MSIE 10")?(t=i.createRange(),t.moveStart("character",e.is("input")?-e.val().length:-e.text().length),n=t.text.length):(o||"0"===o)&&(n=o),n},setCaret:function(t){if(e.is(":focus")){var n,a=e.get(0);a.setSelectionRange?a.setSelectionRange(t,t):a.createTextRange&&(n=a.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select())}},events:function(){e.on("keydown.mask",function(){i=s.val()}),e.on("keyup.mask",s.behaviour),e.on("paste.mask drop.mask",function(){setTimeout(function(){e.keydown().keyup()},100)}),e.on("change.mask",function(){e.data("changeCalled",!0)}),e.on("blur.mask",function(e){var n=t(e.target);n.prop("defaultValue")!==n.val()&&(n.prop("defaultValue",n.val()),n.data("changeCalled")||n.trigger("change")),n.data("changeCalled",!1)}),e.on("focusout.mask",function(){a.clearIfNotMatch&&s.val().length0?n?e.val(t):e.text(t):n?e.val():e.text()},getMaskCharactersBeforeCount:function(t,e){for(var a=0,i=0,s=n.length;s>i&&t>i;i++)o.translation[n.charAt(i)]||(t=e?t+1:t,a++);return a},determineCaretPos:function(t,e,a,i){var r=o.translation[n.charAt(Math.min(t-1,n.length-1))];return r?Math.min(t+a-e-i,a):s.determineCaretPos(t+1,e,a,i)},behaviour:function(e){e=e||window.event;var n=e.keyCode||e.which;if(-1===t.inArray(n,o.byPassKeys)){var a=s.getCaret(),i=s.val(),r=i.length,l=r>a,c=s.getMasked(),u=c.length,d=s.getMaskCharactersBeforeCount(u-1)-s.getMaskCharactersBeforeCount(r-1);return c!==i&&s.val(c),!l||65===n&&e.ctrlKey||(8!==n&&46!==n&&(a=s.determineCaretPos(a,r,u,d)),s.setCaret(a)),s.callbacks(e)}},getMasked:function(t){var e,i,r=[],l=s.val(),c=0,u=n.length,d=0,h=l.length,f=1,p="push",m=-1;for(a.reverse?(p="unshift",f=-1,e=0,c=u-1,d=h-1,i=function(){return c>-1&&d>-1}):(e=u-1,i=function(){return u>c&&h>d});i();){var g=n.charAt(c),v=l.charAt(d),y=o.translation[g];y?(v.match(y.pattern)?(r[p](v),y.recursive&&(-1===m?m=c:c===e&&(c=m-f),e===m&&(c-=f)),c+=f):y.optional&&(c+=f,d-=f),d+=f):(t||r[p](g),v===g&&(d+=f),c+=f)}var b=n.charAt(e);return u!==h+1||o.translation[b]||r.push(b),r.join("")},callbacks:function(t){var o=s.val(),r=s.val()!==i;r===!0&&"function"==typeof a.onChange&&a.onChange(o,t,e,a),r===!0&&"function"==typeof a.onKeyPress&&a.onKeyPress(o,t,e,a),"function"==typeof a.onComplete&&o.length===n.length&&a.onComplete(o,t,e,a)}};o.remove=function(){var t=s.getCaret(),e=s.getMaskCharactersBeforeCount(t);s.destroyEvents(),s.val(o.getCleanVal()).removeAttr("maxlength"),s.setCaret(t-e)},o.getCleanVal=function(){return s.getMasked(!0)},o.init()};t.fn.mask=function(n,a){return this.unmask(),this.each(function(){t(this).data("mask",new e(this,n,a))})},t.fn.unmask=function(){return this.each(function(){try{t(this).data("mask").remove()}catch(e){}})},t.fn.cleanVal=function(){return t(this).data("mask").getCleanVal()},t("*[data-mask]").each(function(){var e=t(this),n={},a="data-mask-";"true"===e.attr(a+"reverse")&&(n.reverse=!0),"false"===e.attr(a+"maxlength")&&(n.maxlength=!1),"true"===e.attr(a+"clearifnotmatch")&&(n.clearIfNotMatch=!0),e.mask(e.attr("data-mask"),n)})}), //! moment.js //! version : 2.5.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -function(t){function e(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function n(t,e){return function(n){return u(t.call(this,n),e)}}function a(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}function s(){}function i(t){_(t),r(this,t)}function o(t){var e=m(t),n=e.year||0,a=e.month||0,s=e.week||0,i=e.day||0,o=e.hour||0,r=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*r+36e5*o,this._days=+i+7*s,this._months=+a+12*n,this._data={},this._bubble()}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function l(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&mt.hasOwnProperty(e)&&(n[e]=t[e]);return n}function c(t){return 0>t?Math.ceil(t):Math.floor(t)}function u(t,e,n){for(var a=""+Math.abs(t),s=t>=0;a.lengtha;a++)(n&&t[a]!==e[a]||!n&&b(t[a])!==b(e[a]))&&o++;return o+i}function g(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Rt[t]||Ut[e]||e}return t}function m(t){var e,n,a={};for(n in t)t.hasOwnProperty(n)&&(e=g(n),e&&(a[e]=t[n]));return a}function v(e){var n,a;if(0===e.indexOf("week"))n=7,a="day";else{if(0!==e.indexOf("month"))return;n=12,a="month"}at[e]=function(s,i){var o,r,l=at.fn._lang[e],c=[];if("number"==typeof s&&(i=s,s=t),r=function(t){var e=at().utc().set(a,t);return l.call(at.fn._lang,e,s||"")},null!=i)return r(i);for(o=0;n>o;o++)c.push(r(o));return c}}function b(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function y(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function w(t){return $(t)?366:365}function $(t){return t%4===0&&t%100!==0||t%400===0}function _(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ct]<0||t._a[ct]>11?ct:t._a[ut]<1||t._a[ut]>y(t._a[lt],t._a[ct])?ut:t._a[dt]<0||t._a[dt]>23?dt:t._a[ht]<0||t._a[ht]>59?ht:t._a[ft]<0||t._a[ft]>59?ft:t._a[pt]<0||t._a[pt]>999?pt:-1,t._pf._overflowDayOfYear&&(lt>e||e>ut)&&(e=ut),t._pf.overflow=e)}function k(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function x(t,e){return e._isUTC?at(t).zone(e._offset||0):at(t).local()}function D(t,e){return e.abbr=t,gt[t]||(gt[t]=new s),gt[t].set(e),gt[t]}function S(t){delete gt[t]}function T(t){var e,n,a,s,i=0,o=function(t){if(!gt[t]&&vt)try{require("./lang/"+t)}catch(e){}return gt[t]};if(!t)return at.fn._lang;if(!h(t)){if(n=o(t))return n;t=[t]}for(;i0;){if(n=o(s.slice(0,e).join("-")))return n;if(a&&a.length>=e&&p(s,a,!0)>=e-1)break;e--}i++}return at.fn._lang}function M(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function E(t){var e,n,a=t.match($t);for(e=0,n=a.length;n>e;e++)a[e]=qt[a[e]]?qt[a[e]]:M(a[e]);return function(s){var i="";for(e=0;n>e;e++)i+=a[e]instanceof Function?a[e].call(s,t):a[e];return i}}function Y(t,e){return t.isValid()?(e=O(e,t.lang()),Vt[e]||(Vt[e]=E(e)),Vt[e](t)):t.lang().invalidDate()}function O(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(_t.lastIndex=0;a>=0&&_t.test(t);)t=t.replace(_t,n),_t.lastIndex=0,a-=1;return t}function B(t,e){var n,a=e._strict;switch(t){case"DDDD":return At;case"YYYY":case"GGGG":case"gggg":return a?Nt:xt;case"Y":case"G":case"g":return Lt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Pt:Dt;case"S":if(a)return Ot;case"SS":if(a)return Bt;case"SSS":if(a)return At;case"DDD":return Ct;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Tt;case"a":case"A":return T(e._l)._meridiemParse;case"X":return Yt;case"Z":case"ZZ":return Mt;case"T":return Et;case"SSSS":return St;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Bt:kt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return kt;default:return n=new RegExp(z(H(t.replace("\\","")),"i"))}}function A(t){t=t||"";var e=t.match(Mt)||[],n=e[e.length-1]||[],a=(n+"").match(jt)||["-",0,0],s=+(60*a[1])+b(a[2]);return"+"===a[0]?-s:s}function N(t,e,n){var a,s=n._a;switch(t){case"M":case"MM":null!=e&&(s[ct]=b(e)-1);break;case"MMM":case"MMMM":a=T(n._l).monthsParse(e),null!=a?s[ct]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(s[ut]=b(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=b(e));break;case"YY":s[lt]=b(e)+(b(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":s[lt]=b(e);break;case"a":case"A":n._isPm=T(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":s[dt]=b(e);break;case"m":case"mm":s[ht]=b(e);break;case"s":case"ss":s[ft]=b(e);break;case"S":case"SS":case"SSS":case"SSSS":s[pt]=b(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=A(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function P(t){var e,n,a,s,i,o,r,l,c,u,d=[];if(!t._d){for(a=I(t),t._w&&null==t._a[ut]&&null==t._a[ct]&&(i=function(e){var n=parseInt(e,10);return e?e.length<3?n>68?1900+n:2e3+n:n:null==t._a[lt]?at().weekYear():t._a[lt]},o=t._w,null!=o.GG||null!=o.W||null!=o.E?r=Q(i(o.GG),o.W||1,o.E,4,1):(l=T(t._l),c=null!=o.d?V(o.d,l):null!=o.e?parseInt(o.e,10)+l._week.dow:0,u=parseInt(o.w,10)||1,null!=o.d&&cw(s)&&(t._pf._overflowDayOfYear=!0),n=U(s,0,t._dayOfYear),t._a[ct]=n.getUTCMonth(),t._a[ut]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=d[e]=a[e];for(;7>e;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];d[dt]+=b((t._tzm||0)/60),d[ht]+=b((t._tzm||0)%60),t._d=(t._useUTC?U:R).apply(null,d)}}function L(t){var e;t._d||(e=m(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],P(t))}function I(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function W(t){t._a=[],t._pf.empty=!0;var e,n,a,s,i,o=T(t._l),r=""+t._i,l=r.length,c=0;for(a=O(t._f,o).match($t)||[],e=0;e0&&t._pf.unusedInput.push(i),r=r.slice(r.indexOf(n)+n.length),c+=n.length),qt[s]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(s),N(s,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=l-c,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&t._a[dt]<12&&(t._a[dt]+=12),t._isPm===!1&&12===t._a[dt]&&(t._a[dt]=0),P(t),_(t)}function H(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,s){return e||n||a||s})}function z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function j(t){var n,a,s,i,o;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;io)&&(s=o,a=n));r(t,a||n)}function F(t){var e,n,a=t._i,s=It.exec(a);if(s){for(t._pf.iso=!0,e=0,n=Ht.length;n>e;e++)if(Ht[e][1].exec(a)){t._f=Ht[e][0]+(s[6]||" ");break}for(e=0,n=zt.length;n>e;e++)if(zt[e][1].exec(a)){t._f+=zt[e][0];break}a.match(Mt)&&(t._f+="Z"),W(t)}else t._d=new Date(a)}function G(e){var n=e._i,a=bt.exec(n);n===t?e._d=new Date:a?e._d=new Date(+a[1]):"string"==typeof n?F(e):h(n)?(e._a=n.slice(0),P(e)):f(n)?e._d=new Date(+n):"object"==typeof n?L(e):e._d=new Date(n)}function R(t,e,n,a,s,i,o){var r=new Date(t,e,n,a,s,i,o);return 1970>t&&r.setFullYear(t),r}function U(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function V(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function Z(t,e,n,a,s){return s.relativeTime(e||1,!!n,t,a)}function J(t,e,n){var a=rt(Math.abs(t)/1e3),s=rt(a/60),i=rt(s/60),o=rt(i/24),r=rt(o/365),l=45>a&&["s",a]||1===s&&["m"]||45>s&&["mm",s]||1===i&&["h"]||22>i&&["hh",i]||1===o&&["d"]||25>=o&&["dd",o]||45>=o&&["M"]||345>o&&["MM",rt(o/30)]||1===r&&["y"]||["yy",r];return l[2]=e,l[3]=t>0,l[4]=n,Z.apply({},l)}function q(t,e,n){var a,s=n-e,i=n-t.day();return i>s&&(i-=7),s-7>i&&(i+=7),a=at(t).add("d",i),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function Q(t,e,n,a,s){var i,o,r=U(t,0,1).getUTCDay();return n=null!=n?n:s,i=s-r+(r>a?7:0)-(s>r?7:0),o=7*(e-1)+(n-s)+i+1,{year:o>0?t:t-1,dayOfYear:o>0?o:w(t-1)+o}}function X(t){var e=t._i,n=t._f;return null===e?at.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=T().preparse(e)),at.isMoment(e)?(t=l(e),t._d=new Date(+e._d)):n?h(n)?j(t):W(t):G(t),new i(t))}function K(t,e){at.fn[t]=at.fn[t+"s"]=function(t){var n=this._isUTC?"UTC":"";return null!=t?(this._d["set"+n+e](t),at.updateOffset(this),this):this._d["get"+n+e]()}}function tt(t){at.duration.fn[t]=function(){return this._data[t]}}function et(t,e){at.duration.fn["as"+t]=function(){return+this/e}}function nt(t){var e=!1,n=at;"undefined"==typeof ender&&(t?(ot.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),n.apply(null,arguments)},r(ot.moment,n)):ot.moment=at)}for(var at,st,it="2.5.1",ot=this,rt=Math.round,lt=0,ct=1,ut=2,dt=3,ht=4,ft=5,pt=6,gt={},mt={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},vt="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,bt=/^\/?Date\((\-?\d+)/i,yt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,$t=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,_t=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,kt=/\d\d?/,Ct=/\d{1,3}/,xt=/\d{1,4}/,Dt=/[+\-]?\d{1,6}/,St=/\d+/,Tt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Mt=/Z|[\+\-]\d\d:?\d\d/gi,Et=/T/i,Yt=/[\+\-]?\d+(\.\d{1,3})?/,Ot=/\d/,Bt=/\d\d/,At=/\d{3}/,Nt=/\d{4}/,Pt=/[+-]?\d{6}/,Lt=/[+-]?\d+/,It=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wt="YYYY-MM-DDTHH:mm:ssZ",Ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],zt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],jt=/([\+\-]|\d\d)/gi,Ft="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),Gt={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Rt={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Ut={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Vt={},Zt="DDD w W M D d".split(" "),Jt="M D H h m s w W".split(" "),qt={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+u(Math.abs(t),6)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return u(this.weekYear(),4)},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return u(this.isoWeekYear(),4)},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return b(this.milliseconds()/100)},SS:function(){return u(b(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},SSSS:function(){return u(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(b(t/60),2)+":"+u(b(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(b(t/60),2)+u(b(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Qt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Zt.length;)st=Zt.pop(),qt[st+"o"]=a(qt[st],st);for(;Jt.length;)st=Jt.pop(),qt[st+st]=n(qt[st],2);for(qt.DDDD=n(qt.DDD,3),r(s.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,a;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=at.utc([2e3,e]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(a.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=at([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var s=this._relativeTime[n];return"function"==typeof s?s(t,e,n,a):s.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return q(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),at=function(n,a,s,i){var o;return"boolean"==typeof s&&(i=s,s=t),o={},o._isAMomentObject=!0,o._i=n,o._f=a,o._l=s,o._strict=i,o._isUTC=!1,o._pf=e(),X(o)},at.utc=function(n,a,s,i){var o;return"boolean"==typeof s&&(i=s,s=t),o={},o._isAMomentObject=!0,o._useUTC=!0,o._isUTC=!0,o._l=s,o._i=n,o._f=a,o._strict=i,o._pf=e(),X(o).utc()},at.unix=function(t){return at(1e3*t)},at.duration=function(t,e){var n,a,s,i=t,r=null;return at.isDuration(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(i={},e?i[e]=t:i.milliseconds=t):(r=yt.exec(t))?(n="-"===r[1]?-1:1,i={y:0,d:b(r[ut])*n,h:b(r[dt])*n,m:b(r[ht])*n,s:b(r[ft])*n,ms:b(r[pt])*n}):(r=wt.exec(t))&&(n="-"===r[1]?-1:1,s=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},i={y:s(r[2]),M:s(r[3]),d:s(r[4]),h:s(r[5]),m:s(r[6]),s:s(r[7]),w:s(r[8])}),a=new o(i),at.isDuration(t)&&t.hasOwnProperty("_lang")&&(a._lang=t._lang),a},at.version=it,at.defaultFormat=Wt,at.updateOffset=function(){},at.lang=function(t,e){var n;return t?(e?D(C(t),e):null===e?(S(t),t="en"):gt[t]||T(t),n=at.duration.fn._lang=at.fn._lang=T(t),n._abbr):at.fn._lang._abbr},at.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),T(t)},at.isMoment=function(t){return t instanceof i||null!=t&&t.hasOwnProperty("_isAMomentObject")},at.isDuration=function(t){return t instanceof o},st=Qt.length-1;st>=0;--st)v(Qt[st]);for(at.normalizeUnits=function(t){return g(t)},at.invalid=function(t){var e=at.utc(NaN);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},at.parseZone=function(t){return at(t).parseZone()},r(at.fn=i.prototype,{clone:function(){return at(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=at(this).utc();return 00:!1},parsingFlags:function(){return r({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=Y(this,t||at.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,-1),this},diff:function(t,e,n){var a,s,i=x(t,this),o=6e4*(this.zone()-i.zone());return e=g(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+i.daysInMonth()),s=12*(this.year()-i.year())+(this.month()-i.month()),s+=(this-at(this).startOf("month")-(i-at(i).startOf("month")))/a,s-=6e4*(this.zone()-at(this).startOf("month").zone()-(i.zone()-at(i).startOf("month").zone()))/a,"year"===e&&(s/=12)):(a=this-i,s="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-o)/864e5:"week"===e?(a-o)/6048e5:a),n?s:c(s)},from:function(t,e){return at.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(at(),t)},calendar:function(){var t=x(at(),this).startOf("day"),e=this.diff(t,"days",!0),n=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(n,this))},isLeapYear:function(){return $(this.year())},isDST:function(){return this.zone()+at(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+at(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+x(t,this).startOf(e)},min:function(t){return t=at.apply(null,arguments),this>t?this:t},max:function(t){return t=at.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=A(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&d(this,at.duration(e-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?at(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return y(this.year(),this.month())},dayOfYear:function(t){var e=rt((at(this).startOf("day")-at(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=q(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=q(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=q(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return t=g(t),this[t]()},set:function(t,e){return t=g(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=T(e),this)}}),st=0;stt?Math.ceil(t):Math.floor(t)}function u(t,e,n){for(var a=""+Math.abs(t),i=t>=0;a.lengtha;a++)(n&&t[a]!==e[a]||!n&&y(t[a])!==y(e[a]))&&s++;return s+o}function m(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Ut[t]||Gt[e]||e}return t}function g(t){var e,n,a={};for(n in t)t.hasOwnProperty(n)&&(e=m(n),e&&(a[e]=t[n]));return a}function v(e){var n,a;if(0===e.indexOf("week"))n=7,a="day";else{if(0!==e.indexOf("month"))return;n=12,a="month"}at[e]=function(i,o){var s,r,l=at.fn._lang[e],c=[];if("number"==typeof i&&(o=i,i=t),r=function(t){var e=at().utc().set(a,t);return l.call(at.fn._lang,e,i||"")},null!=o)return r(o);for(s=0;n>s;s++)c.push(r(s));return c}}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function b(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function w(t){return _(t)?366:365}function _(t){return t%4===0&&t%100!==0||t%400===0}function x(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ct]<0||t._a[ct]>11?ct:t._a[ut]<1||t._a[ut]>b(t._a[lt],t._a[ct])?ut:t._a[dt]<0||t._a[dt]>23?dt:t._a[ht]<0||t._a[ht]>59?ht:t._a[ft]<0||t._a[ft]>59?ft:t._a[pt]<0||t._a[pt]>999?pt:-1,t._pf._overflowDayOfYear&&(lt>e||e>ut)&&(e=ut),t._pf.overflow=e)}function k(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function $(t,e){return e._isUTC?at(t).zone(e._offset||0):at(t).local()}function T(t,e){return e.abbr=t,mt[t]||(mt[t]=new i),mt[t].set(e),mt[t]}function S(t){delete mt[t]}function D(t){var e,n,a,i,o=0,s=function(t){if(!mt[t]&&vt)try{require("./lang/"+t)}catch(e){}return mt[t]};if(!t)return at.fn._lang;if(!h(t)){if(n=s(t))return n;t=[t]}for(;o0;){if(n=s(i.slice(0,e).join("-")))return n;if(a&&a.length>=e&&p(i,a,!0)>=e-1)break;e--}o++}return at.fn._lang}function E(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function M(t){var e,n,a=t.match(_t);for(e=0,n=a.length;n>e;e++)a[e]=Zt[a[e]]?Zt[a[e]]:E(a[e]);return function(i){var o="";for(e=0;n>e;e++)o+=a[e]instanceof Function?a[e].call(i,t):a[e];return o}}function O(t,e){return t.isValid()?(e=A(e,t.lang()),qt[e]||(qt[e]=M(e)),qt[e](t)):t.lang().invalidDate()}function A(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(xt.lastIndex=0;a>=0&&xt.test(t);)t=t.replace(xt,n),xt.lastIndex=0,a-=1;return t}function B(t,e){var n,a=e._strict;switch(t){case"DDDD":return Nt;case"YYYY":case"GGGG":case"gggg":return a?Lt:$t;case"Y":case"G":case"g":return Yt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Pt:Tt;case"S":if(a)return At;case"SS":if(a)return Bt;case"SSS":if(a)return Nt;case"DDD":return Ct;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Dt;case"a":case"A":return D(e._l)._meridiemParse;case"X":return Ot;case"Z":case"ZZ":return Et;case"T":return Mt;case"SSSS":return St;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Bt:kt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return kt;default:return n=new RegExp(R(W(t.replace("\\","")),"i"))}}function N(t){t=t||"";var e=t.match(Et)||[],n=e[e.length-1]||[],a=(n+"").match(zt)||["-",0,0],i=+(60*a[1])+y(a[2]);return"+"===a[0]?-i:i}function L(t,e,n){var a,i=n._a;switch(t){case"M":case"MM":null!=e&&(i[ct]=y(e)-1);break;case"MMM":case"MMMM":a=D(n._l).monthsParse(e),null!=a?i[ct]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(i[ut]=y(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=y(e));break;case"YY":i[lt]=y(e)+(y(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":i[lt]=y(e);break;case"a":case"A":n._isPm=D(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":i[dt]=y(e);break;case"m":case"mm":i[ht]=y(e);break;case"s":case"ss":i[ft]=y(e);break;case"S":case"SS":case"SSS":case"SSSS":i[pt]=y(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=N(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function P(t){var e,n,a,i,o,s,r,l,c,u,d=[];if(!t._d){for(a=H(t),t._w&&null==t._a[ut]&&null==t._a[ct]&&(o=function(e){var n=parseInt(e,10);return e?e.length<3?n>68?1900+n:2e3+n:n:null==t._a[lt]?at().weekYear():t._a[lt]},s=t._w,null!=s.GG||null!=s.W||null!=s.E?r=J(o(s.GG),s.W||1,s.E,4,1):(l=D(t._l),c=null!=s.d?q(s.d,l):null!=s.e?parseInt(s.e,10)+l._week.dow:0,u=parseInt(s.w,10)||1,null!=s.d&&cw(i)&&(t._pf._overflowDayOfYear=!0),n=G(i,0,t._dayOfYear),t._a[ct]=n.getUTCMonth(),t._a[ut]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=d[e]=a[e];for(;7>e;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];d[dt]+=y((t._tzm||0)/60),d[ht]+=y((t._tzm||0)%60),t._d=(t._useUTC?G:U).apply(null,d)}}function Y(t){var e;t._d||(e=g(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],P(t))}function H(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function I(t){t._a=[],t._pf.empty=!0;var e,n,a,i,o,s=D(t._l),r=""+t._i,l=r.length,c=0;for(a=A(t._f,s).match(_t)||[],e=0;e0&&t._pf.unusedInput.push(o),r=r.slice(r.indexOf(n)+n.length),c+=n.length),Zt[i]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(i),L(i,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(i);t._pf.charsLeftOver=l-c,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&t._a[dt]<12&&(t._a[dt]+=12),t._isPm===!1&&12===t._a[dt]&&(t._a[dt]=0),P(t),x(t)}function W(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,i){return e||n||a||i})}function R(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(t){var n,a,i,o,s;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;os)&&(i=s,a=n));r(t,a||n)}function j(t){var e,n,a=t._i,i=Ht.exec(a);if(i){for(t._pf.iso=!0,e=0,n=Wt.length;n>e;e++)if(Wt[e][1].exec(a)){t._f=Wt[e][0]+(i[6]||" ");break}for(e=0,n=Rt.length;n>e;e++)if(Rt[e][1].exec(a)){t._f+=Rt[e][0];break}a.match(Et)&&(t._f+="Z"),I(t)}else t._d=new Date(a)}function F(e){var n=e._i,a=yt.exec(n);n===t?e._d=new Date:a?e._d=new Date(+a[1]):"string"==typeof n?j(e):h(n)?(e._a=n.slice(0),P(e)):f(n)?e._d=new Date(+n):"object"==typeof n?Y(e):e._d=new Date(n)}function U(t,e,n,a,i,o,s){var r=new Date(t,e,n,a,i,o,s);return 1970>t&&r.setFullYear(t),r}function G(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function q(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function V(t,e,n,a,i){return i.relativeTime(e||1,!!n,t,a)}function Q(t,e,n){var a=rt(Math.abs(t)/1e3),i=rt(a/60),o=rt(i/60),s=rt(o/24),r=rt(s/365),l=45>a&&["s",a]||1===i&&["m"]||45>i&&["mm",i]||1===o&&["h"]||22>o&&["hh",o]||1===s&&["d"]||25>=s&&["dd",s]||45>=s&&["M"]||345>s&&["MM",rt(s/30)]||1===r&&["y"]||["yy",r];return l[2]=e,l[3]=t>0,l[4]=n,V.apply({},l)}function Z(t,e,n){var a,i=n-e,o=n-t.day();return o>i&&(o-=7),i-7>o&&(o+=7),a=at(t).add("d",o),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function J(t,e,n,a,i){var o,s,r=G(t,0,1).getUTCDay();return n=null!=n?n:i,o=i-r+(r>a?7:0)-(i>r?7:0),s=7*(e-1)+(n-i)+o+1,{year:s>0?t:t-1,dayOfYear:s>0?s:w(t-1)+s}}function X(t){var e=t._i,n=t._f;return null===e?at.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=D().preparse(e)),at.isMoment(e)?(t=l(e),t._d=new Date(+e._d)):n?h(n)?z(t):I(t):F(t),new o(t))}function K(t,e){at.fn[t]=at.fn[t+"s"]=function(t){var n=this._isUTC?"UTC":"";return null!=t?(this._d["set"+n+e](t),at.updateOffset(this),this):this._d["get"+n+e]()}}function tt(t){at.duration.fn[t]=function(){return this._data[t]}}function et(t,e){at.duration.fn["as"+t]=function(){return+this/e}}function nt(t){var e=!1,n=at;"undefined"==typeof ender&&(t?(st.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),n.apply(null,arguments)},r(st.moment,n)):st.moment=at)}for(var at,it,ot="2.5.1",st=this,rt=Math.round,lt=0,ct=1,ut=2,dt=3,ht=4,ft=5,pt=6,mt={},gt={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},vt="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,yt=/^\/?Date\((\-?\d+)/i,bt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,_t=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,xt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,kt=/\d\d?/,Ct=/\d{1,3}/,$t=/\d{1,4}/,Tt=/[+\-]?\d{1,6}/,St=/\d+/,Dt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Et=/Z|[\+\-]\d\d:?\d\d/gi,Mt=/T/i,Ot=/[\+\-]?\d+(\.\d{1,3})?/,At=/\d/,Bt=/\d\d/,Nt=/\d{3}/,Lt=/\d{4}/,Pt=/[+-]?\d{6}/,Yt=/[+-]?\d+/,Ht=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,It="YYYY-MM-DDTHH:mm:ssZ",Wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Rt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],zt=/([\+\-]|\d\d)/gi,jt="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),Ft={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Ut={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Gt={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},qt={},Vt="DDD w W M D d".split(" "),Qt="M D H h m s w W".split(" "),Zt={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+u(Math.abs(t),6)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return u(this.weekYear(),4)},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return u(this.isoWeekYear(),4)},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return y(this.milliseconds()/100)},SS:function(){return u(y(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},SSSS:function(){return u(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+":"+u(y(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+u(y(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Jt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Vt.length;)it=Vt.pop(),Zt[it+"o"]=a(Zt[it],it);for(;Qt.length;)it=Qt.pop(),Zt[it+it]=n(Zt[it],2);for(Zt.DDDD=n(Zt.DDD,3),r(i.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,a;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=at.utc([2e3,e]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(a.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=at([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,a):i.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Z(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),at=function(n,a,i,o){var s;return"boolean"==typeof i&&(o=i,i=t),s={},s._isAMomentObject=!0,s._i=n,s._f=a,s._l=i,s._strict=o,s._isUTC=!1,s._pf=e(),X(s)},at.utc=function(n,a,i,o){var s;return"boolean"==typeof i&&(o=i,i=t),s={},s._isAMomentObject=!0,s._useUTC=!0,s._isUTC=!0,s._l=i,s._i=n,s._f=a,s._strict=o,s._pf=e(),X(s).utc()},at.unix=function(t){return at(1e3*t)},at.duration=function(t,e){var n,a,i,o=t,r=null;return at.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(r=bt.exec(t))?(n="-"===r[1]?-1:1,o={y:0,d:y(r[ut])*n,h:y(r[dt])*n,m:y(r[ht])*n,s:y(r[ft])*n,ms:y(r[pt])*n}):(r=wt.exec(t))&&(n="-"===r[1]?-1:1,i=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},o={y:i(r[2]),M:i(r[3]),d:i(r[4]),h:i(r[5]),m:i(r[6]),s:i(r[7]),w:i(r[8])}),a=new s(o),at.isDuration(t)&&t.hasOwnProperty("_lang")&&(a._lang=t._lang),a},at.version=ot,at.defaultFormat=It,at.updateOffset=function(){},at.lang=function(t,e){var n;return t?(e?T(C(t),e):null===e?(S(t),t="en"):mt[t]||D(t),n=at.duration.fn._lang=at.fn._lang=D(t),n._abbr):at.fn._lang._abbr},at.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),D(t)},at.isMoment=function(t){return t instanceof o||null!=t&&t.hasOwnProperty("_isAMomentObject")},at.isDuration=function(t){return t instanceof s},it=Jt.length-1;it>=0;--it)v(Jt[it]);for(at.normalizeUnits=function(t){return m(t)},at.invalid=function(t){var e=at.utc(NaN);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},at.parseZone=function(t){return at(t).parseZone()},r(at.fn=o.prototype,{clone:function(){return at(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=at(this).utc();return 00:!1},parsingFlags:function(){return r({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=O(this,t||at.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,-1),this},diff:function(t,e,n){var a,i,o=$(t,this),s=6e4*(this.zone()-o.zone());return e=m(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+o.daysInMonth()),i=12*(this.year()-o.year())+(this.month()-o.month()),i+=(this-at(this).startOf("month")-(o-at(o).startOf("month")))/a,i-=6e4*(this.zone()-at(this).startOf("month").zone()-(o.zone()-at(o).startOf("month").zone()))/a,"year"===e&&(i/=12)):(a=this-o,i="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-s)/864e5:"week"===e?(a-s)/6048e5:a),n?i:c(i)},from:function(t,e){return at.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(at(),t)},calendar:function(){var t=$(at(),this).startOf("day"),e=this.diff(t,"days",!0),n=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(n,this))},isLeapYear:function(){return _(this.year())},isDST:function(){return this.zone()+at(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+at(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+$(t,this).startOf(e)},min:function(t){return t=at.apply(null,arguments),this>t?this:t},max:function(t){return t=at.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=N(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&d(this,at.duration(e-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?at(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return b(this.year(),this.month())},dayOfYear:function(t){var e=rt((at(this).startOf("day")-at(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=Z(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=Z(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=Z(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return t=m(t),this[t]()},set:function(t,e){return t=m(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=D(e),this)}}),it=0;it11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},$=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},_=function(t,e,n,a,s,i,o){if(o)return'';var r=[];return i&&r.push("is-disabled"),s&&r.push("is-today"),a&&r.push("is-selected"),'"},k=function(t,e){return""+(e?t.reverse():t).join("")+""},C=function(t){return""+t.join("")+""},x=function(t){var e,n=[];for(e=0;7>e;e++)n.push(''+$(t,e,!0)+"");return""+(t.isRTL?n.reverse():n).join("")+""},D=function(t,e,n,a,s){var i,o,r,l,c,u=t._o,d=n===u.minYear,f=n===u.maxYear,p='
',g=!0,m=!0;for(r=[],i=0;12>i;i++)r.push('");for(l='
'+u.i18n.months[a]+'
",h(u.yearRange)?(i=u.yearRange[0],o=u.yearRange[1]+1):(i=n-u.yearRange,o=1+n+u.yearRange),r=[];o>i&&i<=u.maxYear;i++)i>=u.minYear&&r.push('");return c='
'+n+u.yearSuffix+'
",p+=u.showMonthAfterYear?c+l:l+c,d&&(0===a||u.minMonth>=a)&&(g=!1),f&&(11===a||u.maxMonth<=a)&&(m=!1),0===e&&(p+='"),e===t._o.numberOfMonths-1&&(p+='"),p+="
"},S=function(t,e){return''+x(t)+C(e)+"
"},T=function(o){var r=this,l=r.config(o);r._onMouseDown=function(t){if(r._v){t=t||window.event;var e=t.target||t.srcElement;if(e){if(!c(e,"is-disabled")){if(c(e,"pika-button")&&!c(e,"is-empty"))return r.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),void(l.bound&&s(function(){r.hide()},100));c(e,"pika-prev")?r.prevMonth():c(e,"pika-next")&&r.nextMonth()}if(c(e,"pika-select"))r._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}}},r._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(c(e,"pika-select-month")?r.gotoMonth(e.value):c(e,"pika-select-year")&&r.gotoYear(e.value))},r._onInputChange=function(n){var a;n.firedBy!==r&&(e?(a=t(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),r.setDate(f(a)?a:null),r._v||r.show())},r._onInputFocus=function(){r.show()},r._onInputClick=function(){r.show()},r._onInputBlur=function(){r._c||(r._b=s(function(){r.hide()},50)),r._c=!1},r._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,a=e;if(e){!n&&c(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),i(e,"change",r._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);r._v&&e!==l.trigger&&r.hide()}},r.el=a.createElement("div"),r.el.className="pika-single"+(l.isRTL?" is-rtl":""),i(r.el,"mousedown",r._onMouseDown,!0),i(r.el,"change",r._onChange),l.field&&(l.bound?a.body.appendChild(r.el):l.field.parentNode.insertBefore(r.el,l.field.nextSibling),i(l.field,"change",r._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var u=l.defaultDate;f(u)?l.setDefaultDate?r.setDate(u,!0):r.gotoDate(u):r.gotoDate(new Date),l.bound?(this.hide(),r.el.className+=" is-bound",i(l.trigger,"click",r._onInputClick),i(l.trigger,"focus",r._onInputFocus),i(l.trigger,"blur",r._onInputBlur)):this.show()};return T.prototype={config:function(t){this._o||(this._o=b({},w,!0));var e=b(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,f(e.minDate)||(e.minDate=!1),f(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate100&&(e.yearRange=100);return e},toString:function(n){return f(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,a){e&&t.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),f(t)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>t?t=n:f(a)&&t>a&&(t=a),this._d=new Date(t.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),r(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(f(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=t.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),e=s=a&&(this._y=a,!isNaN(o)&&this._m>o&&(this._m=o));for(var l=0;l'+D(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"";if(this.el.innerHTML=r,e.bound&&"hidden"!==e.field.type&&s(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;s(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var t,e,n,s=this._o.trigger,i=s,o=this.el.offsetWidth,r=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,u=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof s.getBoundingClientRect)n=s.getBoundingClientRect(),t=n.left+window.pageXOffset,e=n.bottom+window.pageYOffset;else for(t=i.offsetLeft,e=i.offsetTop+i.offsetHeight;i=i.offsetParent;)t+=i.offsetLeft,e+=i.offsetTop;(t+o>l||this._o.position.indexOf("right")>-1&&t-o+s.offsetWidth>0)&&(t=t-o+s.offsetWidth),(e+r>c+u||this._o.position.indexOf("top")>-1&&e-r-s.offsetHeight>0)&&(e=e-r-s.offsetHeight),this.el.style.cssText=["position: absolute","left: "+t+"px","top: "+e+"px"].join(";")},render:function(t,e){var n=this._o,a=new Date,s=g(t,e),i=new Date(t,e,1).getDay(),o=[],r=[];m(a),n.firstDay>0&&(i-=n.firstDay,0>i&&(i+=7));for(var l=s+i,c=l;c>7;)c-=7;l+=7-c;for(var u=0,d=0;l>u;u++){var h=new Date(t,e,1+(u-i)),p=n.minDate&&hn.maxDate,b=f(this._d)?v(h,this._d):!1,y=v(h,a),w=i>u||u>=s+i;r.push(_(1+(u-i),e,t,b,y,p,w)),7===++d&&(o.push(k(r,n.isRTL)),r=[],d=0)}return S(n,o)},isVisible:function(){return this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(i(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&o(a,"click",this._onClick),this.el.style.cssText="",u(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),o(this.el,"mousedown",this._onMouseDown,!0),o(this.el,"change",this._onChange),this._o.field&&(o(this._o.field,"change",this._onInputChange),this._o.bound&&(o(this._o.trigger,"click",this._onInputClick),o(this._o.trigger,"focus",this._onInputFocus),o(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},T}),/*! +function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(a){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){var a="moment";return n=t.defined&&t.defined(a)?t(a):void 0,e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,a=window.document,i=window.setTimeout,o=function(t,e,a,i){n?t.addEventListener(e,a,!!i):t.attachEvent("on"+e,a)},s=function(t,e,a,i){n?t.removeEventListener(e,a,!!i):t.detachEvent("on"+e,a)},r=function(t,e,n){var i;a.createEvent?(i=a.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=y(i,n),t.dispatchEvent(i)):a.createEventObject&&(i=a.createEventObject(),i=y(i,n),t.fireEvent("on"+e,i))},l=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},c=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},u=function(t,e){c(t,e)||(t.className=""===t.className?e:t.className+" "+e)},d=function(t,e){t.className=l((" "+t.className+" ").replace(" "+e+" "," "))},h=function(t){return/Array/.test(Object.prototype.toString.call(t))},f=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},p=function(t){return t%4===0&&t%100!==0||t%400===0},m=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},g=function(t){f(t)&&t.setHours(0,0,0,0)},v=function(t,e){return t.getTime()===e.getTime()},y=function(t,e,n){var a,i;for(a in e)i=void 0!==t[a],i&&"object"==typeof e[a]&&void 0===e[a].nodeName?f(e[a])?n&&(t[a]=new Date(e[a].getTime())):h(e[a])?n&&(t[a]=e[a].slice(0)):t[a]=y({},e[a],n):(n||!i)&&(t[a]=e[a]);return t},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},x=function(t,e,n,a,i,o,s){if(s)return'';var r=[];return o&&r.push("is-disabled"),i&&r.push("is-today"),a&&r.push("is-selected"),'"},k=function(t,e){return""+(e?t.reverse():t).join("")+""},C=function(t){return""+t.join("")+""},$=function(t){var e,n=[];for(e=0;7>e;e++)n.push(''+_(t,e,!0)+"");return""+(t.isRTL?n.reverse():n).join("")+""},T=function(t,e,n,a,i){var o,s,r,l,c,u=t._o,d=n===u.minYear,f=n===u.maxYear,p='
',m=!0,g=!0;for(r=[],o=0;12>o;o++)r.push('");for(l='
'+u.i18n.months[a]+'
",h(u.yearRange)?(o=u.yearRange[0],s=u.yearRange[1]+1):(o=n-u.yearRange,s=1+n+u.yearRange),r=[];s>o&&o<=u.maxYear;o++)o>=u.minYear&&r.push('");return c='
'+n+u.yearSuffix+'
",p+=u.showMonthAfterYear?c+l:l+c,d&&(0===a||u.minMonth>=a)&&(m=!1),f&&(11===a||u.maxMonth<=a)&&(g=!1),0===e&&(p+='"),e===t._o.numberOfMonths-1&&(p+='"),p+="
"},S=function(t,e){return''+$(t)+C(e)+"
"},D=function(s){var r=this,l=r.config(s);r._onMouseDown=function(t){if(r._v){t=t||window.event;var e=t.target||t.srcElement;if(e){if(!c(e,"is-disabled")){if(c(e,"pika-button")&&!c(e,"is-empty"))return r.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),void(l.bound&&i(function(){r.hide()},100));c(e,"pika-prev")?r.prevMonth():c(e,"pika-next")&&r.nextMonth()}if(c(e,"pika-select"))r._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}}},r._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(c(e,"pika-select-month")?r.gotoMonth(e.value):c(e,"pika-select-year")&&r.gotoYear(e.value))},r._onInputChange=function(n){var a;n.firedBy!==r&&(e?(a=t(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),r.setDate(f(a)?a:null),r._v||r.show())},r._onInputFocus=function(){r.show()},r._onInputClick=function(){r.show()},r._onInputBlur=function(){r._c||(r._b=i(function(){r.hide()},50)),r._c=!1},r._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,a=e;if(e){!n&&c(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",r._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);r._v&&e!==l.trigger&&r.hide()}},r.el=a.createElement("div"),r.el.className="pika-single"+(l.isRTL?" is-rtl":""),o(r.el,"mousedown",r._onMouseDown,!0),o(r.el,"change",r._onChange),l.field&&(l.bound?a.body.appendChild(r.el):l.field.parentNode.insertBefore(r.el,l.field.nextSibling),o(l.field,"change",r._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var u=l.defaultDate;f(u)?l.setDefaultDate?r.setDate(u,!0):r.gotoDate(u):r.gotoDate(new Date),l.bound?(this.hide(),r.el.className+=" is-bound",o(l.trigger,"click",r._onInputClick),o(l.trigger,"focus",r._onInputFocus),o(l.trigger,"blur",r._onInputBlur)):this.show()};return D.prototype={config:function(t){this._o||(this._o=y({},w,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,f(e.minDate)||(e.minDate=!1),f(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate100&&(e.yearRange=100);return e},toString:function(n){return f(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,a){e&&t.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),f(t)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>t?t=n:f(a)&&t>a&&(t=a),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),r(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(f(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),e=i=a&&(this._y=a,!isNaN(s)&&this._m>s&&(this._m=s));for(var l=0;l'+T(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"";if(this.el.innerHTML=r,e.bound&&"hidden"!==e.field.type&&i(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;i(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var t,e,n,i=this._o.trigger,o=i,s=this.el.offsetWidth,r=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,u=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof i.getBoundingClientRect)n=i.getBoundingClientRect(),t=n.left+window.pageXOffset,e=n.bottom+window.pageYOffset;else for(t=o.offsetLeft,e=o.offsetTop+o.offsetHeight;o=o.offsetParent;)t+=o.offsetLeft,e+=o.offsetTop;(t+s>l||this._o.position.indexOf("right")>-1&&t-s+i.offsetWidth>0)&&(t=t-s+i.offsetWidth),(e+r>c+u||this._o.position.indexOf("top")>-1&&e-r-i.offsetHeight>0)&&(e=e-r-i.offsetHeight),this.el.style.cssText=["position: absolute","left: "+t+"px","top: "+e+"px"].join(";")},render:function(t,e){var n=this._o,a=new Date,i=m(t,e),o=new Date(t,e,1).getDay(),s=[],r=[];g(a),n.firstDay>0&&(o-=n.firstDay,0>o&&(o+=7));for(var l=i+o,c=l;c>7;)c-=7;l+=7-c;for(var u=0,d=0;l>u;u++){var h=new Date(t,e,1+(u-o)),p=n.minDate&&hn.maxDate,y=f(this._d)?v(h,this._d):!1,b=v(h,a),w=o>u||u>=i+o;r.push(x(1+(u-o),e,t,y,b,p,w)),7===++d&&(s.push(k(r,n.isRTL)),r=[],d=0)}return S(n,s)},isVisible:function(){return this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&s(a,"click",this._onClick),this.el.style.cssText="",u(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D}),/*! * Pikaday jQuery plugin. * * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday */ -function(t,e){"use strict";"object"==typeof exports?e(require("jquery"),require("../pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],e):e(t.jQuery,t.Pikaday)}(this,function(t,e){"use strict";t.fn.pikaday=function(){var n=arguments;return n&&n.length||(n=[{}]),this.each(function(){var a=t(this),s=a.data("pikaday");if(s instanceof e)"string"==typeof n[0]&&"function"==typeof s[n[0]]&&s[n[0]].apply(s,Array.prototype.slice.call(n,1));else if("object"==typeof n[0]){var i=t.extend({},n[0]);i.field=a[0],a.data("pikaday",new e(i))}})}}),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_popover"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?i(t):""},s=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('
\n '),this.title&&(n.push('\n
\n

'),n.push(a(this.title)),n.push("

\n
\n ")),n.push("\n "),this.content&&n.push("\n "),n.push('\n
'),n.push(this.content),n.push("
\n
\n")}).call(this)}.call(t),t.safe=s,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_modal"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?i(t):""},s=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('\n")}).call(this)}.call(t),t.safe=s,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_dropdown"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,a,s;for(n.push('
\n \n
    \n '),s=this.elements,e=0,a=s.length;a>e;e++)t=s[e],n.push("\n "),""!==t.text&&(n.push("\n
  • "),n.push(t.outerHTML),n.push("
  • \n ")),n.push("\n ");n.push("\n
\n
\n")}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_browser-unsupported-bar"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('
\n ×\n Atualize seu navegador!
Baixe a vers\xe3o mais recente:
\n Firefox, Chrome,\n ou\n Safari\n
\n')}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this);var locastyle=function(){"use strict";function t(){locastyle.sidebarToggle.init(),locastyle.sidebars.init()}function e(){locastyle.breakpoints.init(),n(),locastyle.general.init(),locastyle.btnGroup.init(),locastyle.alert.init(),locastyle.datepicker.init(),locastyle.form.togglePasswordField(),locastyle.form.triggerCalendar(),a(),locastyle.browserDetect.init()}function n(){var t=s();for(var e in t)t.hasOwnProperty(e)&&(locastyle[t[e]].init(),console.info("Locastyle: module ["+t[e]+"] successfully initialized."),$.event.trigger(t[e]+":ready"))}function a(){$("html").hasClass("ls-trackevent-on")&&locastyle.trackEvents.init()}function s(){var t=[];return $("[data-ls-module]").each(function(){var e=$(this).data("ls-module");-1===t.indexOf(e)&&t.push(e)}),t}return{init:e,fastInit:t}}(),ls=locastyle;$(window).on("load",function(){"use strict";ls.init()}),$(document).ready(function(){"use strict";ls.fastInit()});var locastyle=locastyle||{};locastyle.breakpoints=function(){"use strict";function t(t){s.html=$("html"),e(t),n(t),a()}function e(t){var e;e=t?t.documentWidth:$(document).width(),e=s.sm&&e=s.md&&e=s.sm&&e=s.md&&e')}function r(){var t=$(".ls-menu").find("ul li ul");$(t).each(function(){$(this).addClass("ls-submenu"),$(this).parent("li").addClass("ls-submenu-parent"),$(this).find("a").addClass("ls-submenu-item")})}function l(){$(".ls-submenu-parent").on("click","> a",function(t){t.preventDefault(),$(this).parents(".ls-submenu-parent").hasClass("ls-active")?u($(this)):c($(this))})}function c(t){var e=$(t).parents(".ls-submenu-parent");$(".ls-submenu-parent").removeClass("ls-active"),e.addClass("ls-active"),g(e)}function u(t){var e=$(t).parents(".ls-submenu-parent");e.removeClass("ls-active"),g(e)}function d(){$(".ls-sidebar-toggled").length||$(".ls-submenu li.ls-active").each(function(){c($(this))})}function h(){$(window).on("sidebar-minimize",function(){$(".ls-submenu li").each(function(){u($(this))})}),$(window).on("sidebar-maximize",function(){$(".ls-submenu li.ls-active").each(function(){c($(this))})})}function f(){$(document).on("click",function(t){var e=$(t.target);$(".ls-sidebar-toggled").length&&$(".ls-submenu-parent.ls-active").length&&(e.is(".ls-submenu-parent.ls-active *")||u($(".ls-submenu-parent.ls-active > a")))})}function p(){var t=$(".ls-menu");t.attr({role:"navigation"}),t.find("ul").attr({role:"menu"}),t.find("a").attr({role:"menuitem"}),$(".ls-submenu-parent").each(function(t,e){g(e)})}function g(t){$(t).hasClass("ls-active")?$(t).attr({"aria-expanded":"true","aria-hidden":"false"}):$(t).attr({"aria-expanded":"false","aria-hidden":"true"})}function m(){$(".ls-show-sidebar").off("touchstart.ls click.ls"),$(".ls-show-notifications").off("touchstart.ls click.ls"),$(".ls-submenu-parent > a").off("click.ls")}return{init:t,unbind:m}}();var locastyle=locastyle||{};locastyle.sidebarToggle=function(){"use strict";function t(){r(),n(),e(),a(),o()}function e(){$(".ls-sidebar").length&&$(".ls-sidebar").append('')}function n(){var t=localStorage.getItem("stateSidebar");t||$("html").hasClass("ls-sidebar-toggled")?s():i()}function a(){$(".ls-sidebar-toggle").on("click",function(){$("html").hasClass("ls-sidebar-toggled")?i():s()})}function s(){$("html").addClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").addClass("ls-active"),localStorage.setItem("stateSidebar","minimized"),$.event.trigger("sidebar-minimize")}function i(){$("html").removeClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").removeClass("ls-active"),localStorage.removeItem("stateSidebar"),$.event.trigger("sidebar-maximize")}function o(){$(window).on("breakpoint-updated",function(){$(".ls-window-xs").length&&i()})}function r(){$(".ls-sidebar-toggle").off("click")}return{init:t}}();var locastyle=locastyle||{};locastyle.collapse=function(){"use strict";function t(){$(o.trigger).each(function(){s($(this))}),e()}function e(){$(o.trigger).each(function(t,e){var r=$(e);r.hasClass(o.classes.alwaysOpened)||r.find(o.classes.header).on(o.event.click,function(t){t.preventDefault(),n(r),a(r),s(r)}),0===r.find(o.classes.header).length&&(r.off(o.event.click),r.on(o.event.click,function(t){t.preventDefault(),i($(e).data("target"))}))})}function n(t){var e=t.parents(o.classes.groupContainer);e[0]&&e.find(o.trigger).not(t).removeClass(o.classes.opened)}function a(t){t.hasClass(o.classes.opened)?(t.removeClass(o.classes.opened),t.trigger("collapse:closed")):(t.addClass(o.classes.opened),t.trigger("collapse:opened"))}function s(t){$(t).hasClass(o.classes.opened)?($(t).find(o.classes.header).attr({"aria-expanded":!0}),$(t).find(o.classes.content).attr({"aria-hidden":!1})):($(t).find(o.classes.header).attr({"aria-expanded":!1}),$(t).find(o.classes.content).attr({"aria-hidden":!0}))}function i(t){$(t).prev(o.classes.header).trigger(o.event.click)}var o={trigger:'[data-ls-module="collapse"]',classes:{header:".ls-collapse-header",content:".ls-collapse-body",groupContainer:".ls-collapse-group",open:"ls-collapse-open",close:"ls-collapse-close",opened:"ls-collapse-opened",alwaysOpened:"ls-collapse-opened-always"},event:{click:"click.ls"}};return{init:t,toggle:i}}();var locastyle=locastyle||{};locastyle.modal=function(){"use strict";function t(){n(),a()}function e(){$(document).off("keyup.ls-esc"),$(c.close.classes+", "+c.close.trigger).off("click.ls")}function n(){$(c.open.trigger).off("click.ls"),e()}function a(){$(c.open.trigger).on("click.ls",function(){locastyle.modal.open($(this))}),$(".ls-opened").length>0&&r("#"+$(".ls-opened").attr("id"))}function s(){$(document).one("keyup.ls-esc",function(t){27===t.keyCode&&$(".ls-opened")&&locastyle.modal.close()}),$(c.close.classes+", "+c.close.trigger).on("click.ls",function(t){return t.target!==t.currentTarget?!0:void locastyle.modal.close()})}function i(t){var e=null;$("body").addClass(c.classes.open),$(t).data("target")||"object"!=typeof t?e=$(t).data("target")?$(t.data("target")):$(t):(e=$(locastyle.templates.modal(t.data())),$("body").append(e),$(".ls-modal-template").focus(),s()),e.addClass("ls-opened"),e.trigger(c.open.triggerOpened,t),l(t),r(t)}function o(){var t=$(".ls-modal.ls-opened");$("body").removeClass(c.classes.open),t.attr("aria-hidden",!0),t.removeClass("ls-opened"),e(),t.trigger(c.close.triggerClosed),t.hasClass("ls-modal-template")&&t.remove()}function r(t){var e=$(t).data("target")?$(t.data("target")):$(t);e.each(function(t,e){void 0!==$(e).data("modal-blocked")?$(e).find('[data-dismiss="modal"]').remove():s()})}function l(t){var e=$(t).data("target")?$(t.data("target")):$(t),n=e.find(".ls-modal-title").attr("id")||"lsModal"+c.lsModal++;e.find(".ls-modal-title").attr("id",n),e.attr({role:"dialog","aria-hidden":!1,"aria-labelledby":n,tabindex:"-1"}).focus()}var c={open:{trigger:'[data-ls-module="modal"]',triggerOpened:"modal:opened"},close:{classes:".ls-modal",trigger:'[data-dismiss="modal"]',triggerClosed:"modal:closed"},classes:{open:"ls-overflow-hidden"},lsModal:0};return{init:t,open:i,close:o,unbind:n}}();var locastyle=locastyle||{};locastyle.alert=function(){"use strict";function t(){e()}function e(){$('[class*="ls-alert"]').attr({role:"alert"})}return{init:t}}();var locastyle=locastyle||{};locastyle.dismiss=function(){"use strict";function t(){e(),n()}function e(){$(i.trigger).off("click.ls")}function n(){$(i.trigger).on("click.ls",function(){a(this),locastyle.topbarCurtain.updateStatusCounter()})}function a(t){var e=$(t).parents(".ls-dismissable");$(t).data("target")&&(e=$(t).data("target")),s(e)}function s(t){$(t).addClass("ls-dismissed"),$(t).trigger(i.triggerClose)}var i={trigger:"[data-ls-module=dismiss]",triggerClose:"dismiss:close"};return{init:t,unbind:e}}();var locastyle=locastyle||{};locastyle.popover=function(){"use strict";function t(){r(),e()}function e(){$(l.module).each(function(t,e){var o="hover"===$(e).attr("data-trigger")?"mouseover":l.trigger;$(e).attr("data-target",l.idPopover+t);var c=$(e).data("target");if($(e).off(o),$(e).on(o,function(u){u.preventDefault(),u.stopPropagation(),$(c).hasClass("ls-active")?i(c):($(l.idPopover+t).length||n(t,e),s(c),r(c)),"mouseover"===o&&$(e).on("mouseout",function(){i(c)}),a(e)}),$(window).on("breakpoint-updated",function(){a(e)}),"open"===$(this).attr("data-ls-popover")){$(this).data("target");n(t,e),s(c),a(e)}})}function n(t,e){var n={index:t,title:$(e).data("title"),content:$(e).data("content"),placement:$(e).data("placement"),customClasses:$(e).data("custom-class")};$("body").append(locastyle.templates.popover(n))}function a(t){var e={target:$(t).data("target"),top:$(t).offset().top,left:$(t).offset().left,width:$(t).outerWidth(),height:$(t).outerHeight(),placement:$(t).data("placement")};switch(e.placement){case"right":$(e.target).css({top:e.top+=e.height/2-2,left:e.left+=e.width+12});break;case"bottom":$(e.target).css({top:e.top+=e.height+12,left:e.left+=e.width/2});break;case"left":$(e.target).css({top:e.top+=e.height/2-2,left:e.left-=12});break;default:case"top":$(e.target).css({top:e.top-=12,left:e.left+=e.width/2})}}function s(t){$(t).addClass("ls-active"),$(t).off(l.events.closed).trigger(l.events.opened)}function i(t){$(t||".ls-popover.ls-active").removeClass("ls-active"),$(t).trigger(l.events.closed).off(l.events.opened),$(".ls-popover.ls-active").length||$(document).off(l.events.clickAnywhere)}function o(){$(l.popoverClass).remove(),$.each(l.events,function(t,e){$(document).unbind(e)}),$(document).trigger(l.events.destroyed)}function r(t){$(document).on(l.events.clickAnywhere,function(e){$(e.target).parents(".ls-popover").length||i(t)})}var l={module:'[data-ls-module="popover"]',idPopover:"#ls-popover-",popoverClass:".ls-popover",trigger:"click",events:{clickAnywhere:"click.clickanywhere",opened:"popover:opened",closed:"popover:closed",destroyed:"popover:destroyed"}};return{init:t,show:s,hide:i,destroy:o}}();var locastyle=locastyle||{};locastyle.dropdown=function(){"use strict";function t(){e(),n(),a(),l(c.dropdown)}function e(){$(c.firstLink).off("click.ls"),$(c.area).off("click.ls")}function n(){$(c.firstLink).on("click.ls",function(t){t.preventDefault();var e=$($(this).parents(c.module));locastyle.dropdown.toggleDropdown(e),r(e),t.stopPropagation()})}function a(){$(c.area).on("click.ls",function(){locastyle.dropdown.closeDropdown(),l(c.dropdown)})}function s(t){t.find(c.button).first().hasClass("ls-disabled")||(o(t),t.toggleClass("ls-active"),l(t),locastyle.topbarCurtain.hideCurtains(),i(t))}function i(t){$(t).hasClass("ls-active")?$(t).trigger("dropdown:opened"):$(t).trigger("dropdown:closed")}function o(t){$(c.module).not(t).removeClass("ls-active")}function r(t){var e=$(c.area);e.get(0).scrollWidth>e.width()&&$(t).addClass("ls-pos-right")}function l(t){$(c.nav).find(c.button).attr({"aria-expanded":"false"}),$(c.nav).attr({"aria-hidden":"true"}),$(t).each(function(){$(c.nav).find("a").attr({role:"option"}),$(c.button,$(this)).attr({role:"combobox"}),$(this).hasClass("ls-active")?($(c.button,$(this)).attr({"aria-expanded":"true"}),$(c.nav,$(this)).attr({"aria-hidden":"false"})):($(c.button,$(this)).attr({"aria-expanded":"false"}),$(c.nav,$(this)).attr({"aria-hidden":"true"}))})}var c={area:"body",dropdown:".ls-dropdown",module:'[data-ls-module="dropdown"]',button:'[class*="ls-btn"]',firstLink:'[data-ls-module="dropdown"] > [class*="ls-btn"]:first-child, .ls-dropdown.ls-user-account > a:first-child',nav:".ls-dropdown-nav"};return{init:t,unbind:e,toggleDropdown:s,closeDropdown:o}}();var locastyle=locastyle||{};locastyle.tabs=function(){"use strict";function t(){c(),e(),n(),s(),u()}function e(){$('[data-ls-module="tabs"]').on("click.ls",function(t){t.preventDefault();var e=$($(this).attr("href")||$(this).data("target")),n=$(this).closest(".ls-tabs-nav");l(this,e),r(this,e),a(n)&&i(n)})}function n(){$(window).on("breakpoint-updated",function(){locastyle.tabs.checkBreakpoint()})}function a(t){return $(t).hasClass("in-dropdown")}function s(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&$(".ls-tabs-nav").each(function(t,e){a(e)||o(e)})}function i(t){t.closest(".ls-dropdown-tabs").find("> a").text(t.find("li.ls-active > a").text())}function o(t){var e=$(t);e.addClass("in-dropdown ls-dropdown-nav").wrap('
'),e.find(".ls-dropdown-nav").each(function(){e.append($(this).html()),$(this).closest("li").remove()}),e.parent(".ls-dropdown-tabs").prepend(''+e.find("li.ls-active > a").text()+""),locastyle.tabs.init(),locastyle.dropdown.init()}function r(t,e){$(t).parents("li").addClass("ls-active"),$(t).trigger("tab:activated"),e.addClass("ls-active"),$(t).attr("aria-selected",!0)}function l(t,e){$(t).parents("li").siblings().removeClass("ls-active"),$(t).trigger("tab:deactivated"),e.siblings().removeClass("ls-active"),$(t).parents("li").siblings().find("a").attr("aria-selected",!1)}function c(){$("[data-ls-module=tabs]").off("click.ls")}function u(){$(d.tab).attr("role","tablist"),$(d.tabLink).attr("role","tab"),$(d.tabListActive).attr("aria-selected","true"),$(d.tabContent).attr("role","tabpanel")}var d={tab:".ls-tabs-nav",tabLink:".ls-tabs-nav a",tabListActive:".ls-tabs-nav li.ls-active a",tabContent:".ls-tab-content"};return{init:t,unbind:c,checkBreakpoint:s}}();var locastyle=locastyle||{};locastyle.templates=function(){"use strict";function t(){}function e(t){return JST[i+"popover"](t)}function n(t){return JST[i+"modal"](t)}function a(t){return JST[i+"dropdown"]({elements:t})}function s(){return JST[i+"browser-unsupported-bar"]()}var i="locastyle/templates/_";return{init:t,popover:e,modal:n,dropdown:a,browserUnsupportedBar:s}}();var locastyle=locastyle||{};locastyle.general=function(){"use strict";function t(){c(),n(),e(),o(),r(),l(),a()}function e(){$.each(u,function(t,e){var n=t.split("|");$(n[0]).off(n[1],n[2]),$(n[0]).on(n[1],n[2],function(t){var n=$(this);e(t,n)})})}function n(){var t=window.location.hash.replace("!/#","");""!==t&&$('[data-target="'+t+'"], a[href="'+t+'"]').trigger("click")}function a(){$("[data-ls-fields-enable]").on("click.ls",function(t){t.preventDefault();var e=$(this),n=$(e.data("ls-fields-enable")),a=n.data("form-text")?"ls-form-text":"";n.toggleClass("ls-form-disable ls-active "+a).find(":input").each(function(t,e){var n=$(e);n.toggleAttr("disabled").toggleClass(a).val(n.data("original-value"))})})}function s(t,e){var n=e.data("target")?$(e.data("target")):e,a=e.data("toggle-class");/(radio)|(checkbox)/.test(e.attr("type"))?(n.toggleClass(a,!e.prop("checked")),$('[name="'+e.attr("name")+'"]').not(e).each(function(){var t=$(this),n=t.data("target")?$(t.data("target")):t,a=t.data("toggle-class");n.toggleClass(a,e.prop("checked"))})):(t.preventDefault(),n.toggleClass(a))}function i(t,e){t.preventDefault();var n=$(e.attr("href"));n[0]&&$("html,body").animate({scrollTop:n.offset().top-70},1e3)}function o(){$(".ls-disabled, [disabled='disabled']").on("click",function(t){return $(this).hasClass("ls-disabled")||"disabled"===$(this).attr("disabled")?(t.stopImmediatePropagation(),t.preventDefault(),t.stopPropagation(),!1):void 0})}function r(t){$("a",t).on("click.lsPreventDefault",function(t){(""===$(this).attr("href")||"#"===$(this).attr("href"))&&t.preventDefault()})}function l(){$(".ls-group-active [class*='ls-btn']").on("click",function(){$(this).siblings().removeClass("ls-active"),$(this).addClass("ls-active")})}function c(){$("[data-ls-fields-enable]").off("click.ls"),$(".ls-disabled, [disabled='disabled']").off("click")}var u={"[data-toggle-class]|click":s,".ls-link-smooth|click":i};return jQuery.fn.toggleAttr=function(t){return this.each(function(){var e=$(this);return e.attr(t)?e.removeAttr(t):e.attr(t,t)})},{init:t}}();var locastyle=locastyle||{};locastyle.progressBar=function(){"use strict";function t(){e()}function e(){$("[data-ls-module='progressBar']").each(function(t,e){var a=$(e).attr("aria-valuenow");$(e).append("");var s=$(e).find("span");n(s,a)})}function n(t,e){$(t).css("width",e+"%")}return{init:t}}();var locastyle=locastyle||{};locastyle.form=function(){"use strict";function t(){i(),o(),s(),n(),e(),c(),a(),l()}function e(){"ls-window-xs"===locastyle.breakpointClass?($(".ls-label-text-sufix").parents(".ls-label").addClass("ls-label-text-has-sufix"),$(".ls-label-text-prefix").parents(".ls-label").addClass("ls-label-text-has-prefix")):$(".ls-label-text-sufix").prev('[class*="col-"]').addClass("ls-no-padding-right").find(":input").addClass("ls-no-right-radius ls-border")}function n(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e);n.keyup(function(){if(!n.prop("scrollTop")){var t;do{t=n.prop("scrollHeight");var e=n.height();n.height(e-5)}while(t&&t!==n.prop("scrollHeight"))}n.height(n.prop("scrollHeight"))})})}function a(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e).val(),a=n.split(/\r|\r\n|\n/),s=a.length,i=18*s;$(e).height(i+"px")})}function s(){$(".ls-mask-date").mask("00/00/0000"),$(".ls-mask-time").mask("00:00:00"),$(".ls-mask-date_time").mask("00/00/0000 00:00:00"),$(".ls-mask-cep").mask("00000-000"),$(".ls-mask-phone8").mask("0000-0000"),$(".ls-mask-phone9").mask("00009-0000"),$(".ls-mask-phone8_with_ddd").mask("(00) 0000-0000"),$(".ls-mask-phone9_with_ddd").mask("(00) 00009-0000"),$(".ls-mask-cpf").mask("000.000.000-00",{reverse:!0}),$(".ls-mask-cnpj").mask("00.000.000/0000-00",{reverse:!0}),$(".ls-mask-money").mask("#.##0,00",{reverse:!0,maxlength:!1}),$(".ls-mask-number").mask("#.##0",{reverse:!0,maxlength:!1}),$(".ls-mask-ip_address").mask("0ZZ.0ZZ.0ZZ.0ZZ",{translation:{Z:{pattern:/[0-9]/,optional:!0}}}),$(".ls-mask-percent").mask("##0,00%",{reverse:!0})}function i(){$(u.selectors.disable).each(function(t,e){var n=$(e);n.find(":input").each(function(t,e){var n=$(e);n.attr("disabled","disabled"),n.data("original-value",n.val())})})}function o(){$(u.selectors.text).each(function(t,e){$(e).find(":input").each(function(t,e){$(e).addClass("ls-form-text")}),$(e).data("form-text",!0)})}function r(t){if(void 0!==$(t).data("toggle-class")){var e=$(t).data("toggle-class").split(",");$(t).toggleClass(e[0]).toggleClass(e[1])}}function l(){$("[data-trigger-calendar]").on("click.ls",function(t){var e=$(this).data("trigger-calendar");$(e).trigger("click.ls")})}function c(){$(".ls-toggle-pass").on("click",function(t){t.preventDefault();var e=$(this).data("target");r($(this)),"password"===$(e).attr("type")?$(e).removeAttr("attr").prop("type","text"):$(e).removeAttr("attr").prop("type","password")})}var u={selectors:{disable:".ls-form-disable",text:".ls-form-text"}};return{init:t,togglePasswordField:c,triggerCalendar:l}}();var locastyle=locastyle||{};locastyle.guidedTour=function(){"use strict";function t(t){e(t)}function e(t){t&&t.selectors&&hopscotch&&($.each(l.selectors,function(e){t.selectors[e]=t.selectors[e]||l.selectors[e]}),n(t),o())}function n(t){r=t,$(l.selectors.init).on({click:s})}function a(t){return $(l.selectors.tour).trigger("click"),$(l.selectors.init).focus().attr("tabindex","-1"),t?t.preventDefault():null}function s(){locastyle.topbarCurtain.hideCurtains(),hopscotch.endTour(),hopscotch.startTour(r,0),i()}function i(){var t=39,e=37,n=27,a=hopscotch.getCurrTour().steps.length;$("body").off("keyup").on("keyup",function(s){var i=s.keyCode;hopscotch.getCurrStepNum()0||l>0?$($(e).data("target")).css({left:n+a-s+"px",top:"60px"}):$($(e).data("target")).css({left:n+a+s+"px"}),o(e)})}function s(){$(".ls-notification-list").on("click.ls",function(t){t.stopPropagation()})}function i(){$("body").on("click.lsTopCurtain",function(){l()})}function o(t){$(t).on("click.ls, ls.toggleTopCurtain",function(e){e.stopPropagation();var n=$($(t).data("target")).hasClass("ls-active");l(),n||($(t).addClass("ls-active"),r($(t).data("target")))})}function r(t){$(t).addClass("ls-active"),locastyle.dropdown.closeDropdown()}function l(){$("[data-ls-module='topbarCurtain']").removeClass("ls-active"),$(".ls-notification-list").removeClass("ls-active")}function c(){var t;$(window).resize(function(){clearTimeout(t),t=setTimeout(function(){e(),a(),i(),s()},300)})}function u(){var t=$(".ls-topbar .ls-user-account");$(".ls-sidebar .ls-user-account").length||t.clone().prependTo(".ls-sidebar")}var d={module:'[data-ls-module="topbarCurtain"]'};return{init:t,hideCurtains:l,unbind:e,updateStatusCounter:n}}();var locastyle=locastyle||{};locastyle.btnGroup=function(){"use strict";function t(){a(),n()}function e(){$(document).off("breakpoint-updated")}function n(){e(),$(document).on("breakpoint-updated",function(){a()})}function a(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&($(".ls-regroup").each(function(t,e){s($(e).find("a, button"))}),locastyle.dropdown.init(),locastyle.modal.init(),locastyle.general.init())}function s(t){var e=$(t).wrap('