UNPKG

awqlqb

Version:

AdWords Query Language query builder for JavaScript

4 lines 55.3 kB
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.AWQLQB=e()}}(function(){var e,t,n;return function(){function e(t,n,i){function s(a,o){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(r)return r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){return s(t[a][1][e]||e)},d,d.exports,e,t,n,i)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<i.length;a++)s(i[a]);return s}return e}()({1:[function(t,n,i){!function(t,s){"object"==typeof i&&void 0!==n?n.exports=s():"function"==typeof e&&e.amd?e(s):t.moment=s()}(this,function(){"use strict";function e(){return bi.apply(null,arguments)}function i(e){bi=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){ // input != null return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n=[],i;for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)h(t,n)&&(e[n]=t[n]);return h(t,"toString")&&(e.toString=t.toString),h(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return Ot(e,t,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){if(null==e._isValid){var t=_(e),n=Pi.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=f(NaN);return null!=e?c(_(t),e):_(t).userInvalidated=!0,t}function p(e,t){var n,i,s;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=_(t)),o(t._locale)||(e._locale=t._locale),Wi.length>0)for(n=0;n<Wi.length;n++)i=Wi[n],s=t[i],o(s)||(e[i]=s);return e}function v(t){p(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ri&&(Ri=!0,e.updateOffset(this),Ri=!1)}function w(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=M(t)),n}function D(e,t,n){var i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0,a;for(a=0;a<i;a++)(n&&e[a]!==t[a]||!n&&S(e[a])!==S(t[a]))&&r++;return r+s}function k(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Y(t,n){var i=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var s=[],r,a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var o in arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];s.push(r)}k(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function O(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Ci[t]||(k(n),Ci[t]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e){var t,n;for(n in e)t=e[n],T(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function b(e,t){var n=c({},e),i;for(i in t)h(t,i)&&(r(e[i])&&r(t[i])?(n[i]={},c(n[i],e[i]),c(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)h(e,i)&&!h(t,i)&&r(e[i])&&(n[i]=c({},n[i]));return n}function P(e){null!=e&&this.set(e)}function W(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i}function R(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function C(){return this._invalidDate}function H(e){return this._ordinal.replace("%d",e)}function F(e,t,n,i){var s=this._relativeTime[n];return T(s)?s(e,t,n,i):s.replace(/%d/i,e)}function L(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function U(e,t){var n=e.toLowerCase();Vi[n]=Vi[n+"s"]=Vi[t]=e}function N(e){return"string"==typeof e?Vi[e]||Vi[e.toLowerCase()]:void 0}function E(e){var t={},n,i;for(i in e)h(e,i)&&(n=N(i))&&(t[n]=e[i]);return t}function G(e,t){ji[e]=t}function V(e){var t=[];for(var n in e)t.push({unit:n,priority:ji[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function j(e,t,n){var i=""+Math.abs(e),s=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}function I(e,t,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),e&&(zi[e]=s),t&&(zi[t[0]]=function(){return j(s.apply(this,arguments),t[1],t[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function A(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t=e.match(Ii),n,i;for(n=0,i=t.length;n<i;n++)zi[t[n]]?t[n]=zi[t[n]]:t[n]=A(t[n]);return function(n){var s="",r;for(r=0;r<i;r++)s+=T(t[r])?t[r].call(n,e):t[r];return s}}function z(e,t){return e.isValid()?(t=q(t,e.localeData()),Zi[t]=Zi[t]||Z(t),Zi[t](e)):e.localeData().invalidDate()}function q(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ai.lastIndex=0;i>=0&&Ai.test(e);)e=e.replace(Ai,n),Ai.lastIndex=0,i-=1;return e}function $(e,t,n){ds[e]=T(t)?t:function(e,i){return e&&n?n:t}}function J(e,t){return h(ds,e)?ds[e](t._strict,t._locale):new RegExp(B(e))}function B(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,s){return t||n||i||s}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)hs[e[n]]=i}function K(e,t){X(e,function(e,n,i,s){i._w=i._w||{},t(e,i._w,i,s)})}function ee(e,t,n){null!=t&&h(hs,e)&&hs[e](t,n._a,n,e)}function te(e){return ne(e)?366:365}function ne(e){return e%4==0&&e%100!=0||e%400==0}function ie(){return ne(this.year())}function se(t,n){return function(i){return null!=i?(ae(this,t,i),e.updateOffset(this,n),this):re(this,t)}}function re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ne(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),de(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function oe(e){return e=N(e),T(this[e])?this[e]():this}function ue(e,t){if("object"==typeof e){e=E(e);for(var n=V(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=N(e),T(this[e]))return this[e](t);return this}function le(e,t){return(e%t+t)%t}function de(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=le(t,12);return e+=(t-n)/12,1===n?ne(e)?29:28:31-n%7%2}function he(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ds).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ce(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ds.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var i,s,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(s=Ss.call(this._shortMonthsParse,a),-1!==s?s:null):(s=Ss.call(this._longMonthsParse,a),-1!==s?s:null):"MMM"===t?-1!==(s=Ss.call(this._shortMonthsParse,a))?s:(s=Ss.call(this._longMonthsParse,a),-1!==s?s:null):-1!==(s=Ss.call(this._longMonthsParse,a))?s:(s=Ss.call(this._shortMonthsParse,a),-1!==s?s:null)}function me(e,t,n){var i,s,r;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function _e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(t=e.localeData().monthsParse(t),!u(t))return e;return n=Math.min(e.date(),de(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ye(t){return null!=t?(_e(this,t),e.updateOffset(this,!0),this):re(this,"Month")}function ge(){return de(this.year(),this.month())}function pe(e){return this._monthsParseExact?(h(this,"_monthsRegex")||we.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Os),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ve(e){return this._monthsParseExact?(h(this,"_monthsRegex")||we.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Ts),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function we(){function e(e,t){return t.length-e.length}var t=[],n=[],i=[],s,r;for(s=0;s<12;s++)r=f([2e3,s]),t.push(this.monthsShort(r,"")),n.push(this.months(r,"")),i.push(this.months(r,"")),i.push(this.monthsShort(r,""));for(t.sort(e),n.sort(e),i.sort(e),s=0;s<12;s++)t[s]=Q(t[s]),n[s]=Q(n[s]);for(s=0;s<24;s++)i[s]=Q(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Me(e,t,n,i,s,r,a){var o=new Date(e,t,n,i,s,r,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function Se(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function De(e,t,n){var i=7+t-n;return-(7+Se(e,0,i).getUTCDay()-t)%7+i-1}function ke(e,t,n,i,s){var r=(7+n-i)%7,a=De(e,i,s),o=1+7*(t-1)+r+a,u,l;return o<=0?(u=e-1,l=te(u)+o):o>te(e)?(u=e+1,l=o-te(e)):(u=e,l=o),{year:u,dayOfYear:l}}function Ye(e,t,n){var i=De(e.year(),t,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1,r,a;return s<1?(a=e.year()-1,r=s+Oe(a,t,n)):s>Oe(e.year(),t,n)?(r=s-Oe(e.year(),t,n),a=e.year()+1):(a=e.year(),r=s),{week:r,year:a}}function Oe(e,t,n){var i=De(e,t,n),s=De(e+1,t,n);return(te(e)-i+s)/7}function Te(e){return Ye(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function be(){return this._week.doy}function Pe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function We(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Re(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ce(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function He(e,t){return e?s(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:s(this._weekdays)?this._weekdays:this._weekdays.standalone}function Fe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Le(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ue(e,t,n){var i,s,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(s=Ss.call(this._weekdaysParse,a),-1!==s?s:null):"ddd"===t?(s=Ss.call(this._shortWeekdaysParse,a),-1!==s?s:null):(s=Ss.call(this._minWeekdaysParse,a),-1!==s?s:null):"dddd"===t?-1!==(s=Ss.call(this._weekdaysParse,a))?s:-1!==(s=Ss.call(this._shortWeekdaysParse,a))?s:(s=Ss.call(this._minWeekdaysParse,a),-1!==s?s:null):"ddd"===t?-1!==(s=Ss.call(this._shortWeekdaysParse,a))?s:-1!==(s=Ss.call(this._weekdaysParse,a))?s:(s=Ss.call(this._minWeekdaysParse,a),-1!==s?s:null):-1!==(s=Ss.call(this._minWeekdaysParse,a))?s:-1!==(s=Ss.call(this._weekdaysParse,a))?s:(s=Ss.call(this._shortWeekdaysParse,a),-1!==s?s:null)}function Ne(e,t,n){var i,s,r;if(this._weekdaysParseExact)return Ue.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Ee(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Re(e,this.localeData()),this.add(e-t,"d")):t}function Ge(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ve(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ce(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function je(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Rs),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ie(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cs),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ae(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Hs),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ze(){function e(e,t){return t.length-e.length}var t=[],n=[],i=[],s=[],r,a,o,u,l;for(r=0;r<7;r++)a=f([2e3,1]).day(r),o=this.weekdaysMin(a,""),u=this.weekdaysShort(a,""),l=this.weekdays(a,""),t.push(o),n.push(u),i.push(l),s.push(o),s.push(u),s.push(l);for(t.sort(e),n.sort(e),i.sort(e),s.sort(e),r=0;r<7;r++)n[r]=Q(n[r]),i[r]=Q(i[r]),s[r]=Q(s[r]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ze(){return this.hours()%12||12}function qe(){return this.hours()||24}function $e(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}function Be(e){return"p"===(e+"").toLowerCase().charAt(0)}function Qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t=0,n,i,s,r;t<e.length;){for(r=Xe(e[t]).split("-"),n=r.length,i=Xe(e[t+1]),i=i?i.split("-"):null;n>0;){if(s=et(r.slice(0,n).join("-")))return s;if(i&&i.length>=n&&D(r,i,!0)>=n-1)break;n--}t++}return Gs}function et(e){var i=null;if(!Ns[e]&&void 0!==n&&n&&n.exports)try{i=Gs._abbr;t("./locale/"+e),tt(i)}catch(e){}return Ns[e]}function tt(e,t){var n;return e&&(n=o(t)?st(e):nt(e,t),n?Gs=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Gs._abbr}function nt(e,t){if(null!==t){var n,i=Us;if(t.abbr=e,null!=Ns[e])O("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=Ns[e]._config;else if(null!=t.parentLocale)if(null!=Ns[t.parentLocale])i=Ns[t.parentLocale]._config;else{if(null==(n=et(t.parentLocale)))return Es[t.parentLocale]||(Es[t.parentLocale]=[]),Es[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Ns[e]=new P(b(i,t)),Es[e]&&Es[e].forEach(function(e){nt(e.name,e.config)}),tt(e),Ns[e]}return delete Ns[e],null}function it(e,t){if(null!=t){var n,i,s=Us;i=et(e),null!=i&&(s=i._config),t=b(s,t),n=new P(t),n.parentLocale=Ns[e],Ns[e]=n,tt(e)}else null!=Ns[e]&&(null!=Ns[e].parentLocale?Ns[e]=Ns[e].parentLocale:null!=Ns[e]&&delete Ns[e]);return Ns[e]}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Gs;if(!s(e)){if(t=et(e))return t;e=[e]}return Ke(e)}function rt(){return Hi(Ns)}function at(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[fs]<0||n[fs]>11?fs:n[ms]<1||n[ms]>de(n[cs],n[fs])?ms:n[_s]<0||n[_s]>24||24===n[_s]&&(0!==n[ys]||0!==n[gs]||0!==n[ps])?_s:n[ys]<0||n[ys]>59?ys:n[gs]<0||n[gs]>59?gs:n[ps]<0||n[ps]>999?ps:-1,_(e)._overflowDayOfYear&&(t<cs||t>ms)&&(t=ms),_(e)._overflowWeeks&&-1===t&&(t=vs),_(e)._overflowWeekday&&-1===t&&(t=ws),_(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function ut(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,i=[],s,r,a;if(!e._d){for(s=ut(e),e._w&&null==e._a[ms]&&null==e._a[fs]&&dt(e),null!=e._dayOfYear&&(a=ot(e._a[cs],s[cs]),(e._dayOfYear>te(a)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Se(a,0,e._dayOfYear),e._a[fs]=n.getUTCMonth(),e._a[ms]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=s[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_s]&&0===e._a[ys]&&0===e._a[gs]&&0===e._a[ps]&&(e._nextDay=!0,e._a[_s]=0),e._d=(e._useUTC?Se:Me).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_s]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(_(e).weekdayMismatch=!0)}}function dt(e){var t,n,i,s,r,a,o,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,a=4,n=ot(t.GG,e._a[cs],Ye(Tt(),1,4).year),i=ot(t.W,1),((s=ot(t.E,1))<1||s>7)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ye(Tt(),r,a);n=ot(t.gg,e._a[cs],l.year),i=ot(t.w,l.week),null!=t.d?((s=t.d)<0||s>6)&&(u=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(u=!0)):s=r}i<1||i>Oe(n,r,a)?_(e)._overflowWeeks=!0:null!=u?_(e)._overflowWeekday=!0:(o=ke(n,i,s,r,a),e._a[cs]=o.year,e._dayOfYear=o.dayOfYear)}function ht(e){var t,n,i=e._i,s=Vs.exec(i)||js.exec(i),r,a,o,u;if(s){for(_(e).iso=!0,t=0,n=As.length;t<n;t++)if(As[t][1].exec(s[1])){a=As[t][0],r=!1!==As[t][2];break}if(null==a)return void(e._isValid=!1);if(s[3]){for(t=0,n=Zs.length;t<n;t++)if(Zs[t][1].exec(s[3])){o=(s[2]||" ")+Zs[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(s[4]){if(!Is.exec(s[4]))return void(e._isValid=!1);u="Z"}e._f=a+(o||"")+(u||""),vt(e)}else e._isValid=!1}function ct(e,t,n,i,s,r){var a=[ft(e),Ys.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return r&&a.push(parseInt(r,10)),a}function ft(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function mt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _t(e,t,n){if(e){if(Ps.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return _(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function yt(e,t,n){if(e)return $s[e];if(t)return 0;var i=parseInt(n,10),s=i%100;return(i-s)/100*60+s}function gt(e){var t=qs.exec(mt(e._i));if(t){var n=ct(t[4],t[3],t[2],t[5],t[6],t[7]);if(!_t(t[1],n,e))return;e._a=n,e._tzm=yt(t[8],t[9],t[10]),e._d=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function pt(t){var n=zs.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));ht(t),!1===t._isValid&&(delete t._isValid,gt(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function vt(t){if(t._f===e.ISO_8601)return void ht(t);if(t._f===e.RFC_2822)return void gt(t);t._a=[],_(t).empty=!0;var n=""+t._i,i,s,r,a,o,u=n.length,l=0;for(r=q(t._f,t._locale).match(Ii)||[],i=0;i<r.length;i++)a=r[i],s=(n.match(J(a,t))||[])[0],s&&(o=n.substr(0,n.indexOf(s)),o.length>0&&_(t).unusedInput.push(o),n=n.slice(n.indexOf(s)+s.length),l+=s.length),zi[a]?(s?_(t).empty=!1:_(t).unusedTokens.push(a),ee(a,s,t)):t._strict&&!s&&_(t).unusedTokens.push(a);_(t).charsLeftOver=u-l,n.length>0&&_(t).unusedInput.push(n),t._a[_s]<=12&&!0===_(t).bigHour&&t._a[_s]>0&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[_s]=wt(t._locale,t._a[_s],t._meridiem),lt(t),at(t)}function wt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Mt(e){var t,n,i,s,r;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],vt(t),y(t)&&(r+=_(t).charsLeftOver,r+=10*_(t).unusedTokens.length,_(t).score=r,(null==i||r<i)&&(i=r,n=t));c(e,n||t)}function St(e){if(!e._d){var t=E(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function Dt(e){var t=new v(at(kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(at(t)):(l(t)?e._d=t:s(n)?Mt(e):n?vt(e):Yt(e),y(e)||(e._d=null),e))}function Yt(t){var n=t._i;o(n)?t._d=new Date(e.now()):l(n)?t._d=new Date(n.valueOf()):"string"==typeof n?pt(t):s(n)?(t._a=d(n.slice(0),function(e){return parseInt(e,10)}),lt(t)):r(n)?St(t):u(n)?t._d=new Date(n):e.createFromInputFallback(t)}function Ot(e,t,n,i,o){var u={};return!0!==n&&!1!==n||(i=n,n=void 0),(r(e)&&a(e)||s(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=i,Dt(u)}function Tt(e,t,n,i){return Ot(e,t,n,i,!1)}function xt(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function bt(){return xt("isBefore",[].slice.call(arguments,0))}function Pt(){return xt("isAfter",[].slice.call(arguments,0))}function Wt(e){for(var t in e)if(-1===Ss.call(Xs,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Xs.length;++i)if(e[Xs[i]]){if(n)return!1;parseFloat(e[Xs[i]])!==S(e[Xs[i]])&&(n=!0)}return!0}function Rt(){return this._isValid}function Ct(){return Xt(NaN)}function Ht(e){var t=E(e),n=t.year||0,i=t.quarter||0,s=t.month||0,r=t.week||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=Wt(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+s+3*i+12*n,this._data={},this._locale=st(),this._bubble()}function Ft(e){return e instanceof Ht}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ut(e,t){I(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)})}function Nt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=n[n.length-1]||[],s=(i+"").match(Ks)||["-",0,0],r=60*s[1]+S(s[2]);return 0===r?0:"+"===s[0]?r:-r}function Et(t,n){var i,s;return n._isUTC?(i=n.clone(),s=(w(t)||l(t)?t.valueOf():Tt(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),e.updateOffset(i,!1),i):Tt(t).local()}function Gt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Vt(t,n,i){var s=this._offset||0,r;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Nt(os,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(r=Gt(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!n||this._changeInProgress?sn(this,Xt(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Gt(this)}function jt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function It(e){return this.utcOffset(0,e)}function At(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this}function Zt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(as,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zt(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $t(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(p(e,this),e=kt(e),e._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&D(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Jt(){return!!this.isValid()&&!this._isUTC}function Bt(){return!!this.isValid()&&this._isUTC}function Qt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xt(e,t){var n=e,i=null,s,r,a;return Ft(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(n={},t?n[t]=e:n.milliseconds=e):(i=er.exec(e))?(s="-"===i[1]?-1:1,n={y:0,d:S(i[ms])*s,h:S(i[_s])*s,m:S(i[ys])*s,s:S(i[gs])*s,ms:S(Lt(1e3*i[ps]))*s}):(i=tr.exec(e))?(s="-"===i[1]?-1:(i[1],1),n={y:Kt(i[2],s),M:Kt(i[3],s),w:Kt(i[4],s),d:Kt(i[5],s),h:Kt(i[6],s),m:Kt(i[7],s),s:Kt(i[8],s)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(a=tn(Tt(n.from),Tt(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),r=new Ht(n),Ft(e)&&h(e,"_locale")&&(r._locale=e._locale),r}function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function en(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function tn(e,t){var n;return e.isValid()&&t.isValid()?(t=Et(t,e),e.isBefore(t)?n=en(e,t):(n=en(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function nn(e,t){return function(n,i){var s,r;return null===i||isNaN(+i)||(O(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."),r=n,n=i,i=r),n="string"==typeof n?+n:n,s=Xt(n,i),sn(this,s,e),this}}function sn(t,n,i,s){var r=n._milliseconds,a=Lt(n._days),o=Lt(n._months);t.isValid()&&(s=null==s||s,o&&_e(t,re(t,"Month")+o*i),a&&ae(t,"Date",re(t,"Date")+a*i),r&&t._d.setTime(t._d.valueOf()+r*i),s&&e.updateOffset(t,a||o))}function rn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function an(t,n){var i=t||Tt(),s=Et(i,this).startOf("day"),r=e.calendarFormat(this,s)||"sameElse",a=n&&(T(n[r])?n[r].call(this,i):n[r]);return this.format(a||this.localeData().calendar(r,this,Tt(i)))}function on(){return new v(this)}function un(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=N(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function ln(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=N(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function dn(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function hn(e,t){var n=w(e)?e:Tt(e),i;return!(!this.isValid()||!n.isValid())&&(t=N(t||"millisecond"),"millisecond"===t?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function cn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function mn(e,t,n){var i,s,r;if(!this.isValid())return NaN;if(i=Et(e,this),!i.isValid())return NaN;switch(s=6e4*(i.utcOffset()-this.utcOffset()),t=N(t)){case"year":r=_n(this,i)/12;break;case"month":r=_n(this,i);break;case"quarter":r=_n(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-s)/864e5;break;case"week":r=(this-i-s)/6048e5;break;default:r=this-i}return n?r:M(r)}function _n(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months"),s,r;return t-i<0?(s=e.clone().add(n-1,"months"),r=(t-i)/(i-s)):(s=e.clone().add(n+1,"months"),r=(t-i)/(s-i)),-(n+r)||0}function yn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function gn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+s)}function vn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=z(this,t);return this.localeData().postformat(n)}function wn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mn(e){return this.from(Tt(),e)}function Sn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dn(e){return this.to(Tt(),e)}function kn(e){var t;return void 0===e?this._locale._abbr:(t=st(e),null!=t&&(this._locale=t),this)}function Yn(){return this._locale}function On(e){switch(e=N(e)){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"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Tn(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function xn(){return this._d.valueOf()-6e4*(this._offset||0)}function bn(){return Math.floor(this.valueOf()/1e3)}function Pn(){ return new Date(this.valueOf())}function Wn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Cn(){return this.isValid()?this.toISOString():null}function Hn(){return y(this)}function Fn(){return c({},_(this))}function Ln(){return _(this).overflow}function Un(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){I(0,[e,e.length],0,t)}function En(e){return In.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gn(e){return In.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vn(){return Oe(this.year(),1,4)}function jn(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function In(e,t,n,i,s){var r;return null==e?Ye(this,i,s).year:(r=Oe(e,i,s),t>r&&(t=r),An.call(this,e,t,n,i,s))}function An(e,t,n,i,s){var r=ke(e,t,n,i,s),a=Se(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function zn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function qn(e,t){t[ps]=S(1e3*("0."+e))}function $n(){return this._isUTC?"UTC":""}function Jn(){return this._isUTC?"Coordinated Universal Time":""}function Bn(e){return Tt(1e3*e)}function Qn(){return Tt.apply(null,arguments).parseZone()}function Xn(e){return e}function Kn(e,t,n,i){var s=st(),r=f().set(i,t);return s[n](r,e)}function ei(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Kn(e,t,n,"month");var i,s=[];for(i=0;i<12;i++)s[i]=Kn(e,i,n,"month");return s}function ti(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var s=st(),r=e?s._week.dow:0;if(null!=n)return Kn(t,(n+r)%7,i,"day");var a,o=[];for(a=0;a<7;a++)o[a]=Kn(t,(a+r)%7,i,"day");return o}function ni(e,t){return ei(e,t,"months")}function ii(e,t){return ei(e,t,"monthsShort")}function si(e,t,n){return ti(e,t,n,"weekdays")}function ri(e,t,n){return ti(e,t,n,"weekdaysShort")}function ai(e,t,n){return ti(e,t,n,"weekdaysMin")}function oi(){var e=this._data;return this._milliseconds=cr(this._milliseconds),this._days=cr(this._days),this._months=cr(this._months),e.milliseconds=cr(e.milliseconds),e.seconds=cr(e.seconds),e.minutes=cr(e.minutes),e.hours=cr(e.hours),e.months=cr(e.months),e.years=cr(e.years),this}function ui(e,t,n,i){var s=Xt(t,n);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function li(e,t){return ui(this,e,t,1)}function di(e,t){return ui(this,e,t,-1)}function hi(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data,s,r,a,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=864e5*hi(mi(n)+t),t=0,n=0),i.milliseconds=e%1e3,s=M(e/1e3),i.seconds=s%60,r=M(s/60),i.minutes=r%60,a=M(r/60),i.hours=a%24,t+=M(a/24),u=M(fi(t)),n+=u,t-=hi(mi(u)),o=M(n/12),n%=12,i.days=t,i.months=n,i.years=o,this}function fi(e){return 4800*e/146097}function mi(e){return 146097*e/4800}function _i(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+i/864e5,n=this._months+fi(t),"month"===e?n:n/12;switch(t=this._days+Math.round(mi(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function yi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN}function gi(e){return function(){return this.as(e)}}function pi(){return Xt(this)}function vi(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function wi(e){return function(){return this.isValid()?this._data[e]:NaN}}function Mi(){return M(this.days()/7)}function Si(e,t,n,i,s){return s.relativeTime(t||1,!!n,e,i)}function Di(e,t,n){var i=Xt(e).abs(),s=xr(i.as("s")),r=xr(i.as("m")),a=xr(i.as("h")),o=xr(i.as("d")),u=xr(i.as("M")),l=xr(i.as("y")),d=s<=br.ss&&["s",s]||s<br.s&&["ss",s]||r<=1&&["m"]||r<br.m&&["mm",r]||a<=1&&["h"]||a<br.h&&["hh",a]||o<=1&&["d"]||o<br.d&&["dd",o]||u<=1&&["M"]||u<br.M&&["MM",u]||l<=1&&["y"]||["yy",l];return d[2]=t,d[3]=+e>0,d[4]=n,Si.apply(null,d)}function ki(e){return void 0===e?xr:"function"==typeof e&&(xr=e,!0)}function Yi(e,t){return void 0!==br[e]&&(void 0===t?br[e]:(br[e]=t,"s"===e&&(br.ss=t-1),!0))}function Oi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Di(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Ti(e){return(e>0)-(e<0)||+e}function xi(){if(!this.isValid())return this.localeData().invalidDate();var e=Pr(this._milliseconds)/1e3,t=Pr(this._days),n=Pr(this._months),i,s,r;i=M(e/60),s=M(i/60),e%=60,i%=60,r=M(n/12),n%=12;var a=r,o=n,u=t,l=s,d=i,h=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var f=c<0?"-":"",m=Ti(this._months)!==Ti(c)?"-":"",_=Ti(this._days)!==Ti(c)?"-":"",y=Ti(this._milliseconds)!==Ti(c)?"-":"";return f+"P"+(a?m+a+"Y":"")+(o?m+o+"M":"")+(u?_+u+"D":"")+(l||d||h?"T":"")+(l?y+l+"H":"")+(d?y+d+"M":"")+(h?y+h+"S":"")}var bi,Pi;Pi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Wi=e.momentProperties=[],Ri=!1,Ci={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Hi;Hi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)h(e,t)&&n.push(t);return n};var Fi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Li={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ui="Invalid date",Ni="%d",Ei=/\d{1,2}/,Gi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Vi={},ji={},Ii=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ai=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zi={},zi={},qi=/\d/,$i=/\d\d/,Ji=/\d{3}/,Bi=/\d{4}/,Qi=/[+-]?\d{6}/,Xi=/\d\d?/,Ki=/\d\d\d\d?/,es=/\d\d\d\d\d\d?/,ts=/\d{1,3}/,ns=/\d{1,4}/,is=/[+-]?\d{1,6}/,ss=/\d+/,rs=/[+-]?\d+/,as=/Z|[+-]\d\d:?\d\d/gi,os=/Z|[+-]\d\d(?::?\d\d)?/gi,us=/[+-]?\d+(\.\d{1,3})?/,ls=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ds={},hs={},cs=0,fs=1,ms=2,_s=3,ys=4,gs=5,ps=6,vs=7,ws=8;I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),U("year","y"),G("year",1),$("Y",rs),$("YY",Xi,$i),$("YYYY",ns,Bi),$("YYYYY",is,Qi),$("YYYYYY",is,Qi),X(["YYYYY","YYYYYY"],cs),X("YYYY",function(t,n){n[cs]=2===t.length?e.parseTwoDigitYear(t):S(t)}),X("YY",function(t,n){n[cs]=e.parseTwoDigitYear(t)}),X("Y",function(e,t){t[cs]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var Ms=se("FullYear",!0),Ss;Ss=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),U("month","M"),G("month",8),$("M",Xi),$("MM",Xi,$i),$("MMM",function(e,t){return t.monthsShortRegex(e)}),$("MMMM",function(e,t){return t.monthsRegex(e)}),X(["M","MM"],function(e,t){t[fs]=S(e)-1}),X(["MMM","MMMM"],function(e,t,n,i){var s=n._locale.monthsParse(e,i,n._strict);null!=s?t[fs]=s:_(n).invalidMonth=e});var Ds=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ks="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ys="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Os=ls,Ts=ls;I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),U("week","w"),U("isoWeek","W"),G("week",5),G("isoWeek",5),$("w",Xi),$("ww",Xi,$i),$("W",Xi),$("WW",Xi,$i),K(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=S(e)});var xs={dow:0,doy:6};I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),U("day","d"),U("weekday","e"),U("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),$("d",Xi),$("e",Xi),$("E",Xi),$("dd",function(e,t){return t.weekdaysMinRegex(e)}),$("ddd",function(e,t){return t.weekdaysShortRegex(e)}),$("dddd",function(e,t){return t.weekdaysRegex(e)}),K(["dd","ddd","dddd"],function(e,t,n,i){var s=n._locale.weekdaysParse(e,i,n._strict);null!=s?t.d=s:_(n).invalidWeekday=e}),K(["d","e","E"],function(e,t,n,i){t[i]=S(e)});var bs="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ps="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rs=ls,Cs=ls,Hs=ls;I("H",["HH",2],0,"hour"),I("h",["hh",2],0,ze),I("k",["kk",2],0,qe),I("hmm",0,0,function(){return""+ze.apply(this)+j(this.minutes(),2)}),I("hmmss",0,0,function(){return""+ze.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),$e("a",!0),$e("A",!1),U("hour","h"),G("hour",13),$("a",Je),$("A",Je),$("H",Xi),$("h",Xi),$("k",Xi),$("HH",Xi,$i),$("hh",Xi,$i),$("kk",Xi,$i),$("hmm",Ki),$("hmmss",es),$("Hmm",Ki),$("Hmmss",es),X(["H","HH"],_s),X(["k","kk"],function(e,t,n){var i=S(e);t[_s]=24===i?0:i}),X(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),X(["h","hh"],function(e,t,n){t[_s]=S(e),_(n).bigHour=!0}),X("hmm",function(e,t,n){var i=e.length-2;t[_s]=S(e.substr(0,i)),t[ys]=S(e.substr(i)),_(n).bigHour=!0}),X("hmmss",function(e,t,n){var i=e.length-4,s=e.length-2;t[_s]=S(e.substr(0,i)),t[ys]=S(e.substr(i,2)),t[gs]=S(e.substr(s)),_(n).bigHour=!0}),X("Hmm",function(e,t,n){var i=e.length-2;t[_s]=S(e.substr(0,i)),t[ys]=S(e.substr(i))}),X("Hmmss",function(e,t,n){var i=e.length-4,s=e.length-2;t[_s]=S(e.substr(0,i)),t[ys]=S(e.substr(i,2)),t[gs]=S(e.substr(s))});var Fs=/[ap]\.?m?\.?/i,Ls=se("Hours",!0),Us={calendar:Fi,longDateFormat:Li,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Ei,relativeTime:Gi,months:ks,monthsShort:Ys,week:xs,weekdays:bs,weekdaysMin:Ws,weekdaysShort:Ps,meridiemParse:Fs},Ns={},Es={},Gs,Vs=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,js=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Is=/Z|[+-]\d\d(?::?\d\d)?/,As=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Zs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zs=/^\/?Date\((\-?\d+)/i,qs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$s={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=Y("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Js=Y("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Bs=Y("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),Qs=function(){return Date.now?Date.now():+new Date},Xs=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ut("Z",":"),Ut("ZZ",""),$("Z",os),$("ZZ",os),X(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(os,e)});var Ks=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var er=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Xt.fn=Ht.prototype,Xt.invalid=Ct;var nr=nn(1,"add"),ir=nn(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sr=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),U("weekYear","gg"),U("isoWeekYear","GG"),G("weekYear",1),G("isoWeekYear",1),$("G",rs),$("g",rs),$("GG",Xi,$i),$("gg",Xi,$i),$("GGGG",ns,Bi),$("gggg",ns,Bi),$("GGGGG",is,Qi),$("ggggg",is,Qi),K(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=S(e)}),K(["gg","GG"],function(t,n,i,s){n[s]=e.parseTwoDigitYear(t)}),I("Q",0,"Qo","quarter"),U("quarter","Q"),G("quarter",7),$("Q",qi),X("Q",function(e,t){t[fs]=3*(S(e)-1)}),I("D",["DD",2],"Do","date"),U("date","D"),G("date",9),$("D",Xi),$("DD",Xi,$i),$("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),X(["D","DD"],ms),X("Do",function(e,t){t[ms]=S(e.match(Xi)[0])});var rr=se("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),U("dayOfYear","DDD"),G("dayOfYear",4),$("DDD",ts),$("DDDD",Ji),X(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),I("m",["mm",2],0,"minute"),U("minute","m"),G("minute",14),$("m",Xi),$("mm",Xi,$i),X(["m","mm"],ys);var ar=se("Minutes",!1);I("s",["ss",2],0,"second"),U("second","s"),G("second",15),$("s",Xi),$("ss",Xi,$i),X(["s","ss"],gs);var or=se("Seconds",!1);I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),U("millisecond","ms"),G("millisecond",16),$("S",ts,qi),$("SS",ts,$i),$("SSS",ts,Ji);var ur;for(ur="SSSS";ur.length<=9;ur+="S")$(ur,ss);for(ur="S";ur.length<=9;ur+="S")X(ur,qn);var lr=se("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var dr=v.prototype;dr.add=nr,dr.calendar=an,dr.clone=on,dr.diff=mn,dr.endOf=Tn,dr.format=vn,dr.from=wn,dr.fromNow=Mn,dr.to=Sn,dr.toNow=Dn,dr.get=oe,dr.invalidAt=Ln,dr.isAfter=un,dr.isBefore=ln,dr.isBetween=dn,dr.isSame=hn,dr.isSameOrAfter=cn,dr.isSameOrBefore=fn,dr.isValid=Hn,dr.lang=sr,dr.locale=kn,dr.localeData=Yn,dr.max=Bs,dr.min=Js,dr.parsingFlags=Fn,dr.set=ue,dr.startOf=On,dr.subtract=ir,dr.toArray=Wn,dr.toObject=Rn,dr.toDate=Pn,dr.toISOString=gn,dr.inspect=pn,dr.toJSON=Cn,dr.toString=yn,dr.unix=bn,dr.valueOf=xn,dr.creationData=Un,dr.year=Ms,dr.isLeapYear=ie,dr.weekYear=En,dr.isoWeekYear=G