ii||g&&g[0]===!1)&&h.push("xdsoft_disabled"),e.disabledDates.indexOf(t.formatDate(o,e.formatDate))!==-1&&h.push("xdsoft_disabled"),e.disabledWeekDays.indexOf(bt)!==-1&&h.push("xdsoft_disabled"),i.is("[disabled]")&&h.push("xdsoft_disabled"),g&&g[1]!==""&&h.push(g[1]),l.currentTime.getMonth()!==w&&h.push("xdsoft_other_month"),(e.defaultSelect||f.data("changed"))&&t.formatDate(l.currentTime,e.formatDate)===t.formatDate(o,e.formatDate)&&h.push("xdsoft_current"),t.formatDate(ot,e.formatDate)===t.formatDate(o,e.formatDate)&&h.push("xdsoft_today"),(o.getDay()===0||o.getDay()===6||e.weekends.indexOf(t.formatDate(o,e.formatDate))!==-1)&&h.push("xdsoft_weekend"),e.highlightedDates[t.formatDate(o,e.formatDate)]!==undefined&&(it=e.highlightedDates[t.formatDate(o,e.formatDate)],h.push(it.style===undefined?"xdsoft_highlighted_default":it.style),lt=it.desc===undefined?"":it.desc),e.beforeShowDay&&n.isFunction(e.beforeShowDay)&&h.push(e.beforeShowDay(o)),st&&(v+="
",st=!1,e.weeks&&(v+=""+ti+"<\/th>")),v+=' | '+ut+"<\/div><\/td>",o.getDay()===e.dayOfWeekStartPrev&&(v+="<\/tr>",st=!0),o.setDate(ut+1);if(v+="<\/tbody><\/table>",kt.html(v),d.find(".xdsoft_label span").eq(0).text(e.i18n[r].months[l.currentTime.getMonth()]),d.find(".xdsoft_label span").eq(1).text(l.currentTime.getFullYear()+e.yearOffset),ht="",rt="",w="",nt=0,e.minTime!==!1&&(at=l.strtotime(e.minTime),nt=60*at.getHours()+at.getMinutes()),tt=1440,e.maxTime!==!1&&(vt=l.strtotime(e.maxTime),tt=60*vt.getHours()+vt.getMinutes()),e.minDateTime!==!1&&(ft=l.strToDateTime(e.minDateTime),ui=t.formatDate(l.currentTime,e.formatDate)===t.formatDate(ft,e.formatDate),ui&&(yt=60*ft.getHours()+ft.getMinutes(),yt>nt&&(nt=yt))),e.maxDateTime!==!1&&(et=l.strToDateTime(e.maxDateTime),fi=t.formatDate(l.currentTime,e.formatDate)===t.formatDate(et,e.formatDate),fi&&(pt=60*et.getHours()+et.getMinutes(),pt =tt||c59||s.getMinutes()===parseInt(u,10))&&(e.defaultSelect||f.data("changed")?h.push("xdsoft_current"):e.initTime&&h.push("xdsoft_init_time"));parseInt(ot.getHours(),10)===parseInt(r,10)&&parseInt(ot.getMinutes(),10)===parseInt(u,10)&&h.push("xdsoft_today");ht+=''+t.formatDate(o,e.formatTime)+"<\/div>"},e.allowTimes&&n.isArray(e.allowTimes)&&e.allowTimes.length)for(s=0;s =tt||(rt=(s<10?"0":"")+s,w=(y<10?"0":"")+y,ct(rt,w));for(a.html(ht),u="",s=parseInt(e.yearStart,10);s<=parseInt(e.yearEnd,10);s+=1)u+=''+(s+e.yearOffset)+"<\/div>";for(ni.children().eq(0).html(u),s=parseInt(e.monthStart,10),u="";s<=parseInt(e.monthEnd,10);s+=1)u+=' '+e.i18n[r].months[s]+"<\/div>";gt.children().eq(0).html(u);n(f).trigger("generate.xdsoft")},10);o.stopPropagation()}).on("afterOpen.xdsoft",function(){if(e.timepicker){var n,t,i,r;a.find(".xdsoft_current").length?n=".xdsoft_current":a.find(".xdsoft_init_time").length&&(n=".xdsoft_init_time");n?(t=g[0].clientHeight,i=a[0].offsetHeight,r=a.find(n).index()*e.timeHeightInTimePicker+1,i-t 1||e.closeOnDateSelect===!0||e.closeOnDateSelect===!1&&!e.timepicker)&&!e.inline&&f.trigger("close.xdsoft");setTimeout(function(){wt=0},200)});a.on("touchstart","div",function(){this.touchMoved=!1}).on("touchmove","div",ui).on("touchend click.xdsoft","div",function(t){if(!this.touchMoved){t.stopPropagation();var r=n(this),i=l.currentTime;if((i===undefined||i===null)&&(l.currentTime=l.now(),i=l.currentTime),r.hasClass("xdsoft_disabled"))return!1;i.setHours(r.data("hour"));i.setMinutes(r.data("minute"));f.trigger("select.xdsoft",[i]);f.data("input").val(l.str());e.onSelectTime&&n.isFunction(e.onSelectTime)&&e.onSelectTime.call(f,l.currentTime,f.data("input"),t);f.data("changed",!0);f.trigger("xchange.xdsoft");f.trigger("changedatetime.xdsoft");e.inline!==!0&&e.closeOnTimeSelect===!0&&f.trigger("close.xdsoft")}});at.on("mousewheel.xdsoft",function(n){return e.scrollMonth?(n.deltaY<0?l.nextMonth():l.prevMonth(),!1):!0});i.on("mousewheel.xdsoft",function(n){return e.scrollInput?!e.datepicker&&e.timepicker?(vt=a.find(".xdsoft_current").length?a.find(".xdsoft_current").eq(0).index():0,vt+n.deltaY>=0&&vt+n.deltaYl+o?(v="bottom",t=l+o-r.top):t-=o):t+f[0].offsetHeight>l+o&&(t=r.top-f[0].offsetHeight+1),t<0&&(t=0),i+u.offsetWidth>h&&(i=h-u.offsetWidth));p=f[0];ri(p,function(n){var t;return t=e.contentWindow.getComputedStyle(n).getPropertyValue("position"),t==="relative"&&h>=n.offsetWidth?(i=i-(h-n.offsetWidth)/2,!1):void 0});y={position:c,left:i,top:"",bottom:""};y[v]=t;f.css(y)};f.on("open.xdsoft",function(t){var i=!0;if(e.onShow&&n.isFunction(e.onShow)&&(i=e.onShow.call(f,l.currentTime,f.data("input"),t)),i!==!1){f.show();bt();n(e.contentWindow).off("resize.xdsoft",bt).on("resize.xdsoft",bt);if(e.closeOnWithoutClick)n([e.ownerDocument.body,e.contentWindow]).on("touchstart mousedown.xdsoft",function r(){f.trigger("close.xdsoft");n([e.ownerDocument.body,e.contentWindow]).off("touchstart mousedown.xdsoft",r)})}}).on("close.xdsoft",function(t){var i=!0;d.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide();e.onClose&&n.isFunction(e.onClose)&&(i=e.onClose.call(f,l.currentTime,f.data("input"),t));i===!1||e.opened||e.inline||f.hide();t.stopPropagation()}).on("toggle.xdsoft",function(){f.is(":visible")?f.trigger("close.xdsoft"):f.trigger("open.xdsoft")}).data("input",i);ii=0;f.data("xdsoft_datetime",l);f.setOptions(e);l.setCurrentTime(fi());i.data("xdsoft_datetimepicker",f).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){i.is(":disabled")||i.data("xdsoft_datetimepicker").is(":visible")&&e.closeOnInputClick||e.openOnFocus&&(clearTimeout(ii),ii=setTimeout(function(){i.is(":disabled")||(pt=!0,l.setCurrentTime(fi(),!0),e.mask&&oi(e),f.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var i,r=t.which;return[b].indexOf(r)!==-1&&e.enterLikeTab?(i=n("input:visible,textarea:visible,button:visible,a:visible"),f.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1):[k].indexOf(r)!==-1?(f.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){f.trigger("close.xdsoft")})};g=function(t){var i=t.data("xdsoft_datetimepicker");i&&(i.data("xdsoft_datetime",null),i.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),n(e.contentWindow).off("resize.xdsoft"),n([e.contentWindow,e.ownerDocument.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())};n(e.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(n){n.keyCode===s&&(c=!0)}).on("keyup.xdsoftctrl",function(n){n.keyCode===s&&(c=!1)});return this.each(function(){var i=n(this).data("xdsoft_datetimepicker"),r;if(i){if(n.type(u)==="string")switch(u){case"show":n(this).select().focus();i.trigger("open.xdsoft");break;case"hide":i.trigger("close.xdsoft");break;case"toggle":i.trigger("toggle.xdsoft");break;case"destroy":g(n(this));break;case"reset":this.value=this.defaultValue;this.value&&i.data("xdsoft_datetime").isValidDate(t.parseDate(this.value,e.format))||i.data("changed",!1);i.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r=i.data("input");r.trigger("blur.xdsoft");break;default:i[u]&&n.isFunction(i[u])&&(a=i[u](f))}else i.setOptions(u);return 0}n.type(u)!=="string"&&(!e.lazyInit||e.open||e.inline?l(n(this)):at(n(this)))}),a};n.fn.datetimepicker.defaults=i},function(n){typeof define=="function"&&define.amd?define(["jquery","jquery-mousewheel"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(datetimepickerFactory),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function e(r){var f=r||window.event,w=h.call(arguments,1),l=0,o=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(e=f.detail*-1),"wheelDelta"in f&&(e=f.wheelDelta),"wheelDeltaY"in f&&(e=f.wheelDeltaY),"wheelDeltaX"in f&&(o=f.wheelDeltaX*-1),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(o=e*-1,e=0),l=e===0?o:e,"deltaY"in f&&(e=f.deltaY*-1,l=e),"deltaX"in f&&(o=f.deltaX,e===0&&(l=o*-1)),e!==0||o!==0)return f.deltaMode===1?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,o*=v):f.deltaMode===2&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,o*=y),a=Math.max(Math.abs(e),Math.abs(o)),(!t||a=1?"floor":"ceil"](l/t),o=Math[o>=1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=o,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,o,e),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}function c(){t=null}function s(n,t){return i.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,i;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],e,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return af.apply(null,arguments)}function gs(n){af=n}function tt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function li(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function nh(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function p(n){return n===void 0}function dt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function gi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function vf(n,t){for(var r=[],i=0;i0)for(i=0;i0?"future":"past"];return ot(i)?i(t):i.replace(/%s/i,t)}function w(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function nt(n){return typeof n=="string"?ui[n]||ui[n.toLowerCase()]:undefined}function fu(n){var r={},t;for(var i in n)l(n,i)&&(t=nt(i),t&&(r[t]=n[i]));return r}function b(n,t){eu[n]=t}function hh(n){var t=[];for(var i in n)t.push({unit:i,priority:eu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function ct(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(fi[n]=u);t&&(fi[t[0]]=function(){return ct(u.apply(this,arguments),t[1],t[2])});i&&(fi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ch(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function lh(n){for(var t=n.match(fe),i=0,r=t.length;i=0&&rr.test(n);)n=n.replace(rr,r),rr.lastIndex=0,i-=1;return n}function i(n,t,i){cu[n]=ot(t)?t:function(n){return n&&i?i:t}}function vh(n,t){return l(cu,n)?cu[n](t._strict,t._locale):new RegExp(yh(n))}function yh(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function wi(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function yr(n,t,i){var r=7+t-i,u=(7+wi(n,0,r).getUTCDay()-t)%7;return-u+r-1}function ke(n,t,i,r,u){var s=(7+i-r)%7,h=yr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=pi(e)+f):f>pi(n)?(e=n+1,o=f-pi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function bi(n,t,i){var e=yr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ti(u,t,i)):r>ti(n.year(),t,i)?(f=r-ti(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ti(n,t,i){var r=yr(n,t,i),u=yr(n+1,t,i);return(pi(n)-r+u)/7}function hc(n){return bi(n,this._week.dow,this._week.doy).week}function cc(){return this._week.dow}function lc(){return this._week.doy}function ac(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function vc(n){var t=bi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function yc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function pc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function wc(n,t){return n?tt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:tt(this._weekdays)?this._weekdays:this._weekdays.standalone}function bc(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function kc(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function dc(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=et([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=a.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=a.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=a.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=a.call(this._minWeekdaysParse,u),r!==-1)?r:(r=a.call(this._weekdaysParse,u),r!==-1)?r:(r=a.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function gc(n,t,i){var r,u,f;if(this._weekdaysParseExact)return dc.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=et([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function nl(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=yc(n,this.localeData()),this.add(n-t,"d")):t}function tl(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function il(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=pc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function rl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||pu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function ul(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||pu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function fl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||pu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ro),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=et([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function wu(){return this.hours()%12||12}function el(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function ol(n){return(n+"").toLowerCase().charAt(0)==="p"}function sl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function so(n){return n?n.toLowerCase().replace("_","-"):n}function cl(n){for(var r=0,i,t,f,u;r0;){if(f=pr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&pf(u,t,!0)>=i-1)break;i--}r++}return di}function pr(n){var t=null,i;if(!y[n]&&typeof module!="undefined"&&module&&module.exports)try{t=di._abbr;i=require;i("./locale/"+n);oi(t)}catch(r){}return y[n]}function oi(n,t){var i;return n&&(i=p(t)?wt(n):bu(n,t),i?di=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),di._abbr}function bu(n,t){if(t!==null){var r,i=oo;if(t.abbr=n,y[n]!=null)bf("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=y[n]._config;else if(t.parentLocale!=null)if(y[t.parentLocale]!=null)i=y[t.parentLocale]._config;else if(r=pr(t.parentLocale),r!=null)i=r._config;else return ki[t.parentLocale]||(ki[t.parentLocale]=[]),ki[t.parentLocale].push({name:n,config:t}),null;return y[n]=new uu(kf(i,t)),ki[n]&&ki[n].forEach(function(n){bu(n.name,n.config)}),oi(n),y[n]}return delete y[n],null}function ll(n,t){if(t!=null){var i,r,u=oo;r=pr(n);r!=null&&(u=r._config);t=kf(u,t);i=new uu(t);i.parentLocale=y[n];y[n]=i;oi(n)}else y[n]!=null&&(y[n].parentLocale!=null?y[n]=y[n].parentLocale:y[n]!=null&&delete y[n]);return y[n]}function wt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return di;if(!tt(n)){if(t=pr(n),t)return t;n=[n]}return cl(n)}function al(){return df(y)}function ku(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[lt]<0||t[lt]>11?lt:t[st]<1||t[st]>vr(t[it],t[lt])?st:t[v]<0||t[v]>24||t[v]===24&&(t[rt]!==0||t[at]!==0||t[ni]!==0)?v:t[rt]<0||t[rt]>59?rt:t[at]<0||t[at]>59?at:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(ist)&&(i=st),u(n)._overflowWeeks&&i===-1&&(i=wh),u(n)._overflowWeekday&&i===-1&&(i=bh),u(n).overflow=i),n}function si(n,t,i){return n!=null?n:t!=null?t:i}function vl(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function du(n){var t,i,r=[],f,o,e;if(!n._d){for(f=vl(n),n._w&&n._a[st]==null&&n._a[lt]==null&&yl(n),n._dayOfYear!=null&&(e=si(n._a[it],f[it]),(n._dayOfYear>pi(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=wi(e,0,n._dayOfYear),n._a[lt]=i.getUTCMonth(),n._a[st]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[v]===24&&n._a[rt]===0&&n._a[at]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?wi:sc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(u(n).weekdayMismatch=!0)}}function yl(n){var t,o,f,i,r,e,h,s,l;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[it],bi(c(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=bi(c(),r,e),o=si(t.gg,n._a[it],l.year),f=si(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=ke(o,f,i,r,e),n._a[it]=h.year,n._dayOfYear=h.dayOfYear)}function ho(n){var t,r,o=n._i,i=pl.exec(o)||wl.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=wr.length;t0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),fi[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),ph(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h;i.length>0&&u(n).unusedInput.push(i);n._a[v]<=12&&u(n).bigHour===!0&&n._a[v]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[v]=ua(n._locale,n._a[v],n._meridiem);du(n);ku(n)}function ua(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function fa(n){var t,e,f,r,i;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function nv(){var n,t;return p(this._isDSTShifted)?(n={},iu(n,this),n=vo(n),n._a?(t=n._isUTC?et(n._a):c(n._a),this._isDSTShifted=this.isValid()&&pf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function tv(){return this.isValid()?!this._isUTC:!1}function iv(){return this.isValid()?this._isUTC:!1}function ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}function ut(n,t){var i=n,r=null,u,e,o;return tf(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[st])*u,h:f(r[v])*u,m:f(r[rt])*u,s:f(r[at])*u,ms:f(rf(r[ni]*1e3))*u}):(r=rs.exec(n))?(u=r[1]==="-"?-1:r[1]==="+"?1:1,i={y:ii(r[2],u),M:ii(r[3],u),w:ii(r[4],u),d:ii(r[5],u),h:ii(r[6],u),m:ii(r[7],u),s:ii(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=rv(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new br(i),tf(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function us(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function rv(n,t){var i;return(n.isValid()&&t.isValid())?(t=ff(t,n),n.isBefore(t)?i=us(n,t):(i=us(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function fs(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(bf(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=ut(i,r),es(this,u,n),this}}function es(n,i,r,u){var o=i._milliseconds,f=rf(i._days),e=rf(i._months);n.isValid()&&(u=u==null?!0:u,e&&ve(n,ar(n,"Month")+e*r),f&&le(n,"Date",ar(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function uv(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function fv(n,i){var u=n||c(),f=ff(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(ot(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function ev(){return new ai(this)}function ov(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()9999?ur(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ot(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",ur(t,"Z")):ur(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wv(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function bv(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=ur(this,n);return this.localeData().postformat(i)}function kv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?ut({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dv(n){return this.from(c(),n)}function gv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?ut({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ny(n){return this.to(c(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=wt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function ty(n){n=nt(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function iy(n){return(n=nt(n),n===undefined||n==="millisecond")?this:(n==="date"&&(n="day"),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms"))}function ry(){return this._d.valueOf()-(this._offset||0)*6e4}function uy(){return Math.floor(this.valueOf()/1e3)}function fy(){return new Date(this.valueOf())}function ey(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function oy(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function sy(){return this.isValid()?this.toISOString():null}function hy(){return tu(this)}function cy(){return yt({},u(this))}function ly(){return u(this).overflow}function ay(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function kr(n,t){r(0,[n,n.length],0,t)}function vy(n){return ls.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function yy(n){return ls.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function py(){return ti(this.year(),1,4)}function wy(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function ls(n,t,i,r,u){var f;return n==null?bi(this,r,u).year:(f=ti(n,r,u),t>f&&(t=f),by.call(this,n,t,i,r,u))}function by(n,t,i,r,u){var e=ke(n,t,i,r,u),f=wi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function ky(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function dy(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function gy(n,t){t[ni]=f(("0."+n)*1e3)}function np(){return this._isUTC?"UTC":""}function tp(){return this._isUTC?"Coordinated Universal Time":""}function ip(n){return c(n*1e3)}function rp(){return c.apply(null,arguments).parseZone()}function ps(n){return n}function dr(n,t,i,r){var u=wt(),f=et().set(r,t);return u[i](f,n)}function ws(n,t,i){if(dt(n)&&(t=n,n=undefined),n=n||"",t!=null)return dr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=dr(n,r,i,"month");return u}function cf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(dt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,dt(t)&&(i=t,t=undefined),t=t||""),o=wt(),f=n?o._week.dow:0,i!=null)return dr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=dr(t,(u+f)%7,r,"day");return e}function up(n,t){return ws(n,t,"months")}function fp(n,t){return ws(n,t,"monthsShort")}function ep(n,t,i){return cf(n,t,i,"weekdays")}function op(n,t,i){return cf(n,t,i,"weekdaysShort")}function sp(n,t,i){return cf(n,t,i,"weekdaysMin")}function hp(){var n=this._data;return this._milliseconds=ht(this._milliseconds),this._days=ht(this._days),this._months=ht(this._months),n.milliseconds=ht(n.milliseconds),n.seconds=ht(n.seconds),n.minutes=ht(n.minutes),n.hours=ht(n.hours),n.months=ht(n.months),n.years=ht(n.years),this}function bs(n,t,i,r){var u=ut(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function cp(n,t){return bs(this,n,t,1)}function lp(n,t){return bs(this,n,t,-1)}function ks(n){return n<0?Math.floor(n):Math.ceil(n)}function ap(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=ks(lf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(ds(n)),t+=o,n-=ks(lf(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function ds(n){return n*4800/146097}function lf(n){return n*146097/4800}function vp(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=nt(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+ds(t),n==="month"?r:r/12;t=this._days+Math.round(lf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function yp(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function kt(n){return function(){return this.as(n)}}function iw(){return ut(this)}function rw(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN}function ri(n){return function(){return this.isValid()?this._data[n]:NaN}}function lw(){return d(this.days()/7)}function aw(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function vw(n,t,i){var r=ut(n).abs(),u=vt(r.as("s")),e=vt(r.as("m")),o=vt(r.as("h")),s=vt(r.as("d")),h=vt(r.as("M")),c=vt(r.as("y")),f=u<=ft.ss&&["s",u]||u0,f[4]=i,aw.apply(null,f)}function yw(n){return n===undefined?vt:typeof n=="function"?(vt=n,!0):!1}function pw(n,t){return ft[n]===undefined?!1:t===undefined?ft[n]:(ft[n]=t,n==="s"&&(ft.ss=t-1),!0)}function ww(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=vw(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function ci(n){return(n>0)-(n<0)||+n}function nu(){if(!this.isValid())return this.localeData().invalidDate();var t=gr(this._milliseconds)/1e3,y=gr(this._days),r=gr(this._months),i,s,h;i=d(t/60);s=d(i/60);t%=60;i%=60;h=d(r/12);r%=12;var c=h,l=r,a=y,u=s,f=i,e=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var p=n<0?"-":"",v=ci(this._months)!==ci(n)?"-":"",w=ci(this._days)!==ci(n)?"-":"",o=ci(this._milliseconds)!==ci(n)?"-":"";return p+"P"+(c?v+c+"Y":"")+(l?v+l+"M":"")+(a?w+a+"D":"")+(u||f||e?"T":"")+(u?o+u+"H":"")+(f?o+f+"M":"")+(e?o+e+"S":"")}var af,yf,tr,ir,ru,df,gf,ne,te,ie,re,ue,ui,eu,cr,lu,a,au,ae,vu,pe,we,de,ge,yu,no,to,io,ro,eo,co,lo,po,wo,ko,hi,ns,is,rs,os,ss,sf,hf,as,vs,bt,ys,n,o,ht,vt,ft,gr,e;yf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t68?1900:2e3)};lu=ei("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;tthis?this:n:nr()}),ko=function(){return Date.now?Date.now():+new Date},hi=["year","quarter","month","week","day","hour","minute","second","millisecond"],go("Z",":"),go("ZZ",""),i("Z",hr),i("ZZ",hr),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=uf(hr,n)}),ns=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},is=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,rs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ut.fn=br.prototype,ut.invalid=va,os=fs(1,"add"),ss=fs(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",sf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),kr("gggg","weekYear"),kr("ggggg","weekYear"),kr("GGGG","isoWeekYear"),kr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",sr),i("g",sr),i("GG",s,k),i("gg",s,k),i("GGGG",hu,su),i("gggg",hu,su),i("GGGGG",or,fr),i("ggggg",or,fr),yi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),yi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",oe),h("Q",function(n,t){t[lt]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],st),h("Do",function(n,t){t[st]=f(n.match(s)[0])}),hf=ei("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",er),i("DDDD",se),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],rt),as=ei("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],at),vs=ei("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("millisecond","ms"),b("millisecond",16),i("S",er,oe),i("SS",er,k),i("SSS",er,se),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")h(bt,gy);ys=ei("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=ai.prototype;n.add=os;n.calendar=fv;n.clone=ev;n.diff=vv;n.endOf=iy;n.format=bv;n.from=kv;n.fromNow=dv;n.to=gv;n.toNow=ny;n.get=dh;n.invalidAt=ly;n.isAfter=ov;n.isBefore=sv;n.isBetween=hv;n.isSame=cv;n.isSameOrAfter=lv;n.isSameOrBefore=av;n.isValid=hy;n.lang=sf;n.locale=hs;n.localeData=cs;n.max=wo;n.min=po;n.parsingFlags=cy;n.set=gh;n.startOf=ty;n.subtract=ss;n.toArray=ey;n.toObject=oy;n.toDate=fy;n.toISOString=pv;n.inspect=wv;n.toJSON=sy;n.toString=yv;n.unix=uy;n.valueOf=ry;n.creationData=ay;n.year=lu;n.isLeapYear=kh;n.weekYear=vy;n.isoWeekYear=yy;n.quarter=n.quarters=ky;n.month=ye;n.daysInMonth=fc;n.week=n.weeks=ac;n.isoWeek=n.isoWeeks=vc;n.weeksInYear=wy;n.isoWeeksInYear=py;n.date=hf;n.day=n.days=nl;n.weekday=tl;n.isoWeekday=il;n.dayOfYear=dy;n.hour=n.hours=hl;n.minute=n.minutes=as;n.second=n.seconds=vs;n.millisecond=n.milliseconds=ys;n.utcOffset=ya;n.utc=wa;n.local=ba;n.parseZone=ka;n.hasAlignedHourOffset=da;n.isDST=ga;n.isLocal=tv;n.isUtcOffset=iv;n.isUtc=ts;n.isUTC=ts;n.zoneAbbr=np;n.zoneName=tp;n.dates=g("dates accessor is deprecated. Use date instead.",hf);n.months=g("months accessor is deprecated. Use month instead",ye);n.years=g("years accessor is deprecated. Use year instead",lu);n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pa);n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",nv);o=uu.prototype;o.calendar=rh;o.longDateFormat=uh;o.invalidDate=fh;o.ordinal=eh;o.preparse=ps;o.postformat=ps;o.relativeTime=oh;o.pastFuture=sh;o.set=ih;o.months=tc;o.monthsShort=ic;o.monthsParse=uc;o.monthsRegex=oc;o.monthsShortRegex=ec;o.week=hc;o.firstDayOfYear=lc;o.firstDayOfWeek=cc;o.weekdays=wc;o.weekdaysMin=kc;o.weekdaysShort=bc;o.weekdaysParse=gc;o.weekdaysRegex=rl;o.weekdaysShortRegex=ul;o.weekdaysMinRegex=fl;o.isPM=ol;o.meridiem=sl;oi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=g("moment.lang is deprecated. Use moment.locale instead.",oi);t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",wt);ht=Math.abs;var pp=kt("ms"),wp=kt("s"),bp=kt("m"),kp=kt("h"),dp=kt("d"),gp=kt("w"),nw=kt("M"),tw=kt("y");var uw=ri("milliseconds"),fw=ri("seconds"),ew=ri("minutes"),ow=ri("hours"),sw=ri("days"),hw=ri("months"),cw=ri("years");return vt=Math.round,ft={ss:44,s:45,m:45,h:22,d:26,M:11},gr=Math.abs,e=br.prototype,e.isValid=aa,e.abs=hp,e.add=cp,e.subtract=lp,e.as=vp,e.asMilliseconds=pp,e.asSeconds=wp,e.asMinutes=bp,e.asHours=kp,e.asDays=dp,e.asWeeks=gp,e.asMonths=nw,e.asYears=tw,e.valueOf=yp,e._bubble=ap,e.clone=iw,e.get=rw,e.milliseconds=uw,e.seconds=fw,e.minutes=ew,e.hours=ow,e.days=sw,e.weeks=lw,e.months=hw,e.years=cw,e.humanize=ww,e.toISOString=nu,e.toString=nu,e.toJSON=nu,e.locale=hs,e.localeData=cs,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nu),e.lang=sf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",sr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.22.2",gs(c),t.fn=n,t.min=ha,t.max=ca,t.now=ko,t.utc=et,t.unix=ip,t.months=up,t.isDate=gi,t.locale=oi,t.invalid=nr,t.duration=ut,t.isMoment=pt,t.weekdays=ep,t.parseZone=rp,t.localeData=wt,t.isDuration=tf,t.monthsShort=fp,t.weekdaysMin=sp,t.defineLocale=bu,t.updateLocale=ll,t.locales=al,t.weekdaysShort=op,t.normalizeUnits=nt,t.relativeTimeRounding=yw,t.relativeTimeThreshold=pw,t.calendarFormat=uv,t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t}),function(){function s(){s=function(){};o.Symbol||(o.Symbol=st)}function e(){s();var n=o.Symbol.iterator;n||(n=o.Symbol.iterator=o.Symbol("iterator"));"function"!=typeof Array.prototype[n]&&ot(Array.prototype,n,{configurable:!0,writable:!0,value:function(){return it(this)}});e=function(){}}function it(n){var t=0;return ht(function(){return targuments.length)throw new TypeError("2 arguments required, but only "+arguments.length+" present.");return t instanceof Blob?[n+"",t,void 0!==i?i+"":"string"==typeof t.name?t.name:"blob"]:[n+"",t+""]},l=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");return[n+""]},nt=function(t){var i=n(t);return t=i.next().value,i=i.next().value,t instanceof Blob&&(t=new File([t],i,{type:t.type,lastModified:t.lastModified})),t},r="object"==typeof window?window:"object"==typeof self?self:this,vt=r.FormData,tt=r.XMLHttpRequest&&r.XMLHttpRequest.prototype.send,yt=r.Request&&r.fetch;s();var u=r.Symbol&&Symbol.toStringTag,f=new WeakMap,a=Array.from||function(n){return[].slice.call(n)};u&&(Blob.prototype[u]||(Blob.prototype[u]="Blob"),"File"in r&&!File.prototype[u]&&(File.prototype[u]="File"));try{new File([],"")}catch(kt){r.File=function(n,t,i){return n=new Blob(n,i),i=i&&void 0!==i.lastModified?new Date(i.lastModified):new Date,Object.defineProperties(n,{name:{value:t},lastModifiedDate:{value:i},lastModified:{value:+i},toString:{value:function(){return"[object File]"}}}),u&&Object.defineProperty(n,u,{value:"File"}),n}}t=function(t){var i,u,r;if(f.set(this,Object.create(null)),!t)return this;for(t=n(a(t.elements)),i=t.next();!i.done;i=t.next())if(i=i.value,i.name&&!i.disabled)if("file"===i.type)for(u=n(a(i.files||[])),r=u.next();!r.done;r=u.next())this.append(i.name,r.value);else if("select-multiple"===i.type||"select-one"===i.type)for(u=n(a(i.options)),r=u.next();!r.done;r=u.next())r=r.value,!r.disabled&&r.selected&&this.append(i.name,r.value);else"checkbox"===i.type||"radio"===i.type?i.checked&&this.append(i.name,i.value):this.append(i.name,i.value)};i=t.prototype;i.append=function(n,t,i){var r=f.get(this);r[n]||(r[n]=[]);r[n].push([t,i])};i["delete"]=function(n){delete f.get(this)[n]};i.entries=function pt(){var s=this,i,r,e,u,t,o;return g(pt,function(h){var c,l;switch(h.b){case 1:i=f.get(s);e=new ct(i);case 2:n:{for(c=e;00&&91九色视频.vidControl.init(".js-media-video")}(jQuery);91九色视频=91九色视频||{};91九色视频.HowCanWeHelp={init:function(n){var t=91九色视频.HowCanWeHelp,i=$(n),u=i.find(".js-how-can-we-help__switch"),r=i.find(".js-how-can-we-help__select");t.setupSwitch(u,r);t.bindSelects(r)},setupSwitch:function(n,t){var i=91九色视频.HowCanWeHelp,r=n.find(".js-how-can-we-help__switch-item"),u=$(r[0]),f=$(r[1]),e=n.find(".js-how-can-we-help__switch-indicator");u.on("click",function(){i.switchFlip(u,e,1,t)});f.on("click",function(){i.switchFlip(f,e,2,t)})},switchFlip:function(n,t,i,r){var o=$(n.siblings()[0]),f,e;if(o.hasClass("-initial")&&t.width(n.siblings(".js-how-can-we-help__switch-item").outerWidth()),!n.hasClass("-active")){var s=n.outerWidth(),u={},h=n.siblings(".js-how-can-we-help__switch-item").outerWidth();t.width(s);n.siblings(".js-how-can-we-help__switch-item").removeClass("-active").removeClass("-initial");n.addClass("-active");i===1?(n.parent().addClass("-left").removeClass("-right"),u.left="0px",TweenLite.to(t,.5,u),$(r[0]).removeClass("-hidden"),$(r[1]).addClass("-hidden")):(n.parent().addClass("-right").removeClass("-left"),u.left=h+"px",TweenLite.to(t,.5,u),$(r[1]).removeClass("-hidden"),$(r[0]).addClass("-hidden"),f=$(r[1]).find(".js-how-can-we-help__list-item-link"),e=$(f[0]).outerHeight(),$(r[1]).css("height",e+"px"))}},bindSelects:function(n){n.each(function(){var n=$(this),i=n.find(".js-how-can-we-help__list-item-link"),r=n.find(".js-how-can-we-help__select-content"),t=n.find(".js-how-can-we-help__btn"),u=n.find(".js-how-can-we-help__list-item"),f=$(u[0]).find(".js-how-can-we-help__list-item-link"),e=$(i[0]).outerHeight();$("body").on("click",function(){t.hasClass("-active")&&t.trigger("click")});n.css("height",e+"px");t.on("click",function(u){u.preventDefault();u.stopPropagation();var e=r.outerHeight(),o=$(i[0]).outerHeight()+2,f={};t.hasClass("-active")?(t.removeClass("-active"),f.height=o+"px",TweenLite.to(n,.35,f)):(t.addClass("-active"),f.height=e+"px",TweenLite.to(n,.35,f))});f.on("click",function(n){n.preventDefault();n.stopPropagation();t.trigger("click")})})}};91九色视频.HowCanWeHelp.init(".js-how-can-we-help");91九色视频=91九色视频||{},function(n){91九色视频.ccHomepageHero={init:function(t){var c=91九色视频.vidControl,f=n(t),e=f.find(".js-cc-homepage-hero__inline-vid"),r=e.attr("data-vid_id"),u=f.find(".wistia_embed"),o="wistia_async_"+r,s=u.attr("data-img_url"),i,h;(window.matchMedia("(min-width: 768px)").matches?(u.addClass(o),window._wq=window._wq||[],_wq.push({id:r,onReady:function(t){e=Wistia.api(r);var i=n(".js-cc-homepage-hero__ctrls"),u=n(".wistia_placebo_close_button");i.on("click",function(){t.pause()});u.on("click",function(){t.play()})}})):u.css({"background-image":"url("+s+")","background-size":"cover"}),i=n(".js-cc-homepage-hero__video"),i&&i[0])&&(h=i[0].id)}};n(".js-cc-homepage-hero").length>0&&91九色视频.ccHomepageHero.init(".js-cc-homepage-hero");91九色视频.homepageHeroRefresh={init:function(t){var l=91九色视频.vidControl,u=n(t),o=u.find(".js-homepage-refresh-hero__inline-vid"),f=o.attr("data-vid_id"),e=u.find(".wistia_embed"),s="wistia_async_"+f,h=e.attr("data-img_url"),i=u.find(".js-homepage-fresh-hero__pause"),r,c;(window.matchMedia("(min-width: 768px)").matches?(e.addClass(s),window._wq=window._wq||[],_wq.push({id:f,onReady:function(t){o=Wistia.api(f);var r=n(".js-homepage-refresh-hero__ctrls"),u=n(".wistia_placebo_close_button");if(r.length>0){r.on("click",function(){t.pause()});u.on("click",function(){t.play()})}i.on("click",function(){i.hasClass("-play")?(t.play(),i.removeClass("-play")):(t.pause(),i.addClass("-play"))})}})):(e.css({"background-image":"url("+h+")","background-size":"cover"}),i.remove()),r=n(".js-homepage-refresh-hero__video"),r&&r[0])&&(c=r[0].id)}};n(".js-homepage-refresh-hero").length>0&&91九色视频.homepageHeroRefresh.init(".js-homepage-refresh-hero")}(jQuery);91九色视频=91九色视频||{},function(n){91九色视频.SideScrollingCardComponent={init:function(t){n(t).slick({dots:!1,infinite:!n(t).hasClass("js-is-editing"),speed:300,slidesToShow:1,slidesToScroll:1,centerMode:!1,variableWidth:!0})}};91九色视频.SideScrollingCardComponent.init(".js-side-scrolling-card-component__carousel")}(jQuery);91九色视频=91九色视频||{},function(){91九色视频.TableInit={init:function(){let t=Array.prototype.slice.apply(document.querySelectorAll("table")),n=document.createElement("div");n.classList.add("swipe");t.map(function(t){let i=Array.prototype.slice.apply(t.querySelectorAll("th")),r=Array.prototype.slice.apply(t.querySelectorAll("tr")),u=r.length,f=t.querySelectorAll("tr:nth-child(2) td").length;if(console.log({table:t,trCount:u,tdCount:f}),(u>=15||f>=7)&&(t.parentNode.insertBefore(n,t),n.appendChild(t),console.log({swipeWrapperElem:n})),!i)return!1;r.map(function(n){Array.prototype.slice.apply(n.querySelectorAll("td")).map(function(n,t){n.setAttribute("data-header",i[t].innerText)})})})}};91九色视频.TableInit.init()}() |