@inplayer-org/paywall
Version:
InPlayer Paywall
8 lines • 1.61 MB
JavaScript
/*!
* paywall v1.0.4
*
* Author: InPlayer
* Date: 8/21/2018, 10:34:33 AM
*
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["InPlayer Paywall"]=t():e["InPlayer Paywall"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(e){delete installedChunks[e]}function n(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=p.p+""+e+"."+g+".hot-update.js",t.appendChild(n)}function r(e){return e=e||1e4,new Promise(function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,o=p.p+""+g+".hot-update.json";r.open("GET",o,!0),r.timeout=e,r.send(null)}catch(e){return n(e)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+o+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+o+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(e){return void n(e)}t(e)}}})}function o(e){var t=A[e];if(!t)return p;var n=function(n){return t.hot.active?(A[n]?A[n].parents.indexOf(e)<0&&A[n].parents.push(e):(E=[e],m=n),t.children.indexOf(n)<0&&t.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),E=[]),p(n)};for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&"e"!==r&&Object.defineProperty(n,r,function(e){return{configurable:!0,enumerable:!0,get:function(){return p[e]},set:function(t){p[e]=t}}}(r));return n.e=function(e){function t(){T--,"prepare"===x&&(L[e]||l(e),0===T&&0===O&&d())}return"ready"===x&&a("prepare"),T++,p.e(e).then(t,function(e){throw t(),e})},n}function i(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:m!==e,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r<e.length;r++)t._acceptedDependencies[e[r]]=n||function(){};else t._acceptedDependencies[e]=n||function(){}},decline:function(e){if(void 0===e)t._selfDeclined=!0;else if("object"==typeof e)for(var n=0;n<e.length;n++)t._declinedDependencies[e[n]]=!0;else t._declinedDependencies[e]=!0},dispose:function(e){t._disposeHandlers.push(e)},addDisposeHandler:function(e){t._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=t._disposeHandlers.indexOf(e);n>=0&&t._disposeHandlers.splice(n,1)},check:u,apply:f,status:function(e){if(!e)return x;M.push(e)},addStatusHandler:function(e){M.push(e)},removeStatusHandler:function(e){var t=M.indexOf(e);t>=0&&M.splice(t,1)},data:S[e]};return m=void 0,t}function a(e){x=e;for(var t=0;t<M.length;t++)M[t].call(null,e)}function s(e){return+e+""===e?+e:e}function u(e){if("idle"!==x)throw new Error("check() is only allowed in idle status");return v=e,a("check"),r(w).then(function(e){if(!e)return a("idle"),null;j={},L={},P=e.c,b=e.h,a("prepare");var t=new Promise(function(e,t){_={resolve:e,reject:t}});y={};return l(0),"prepare"===x&&0===T&&0===O&&d(),t})}function c(e,t){if(P[e]&&j[e]){j[e]=!1;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(y[n]=t[n]);0==--O&&0===T&&d()}}function l(e){P[e]?(j[e]=!0,O++,n(e)):L[e]=!0}function d(){a("ready");var e=_;if(_=null,e)if(v)Promise.resolve().then(function(){return f(v)}).then(function(t){e.resolve(t)},function(t){e.reject(t)});else{var t=[];for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&t.push(s(n));e.resolve(t)}}function f(n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.indexOf(r)<0&&e.push(r)}}if("ready"!==x)throw new Error("apply() is only allowed in ready status");n=n||{};var o,i,u,c,l,d={},f=[],h={},m=function(){console.warn("[HMR] unexpected require("+v.moduleId+") to disposed module")};for(var _ in y)if(Object.prototype.hasOwnProperty.call(y,_)){l=s(_);var v;v=y[_]?function(e){for(var t=[e],n={},o=t.slice().map(function(e){return{chain:[e],id:e}});o.length>0;){var i=o.pop(),a=i.id,s=i.chain;if((c=A[a])&&!c.hot._selfAccepted){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:a};for(var u=0;u<c.parents.length;u++){var l=c.parents[u],d=A[l];if(d){if(d.hot._declinedDependencies[a])return{type:"declined",chain:s.concat([l]),moduleId:a,parentId:l};t.indexOf(l)>=0||(d.hot._acceptedDependencies[a]?(n[l]||(n[l]=[]),r(n[l],[a])):(delete n[l],t.push(l),o.push({chain:s.concat([l]),id:l})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}(l):{type:"disposed",moduleId:_};var w=!1,k=!1,M=!1,O="";switch(v.chain&&(O="\nUpdate propagation: "+v.chain.join(" -> ")),v.type){case"self-declined":n.onDeclined&&n.onDeclined(v),n.ignoreDeclined||(w=new Error("Aborted because of self decline: "+v.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(v),n.ignoreDeclined||(w=new Error("Aborted because of declined dependency: "+v.moduleId+" in "+v.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(v),n.ignoreUnaccepted||(w=new Error("Aborted because "+l+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(v),k=!0;break;case"disposed":n.onDisposed&&n.onDisposed(v),M=!0;break;default:throw new Error("Unexception type "+v.type)}if(w)return a("abort"),Promise.reject(w);if(k){h[l]=y[l],r(f,v.outdatedModules);for(l in v.outdatedDependencies)Object.prototype.hasOwnProperty.call(v.outdatedDependencies,l)&&(d[l]||(d[l]=[]),r(d[l],v.outdatedDependencies[l]))}M&&(r(f,[v.moduleId]),h[l]=m)}var T=[];for(i=0;i<f.length;i++)l=f[i],A[l]&&A[l].hot._selfAccepted&&T.push({module:l,errorHandler:A[l].hot._selfAccepted});a("dispose"),Object.keys(P).forEach(function(e){!1===P[e]&&t(e)});for(var L,j=f.slice();j.length>0;)if(l=j.pop(),c=A[l]){var D={},C=c.hot._disposeHandlers;for(u=0;u<C.length;u++)(o=C[u])(D);for(S[l]=D,c.hot.active=!1,delete A[l],delete d[l],u=0;u<c.children.length;u++){var R=A[c.children[u]];R&&((L=R.parents.indexOf(l))>=0&&R.parents.splice(L,1))}}var Y,F;for(l in d)if(Object.prototype.hasOwnProperty.call(d,l)&&(c=A[l]))for(F=d[l],u=0;u<F.length;u++)Y=F[u],(L=c.children.indexOf(Y))>=0&&c.children.splice(L,1);a("apply"),g=b;for(l in h)Object.prototype.hasOwnProperty.call(h,l)&&(e[l]=h[l]);var I=null;for(l in d)if(Object.prototype.hasOwnProperty.call(d,l)&&(c=A[l])){F=d[l];var N=[];for(i=0;i<F.length;i++)if(Y=F[i],o=c.hot._acceptedDependencies[Y]){if(N.indexOf(o)>=0)continue;N.push(o)}for(i=0;i<N.length;i++){o=N[i];try{o(F)}catch(e){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:l,dependencyId:F[i],error:e}),n.ignoreErrored||I||(I=e)}}}for(i=0;i<T.length;i++){var U=T[i];l=U.module,E=[l];try{p(l)}catch(e){if("function"==typeof U.errorHandler)try{U.errorHandler(e)}catch(t){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:l,error:t,orginalError:e,originalError:e}),n.ignoreErrored||I||(I=t),I||(I=e)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:l,error:e}),n.ignoreErrored||I||(I=e)}}return I?(a("fail"),Promise.reject(I)):(a("idle"),new Promise(function(e){e(f)}))}function p(t){if(A[t])return A[t].exports;var n=A[t]={i:t,l:!1,exports:{},hot:i(t),parents:(k=E,E=[],k),children:[]};return e[t].call(n.exports,n,n.exports,o(t)),n.l=!0,n.exports}var h=window.webpackHotUpdateInPlayer_Paywall;window.webpackHotUpdateInPlayer_Paywall=function(e,t){c(e,t),h&&h(e,t)};var m,_,y,b,v=!0,g="1c4f60d5a07f3210c9dc",w=1e4,S={},E=[],k=[],M=[],x="idle",O=0,T=0,L={},j={},P={},A={};return p.m=e,p.c=A,p.d=function(e,t,n){p.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,"a",t),t},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.p="",p.h=function(){return g},o(351)(p.s=351)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Tr.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(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 a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Mt(e,t,n,r,!0).utc()}function p(){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 h(e){return null==e._pf&&(e._pf=p()),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=Lr.call(t.parsedDateParts,function(e){return null!=e}),r=!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&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function _(e){var t=f(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}function y(e,t){var n,r,o;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=h(t)),a(t._locale)||(e._locale=t._locale),jr.length>0)for(n=0;n<jr.length;n++)r=jr[n],o=t[r],a(o)||(e[r]=o);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Pr&&(Pr=!0,t.updateOffset(this),Pr=!1)}function v(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function g(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=g(t)),n}function S(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&w(e[r])!==w(t[r]))&&a++;return a+i}function E(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var o,i=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){o+="\n["+a+"] ";for(var s in arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];i.push(o)}E(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function M(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Ar[e]||(E(n),Ar[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)t=e[n],x(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 T(e,t){var n,r=d({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=d({},r[n]));return r}function L(e){null!=e&&this.set(e)}function j(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return x(r)?r.call(t,n):r}function P(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 A(){return this._invalidDate}function D(e){return this._ordinal.replace("%d",e)}function C(e,t,n,r){var o=this._relativeTime[n];return x(o)?o(e,t,n,r):o.replace(/%d/i,e)}function R(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function Y(e,t){var n=e.toLowerCase();Ir[n]=Ir[n+"s"]=Ir[t]=e}function F(e){return"string"==typeof e?Ir[e]||Ir[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)l(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}function N(e,t){Nr[e]=t}function U(e){var t=[];for(var n in e)t.push({unit:n,priority:Nr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function H(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}function B(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(zr[e]=o),t&&(zr[t[0]]=function(){return H(o.apply(this,arguments),t[1],t[2])}),n&&(zr[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,r=e.match(Ur);for(t=0,n=r.length;t<n;t++)zr[r[t]]?r[t]=zr[r[t]]:r[t]=z(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=x(r[o])?r[o].call(t,e):r[o];return i}}function q(e,t){return e.isValid()?(t=V(t,e.localeData()),Br[t]=Br[t]||W(t),Br[t](e)):e.localeData().invalidDate()}function V(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Hr.lastIndex=0;r>=0&&Hr.test(e);)e=e.replace(Hr,n),Hr.lastIndex=0,r-=1;return e}function G(e,t,n){so[e]=x(t)?t:function(e,r){return e&&n?n:t}}function K(e,t){return l(so,e)?so[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)uo[e[n]]=r}function Z(e,t){$(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function X(e,t,n){null!=t&&l(uo,e)&&uo[e](t,n._a,n,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(){return te(this.year())}function re(e,n){return function(r){return null!=r?(ie(this,e,r),t.updateOffset(this,n),this):oe(this,e)}}function oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ce(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ae(e){return e=F(e),x(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=I(e);for(var n=U(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=F(e),x(this[e]))return this[e](t);return this}function ue(e,t){return(e%t+t)%t}function ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ue(t,12);return e+=(t-n)/12,1===n?te(e)?29:28:31-n%7%2}function le(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||wo).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function de(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[wo.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(o=vo.call(this._shortMonthsParse,a),-1!==o?o:null):(o=vo.call(this._longMonthsParse,a),-1!==o?o:null):"MMM"===t?-1!==(o=vo.call(this._shortMonthsParse,a))?o:(o=vo.call(this._longMonthsParse,a),-1!==o?o:null):-1!==(o=vo.call(this._longMonthsParse,a))?o:(o=vo.call(this._shortMonthsParse,a),-1!==o?o:null)}function pe(e,t,n){var r,o,i;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function he(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ce(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function me(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):oe(this,"Month")}function _e(){return ce(this.year(),this.month())}function ye(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ko),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function be(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Mo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=Q(r[t]),o[t]=Q(o[t]);for(t=0;t<24;t++)i[t]=Q(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function we(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Se(e,t,n){var r=7+t-n;return-(7+we(e,0,r).getUTCDay()-t)%7+r-1}function Ee(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=Se(e,r,o),c=1+7*(t-1)+s+u;return c<=0?(i=e-1,a=ee(i)+c):c>ee(e)?(i=e+1,a=c-ee(e)):(i=e,a=c),{year:i,dayOfYear:a}}function ke(e,t,n){var r,o,i=Se(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Me(o,t,n)):a>Me(e.year(),t,n)?(r=a-Me(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Me(e,t,n){var r=Se(e,t,n),o=Se(e+1,t,n);return(ee(e)-r+o)/7}function xe(e){return ke(e,this._week.dow,this._week.doy).week}function Oe(){return this._week.dow}function Te(){return this._week.doy}function Le(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function je(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ae(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function De(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ce(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Re(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ye(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(o=vo.call(this._weekdaysParse,a),-1!==o?o:null):"ddd"===t?(o=vo.call(this._shortWeekdaysParse,a),-1!==o?o:null):(o=vo.call(this._minWeekdaysParse,a),-1!==o?o:null):"dddd"===t?-1!==(o=vo.call(this._weekdaysParse,a))?o:-1!==(o=vo.call(this._shortWeekdaysParse,a))?o:(o=vo.call(this._minWeekdaysParse,a),-1!==o?o:null):"ddd"===t?-1!==(o=vo.call(this._shortWeekdaysParse,a))?o:-1!==(o=vo.call(this._weekdaysParse,a))?o:(o=vo.call(this._minWeekdaysParse,a),-1!==o?o:null):-1!==(o=vo.call(this._minWeekdaysParse,a))?o:-1!==(o=vo.call(this._weekdaysParse,a))?o:(o=vo.call(this._shortWeekdaysParse,a),-1!==o?o:null)}function Fe(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ye.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pe(e,this.localeData()),this.add(e-t,"d")):t}function Ne(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 Ue(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ae(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function He(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||We.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=jo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||We.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Po),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||We.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ao),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function We(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),u.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=Q(s[t]),u[t]=Q(u[t]),c[t]=Q(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ve(){return this.hours()||24}function Ge(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,o,i=0;i<e.length;){for(o=$e(e[i]).split("-"),t=o.length,n=$e(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=Xe(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&S(o,n,!0)>=t-1)break;t--}i++}return Do}function Xe(t){var r=null;if(!Fo[t]&&void 0!==e&&e&&e.exports)try{r=Do._abbr;n(616)("./"+t),et(r)}catch(e){}return Fo[t]}function et(e,t){var n;return e&&(n=a(t)?rt(e):tt(e,t),n?Do=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Do._abbr}function tt(e,t){if(null!==t){var n,r=Yo;if(t.abbr=e,null!=Fo[e])M("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."),r=Fo[e]._config;else if(null!=t.parentLocale)if(null!=Fo[t.parentLocale])r=Fo[t.parentLocale]._config;else{if(null==(n=Xe(t.parentLocale)))return Io[t.parentLocale]||(Io[t.parentLocale]=[]),Io[t.parentLocale].push({name:e,config:t}),null;r=n._config}return Fo[e]=new L(T(r,t)),Io[e]&&Io[e].forEach(function(e){tt(e.name,e.config)}),et(e),Fo[e]}return delete Fo[e],null}function nt(e,t){if(null!=t){var n,r,o=Yo;r=Xe(e),null!=r&&(o=r._config),t=T(o,t),n=new L(t),n.parentLocale=Fo[e],Fo[e]=n,et(e)}else null!=Fo[e]&&(null!=Fo[e].parentLocale?Fo[e]=Fo[e].parentLocale:null!=Fo[e]&&delete Fo[e]);return Fo[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Do;if(!r(e)){if(t=Xe(e))return t;e=[e]}return Ze(e)}function ot(){return Dr(Fo)}function it(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[lo]<0||n[lo]>11?lo:n[fo]<1||n[fo]>ce(n[co],n[lo])?fo:n[po]<0||n[po]>24||24===n[po]&&(0!==n[ho]||0!==n[mo]||0!==n[_o])?po:n[ho]<0||n[ho]>59?ho:n[mo]<0||n[mo]>59?mo:n[_o]<0||n[_o]>999?_o:-1,h(e)._overflowDayOfYear&&(t<co||t>fo)&&(t=fo),h(e)._overflowWeeks&&-1===t&&(t=yo),h(e)._overflowWeekday&&-1===t&&(t=bo),h(e).overflow=t),e}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,o,i,a=[];if(!e._d){for(r=st(e),e._w&&null==e._a[fo]&&null==e._a[lo]&&ct(e),null!=e._dayOfYear&&(i=at(e._a[co],r[co]),(e._dayOfYear>ee(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=we(i,0,e._dayOfYear),e._a[lo]=n.getUTCMonth(),e._a[fo]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[po]&&0===e._a[ho]&&0===e._a[mo]&&0===e._a[_o]&&(e._nextDay=!0,e._a[po]=0),e._d=(e._useUTC?we:ge).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[po]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function ct(e){var t,n,r,o,i,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,a=4,n=at(t.GG,e._a[co],ke(xt(),1,4).year),r=at(t.W,1),((o=at(t.E,1))<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=ke(xt(),i,a);n=at(t.gg,e._a[co],c.year),r=at(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>Me(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=Ee(n,r,o,i,a),e._a[co]=s.year,e._dayOfYear=s.dayOfYear)}function lt(e){var t,n,r,o,i,a,s=e._i,u=No.exec(s)||Uo.exec(s);if(u){for(h(e).iso=!0,t=0,n=Bo.length;t<n;t++)if(Bo[t][1].exec(u[1])){o=Bo[t][0],r=!1!==Bo[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=zo.length;t<n;t++)if(zo[t][1].exec(u[3])){i=(u[2]||" ")+zo[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!Ho.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),bt(e)}else e._isValid=!1}function dt(e,t,n,r,o,i){var a=[ft(e),Eo.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function ft(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ht(e,t,n){if(e){if(To.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mt(e,t,n){if(e)return Vo[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function _t(e){var t=qo.exec(pt(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(t[1],n,e))return;e._a=n,e._tzm=mt(t[8],t[9],t[10]),e._d=we.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function yt(e){var n=Wo.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));lt(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function bt(e){if(e._f===t.ISO_8601)return void lt(e);if(e._f===t.RFC_2822)return void _t(e);e._a=[],h(e).empty=!0;var n,r,o,i,a,s=""+e._i,u=s.length,c=0;for(o=V(e._f,e._locale).match(Ur)||[],n=0;n<o.length;n++)i=o[n],r=(s.match(K(i,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),zr[i]?(r?h(e).empty=!1:h(e).unusedTokens.push(i),X(i,r,e)):e._strict&&!r&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-c,s.length>0&&h(e).unusedInput.push(s),e._a[po]<=12&&!0===h(e).bigHour&&e._a[po]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[po]=vt(e._locale,e._a[po],e._meridiem),ut(e),it(e)}function vt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function gt(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],bt(t),m(t)&&(i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}function wt(e){if(!e._d){var t=I(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function St(e){var t=new b(it(Et(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new b(it(t)):(u(t)?e._d=t:r(n)?gt(e):n?bt(e):kt(e),m(e)||(e._d=null),e))}function kt(e){var n=e._i;a(n)?e._d=new Date(t.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?yt(e):r(n)?(e._a=c(n.slice(0),function(e){return parseInt(e,10)}),ut(e)):o(n)?wt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Mt(e,t,n,a,s){var u={};return!0!==n&&!1!==n||(a=n,n=void 0),(o(e)&&i(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=a,St(u)}function xt(e,t,n,r){return Mt(e,t,n,r,!1)}function Ot(e,t){var n,o;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}function Tt(){return Ot("isBefore",[].slice.call(arguments,0))}function Lt(){return Ot("isAfter",[].slice.call(arguments,0))}function jt(e){for(var t in e)if(-1===vo.call(Qo,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Qo.length;++r)if(e[Qo[r]]){if(n)return!1;parseFloat(e[Qo[r]])!==w(e[Qo[r]])&&(n=!0)}return!0}function Pt(){return this._isValid}function At(){return $t(NaN)}function Dt(e){var t=I(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=jt(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=rt(),this._bubble()}function Ct(e){return e instanceof Dt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+H(~~(e/60),2)+t+H(~~e%60,2)})}function Ft(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],o=(r+"").match($o)||["-",0,0],i=60*o[1]+w(o[2]);return 0===i?0:"+"===o[0]?i:-i}function It(e,n){var r,o;return n._isUTC?(r=n.clone(),o=(v(e)||u(e)?e.valueOf():xt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),t.updateOffset(r,!1),r):xt(e).local()}function Nt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ut(e,n,r){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(oo,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(o=Nt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!n||this._changeInProgress?nn(this,$t(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Nt(this)}function Ht(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Bt(e){return this.utcOffset(0,e)}function zt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this}function Wt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ro,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qt(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Vt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=Et(e),e._a){var t=e._isUTC?f(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kt(){return!!this.isValid()&&!this._isUTC}function Jt(){return!!this.isValid()&&this._isUTC}function Qt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $t(e,t){var n,r,o,i=e,a=null;return Ct(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=Zo.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:w(a[fo])*n,h:w(a[po])*n,m:w(a[ho])*n,s:w(a[mo])*n,ms:w(Rt(1e3*a[_o]))*n}):(a=Xo.exec(e))?(n="-"===a[1]?-1:(a[1],1),i={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=en(xt(i.from),xt(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new Dt(i),Ct(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xt(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 en(e,t){var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Xt(e,t):(n=Xt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,r){var o,i;return null===r||isNaN(+r)||(M(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."),i=n,n=r,r=i),n="string"==typeof n?+n:n,o=$t(n,r),nn(this,o,e),this}}function nn(e,n,r,o){var i=n._milliseconds,a=Rt(n._days),s=Rt(n._months);e.isValid()&&(o=null==o||o,s&&he(e,oe(e,"Month")+s*r),a&&ie(e,"Date",oe(e,"Date")+a*r),i&&e._d.setTime(e._d.valueOf()+i*r),o&&t.updateOffset(e,a||s))}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 on(e,n){var r=e||xt(),o=It(r,this).startOf("day"),i=t.calendarFormat(this,o)||"sameElse",a=n&&(x(n[i])?n[i].call(this,r):n[i]);return this.format(a||this.localeData().calendar(i,this,xt(r)))}function an(){return new b(this)}function sn(e,t){var n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=F(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function un(e,t){var n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=F(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function cn(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function ln(e,t){var n,r=v(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&(t=F(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(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 pn(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=It(e,this),!r.isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":i=hn(this,r)/12;break;case"month":i=hn(this,r);break;case"quarter":i=hn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:g(i)}function hn(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)||0}function mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _n(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yn(){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+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)}function bn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=q(this,e);return this.localeData().postformat(n)}function vn(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gn(e){return this.from(xt(),e)}function wn(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Sn(e){return this.to(xt(),e)}function En(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function kn(){return this._locale}function Mn(e){switch(e=F(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 xn(e){return void 0===(e=F(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function On(){return this._d.valueOf()-6e4*(this._offset||0)}function Tn(){return Math.floor(this.valueOf()/1e3)}function Ln(){return new Date(this.valueOf())}function jn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Pn(){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 An(){return this.isValid()?this.toISOString():null}function Dn(){return m(this)}function Cn(){return d({},h(this))}function Rn(){return h(this).overflow}function Yn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fn(e,t){B(0,[e,e.length],0,t)}function In(e){return Bn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Nn(e){return Bn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Un(){return Me(this.year(),1,4)}function Hn(){var e=this.localeData()._week;return Me(this.year(),e.dow,e.doy)}function Bn(e,t,n,r,o){var i;return null==e?ke(this,r,o).year:(i=Me(e,r,o),t>i&&(t=i),zn.call(this,e,t,n,r,o))}function zn(e,t,n,r,o){var i=Ee(e,t,n,r,o),a=we(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Wn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function qn(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 Vn(e,t){t[_o]=w(1e3*("0."+e))}function Gn(){return this._isUTC?"UTC":""}function Kn(){return this._isUTC?"Coordinated Universal Time":""}function Jn(e){return xt(1e3*e)}function Qn(){return xt.apply(null,arguments).parseZone()}function $n(e){return e}function Zn(e,t,n,r){var o=rt(),i=f().set(r,t);return o[n](i,e)}function Xn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Zn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Zn(e,r,n,"month");return o}function er(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o=rt(),i=e?o._week.dow:0;if(null!=n)return Zn(t,(n+i)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Zn(t,(a+i)%7,r,"day");return u}function tr(e,t){return Xn(e,t,"months")}function nr(e,t){return Xn(e,t,"monthsShort")}function rr(e,t,n){return er(e,t,n,"weekdays")}function or(e,t,n){return er(e,t,n,"weekdaysShort")}function ir(e,t,n){return er(e,t,n,"weekdaysMin")}function ar(){var e=this._data;return this._milliseconds=li(this._milliseconds),this._days=li(this._days),this._months=li(this._months),e.milliseconds=li(e.milliseconds),e.seconds=li(e.seconds),e.minutes=li(e.minutes),e.hours=li(e.hours),e.months=li(e.months),e.years=li(e.years),this}function sr(e,t,n,r){var o=$t(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function ur(e,t){return sr(this,e,t,1)}function cr(e,t){return sr(this,e,t,-1)}function lr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*lr(pr(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=g(i/1e3),u.seconds=e%60,t=g(e/60),u.minutes=t%60,n=g(t/60),u.hours=n%24,a+=g(n/24),o=g(fr(a)),s+=o,a-=lr(pr(o)),r=g(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function fr(e){return 4800*e/146097}function pr(e){return 146097*e/4800}function hr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"year"===e)return t=this._days+r/864e5,n=this._months+fr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(pr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function mr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function _r(e){return function(){return this.as(e)}}function yr(){return $t(this)}function br(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function vr(e){return function(){return this.isValid()?this._data[e]:NaN}}function gr(){return g(this.days()/7)}function wr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function Sr(e,t,n){var r=$t(e).abs(),o=xi(r.as("s")),i=xi(r.as("m")),a=xi(r.as("h")),s=xi(r.as("d")),u=xi(r.as("M")),c=xi(r.as("y")),l=o<=Oi.ss&&["s",o]||o<Oi.s&&["ss",o]||i<=1&&["m"]||i<Oi.m&&["mm",i]||a<=1&&["h"]||a<Oi.h&&["hh",a]||s<=1&&["d"]||s<Oi.d&&["dd",s]||u<=1&&["M"]||u<Oi.M&&["MM",u]||c<=1&&["y"]||["yy",c];return l[2]=t,l[3]=+e>0,l[4]=n,wr.apply(null,l)}function Er(e){return void 0===e?xi:"function"==typeof e&&(xi=e,!0)}function kr(e,t){return void 0!==Oi[e]&&(void 0===t?Oi[e]:(Oi[e]=t,"s"===e&&(Oi.ss=t-1),!0))}function Mr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Sr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function xr(e){return(e>0)-(e<0)||+e}function Or(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Ti(this._milliseconds)/1e3,o=Ti(this._days),i=Ti(this._months);e=g(r/60),t=g(e/60),r%=60,e%=60,n=g(i/12),i%=12;var a=n,s=i,u=o,c=t,l=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var p=f<0?"-":"",h=xr(this._months)!==xr(f)?"-":"",m=xr(this._days)!==xr(f)?"-":"",_=xr(this._milliseconds)!==xr(f)?"-":"";return p+"P"+(a?h+a+"Y":"")+(s?h+s+"M":"")+(u?m+u+"D":"")+(c||l||d?"T":"")+(c?_+c+"H":"")+(l?_+l+"M":"")+(d?_+d+"S":"")}var Tr,Lr;Lr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var jr=t.momentProperties=[],Pr=!1,Ar={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Dr;Dr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Cr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Rr={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"},Yr=/\d{1,2}/,Fr={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"},Ir={},Nr={},Ur=/(\[[^\[]*\])|(\\)?([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,Hr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Br={},zr={},Wr=/\d/,qr=/\d\d/,Vr=/\d{3}/,Gr=/\d{4}/,Kr=/[+-]?\d{6}/,Jr=/\d\d?/,Qr=/\d\d\d\d?/,$r=/\d\d\d\d\d\d?/,Zr=/\d{1,3}/,Xr=/\d{1,4}/,eo=/[+-]?\d{1,6}/,to=/\d+/,no=/[+-]?\d+/,ro=/Z|[+-]\d\d:?\d\d/gi,oo=/Z|[+-]\d\d(?::?\d\d)?/gi,io=/[+-]?\d+(\.\d{1,3})?/,ao=/[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,so={},uo={},co=0,lo=1,fo=2,po=3,ho=4,mo=5,_o=6,yo=7,bo=8;B("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),N("year",1),G("Y",no),G("YY",Jr,qr),G("YYYY",Xr,Gr),G("YYYYY",eo,Kr),G("YYYYYY",eo,Kr),$(["YYYYY","YYYYYY"],co),$("YYYY",function(e,n){n[co]=2===e.length?t.parseTwoDigitYear(e):w(e)}),$("YY",function(e,n){n[co]=t.parseTwoDigitYear(e)}),$("Y",function(e,t){t[co]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var vo,go=re("FullYear",!0);vo=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},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Y("month","M"),N("month",8),G("M",Jr),G("MM",Jr,qr),G("MMM",function(e,t){return t.monthsShortRegex(e)}),G("MMMM",function(e,t){return t.monthsRegex(e)}),$(["M","MM"],function(e,t){t[lo]=w(e)-1}),$(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[lo]=o:h(n).invalidMonth=e});var wo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,So="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Eo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ko=ao,Mo=ao;B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),N("week",5),N("isoWeek",5),G("w",Jr),G("ww",Jr,qr),G("W",Jr),G("WW",Jr,qr),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)});var xo={dow:0,doy:6};B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),G("d",Jr),G("e",Jr),G("E",Jr),G("dd",function(e,t){return t.weekdaysMinRegex(e)}),G("ddd",function(e,t){return t.weekdaysShortRegex(e)}),G("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var Oo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),To="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jo=ao,Po=ao,Ao=ao;B("H",["HH",2],0,"hour"),B("h",["hh",2],0,qe),B("k",["kk",2],0,Ve),B("hmm",0,0,function(){return""+qe.apply(this)+H(this.minutes(),2)})