luxon
Version:
Immutable date wrapper
1 lines • 100 kB
JavaScript
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});function createCommonjsModule(e,n){return n={exports:{}},e(n,n.exports),n.exports}var _global=createCommonjsModule(function(e){var n=e.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=n)}),hasOwnProperty={}.hasOwnProperty,_has=function(e,n){return hasOwnProperty.call(e,n)},_fails=function(e){try{return!!e()}catch(n){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a}),_core=createCommonjsModule(function(e){var n=e.exports={version:'2.5.1'};'number'==typeof __e&&(__e=n)}),_typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},asyncGenerator=function(){function e(e){this.value=e}function n(n){function t(o,r){try{var i=n[o](r),s=i.value;s instanceof e?Promise.resolve(s.value).then(function(e){t('next',e)},function(e){t('throw',e)}):a(i.done?'return':'normal',i.value)}catch(e){a('throw',e)}}function a(e,n){'return'===e?o.resolve({value:n,done:!0}):'throw'===e?o.reject(n):o.resolve({value:n,done:!1});o=o.next,o?t(o.key,o.arg):r=null}var o,r;this._invoke=function(e,n){return new Promise(function(a,i){var s={key:e,arg:n,resolve:a,reject:i,next:null};r?r=r.next=s:(o=r=s,t(e,n))})},'function'!=typeof n.return&&(this.return=void 0)}return'function'==typeof Symbol&&Symbol.asyncIterator&&(n.prototype[Symbol.asyncIterator]=function(){return this}),n.prototype.next=function(e){return this._invoke('next',e)},n.prototype.throw=function(e){return this._invoke('throw',e)},n.prototype.return=function(e){return this._invoke('return',e)},{wrap:function(e){return function(){return new n(e.apply(this,arguments))}},await:function(n){return new e(n)}}}(),classCallCheck=function(e,n){if(!(e instanceof n))throw new TypeError('Cannot call a class as a function')},createClass=function(){function e(e,n){for(var t,a=0;a<n.length;a++)t=n[a],t.enumerable=t.enumerable||!1,t.configurable=!0,'value'in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}return function(n,t,a){return t&&e(n.prototype,t),a&&e(n,a),n}}(),defineProperty=function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e},inherits=function(e,n){if('function'!=typeof n&&null!==n)throw new TypeError('Super expression must either be null or a function, not '+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},possibleConstructorReturn=function(e,n){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return n&&('object'==typeof n||'function'==typeof n)?n:e},slicedToArray=function(){function e(e,n){var t,a=[],o=!0,r=!1;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(a.push(i.value),!(n&&a.length===n));o=!0);}catch(e){r=!0,t=e}finally{try{!o&&s['return']&&s['return']()}finally{if(r)throw t}}return a}return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return e(n,t);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}(),toConsumableArray=function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)},_isObject=function(e){return'object'===('undefined'==typeof e?'undefined':_typeof(e))?null!==e:'function'==typeof e},_anObject=function(e){if(!_isObject(e))throw TypeError(e+' is not an object!');return e},document=_global.document,is=_isObject(document)&&_isObject(document.createElement),_domCreate=function(e){return is?document.createElement(e):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate('div'),'a',{get:function(){return 7}}).a}),_toPrimitive=function(e,n){if(!_isObject(e))return e;var t,a;if(n&&'function'==typeof(t=e.toString)&&!_isObject(a=t.call(e)))return a;if('function'==typeof(t=e.valueOf)&&!_isObject(a=t.call(e)))return a;if(!n&&'function'==typeof(t=e.toString)&&!_isObject(a=t.call(e)))return a;throw TypeError('Can\'t convert object to primitive value')},dP$1=Object.defineProperty,f=_descriptors?Object.defineProperty:function(e,n,t){if(_anObject(e),n=_toPrimitive(n,!0),_anObject(t),_ie8DomDefine)try{return dP$1(e,n,t)}catch(n){}if('get'in t||'set'in t)throw TypeError('Accessors not supported!');return'value'in t&&(e[n]=t.value),e},_objectDp={f:f},_propertyDesc=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}},_hide=_descriptors?function(e,n,t){return _objectDp.f(e,n,_propertyDesc(1,t))}:function(e,n,t){return e[n]=t,e},id=0,px=Math.random(),_uid=function(e){return'Symbol('.concat(e===void 0?'':e,')_',(++id+px).toString(36))},_redefine=createCommonjsModule(function(e){var n=_uid('src'),t='toString',a=Function[t],o=(''+a).split(t);_core.inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,a,r){var i='function'==typeof a;i&&(_has(a,'name')||_hide(a,'name',t));e[t]===a||(i&&(_has(a,n)||_hide(a,n,e[t]?''+e[t]:o.join(t+''))),e===_global?e[t]=a:r?e[t]?e[t]=a:_hide(e,t,a):(delete e[t],_hide(e,t,a)))})(Function.prototype,t,function(){return'function'==typeof this&&this[n]||a.call(this)})}),_aFunction=function(e){if('function'!=typeof e)throw TypeError(e+' is not a function!');return e},_ctx=function(e,n,t){return(_aFunction(e),void 0===n)?e:1===t?function(t){return e.call(n,t)}:2===t?function(t,a){return e.call(n,t,a)}:3===t?function(t,a,o){return e.call(n,t,a,o)}:function(){return e.apply(n,arguments)}},PROTOTYPE$1='prototype',$export=function e(n,t,a){var o,r,i,s,l=n&e.F,u=n&e.G,d=n&e.S,m=n&e.P,y=n&e.B,c=u?_global:d?_global[t]||(_global[t]={}):(_global[t]||{})[PROTOTYPE$1],f=u?_core:_core[t]||(_core[t]={}),g=f[PROTOTYPE$1]||(f[PROTOTYPE$1]={});for(o in u&&(a=t),a)r=!l&&c&&void 0!==c[o],i=(r?c:a)[o],s=y&&r?_ctx(i,_global):m&&'function'==typeof i?_ctx(Function.call,i):i,c&&_redefine(c,o,i,n&e.U),f[o]!=i&&_hide(f,o,s),m&&g[o]!=i&&(g[o]=i)};_global.core=_core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,_meta=createCommonjsModule(function(e){var n=_uid('meta'),t=_objectDp.f,a=0,o=Object.isExtensible||function(){return!0},r=!_fails(function(){return o(Object.preventExtensions({}))}),i=function(e){t(e,n,{value:{i:'O'+ ++a,w:{}}})},s=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!_isObject(e))return'symbol'==('undefined'==typeof e?'undefined':_typeof(e))?e:('string'==typeof e?'S':'P')+e;if(!_has(e,n)){if(!o(e))return'F';if(!t)return'E';i(e)}return e[n].i},getWeak:function(e,t){if(!_has(e,n)){if(!o(e))return!0;if(!t)return!1;i(e)}return e[n].w},onFreeze:function(e){return r&&s.NEED&&o(e)&&!_has(e,n)&&i(e),e}}}),SHARED='__core-js_shared__',store=_global[SHARED]||(_global[SHARED]={}),_shared=function(e){return store[e]||(store[e]={})},_wks=createCommonjsModule(function(e){var n=_shared('wks'),t=_global.Symbol,a='function'==typeof t,o=e.exports=function(e){return n[e]||(n[e]=a&&t[e]||(a?t:_uid)('Symbol.'+e))};o.store=n}),def=_objectDp.f,TAG=_wks('toStringTag'),_setToStringTag=function(e,n,t){e&&!_has(e=t?e:e.prototype,TAG)&&def(e,TAG,{configurable:!0,value:n})},f$1=_wks,_wksExt={f:f$1},_library=!1,defineProperty$1=_objectDp.f,_wksDefine=function(e){var n=_core.Symbol||(_core.Symbol=_global.Symbol||{});'_'==e.charAt(0)||e in n||defineProperty$1(n,e,{value:_wksExt.f(e)})},toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_iobject=Object('z').propertyIsEnumerable(0)?Object:function(e){return'String'==_cof(e)?e.split(''):Object(e)},_defined=function(e){if(e==void 0)throw TypeError('Can\'t call method on '+e);return e},_toIobject=function(e){return _iobject(_defined(e))},ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(0<e?floor:ceil)(e)},min=Math.min,_toLength=function(e){return 0<e?min(_toInteger(e),9007199254740991):0},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,n){return e=_toInteger(e),0>e?max(e+n,0):min$1(e,n)},_arrayIncludes=function(e){return function(n,t,a){var o,r=_toIobject(n),i=_toLength(r.length),s=_toAbsoluteIndex(a,i);if(e&&t!=t){for(;i>s;)if(o=r[s++],o!=o)return!0;}else for(;i>s;s++)if((e||s in r)&&r[s]===t)return e||s||0;return!e&&-1}},shared=_shared('keys'),_sharedKey=function(e){return shared[e]||(shared[e]=_uid(e))},arrayIndexOf=_arrayIncludes(!1),IE_PROTO=_sharedKey('IE_PROTO'),_objectKeysInternal=function(e,n){var t,a=_toIobject(e),o=0,r=[];for(t in a)t!=IE_PROTO&&_has(a,t)&&r.push(t);for(;n.length>o;)_has(a,t=n[o++])&&(~arrayIndexOf(r,t)||r.push(t));return r},_enumBugKeys=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf'],_objectKeys=Object.keys||function(e){return _objectKeysInternal(e,_enumBugKeys)},f$2=Object.getOwnPropertySymbols,_objectGops={f:f$2},f$3={}.propertyIsEnumerable,_objectPie={f:f$3},_enumKeys=function(e){var n=_objectKeys(e),t=_objectGops.f;if(t)for(var a,o=t(e),r=_objectPie.f,s=0;o.length>s;)r.call(e,a=o[s++])&&n.push(a);return n},_isArray=Array.isArray||function(e){return'Array'==_cof(e)},_objectDps=_descriptors?Object.defineProperties:function(e,n){_anObject(e);for(var t,a=_objectKeys(n),o=a.length,r=0;o>r;)_objectDp.f(e,t=a[r++],n[t]);return e},document$1=_global.document,_html=document$1&&document$1.documentElement,IE_PROTO$1=_sharedKey('IE_PROTO'),Empty=function(){},PROTOTYPE$2='prototype',_createDict=function(){var e,n=_domCreate('iframe'),t=_enumBugKeys.length,a='<',o='>';for(n.style.display='none',_html.appendChild(n),n.src='javascript:',e=n.contentWindow.document,e.open(),e.write(a+'script'+o+'document.F=Object'+a+'/script'+o),e.close(),_createDict=e.F;t--;)delete _createDict[PROTOTYPE$2][_enumBugKeys[t]];return _createDict()},_objectCreate=Object.create||function(e,n){var t;return null===e?t=_createDict():(Empty[PROTOTYPE$2]=_anObject(e),t=new Empty,Empty[PROTOTYPE$2]=null,t[IE_PROTO$1]=e),void 0===n?t:_objectDps(t,n)},hiddenKeys=_enumBugKeys.concat('length','prototype'),f$5=Object.getOwnPropertyNames||function(e){return _objectKeysInternal(e,hiddenKeys)},_objectGopn={f:f$5},gOPN$1=_objectGopn.f,toString$1={}.toString,windowNames='object'==('undefined'==typeof window?'undefined':_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return gOPN$1(e)}catch(n){return windowNames.slice()}},f$4=function(e){return windowNames&&'[object Window]'==toString$1.call(e)?getWindowNames(e):gOPN$1(_toIobject(e))},_objectGopnExt={f:f$4},gOPD$1=Object.getOwnPropertyDescriptor,f$6=_descriptors?gOPD$1:function(e,n){if(e=_toIobject(e),n=_toPrimitive(n,!0),_ie8DomDefine)try{return gOPD$1(e,n)}catch(n){}return _has(e,n)?_propertyDesc(!_objectPie.f.call(e,n),e[n]):void 0},_objectGopd={f:f$6};var META=_meta.KEY,gOPD=_objectGopd.f,dP=_objectDp.f,gOPN=_objectGopnExt.f,$Symbol=_global.Symbol,$JSON=_global.JSON,_stringify=$JSON&&$JSON.stringify,PROTOTYPE='prototype',HIDDEN=_wks('_hidden'),TO_PRIMITIVE=_wks('toPrimitive'),isEnum={}.propertyIsEnumerable,SymbolRegistry=_shared('symbol-registry'),AllSymbols=_shared('symbols'),OPSymbols=_shared('op-symbols'),ObjectProto=Object[PROTOTYPE],USE_NATIVE='function'==typeof $Symbol,QObject=_global.QObject,setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDesc=_descriptors&&_fails(function(){return 7!=_objectCreate(dP({},'a',{get:function(){return dP(this,'a',{value:7}).a}})).a})?function(e,n,t){var a=gOPD(ObjectProto,n);a&&delete ObjectProto[n],dP(e,n,t),a&&e!==ObjectProto&&dP(ObjectProto,n,a)}:dP,wrap=function(e){var n=AllSymbols[e]=_objectCreate($Symbol[PROTOTYPE]);return n._k=e,n},isSymbol=USE_NATIVE&&'symbol'==_typeof($Symbol.iterator)?function(e){return'symbol'==('undefined'==typeof e?'undefined':_typeof(e))}:function(e){return e instanceof $Symbol},$defineProperty=function(e,n,t){return e===ObjectProto&&$defineProperty(OPSymbols,n,t),_anObject(e),n=_toPrimitive(n,!0),_anObject(t),_has(AllSymbols,n)?(t.enumerable?(_has(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),t=_objectCreate(t,{enumerable:_propertyDesc(0,!1)})):(!_has(e,HIDDEN)&&dP(e,HIDDEN,_propertyDesc(1,{})),e[HIDDEN][n]=!0),setSymbolDesc(e,n,t)):dP(e,n,t)},$defineProperties=function(e,n){_anObject(e);for(var t,a=_enumKeys(n=_toIobject(n)),o=0,r=a.length;r>o;)$defineProperty(e,t=a[o++],n[t]);return e},$create=function(e,n){return n===void 0?_objectCreate(e):$defineProperties(_objectCreate(e),n)},$propertyIsEnumerable=function(e){var n=isEnum.call(this,e=_toPrimitive(e,!0));return this===ObjectProto&&_has(AllSymbols,e)&&!_has(OPSymbols,e)?!1:n||!_has(this,e)||!_has(AllSymbols,e)||_has(this,HIDDEN)&&this[HIDDEN][e]?n:!0},$getOwnPropertyDescriptor=function(e,n){if(e=_toIobject(e),n=_toPrimitive(n,!0),e!==ObjectProto||!_has(AllSymbols,n)||_has(OPSymbols,n)){var t=gOPD(e,n);return t&&_has(AllSymbols,n)&&!(_has(e,HIDDEN)&&e[HIDDEN][n])&&(t.enumerable=!0),t}},$getOwnPropertyNames=function(e){for(var n,t=gOPN(_toIobject(e)),a=[],o=0;t.length>o;)_has(AllSymbols,n=t[o++])||n==HIDDEN||n==META||a.push(n);return a},$getOwnPropertySymbols=function(e){for(var n,t=e===ObjectProto,a=gOPN(t?OPSymbols:_toIobject(e)),o=[],r=0;a.length>r;)_has(AllSymbols,n=a[r++])&&(!t||_has(ObjectProto,n))&&o.push(AllSymbols[n]);return o};USE_NATIVE||($Symbol=function(){if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');var e=_uid(0<arguments.length?arguments[0]:void 0);return _descriptors&&setter&&setSymbolDesc(ObjectProto,e,{configurable:!0,set:function n(t){this===ObjectProto&&n.call(OPSymbols,t),_has(this,HIDDEN)&&_has(this[HIDDEN],e)&&(this[HIDDEN][e]=!1),setSymbolDesc(this,e,_propertyDesc(1,t))}}),wrap(e)},_redefine($Symbol[PROTOTYPE],'toString',function(){return this._k}),_objectGopd.f=$getOwnPropertyDescriptor,_objectDp.f=$defineProperty,_objectGopn.f=_objectGopnExt.f=$getOwnPropertyNames,_objectPie.f=$propertyIsEnumerable,_objectGops.f=$getOwnPropertySymbols,_descriptors&&!_library&&_redefine(ObjectProto,'propertyIsEnumerable',$propertyIsEnumerable,!0),_wksExt.f=function(e){return wrap(_wks(e))}),_export(_export.G+_export.W+_export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols=['hasInstance','isConcatSpreadable','iterator','match','replace','search','species','split','toPrimitive','toStringTag','unscopables'],j=0;es6Symbols.length>j;)_wks(es6Symbols[j++]);for(var wellKnownSymbols=_objectKeys(_wks.store),k=0;wellKnownSymbols.length>k;)_wksDefine(wellKnownSymbols[k++]);_export(_export.S+_export.F*!USE_NATIVE,'Symbol',{for:function(e){return _has(SymbolRegistry,e+='')?SymbolRegistry[e]:SymbolRegistry[e]=$Symbol(e)},keyFor:function(e){if(!isSymbol(e))throw TypeError(e+' is not a symbol!');for(var n in SymbolRegistry)if(SymbolRegistry[n]===e)return n},useSetter:function(){setter=!0},useSimple:function(){setter=!1}}),_export(_export.S+_export.F*!USE_NATIVE,'Object',{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols}),$JSON&&_export(_export.S+_export.F*(!USE_NATIVE||_fails(function(){var e=$Symbol();return'[null]'!=_stringify([e])||'{}'!=_stringify({a:e})||'{}'!=_stringify(Object(e))})),'JSON',{stringify:function(e){if(!(void 0===e||isSymbol(e))){for(var n,t,a=[e],o=1;arguments.length>o;)a.push(arguments[o++]);return n=a[1],'function'==typeof n&&(t=n),(t||!_isArray(n))&&(n=function(e,n){if(t&&(n=t.call(this,e,n)),!isSymbol(n))return n}),a[1]=n,_stringify.apply($JSON,a)}}}),$Symbol[PROTOTYPE][TO_PRIMITIVE]||_hide($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf),_setToStringTag($Symbol,'Symbol'),_setToStringTag(Math,'Math',!0),_setToStringTag(_global.JSON,'JSON',!0);var TAG$1=_wks('toStringTag'),ARG='Arguments'==_cof(function(){return arguments}()),tryGet=function(e,n){try{return e[n]}catch(n){}},_classof=function(e){var n,t,a;return e===void 0?'Undefined':null===e?'Null':'string'==typeof(t=tryGet(n=Object(e),TAG$1))?t:ARG?_cof(n):'Object'==(a=_cof(n))&&'function'==typeof n.callee?'Arguments':a};var test={};test[_wks('toStringTag')]='z',_redefine(Object.prototype,'toString',function(){return'[object '+_classof(this)+']'},!0),_export(_export.S,'Object',{create:_objectCreate}),_export(_export.S+_export.F*!_descriptors,'Object',{defineProperty:_objectDp.f}),_export(_export.S+_export.F*!_descriptors,'Object',{defineProperties:_objectDps});var _objectSap=function(e,n){var t=(_core.Object||{})[e]||Object[e],a={};a[e]=n(t),_export(_export.S+_export.F*_fails(function(){t(1)}),'Object',a)},$getOwnPropertyDescriptor$1=_objectGopd.f;_objectSap('getOwnPropertyDescriptor',function(){return function(e,n){return $getOwnPropertyDescriptor$1(_toIobject(e),n)}});var _toObject=function(e){return Object(_defined(e))},IE_PROTO$2=_sharedKey('IE_PROTO'),ObjectProto$1=Object.prototype,_objectGpo=Object.getPrototypeOf||function(e){return e=_toObject(e),_has(e,IE_PROTO$2)?e[IE_PROTO$2]:'function'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ObjectProto$1:null};_objectSap('getPrototypeOf',function(){return function(e){return _objectGpo(_toObject(e))}}),_objectSap('keys',function(){return function(e){return _objectKeys(_toObject(e))}}),_objectSap('getOwnPropertyNames',function(){return _objectGopnExt.f});var meta=_meta.onFreeze;_objectSap('freeze',function(e){return function(n){return e&&_isObject(n)?e(meta(n)):n}});var meta$1=_meta.onFreeze;_objectSap('seal',function(e){return function(n){return e&&_isObject(n)?e(meta$1(n)):n}});var meta$2=_meta.onFreeze;_objectSap('preventExtensions',function(e){return function(n){return e&&_isObject(n)?e(meta$2(n)):n}}),_objectSap('isFrozen',function(e){return function(n){return!_isObject(n)||!!e&&e(n)}}),_objectSap('isSealed',function(e){return function(n){return!_isObject(n)||!!e&&e(n)}}),_objectSap('isExtensible',function(e){return function(n){return!!_isObject(n)&&(!e||e(n))}}),'use strict';var $assign=Object.assign,_objectAssign=!$assign||_fails(function(){var e={},n={},t=Symbol(),a='abcdefghijklmnopqrst';return e[t]=7,a.split('').forEach(function(e){n[e]=e}),7!=$assign({},e)[t]||Object.keys($assign({},n)).join('')!=a})?function(e){for(var n=_toObject(e),t=arguments.length,a=1,o=_objectGops.f,r=_objectPie.f;t>a;)for(var i,s=_iobject(arguments[a++]),l=o?_objectKeys(s).concat(o(s)):_objectKeys(s),u=l.length,d=0;u>d;)r.call(s,i=l[d++])&&(n[i]=s[i]);return n}:$assign;_export(_export.S+_export.F,'Object',{assign:_objectAssign});var _sameValue=Object.is||function(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n};_export(_export.S,'Object',{is:_sameValue});var check=function(e,n){if(_anObject(e),!_isObject(n)&&null!==n)throw TypeError(n+': can\'t set as prototype!')},_setProto={set:Object.setPrototypeOf||('__proto__'in{}?function(e,n,t){try{t=_ctx(Function.call,_objectGopd.f(Object.prototype,'__proto__').set,2),t(e,[]),n=!(e instanceof Array)}catch(t){n=!0}return function(e,a){return check(e,a),n?e.__proto__=a:t(e,a),e}}({},!1):void 0),check:check};_export(_export.S,'Object',{setPrototypeOf:_setProto.set});var _stringAt=function(e){return function(n,t){var o,a,r=_defined(n)+'',s=_toInteger(t),i=r.length;return 0>s||s>=i?e?'':void 0:(o=r.charCodeAt(s),55296>o||56319<o||s+1===i||56320>(a=r.charCodeAt(s+1))||57343<a?e?r.charAt(s):o:e?r.slice(s,s+2):(o-55296<<10)+(a-56320)+65536)}},_iterators={};var IteratorPrototype={};_hide(IteratorPrototype,_wks('iterator'),function(){return this});var _iterCreate=function(e,n,t){e.prototype=_objectCreate(IteratorPrototype,{next:_propertyDesc(1,t)}),_setToStringTag(e,n+' Iterator')};var ITERATOR=_wks('iterator'),BUGGY=!([].keys&&'next'in[].keys()),FF_ITERATOR='@@iterator',KEYS='keys',VALUES='values',returnThis=function(){return this},_iterDefine=function(e,n,t,a,o,r,i){_iterCreate(t,n,a);var s,l,u,d=function(e){return!BUGGY&&e in f?f[e]:e===KEYS?function(){return new t(this,e)}:e===VALUES?function(){return new t(this,e)}:function(){return new t(this,e)}},m=n+' Iterator',y=o==VALUES,c=!1,f=e.prototype,g=f[ITERATOR]||f[FF_ITERATOR]||o&&f[o],k=g||d(o),h=o?y?d('entries'):k:void 0,v='Array'==n?f.entries||g:g;if(v&&(u=_objectGpo(v.call(new e)),u!==Object.prototype&&u.next&&(_setToStringTag(u,m,!0),!_has(u,ITERATOR)&&_hide(u,ITERATOR,returnThis))),y&&g&&g.name!==VALUES&&(c=!0,k=function(){return g.call(this)}),(BUGGY||c||!f[ITERATOR])&&_hide(f,ITERATOR,k),_iterators[n]=k,_iterators[m]=returnThis,o)if(s={values:y?k:d(VALUES),keys:r?k:d(KEYS),entries:h},i)for(l in s)l in f||_redefine(f,l,s[l]);else _export(_export.P+_export.F*(BUGGY||c),n,s);return s};var $at=_stringAt(!0);_iterDefine(String,'String',function(e){this._t=e+'',this._i=0},function(){var e,n=this._t,t=this._i;return t>=n.length?{value:void 0,done:!0}:(e=$at(n,t),this._i+=e.length,{value:e,done:!1})});var UNSCOPABLES=_wks('unscopables'),ArrayProto=Array.prototype;ArrayProto[UNSCOPABLES]==void 0&&_hide(ArrayProto,UNSCOPABLES,{});var _addToUnscopables=function(e){ArrayProto[UNSCOPABLES][e]=!0},_iterStep=function(e,n){return{value:n,done:!!e}};var es6_array_iterator=_iterDefine(Array,'Array',function(e,n){this._t=_toIobject(e),this._i=0,this._k=n},function(){var e=this._t,n=this._k,t=this._i++;return!e||t>=e.length?(this._t=void 0,_iterStep(1)):'keys'==n?_iterStep(0,t):'values'==n?_iterStep(0,e[t]):_iterStep(0,[t,e[t]])},'values');_iterators.Arguments=_iterators.Array,_addToUnscopables('keys'),_addToUnscopables('values'),_addToUnscopables('entries');for(var ITERATOR$1=_wks('iterator'),TO_STRING_TAG=_wks('toStringTag'),ArrayValues=_iterators.Array,DOMIterables={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},collections=_objectKeys(DOMIterables),i=0;i<collections.length;i++){var key,NAME=collections[i],explicit=DOMIterables[NAME],Collection=_global[NAME],proto=Collection&&Collection.prototype;if(proto&&(proto[ITERATOR$1]||_hide(proto,ITERATOR$1,ArrayValues),proto[TO_STRING_TAG]||_hide(proto,TO_STRING_TAG,NAME),_iterators[NAME]=ArrayValues,explicit))for(key in es6_array_iterator)proto[key]||_redefine(proto,key,es6_array_iterator[key],!0)}var iterator=_wksExt.f('iterator');_export(_export.S,'Number',{isNaN:function(e){return e!=e}}),_export(_export.S,'Array',{isArray:_isArray});var _iterCall=function(n,e,t,a){try{return a?e(_anObject(t)[0],t[1]):e(t)}catch(t){var o=n['return'];throw void 0!==o&&_anObject(o.call(n)),t}},ITERATOR$2=_wks('iterator'),ArrayProto$1=Array.prototype,_isArrayIter=function(e){return e!==void 0&&(_iterators.Array===e||ArrayProto$1[ITERATOR$2]===e)};var _createProperty=function(e,n,t){n in e?_objectDp.f(e,n,_propertyDesc(0,t)):e[n]=t},ITERATOR$3=_wks('iterator'),core_getIteratorMethod=_core.getIteratorMethod=function(e){if(e!=void 0)return e[ITERATOR$3]||e['@@iterator']||_iterators[_classof(e)]},ITERATOR$4=_wks('iterator'),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR$4]();riter['return']=function(){SAFE_CLOSING=!0}}catch(n){}var _iterDetect=function(e,n){if(!n&&!SAFE_CLOSING)return!1;var t=!1;try{var a=[7],o=a[ITERATOR$4]();o.next=function(){return{done:t=!0}},a[ITERATOR$4]=function(){return o},e(a)}catch(n){}return t};'use strict',_export(_export.S+_export.F*!_iterDetect(function(){}),'Array',{from:function(e){var n,t,a,o,r=_toObject(e),i='function'==typeof this?this:Array,s=arguments.length,l=1<s?arguments[1]:void 0,u=void 0!==l,d=0,m=core_getIteratorMethod(r);if(u&&(l=_ctx(l,2<s?arguments[2]:void 0,2)),void 0!=m&&!(i==Array&&_isArrayIter(m)))for(o=m.call(r),t=new i;!(a=o.next()).done;d++)_createProperty(t,d,u?_iterCall(o,l,[a.value,d],!0):a.value);else for(n=_toLength(r.length),t=new i(n);n>d;d++)_createProperty(t,d,u?l(r[d],d):r[d]);return t.length=d,t}}),'use strict',_export(_export.S+_export.F*_fails(function(){function e(){}return!(Array.of.call(e)instanceof e)}),'Array',{of:function(){for(var e=0,n=arguments.length,t=new('function'==typeof this?this:Array)(n);n>e;)_createProperty(t,e,arguments[e++]);return t.length=n,t}}),'use strict';var _strictMethod=function(e,n){return!!e&&_fails(function(){n?e.call(null,function(){},1):e.call(null)})};var arrayJoin=[].join;_export(_export.P+_export.F*(_iobject!=Object||!_strictMethod(arrayJoin)),'Array',{join:function(e){return arrayJoin.call(_toIobject(this),e===void 0?',':e)}}),'use strict';var arraySlice=[].slice;_export(_export.P+_export.F*_fails(function(){_html&&arraySlice.call(_html)}),'Array',{slice:function(e,n){var t=_toLength(this.length),a=_cof(this);if(n=void 0===n?t:n,'Array'==a)return arraySlice.call(this,e,n);for(var o=_toAbsoluteIndex(e,t),r=_toAbsoluteIndex(n,t),s=_toLength(r-o),l=Array(s),u=0;u<s;u++)l[u]='String'==a?this.charAt(o+u):this[o+u];return l}}),'use strict';var $sort=[].sort,test$1=[1,2,3];_export(_export.P+_export.F*(_fails(function(){test$1.sort(void 0)})||!_fails(function(){test$1.sort(null)})||!_strictMethod($sort)),'Array',{sort:function(e){return e===void 0?$sort.call(_toObject(this)):$sort.call(_toObject(this),_aFunction(e))}});var SPECIES=_wks('species'),_arraySpeciesConstructor=function(e){var n;return _isArray(e)&&(n=e.constructor,'function'==typeof n&&(n===Array||_isArray(n.prototype))&&(n=void 0),_isObject(n)&&(n=n[SPECIES],null===n&&(n=void 0))),void 0===n?Array:n},_arraySpeciesCreate=function(e,n){return new(_arraySpeciesConstructor(e))(n)},_arrayMethods=function(e,n){var t=1==e,a=4==e,o=6==e,r=n||_arraySpeciesCreate;return function(n,i,s){for(var l,u,d=_toObject(n),m=_iobject(d),y=_ctx(i,s,3),c=_toLength(m.length),f=0,g=t?r(n,c):2==e?r(n,0):void 0;c>f;f++)if((5==e||o||f in m)&&(l=m[f],u=y(l,f,d),e))if(t)g[f]=u;else if(u)switch(e){case 3:return!0;case 5:return l;case 6:return f;case 2:g.push(l);}else if(a)return!1;return o?-1:3==e||a?a:g}};var $forEach=_arrayMethods(0),STRICT=_strictMethod([].forEach,!0);_export(_export.P+_export.F*!STRICT,'Array',{forEach:function(e){return $forEach(this,e,arguments[1])}}),'use strict';var $map=_arrayMethods(1);_export(_export.P+_export.F*!_strictMethod([].map,!0),'Array',{map:function(e){return $map(this,e,arguments[1])}}),'use strict';var $filter=_arrayMethods(2);_export(_export.P+_export.F*!_strictMethod([].filter,!0),'Array',{filter:function(e){return $filter(this,e,arguments[1])}}),'use strict';var $some=_arrayMethods(3);_export(_export.P+_export.F*!_strictMethod([].some,!0),'Array',{some:function(e){return $some(this,e,arguments[1])}}),'use strict';var $every=_arrayMethods(4);_export(_export.P+_export.F*!_strictMethod([].every,!0),'Array',{every:function(e){return $every(this,e,arguments[1])}});var _arrayReduce=function(e,n,t,a,o){_aFunction(n);var r=_toObject(e),s=_iobject(r),l=_toLength(r.length),u=o?l-1:0,d=o?-1:1;if(2>t)for(;;){if(u in s){a=s[u],u+=d;break}if(u+=d,o?0>u:l<=u)throw TypeError('Reduce of empty array with no initial value')}for(;o?0<=u:l>u;u+=d)u in s&&(a=n(a,s[u],u,r));return a};'use strict',_export(_export.P+_export.F*!_strictMethod([].reduce,!0),'Array',{reduce:function(e){return _arrayReduce(this,e,arguments.length,arguments[1],!1)}}),'use strict',_export(_export.P+_export.F*!_strictMethod([].reduceRight,!0),'Array',{reduceRight:function(e){return _arrayReduce(this,e,arguments.length,arguments[1],!0)}}),'use strict';var $indexOf=_arrayIncludes(!1),$native=[].indexOf,NEGATIVE_ZERO=!!$native&&0>1/[1].indexOf(1,-0);_export(_export.P+_export.F*(NEGATIVE_ZERO||!_strictMethod($native)),'Array',{indexOf:function(e){return NEGATIVE_ZERO?$native.apply(this,arguments)||0:$indexOf(this,e,arguments[1])}}),'use strict';var $native$1=[].lastIndexOf,NEGATIVE_ZERO$1=!!$native$1&&0>1/[1].lastIndexOf(1,-0);_export(_export.P+_export.F*(NEGATIVE_ZERO$1||!_strictMethod($native$1)),'Array',{lastIndexOf:function(e){if(NEGATIVE_ZERO$1)return $native$1.apply(this,arguments)||0;var n=_toIobject(this),t=_toLength(n.length),a=t-1;for(1<arguments.length&&(a=Math.min(a,_toInteger(arguments[1]))),0>a&&(a=t+a);0<=a;a--)if(a in n&&n[a]===e)return a||0;return-1}}),'use strict';var _arrayCopyWithin=[].copyWithin||function(e,n){var t=_toObject(this),a=_toLength(t.length),o=_toAbsoluteIndex(e,a),r=_toAbsoluteIndex(n,a),i=2<arguments.length?arguments[2]:void 0,s=Math.min((i===void 0?a:_toAbsoluteIndex(i,a))-r,a-o),l=1;for(r<o&&o<r+s&&(l=-1,r+=s-1,o+=s-1);0<s--;)r in t?t[o]=t[r]:delete t[o],o+=l,r+=l;return t};_export(_export.P,'Array',{copyWithin:_arrayCopyWithin}),_addToUnscopables('copyWithin'),'use strict';var _arrayFill=function(e){for(var n=_toObject(this),t=_toLength(n.length),a=arguments.length,o=_toAbsoluteIndex(1<a?arguments[1]:void 0,t),r=2<a?arguments[2]:void 0,i=void 0===r?t:_toAbsoluteIndex(r,t);i>o;)n[o++]=e;return n};_export(_export.P,'Array',{fill:_arrayFill}),_addToUnscopables('fill'),'use strict';var $find=_arrayMethods(5),KEY='find',forced=!0;KEY in[]&&[,][KEY](function(){forced=!1}),_export(_export.P+_export.F*forced,'Array',{find:function(e){return $find(this,e,1<arguments.length?arguments[1]:void 0)}}),_addToUnscopables(KEY),'use strict';var $find$1=_arrayMethods(6),KEY$1='findIndex',forced$1=!0;KEY$1 in[]&&[,][KEY$1](function(){forced$1=!1}),_export(_export.P+_export.F*forced$1,'Array',{findIndex:function(e){return $find$1(this,e,1<arguments.length?arguments[1]:void 0)}}),_addToUnscopables(KEY$1),'use strict';var SPECIES$1=_wks('species'),_setSpecies=function(e){var n=_global[e];_descriptors&&n&&!n[SPECIES$1]&&_objectDp.f(n,SPECIES$1,{configurable:!0,get:function(){return this}})};_setSpecies('Array');var MATCH=_wks('match'),_isRegexp=function(e){var n;return _isObject(e)&&((n=e[MATCH])===void 0?'RegExp'==_cof(e):!!n)},_stringContext=function(e,n,t){if(_isRegexp(n))throw TypeError('String#'+t+' doesn\'t accept regex!');return _defined(e)+''},MATCH$1=_wks('match'),_failsIsRegexp=function(e){var n=/./;try{'/./'[e](n)}catch(t){try{return n[MATCH$1]=!1,!'/./'[e](n)}catch(e){}}return!0};var STARTS_WITH='startsWith',$startsWith=''[STARTS_WITH];_export(_export.P+_export.F*_failsIsRegexp(STARTS_WITH),'String',{startsWith:function(e){var n=_stringContext(this,e,STARTS_WITH),t=_toLength(Math.min(1<arguments.length?arguments[1]:void 0,n.length)),a=e+'';return n.slice(t,t+a.length)===a}});var _entryVirtual=function(e){var n=_core[e];return n.virtual||n.prototype},startsWith=_entryVirtual('String').startsWith;var _stringRepeat=function(e){var t=_defined(this)+'',a='',o=_toInteger(e);if(0>o||o==Infinity)throw RangeError('Count can\'t be negative');for(;0<o;(o>>>=1)&&(t+=t))1&o&&(a+=t);return a},_stringPad=function(e,n,t,a){var o=_defined(e)+'',r=o.length,i=void 0===t?' ':t+'',s=_toLength(n);if(s<=r||''==i)return o;var l=s-r,u=_stringRepeat.call(i,Math.ceil(l/i.length));return u.length>l&&(u=u.slice(0,l)),a?u+o:o+u};'use strict',_export(_export.P,'String',{padStart:function(e){return _stringPad(this,e,1<arguments.length?arguments[1]:void 0,!0)}});var padStart=_entryVirtual('String').padStart,LuxonError=function(e){function n(){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return inherits(n,e),n}(Error),InvalidDateTimeError=function(e){function n(e){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,'Invalid DateTime: '+e))}return inherits(n,e),n}(LuxonError),InvalidIntervalError=function(e){function n(e){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,'Invalid Interval: '+e))}return inherits(n,e),n}(LuxonError),InvalidDurationError=function(e){function n(e){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,'Invalid Duration: '+e))}return inherits(n,e),n}(LuxonError),ConflictingSpecificationError=function(e){function n(){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return inherits(n,e),n}(LuxonError),InvalidUnitError=function(e){function n(e){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,'Invalid unit '+e))}return inherits(n,e),n}(LuxonError),InvalidArgumentError=function(e){function n(){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return inherits(n,e),n}(LuxonError),ZoneIsAbstractError=function(e){function n(){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,'Zone is an abstract class'))}return inherits(n,e),n}(LuxonError),Zone=function(){function e(){classCallCheck(this,e)}return createClass(e,[{key:'offset',value:function(){throw new ZoneIsAbstractError}},{key:'equals',value:function(){throw new ZoneIsAbstractError}},{key:'type',get:function(){throw new ZoneIsAbstractError}},{key:'name',get:function(){throw new ZoneIsAbstractError}},{key:'universal',get:function(){throw new ZoneIsAbstractError}},{key:'isValid',get:function(){throw new ZoneIsAbstractError}}],[{key:'offsetName',value:function(){throw new ZoneIsAbstractError}}]),e}(),singleton=null,LocalZone=function(e){function n(){return classCallCheck(this,n),possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return inherits(n,e),createClass(n,[{key:'offsetName',value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=n.format,a=void 0===t?'long':t,o=n.locale,r=void 0===o?'en-US':o;return Util.parseZoneInfo(e,a,r||'en-US')}},{key:'offset',value:function(e){return-new Date(e).getTimezoneOffset()}},{key:'equals',value:function(e){return'local'===e.type}},{key:'type',get:function(){return'local'}},{key:'name',get:function(){return Util.isUndefined(Intl)&&Util.isUndefined(Intl.DateTimeFormat)?new Intl.DateTimeFormat().resolvedOptions().timeZone:'local'}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return!0}}],[{key:'instance',get:function(){return null==singleton&&(singleton=new n),singleton}}]),n}(Zone),typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function hackyOffset(e,n){var t=e.format(n),a=/(\d+)\/(\d+)\/(\d+), (\d+):(\d+):(\d+)/.exec(t),o=slicedToArray(a,7),r=o[1],i=o[2],s=o[3],l=o[4],u=o[5],d=o[6];return[s,r,i,l,u,d]}function partsOffset(e,n){for(var t=e.formatToParts(n),a=[],o=0;o<t.length;o++){var r=t[o],i=r.type,s=r.value,l=typeToPos[i];Util.isUndefined(l)||(a[l]=parseInt(s,10))}return a}function isValid(e){try{return new Intl.DateTimeFormat('en-US',{timeZone:e}).format(),!0}catch(n){return!1}}var IANAZone=function(e){function n(e){classCallCheck(this,n);var t=possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.zoneName=e,t.valid=isValid(e),t}return inherits(n,e),createClass(n,null,[{key:'isValidSpecier',value:function(e){return e&&e.match(/[a-z_]+\/[a-z_]+/i)}}]),createClass(n,[{key:'offsetName',value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=n.format,a=void 0===t?'long':t,o=n.locale,r=void 0===o?'en-US':o;return Util.parseZoneInfo(e,a,r||'en-US',this.zoneName)}},{key:'offset',value:function(e){var n=new Date(e),t=new Intl.DateTimeFormat('en-US',{hour12:!1,timeZone:this.zoneName,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'}),a=t.formatToParts?partsOffset(t,n):hackyOffset(t,n),o=slicedToArray(a,6),r=o[0],i=o[1],s=o[2],l=o[3],u=o[4],d=o[5],m=Date.UTC(r,i-1,s,l,u,d),y=n.valueOf();return y-=y%1e3,(m-y)/60000}},{key:'equals',value:function(e){return'iana'===e.type&&e.zoneName===this.zoneName}},{key:'type',get:function(){return'iana'}},{key:'name',get:function(){return this.zoneName}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return this.valid}}]),n}(Zone),singleton$1=null,FixedOffsetZone=function(e){function n(e){classCallCheck(this,n);var t=possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.fixed=e,t}var t=Math.abs;return inherits(n,e),createClass(n,null,[{key:'instance',value:function(e){return 0===e?n.utcInstance:new n(e)}},{key:'parseSpecifier',value:function(e){if(e){var t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new n(Util.signedOffset(t[1],t[2]))}return null}},{key:'utcInstance',get:function(){return null==singleton$1&&(singleton$1=new n(0)),singleton$1}}]),createClass(n,[{key:'offsetName',value:function(){return this.name()}},{key:'offset',value:function(){return this.fixed}},{key:'equals',value:function(e){return'fixed'===e.type&&e.fixed===this.fixed}},{key:'type',get:function(){return'fixed'}},{key:'name',get:function(){var e=this.fixed/60,n=t(this.fixed%60),a=0<e?'+':'-',o=a+t(e),r=0<n?o+':'+Util.pad(n,2):o;return 0===this.fixed?'UTC':'UTC'+r}},{key:'universal',get:function(){return!0}},{key:'isValid',get:function(){return!0}}]),n}(Zone),now=function(){return new Date().valueOf()},defaultZone=LocalZone.instance,throwOnInvalid=!1,Settings=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:'now',get:function(){return now},set:function(e){now=e}},{key:'defaultZoneName',get:function(){return defaultZone.name},set:function(e){defaultZone=Util.normalizeZone(e)}},{key:'defaultZone',get:function(){return defaultZone}},{key:'throwOnInvalid',get:function(){return throwOnInvalid},set:function(e){throwOnInvalid=e}}]),e}(),Util=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:'friendlyDuration',value:function(n){if(e.isNumber(n))return Duration.fromMillis(n);if(n instanceof Duration)return n;if(n instanceof Object)return Duration.fromObject(n);throw new InvalidArgumentError('Unknown duration argument')}},{key:'friendlyDateTime',value:function(n){if(n instanceof DateTime)return n;if(n.valueOf&&e.isNumber(n.valueOf()))return DateTime.fromJSDate(n);if(n instanceof Object)return DateTime.fromObject(n);throw new InvalidArgumentError('Unknown datetime argument')}},{key:'maybeArray',value:function(e){return Array.isArray(e)?e:[e]}},{key:'isUndefined',value:function(e){return'undefined'==typeof e}},{key:'isNumber',value:function(e){return'number'==typeof e}},{key:'isString',value:function(e){return'string'==typeof e}},{key:'isDate',value:function(e){return'[object Date]'===Object.prototype.toString.call(e)}},{key:'numberBetween',value:function(n,t,a){return e.isNumber(n)&&n>=t&&n<=a}},{key:'pad',value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return('0'.repeat(t)+e).slice(-t)}},{key:'towardZero',value:function(e){return 0>e?Math.ceil(e):Math.floor(e)}},{key:'asIfUTC',value:function(e){var n=e.ts-e.offset;return new Date(n)}},{key:'flatten',value:function(n){return n.reduce(function(n,t){return n.concat(Array.isArray(t)?e.flatten(t):t)},[])}},{key:'bestBy',value:function(e,n,t){return e.reduce(function(e,a){var o=[n(a),a];return e?t.apply(null,[e[0],o[0]])===e[0]?e:o:o},null)[1]}},{key:'pick',value:function(e,n){return n.reduce(function(n,t){return n[t]=e[t],n},{})}},{key:'isLeapYear',value:function(e){return 0==e%4&&(0!=e%100||0==e%400)}},{key:'daysInYear',value:function(n){return e.isLeapYear(n)?366:365}},{key:'daysInMonth',value:function(n,t){return 2===t?e.isLeapYear(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}},{key:'parseZoneInfo',value:function(e,n,t){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,o=new Date(e),r={hour12:!1,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit'};a&&(r.timeZone=a);var i=Object.assign({timeZoneName:n},r);if(Intl.DateTimeFormat.prototype.formatToParts){var s=new Intl.DateTimeFormat(t,i).formatToParts(o).find(function(e){return'timezonename'===e.type.toLowerCase()});return s?s.value:null}var l=new Intl.DateTimeFormat(t,r).format(o),u=new Intl.DateTimeFormat(t,i).format(o),d=u.substring(l.length),m=d.replace(/^[, ]+/,'');return m}},{key:'normalizeZone',value:function(n){if(null===n)return LocalZone.instance;if(n instanceof Zone)return n;if(e.isString(n)){var t=n.toLowerCase();return'local'===t?LocalZone.instance:'utc'===t?FixedOffsetZone.utcInstance:IANAZone.isValidSpecier(t)?new IANAZone(n):FixedOffsetZone.parseSpecifier(t)||Settings.defaultZone}return e.isNumber(n)?FixedOffsetZone.instance(n):'object'===('undefined'==typeof n?'undefined':_typeof(n))&&n.offset?n:Settings.defaultZone}},{key:'normalizeObject',value:function(n,t){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o={};for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!==i&&!e.isUndefined(i)&&!Number.isNaN(i)){var s=t(r,a);s&&(o[s]=i)}}return o}},{key:'timeObject',value:function(n){return e.pick(n,['hour','minute','second','millisecond'])}},{key:'untrucateYear',value:function(e){return 60<e?1900+e:2e3+e}},{key:'signedOffset',value:function(e,n){var t=parseInt(e,10)||0,a=parseInt(n,10)||0,o=0>t?-a:a;return 60*t+o}}]),e}(),English=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:'months',value:function(n){return'narrow'===n?e.monthsNarrow:'short'===n?e.monthsShort:'long'===n?e.monthsLong:'numeric'===n?['1','2','3','4','5','6','7','8','9','10','11','12']:'2-digit'===n?['01','02','03','04','05','06','07','08','09','10','11','12']:null}},{key:'weekdays',value:function(n){return'narrow'===n?e.weekdaysNarrow:'short'===n?e.weekdaysShort:'long'===n?e.weekdaysLong:'numeric'===n?['1','2','3','4','5','6','7']:null}},{key:'eras',value:function(n){return'narrow'===n?e.erasNarrow:'short'===n?e.erasShort:'long'===n?e.erasLong:null}},{key:'meridiemForDateTime',value:function(n){return e.meridiems[12>n.hour?0:1]}},{key:'weekdayForDateTime',value:function(n,t){return e.weekdays(t)[n.weekday-1]}},{key:'monthForDateTime',value:function(n,t){return e.months(t)[n.month-1]}},{key:'eraForDateTime',value:function(n,t){return e.eras(t)[0>n.year?0:1]}},{key:'monthsLong',get:function(){return['January','February','March','April','May','June','July','August','September','October','November','December']}},{key:'monthsShort',get:function(){return['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']}},{key:'monthsNarrow',get:function(){return['J','F','M','A','M','J','J','A','S','O','N','D']}},{key:'weekdaysLong',get:function(){return['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']}},{key:'weekdaysShort',get:function(){return['Mon','Tue','Wed','Thu','Fri','Sat','Sun']}},{key:'weekdaysNarrow',get:function(){return['M','T','W','T','F','S','S']}},{key:'meridiems',get:function(){return['AM','PM']}},{key:'erasLong',get:function(){return['Before Christ','Anno Domini']}},{key:'erasShort',get:function(){return['BC','AD']}},{key:'erasNarrow',get:function(){return['B','A']}}]),e}(),localeCache={};function intlConfigString(e,n,t){var a=e||new Intl.DateTimeFormat().resolvedOptions().locale;return a=Array.isArray(e)?e:[e],(t||n)&&(a=a.map(function(e){return e+='-u',t&&(e+='-ca-'+t),n&&(e+='-nu-'+n),e})),a}function mapMonths(e){for(var n,t=[],a=1;12>=a;a++)n=DateTime.utc(2016,a,1),t.push(e(n));return t}function mapWeekdays(e){for(var n,t=[],a=1;7>=a;a++)n=DateTime.utc(2016,11,13+a),t.push(e(n));return t}function listStuff(e,n,t,a,o){var r=e.listingMode(t);return'error'===r?null:'en'===r?a(n):o(n)}var PolyNumberFormatter=function(){function e(n){classCallCheck(this,e),this.padTo=n.padTo||0,this.round=n.round||!1}return createClass(e,[{key:'format',value:function(e){var n=this.round?Math.round(e):e;return n.toString().padStart(this.padTo,'0')}}]),e}(),PolyDateFormatter=function(){function e(){classCallCheck(this,e)}return createClass(e,[{key:'format',value:function(e){return e.toString()}},{key:'resolvedOptions',value:function(){return{locale:'en-US',numberingSystem:'latn',outputCalendar:'gregory'}}}]),e}(),Locale=function(){function e(n,t,a){classCallCheck(this,e),Object.defineProperty(this,'locale',{value:n,enumerable:!0}),Object.defineProperty(this,'numberingSystem',{value:t||null,enumerable:!0}),Object.defineProperty(this,'outputCalendar',{value:a||null,enumerable:!0}),Object.defineProperty(this,'intl',{value:intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),enumerable:!1}),Object.defineProperty(this,'weekdaysCache',{value:{format:{},standalone:{}},enumerable:!1}),Object.defineProperty(this,'monthsCache',{value:{format:{},standalone:{}},enumerable:!1}),Object.defineProperty(this,'meridiemCache',{value:null,enumerable:!1,writable:!0}),Object.defineProperty(this,'eraCache',{value:{},enumerable:!1,writable:!0})}return createClass(e,null,[{key:'fromOpts',value:function(n){return e.create(n.locale,n.numberingSystem,n.outputCalendar)}},{key:'create',value:function(n,t,a){var o=n||'en-US',r=t||null,i=a||null,s=o+'|'+r+'|'+i,l=localeCache[s];if(l)return l;var u=new e(o,r,i);return localeCache[s]=u,u}},{key:'fromObject',value:function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=n.locale,a=n.numberingSystem,o=n.outputCalendar;return e.create(t,a,o)}}]),createClass(e,[{key:'listingMode',value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0,n=Intl&&Intl.DateTimeFormat,t=n&&Intl.DateTimeFormat.prototype.formatToParts,a='en'===this.locale||'en-us'===this.locale.toLowerCase()||n&&Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith('en-US'),o=(null===this.numberingSystem||'latn'===this.numberingSystem)&&(null===this.outputCalendar||'gregory'===this.outputCalendar);return t||a&&o||e?!t||a&&o?'en':'intl':'error'}},{key:'clone',value:function(n){return n&&0!==Object.getOwnPropertyNames(n).length?e.create(n.locale||this.locale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar):this}},{key:'months',value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!0;return listStuff(this,e,a,English.months,function(){var a=t?{month:e,day:'numeric'}:{month:e},o=t?'format':'standalone';return n.monthsCache[o][e]||(n.monthsCache[o][e]=mapMonths(function(e){return n.extract(e,a,'month')})),n.monthsCache[o][e]})}},{key:'weekdays',value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!0;return listStuff(this,e,a,English.weekdays,function(){var a=t?{weekday:e,year:'numeric',month:'long',day:'numeric'}:{weekday:e},o=t?'format':'standalone';return n.weekdaysCache[o][e]||(n.weekdaysCache[o][e]=mapWeekdays(function(e){return n.extract(e,a,'weekday')})),n.weekdaysCache[o][e]})}},{key:'meridiems',value:function(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;return listStuff(this,void 0,n,function(){return English.meridiems},function(){if(!e.meridiemCache){var n={hour:'numeric',hour12:!0};e.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(function(t){return e.extract(t,n,'dayperiod')})}return e.meridiemCache})}},{key:'eras',value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!0;return listStuff(this,e,t,English.eras,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(function(e){return n.extract(e,t,'era')})),n.eraCache[e]})}},{key:'extract',value:function(e,n,t){var a=this.dtFormatter(e,n),o=slicedToArray(a,2),r=o[0],i=o[1],s=r.formatToParts(i),l=s.find(function(e){return e.type.toLowerCase()===t});return l?l.value:null}},{key:'numberFormatter',value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(Intl&&Intl.NumberFormat){var t=Object.assign({useGrouping:!1},n);return 0<e.padTo&&(t.minimumIntegerDigits=e.padTo),e.round&&(t.maximumFractionDigits=0),new Intl.NumberFormat(this.intl,t)}return new PolyNumberFormatter(e)}},{key:'dtFormatter',value:function(e){var n,t,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e.zone.universal?(n=Util.asIfUTC(e),t='UTC'):'local'===e.zone.type?n=e.toJSDate():(n=e.toJSDate(),t=e.zone.name),Intl&&Intl.DateTimeFormat){var o=Object.assign({},a);return t&&(o.timeZone=t),[new Intl.DateTimeFormat(this.intl,o),n]}return[new PolyDateFormatter,n]}},{key:'equals',value:function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}]),e}();function stringifyTokens(e,n){var t,a='',o=!0,r=!1;try{for(var i,s,l=e[Symbol.iterator]();!(o=(i=l.next()).done);o=!0)s=i.value,a+=s.literal?s.val:n(s.val)}catch(e){r=!0,t=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw t}}return a}var Formatter=function(){function e(n,t){classCallCheck(this,e),this.opts=t,this.loc=n}var n=Math.abs;return createClass(e,null,[{key:'create',value:function(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=Object.assign({},{round:!0},t);return new e(n,a)}},{key:'parseFormat',value:function(e){for(var n,t=null,a='',o=!1,r=[],s=0;s<e.length;s++)n=e.charAt(s),'\''===n?(0<a.length&&r.push({literal:o,val:a}),t=null,a='',o=!o):o?a+=n:n===t?a+=n:(0<a.length&&r.push({literal:!1,val:a}),a=n,t=n);return 0<a.length&&r.push({literal:o,val:a}),r}}]),createClass(e,[{key:'formatDateTime',value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=this.loc.dtFormatter(e,Object.assign({},this.opts,n)),a=slicedToArray(t,2),o=a[0],r=a[1];return o.format(r)}},{key:'formatDateTimeParts',value:funct