Files
dev-chiefworks f76abffdcd first commit
2022-05-31 16:21:53 -04:00

1 line
64 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var luxon=function(e){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t,n){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function t(e){var n="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,a(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),u(t,e)})(e)}var n=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(t(Error)),c=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return o(e,t),e}(n),l=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return o(e,t),e}(n),f=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return o(e,t),e}(n),N=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(n),d=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return o(e,t),e}(n),h=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(n),m=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return o(t,e),t}(n);function M(e){return void 0===e}function D(e){return"number"==typeof e}function y(){return"undefined"!=typeof Intl&&Intl.DateTimeFormat}function v(){return!M(Intl.DateTimeFormat.prototype.formatToParts)}function g(){return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}function p(e,r,i){if(0!==e.length)return e.reduce(function(e,t){var n=[r(t),t];return e&&i(e[0],n[0])===e[0]?e:n},null)[1]}function w(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function I(e,t,n){return D(e)&&t<=e&&e<=n}function k(e,t){return void 0===t&&(t=2),e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString()}function S(e){return M(e)||null===e||""===e?void 0:parseInt(e,10)}function b(e){if(!M(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function O(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function E(e){return e%4==0&&(e%100!=0||e%400==0)}function V(e){return E(e)?366:365}function L(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?E(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function T(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function F(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4==t||3==r?53:52}function Z(e){return 99<e?e:60<e?1900+e:2e3+e}function x(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:t},o),u=y();if(u&&v()){var s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(function(e){return"timezonename"===e.type.toLowerCase()});return s?s.value:null}if(u){var c=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(c.length).replace(/^[, \u200e]+/,"")}return null}function C(e,t){var n=parseInt(e,10)||0,r=parseInt(t,10)||0;return 60*n+(n<0?-r:r)}function j(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new h("Invalid unit value "+e);return t}function A(e,t,n){var r={};for(var i in e)if(e.hasOwnProperty(i)){if(0<=n.indexOf(i))continue;var o=e[i];if(null==o)continue;r[t(i)]=j(o)}return r}function z(e){return w(e,["hour","minute","second","millisecond"])}var _=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,q="numeric",H="short",U="long",P="2-digit",R={year:q,month:q,day:q},W={year:q,month:H,day:q},J={year:q,month:U,day:q},Y={year:q,month:U,day:q,weekday:U},G={hour:q,minute:P},$={hour:q,minute:P,second:P},B={hour:q,minute:P,second:P,timeZoneName:H},Q={hour:q,minute:P,second:P,timeZoneName:U},X={hour:q,minute:P,hour12:!1},K={hour:q,minute:P,second:P,hour12:!1},ee={hour:q,minute:P,second:P,hour12:!1,timeZoneName:H},te={hour:q,minute:P,second:P,hour12:!1,timeZoneName:U},ne={year:q,month:q,day:q,hour:q,minute:P},re={year:q,month:q,day:q,hour:q,minute:P,second:P},ie={year:q,month:H,day:q,hour:q,minute:P},oe={year:q,month:H,day:q,hour:q,minute:P,second:P},ae={year:q,month:U,day:q,hour:q,minute:P,timeZoneName:H},ue={year:q,month:U,day:q,hour:q,minute:P,second:P,timeZoneName:H},se={year:q,month:U,day:q,weekday:U,hour:q,minute:P,timeZoneName:U},ce={year:q,month:U,day:q,weekday:U,hour:q,minute:P,second:P,timeZoneName:U};function le(e){return JSON.stringify(e,Object.keys(e).sort())}var fe=["January","February","March","April","May","June","July","August","September","October","November","December"],de=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],he=["J","F","M","A","M","J","J","A","S","O","N","D"];function me(e){switch(e){case"narrow":return he;case"short":return de;case"long":return fe;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var ye=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ge=["M","T","W","T","F","S","S"];function pe(e){switch(e){case"narrow":return ge;case"short":return ve;case"long":return ye;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var we=["AM","PM"],ke=["Before Christ","Anno Domini"],Se=["BC","AD"],be=["B","A"];function Oe(e){switch(e){case"narrow":return be;case"short":return Se;case"long":return ke;default:return null}}var Te=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new m},t.offset=function(e){throw new m},t.equals=function(e){throw new m},i(e,[{key:"type",get:function(){throw new m}},{key:"name",get:function(){throw new m}},{key:"universal",get:function(){throw new m}},{key:"isValid",get:function(){throw new m}}]),e}(),Ne=null,Me=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.offsetName=function(e,t){return x(e,t.format,t.locale)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},i(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return y()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ne&&(Ne=new t),Ne}}]),t}(Te),De=RegExp("^"+_.source+"$"),Ie={};var Ee={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ve=function(n){function r(e){var t;return(t=n.call(this)||this).zoneName=e,t.valid=r.isValidZone(e),t}o(r,n),r.isValidSpecifier=function(e){return e&&e.match(De)},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return x(e,t.format,t.locale,this.name)},e.offset=function(e){var t=new Date(e),n=function(e){return Ie[e]||(Ie[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ie[e]}(this.name),r=n.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,u=o.value,s=Ee[a];M(s)||(r[s]=parseInt(u,10))}return r}(n,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}(n,t),i=T({year:r[0],month:r[1],day:r[2],hour:r[3],minute:r[4],second:r[5],millisecond:0}),o=t.valueOf();return(i-(o-=o%1e3))/6e4},e.equals=function(e){return"iana"===e.type&&e.name===this.name},i(r,[{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}}]),r}(Te),Le=null;var Fe=function(n){function r(e){var t;return(t=n.call(this)||this).fixed=e,t}o(r,n),r.instance=function(e){return 0===e?r.utcInstance:new r(e)},r.parseSpecifier=function(e){if(e){var t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new r(C(t[1],t[2]))}return null},i(r,null,[{key:"utcInstance",get:function(){return null===Le&&(Le=new r(0)),Le}}]);var e=r.prototype;return e.offsetName=function(){return this.name},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(r,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+function(e){var t=Math.trunc(e.fixed/60),n=Math.abs(e.fixed%60),r=(0<t?"+":"-")+Math.abs(t);return 0<n?r+":"+k(n,2):r}(this)}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),r}(Te),Ze=function(n){function e(e){var t;return(t=n.call(this)||this).zoneName=e,t}o(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.offset=function(){return NaN},t.equals=function(){return!1},i(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Te);function xe(e,t){var n;if(M(e)||null===e)return t;if(e instanceof Te)return e;if(function(e){return"string"==typeof e}(e)){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?Fe.utcInstance:null!=(n=Ve.parseGMTOffset(e))?Fe.instance(n):Ve.isValidSpecifier(r)?new Ve(e):Fe.parseSpecifier(r)||new Ze(e)}return D(e)?Fe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ze(e)}var Ce=function(){return Date.now()},je=null,Ae=null,ze=null,_e=null,qe=!1,He=function(){function e(){}return e.resetCaches=function(){et.resetCache()},i(e,null,[{key:"now",get:function(){return Ce},set:function(e){Ce=e}},{key:"defaultZoneName",get:function(){return(je||Me.instance).name},set:function(e){je=e?xe(e):null}},{key:"defaultZone",get:function(){return je||Me.instance}},{key:"defaultLocale",get:function(){return Ae},set:function(e){Ae=e}},{key:"defaultNumberingSystem",get:function(){return ze},set:function(e){ze=e}},{key:"defaultOutputCalendar",get:function(){return _e},set:function(e){_e=e}},{key:"throwOnInvalid",get:function(){return qe},set:function(e){qe=e}}]),e}();function Ue(e,t){var n="",r=e,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var u=a;u.literal?n+=u.val:n+=t(u.val)}return n}var Pe={D:R,DD:W,DDD:J,DDDD:Y,t:G,tt:$,ttt:B,tttt:Q,T:X,TT:K,TTT:ee,TTTT:te,f:ne,ff:ie,fff:ae,ffff:se,F:re,FF:oe,FFF:ue,FFFF:ce},Re=function(){function f(e,t){this.opts=t,this.loc=e,this.systemLoc=null}f.create=function(e,t){return void 0===t&&(t={}),new f(e,t)},f.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r?n+=a:a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i};var e=f.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return k(e,t);var n=Object.assign({},this.opts);return 0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},e.formatDateTimeFromString=function(o,e){var a=this,n="en"===this.loc.listingMode(),r=function(e,t){return a.loc.extract(o,e,t)},i=function(e){if(o.isOffsetFixed&&0===o.offset&&e.allowZ)return"Z";var t=Math.trunc(o.offset/60),n=Math.abs(o.offset%60),r=0<=t?"+":"-",i=r+Math.abs(t);switch(e.format){case"short":return r+a.num(Math.abs(t),2)+":"+a.num(n,2);case"narrow":return 0<n?i+":"+n:i;case"techie":return r+a.num(Math.abs(t),2)+a.num(n,2);default:throw new RangeError("Value format "+e.format+" is out of range for property format")}},u=function(){return n?function(e){return we[e.hour<12?0:1]}(o):r({hour:"numeric",hour12:!0},"dayperiod")},s=function(e,t){return n?function(e,t){return me(t)[e.month-1]}(o,e):r(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return n?function(e,t){return pe(t)[e.weekday-1]}(o,e):r(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(e){return n?function(e,t){return Oe(t)[e.year<0?0:1]}(o,e):r({era:e},"era")};return Ue(f.parseFormat(e),function(e){var t=a.loc.outputCalendar;switch(e){case"S":return a.num(o.millisecond);case"u":case"SSS":return a.num(o.millisecond,3);case"s":return a.num(o.second);case"ss":return a.num(o.second,2);case"m":return a.num(o.minute);case"mm":return a.num(o.minute,2);case"h":return a.num(o.hour%12==0?12:o.hour%12);case"hh":return a.num(o.hour%12==0?12:o.hour%12,2);case"H":return a.num(o.hour);case"HH":return a.num(o.hour,2);case"Z":return i({format:"narrow",allowZ:a.opts.allowZ});case"ZZ":return i({format:"short",allowZ:a.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:!1});case"ZZZZ":return o.offsetNameShort;case"ZZZZZ":return o.offsetNameLong;case"z":return o.zoneName;case"a":return u();case"d":return t?r({day:"numeric"},"day"):a.num(o.day);case"dd":return t?r({day:"2-digit"},"day"):a.num(o.day,2);case"c":return a.num(o.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return a.num(o.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?r({month:"numeric",day:"numeric"},"month"):a.num(o.month);case"LL":return t?r({month:"2-digit",day:"numeric"},"month"):a.num(o.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return t?r({month:"numeric"},"month"):a.num(o.month);case"MM":return t?r({month:"2-digit"},"month"):a.num(o.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return t?r({year:"numeric"},"year"):a.num(o.year);case"yy":return t?r({year:"2-digit"},"year"):a.num(o.year.toString().slice(-2),2);case"yyyy":return t?r({year:"numeric"},"year"):a.num(o.year,4);case"yyyyyy":return t?r({year:"numeric"},"year"):a.num(o.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return a.num(o.weekYear.toString().slice(-2),2);case"kkkk":return a.num(o.weekYear,4);case"W":return a.num(o.weekNumber);case"WW":return a.num(o.weekNumber,2);case"o":return a.num(o.ordinal);case"ooo":return a.num(o.ordinal,3);case"q":return a.num(o.quarter);case"qq":return a.num(o.quarter,2);case"X":return a.num(Math.floor(o.ts/1e3));case"x":return a.num(o.ts);default:return function(e){var t=Pe[e];return t?a.formatWithSystemDefault(o,t):e}(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=f.parseFormat(t),a=o.reduce(function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)},[]),u=e.shiftTo.apply(e,a.map(i).filter(function(e){return e}));return Ue(o,(n=u,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},f}(),We={};function Je(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=We[n];return r||(r=new Intl.DateTimeFormat(e,t),We[n]=r),r}var Ye={};var Ge={};var $e=null;function Be(e,t,n,r,i){var o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}var Qe=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&y()){var r={useGrouping:!1};0<n.padTo&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=Ye[n];return r||(r=new Intl.NumberFormat(e,t),Ye[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return k(this.floor?Math.floor(e):O(e,3),this.padTo)},e}(),Xe=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=y(),e.zone.universal&&this.hasIntl?(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:An.fromMillis(e.ts+60*e.offset*1e3)):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl){var i=Object.assign({},this.opts);r&&(i.timeZone=r),this.dtf=Je(t,i)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(le(w(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case le(R):return"M/d/yyyy";case le(W):return"LLL d, yyyy";case le(J):return"LLLL d, yyyy";case le(Y):return"EEEE, LLLL d, yyyy";case le(G):return"h:mm a";case le($):return"h:mm:ss a";case le(B):case le(Q):return"h:mm a";case le(X):return"HH:mm";case le(K):return"HH:mm:ss";case le(ee):case le(te):return"HH:mm";case le(ne):return"M/d/yyyy, h:mm a";case le(ie):return"LLL d, yyyy, h:mm a";case le(ae):return"LLLL d, yyyy, h:mm a";case le(se):return t;case le(re):return"M/d/yyyy, h:mm:ss a";case le(oe):return"LLL d, yyyy, h:mm:ss a";case le(ue):return"LLLL d, yyyy, h:mm:ss a";case le(ce):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=et.create("en-US");return Re.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&v()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),Ke=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&g()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=Ge[n];return r||(r=new Intl.RelativeTimeFormat(e,t),Ge[n]=r),r}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarer","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var u=Object.is(t,-0)||t<0,s=Math.abs(t),c=r?i[e][1]:1===s?i[e][0]:e;return u?s+" "+c+" ago":"in "+s+" "+c}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),et=function(){function o(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=Je(e).resolvedOptions()}catch(e){n=Je(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),o=i[0],a=i[1],u=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||u||null,this.intl=function(e,t,n){return y()?((n||t)&&(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t)),e):[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}o.fromOpts=function(e){return o.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},o.create=function(e,t,n,r){void 0===r&&(r=!1);var i=e||He.defaultLocale;return new o(i||(r?"en-US":function(){if($e)return $e;if(y()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return $e="und"===e?"en-US":e}return $e="en-US"}()),t||He.defaultNumberingSystem,n||He.defaultOutputCalendar,i)},o.resetCache=function(){$e=null,We={},Ye={}},o.fromObject=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return o.create(n,r,i)};var e=o.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=y()&&v(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?o.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),void 0===e&&(e=!0),Be(this,n,e,me,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=function(e){for(var t=[],n=1;n<=12;n++){var r=An.utc(2016,n,1);t.push(e(r))}return t}(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),void 0===e&&(e=!0),Be(this,n,e,pe,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=function(e){for(var t=[],n=1;n<=7;n++){var r=An.utc(2016,11,13+n);t.push(e(r))}return t}(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return void 0===e&&(e=!0),Be(this,void 0,e,function(){return we},function(){if(!n.meridiemCache){var t={hour:"numeric",hour12:!0};n.meridiemCache=[An.utc(2016,11,13,9),An.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})}return n.meridiemCache})},e.eras=function(e,t){var n=this;return void 0===t&&(t=!0),Be(this,e,t,Oe,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[An.utc(-40,1,1),An.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return r?r.value:null},e.numberFormatter=function(e){return void 0===e&&(e={}),new Qe(this.intl,e.forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return void 0===t&&(t={}),new Xe(e,this.intl,t)},e.relFormatter=function(e){return void 0===e&&(e={}),new Ke(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||y()&&Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(o,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||y()&&"latn"===Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}}]),o}();function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(c){return t.reduce(function(e,t){var n=e[0],r=e[1],i=e[2],o=t(c,i),a=o[0],u=o[1],s=o[2];return[Object.assign(n,a),r||u,s]},[{},null,1]).slice(0,2)}}function rt(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=n,o=0;o<i.length;o++){var a=i[o],u=a[0],s=a[1],c=u.exec(e);if(c)return s(c)}return[null,null]}function it(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){var n,r={};for(n=0;n<i.length;n++)r[i[n]]=S(e[t+n]);return[r,null,t+n]}}var ot=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,at=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,9}))?)?)?/,ut=RegExp(""+at.source+ot.source+"?"),st=RegExp("(?:T"+ut.source+")?"),ct=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,lt=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ft=/(\d{4})-?(\d{3})/,dt=it("weekYear","weekNumber","weekDay"),ht=it("year","ordinal"),mt=/(\d{4})-(\d\d)-(\d\d)/,yt=RegExp(at.source+" ?(?:"+ot.source+"|("+_.source+"))?"),vt=RegExp("(?: "+yt.source+")?");function gt(e,t){return[{year:S(e[t]),month:S(e[t+1])||1,day:S(e[t+2])||1},null,t+3]}function pt(e,t){return[{hour:S(e[t])||0,minute:S(e[t+1])||0,second:S(e[t+2])||0,millisecond:b(e[t+3])},null,t+4]}function wt(e,t){var n=!e[t]&&!e[t+1],r=C(e[t+1],e[t+2]);return[{},n?null:Fe.instance(r),t+3]}function kt(e,t){return[{},e[t]?new Ve(e[t]):null,t+1]}var St=/^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?|(-?\d{1,9})W)$/;function bt(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],u=e[7],s=e[8];return[{years:S(t),months:S(n),weeks:S(s),days:S(r),hours:S(i),minutes:S(o),seconds:S(a),milliseconds:b(u)}]}var Ot={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e,t,n,r,i,o,a){var u={year:2===t.length?Z(S(t)):S(t),month:de.indexOf(n)+1,day:S(r),hour:S(i),minute:S(o)};return a&&(u.second=S(a)),e&&(u.weekday=3<e.length?ye.indexOf(e)+1:ve.indexOf(e)+1),u}var Nt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Mt(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],u=e[6],s=e[7],c=e[8],l=e[9],f=e[10],d=e[11],h=Tt(n,o,i,r,a,u,s);return t=c?Ot[c]:l?0:C(f,d),[h,new Fe(t)]}var Dt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,It=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Et=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Vt(e){var t=e[1],n=e[2],r=e[3];return[Tt(t,e[4],r,n,e[5],e[6],e[7]),Fe.utcInstance]}function Lt(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[Tt(t,e[7],n,r,i,o,a),Fe.utcInstance]}var Ft=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Zt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},xt=Object.assign({years:{months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Zt),Ct=365.2425,jt=30.436875,At=Object.assign({years:{months:12,weeks:Ct/7,days:Ct,hours:24*Ct,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:Ct/28,days:Ct/4,hours:24*Ct/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:jt/7,days:jt,hours:24*jt,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Zt),zt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_t=zt.slice(0).reverse();function qt(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Pt(r)}function Ht(e,t,n,r,i){var o=e[i][n],a=t[n]/o,u=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[i]+=u,t[n]-=u*o}function Ut(n,r){_t.reduce(function(e,t){return M(r[t])?e:(e&&Ht(n,r,e,r,t),t)},null)}var Pt=function(){function y(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||et.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?At:xt,this.isLuxonDuration=!0}y.fromMillis=function(e,t){return y.fromObject(Object.assign({milliseconds:e},t))},y.fromObject=function(e){if(null==e||"object"!=typeof e)throw new h("Duration.fromObject: argument expected to be an object, got "+typeof e);return new y({values:A(e,y.normalizeUnit,["locale","numberingSystem","conversionAccuracy"]),loc:et.fromObject(e),conversionAccuracy:e.conversionAccuracy})},y.fromISO=function(e,t){var n=function(e){return rt(e,[St,bt])}(e)[0];if(n){var r=Object.assign(n,t);return y.fromObject(r)}return y.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},y.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new h("need to specify a reason the Duration is invalid");var n=e instanceof Ft?e:new Ft(e,t);if(He.throwOnInvalid)throw new f(n);return new y({invalid:n})},y.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new d(e);return t},y.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=y.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Re.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},e.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},e.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=this.seconds+this.milliseconds/1e3+"S"),"P"===e&&(e+="T0S"),e},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.valueOf=function(){return this.as("milliseconds")},e.plus=function(e){if(!this.isValid)return this;for(var t=Rt(e),n={},r=zt,i=0;i<r.length;i++){var o=r[i];(t.values.hasOwnProperty(o)||this.values.hasOwnProperty(o))&&(n[o]=t.get(o)+this.get(o))}return qt(this,{values:n},!0)},e.minus=function(e){if(!this.isValid)return this;var t=Rt(e);return this.plus(t.negate())},e.get=function(e){return this[y.normalizeUnit(e)]},e.set=function(e){return this.isValid?qt(this,{values:Object.assign(this.values,A(e,y.normalizeUnit,[]))}):this},e.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,o={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(o.conversionAccuracy=i),qt(this,o)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return Ut(this.matrix,e),y.fromObject(e)},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;t=t.map(function(e){return y.normalizeUnit(e)});var r,i={},o={},a=this.toObject();Ut(this.matrix,a);for(var u=zt,s=0;s<u.length;s++){var c=u[s];if(0<=t.indexOf(c)){r=c;var l=0;for(var f in o)l+=this.matrix[f][c]*o[f],o[f]=0;D(a[c])&&(l+=a[c]);var d=Math.trunc(l);for(var h in i[c]=d,o[c]=l-d,a)zt.indexOf(h)>zt.indexOf(c)&&Ht(this.matrix,a,h,i,c)}else D(a[c])&&(o[c]=a[c])}for(var m in o)0!==o[m]&&(i[r]+=m===r?o[m]:o[m]/this.matrix[r][m]);return qt(this,{values:i},!0)},e.negate=function(){if(!this.isValid)return this;for(var e={},t=Object.keys(this.values),n=0;n<t.length;n++){var r=t[n];e[r]=-this.values[r]}return qt(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t=zt,n=0;n<t.length;n++){var r=t[n];if(this.values[r]!==e.values[r])return!1}return!0},i(y,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),y}();function Rt(e){if(D(e))return Pt.fromMillis(e);if(Pt.isDuration(e))return e;if("object"==typeof e)return Pt.fromObject(e);throw new h("Unknown duration argument "+e+" of type "+typeof e)}var Wt="Invalid Interval";var Jt=function(){function f(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}f.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new h("need to specify a reason the Interval is invalid");var n=e instanceof Ft?e:new Ft(e,t);if(He.throwOnInvalid)throw new l(n);return new f({invalid:n})},f.fromDateTimes=function(e,t){var n=zn(e),r=zn(t);return new f({start:n,end:r,invalid:function(e,t){return e&&e.isValid?t&&t.isValid?t<e?new Ft("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:new Ft("missing or invalid end"):new Ft("missing or invalid start")}(n,r)})},f.after=function(e,t){var n=Rt(t),r=zn(e);return f.fromDateTimes(r,r.plus(n))},f.before=function(e,t){var n=Rt(t),r=zn(e);return f.fromDateTimes(r.minus(n),r)},f.fromISO=function(e,t){var n=(e||"").split("/",2),r=n[0],i=n[1];if(r&&i){var o=An.fromISO(r,t),a=An.fromISO(i,t);if(o.isValid&&a.isValid)return f.fromDateTimes(o,a);if(o.isValid){var u=Pt.fromISO(i,t);if(u.isValid)return f.after(o,u)}else if(a.isValid){var s=Pt.fromISO(r,t);if(s.isValid)return f.before(a,s)}}return f.invalid("unparsable",'the input "'+e+"\" can't be parsed asISO 8601")},f.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=f.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},e.hasSame=function(e){return!!this.isValid&&this.e.minus(1).hasSame(this.s,e)},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},e.set=function(e){var t=void 0===e?{}:e,n=t.start,r=t.end;return this.isValid?f.fromDateTimes(n||this.s,r||this.e):this},e.splitAt=function(){if(!this.isValid)return[];for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.map(zn).sort(),i=[],o=this.s,a=0;o<this.e;){var u=r[a]||this.e,s=+u>+this.e?this.e:u;i.push(f.fromDateTimes(o,s)),o=s,a+=1}return i},e.splitBy=function(e){var t=Rt(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n,r,i=this.s,o=[];i<this.e;)r=+(n=i.plus(t))>+this.e?this.e:n,o.push(f.fromDateTimes(i,r)),i=r;return o},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},e.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},e.intersection=function(e){if(!this.isValid)return this;var t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return n<t?null:f.fromDateTimes(t,n)},e.union=function(e){if(!this.isValid)return this;var t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return f.fromDateTimes(t,n)},f.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},f.xor=function(e){var t,n=null,r=0,i=[],o=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),a=(t=Array.prototype).concat.apply(t,o).sort(function(e,t){return e.time-t.time}),u=Array.isArray(a),s=0;for(a=u?a:a[Symbol.iterator]();;){var c;if(u){if(s>=a.length)break;c=a[s++]}else{if((s=a.next()).done)break;c=s.value}var l=c;n=1===(r+="s"===l.type?1:-1)?l.time:(n&&+n!=+l.time&&i.push(f.fromDateTimes(n,l.time)),null)}return f.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return f.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" "+this.e.toISO()+")":Wt},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):Wt},e.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?" ":n;return this.isValid?""+this.s.toFormat(e)+r+this.e.toFormat(e):Wt},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):Pt.invalid(this.invalidReason)},e.mapEndpoints=function(e){return f.fromDateTimes(e(this.s),e(this.e))},i(f,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),f}(),Yt=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=He.defaultZone);var t=An.local().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return!!Ve.isValidSpecifier(e)&&Ve.isValidZone(e)},e.normalizeZone=function(e){return xe(e,He.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,u=n.outputCalendar,s=void 0===u?"gregory":u;return et.create(i,a,s).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,u=n.outputCalendar,s=void 0===u?"gregory":u;return et.create(i,a,s).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o;return et.create(i,a,null).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o;return et.create(i,a,null).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return et.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return et.create(r,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=g();if(y()){e=!0,t=v();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function Gt(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},r=n(t)-n(e);return Math.floor(Pt.fromMillis(r).as("days"))}function $t(e,t,n,r){var i=function(e,t,n){for(var r,i,o={},a=[["years",function(e,t){return t.year-e.year}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=Gt(e,t);return(n-n%7)/7}],["days",Gt]],u=0;u<a.length;u++){var s=a[u],c=s[0],l=s[1];if(0<=n.indexOf(c)){var f;r=c;var d,h=l(e,t);t<(i=e.plus(((f={})[c]=h,f)))?(e=i.minus(((d={})[c]=1,d)),h-=1):e=i,o[c]=h}}return[e,o,i,r]}(e,t,n),o=i[0],a=i[1],u=i[2],s=i[3],c=t-o,l=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)});if(0===l.length){var f;if(u<t)u=o.plus(((f={})[s]=1,f));u!==o&&(a[s]=(a[s]||0)+c/(u-o))}var d,h=Pt.fromObject(Object.assign(a,r));return 0<l.length?(d=Pt.fromMillis(c,r)).shiftTo.apply(d,l).plus(h):h}var Bt="missing Intl.DateTimeFormat.formatToParts support";function Qt(e,n){return void 0===n&&(n=function(e){return e}),{regex:e,deser:function(e){var t=e[0];return n(parseInt(t,10))}}}function Xt(e){return e.replace(/\./,"\\.?")}function Kt(e){return e.replace(/\./,"").toLowerCase()}function en(n,r){return null===n?null:{regex:RegExp(n.map(Xt).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return Kt(t)===Kt(e)})+r}}}function tn(e,t){return{regex:e,deser:function(e){return C(e[1],e[2])},groups:t}}function nn(e){return{regex:e,deser:function(e){return e[0]}}}function rn(t,e,n){var r=Re.parseFormat(n),i=r.map(function(e){return function(t,n){var r=/\d/,i=/\d{2}/,o=/\d{3}/,a=/\d{4}/,u=/\d{1,2}/,s=/\d{1,3}/,c=/\d{2,4}/,l=function(e){return{regex:RegExp(function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}(e.val)),deser:function(e){return e[0]},literal:!0}},e=function(e){if(t.literal)return l(e);switch(e.val){case"G":return en(n.eras("short",!1),0);case"GG":return en(n.eras("long",!1),0);case"y":return Qt(/\d{1,6}/);case"yy":return Qt(c,Z);case"yyyy":return Qt(a);case"yyyyy":return Qt(/\d{4,6}/);case"yyyyyy":return Qt(/\d{6}/);case"M":return Qt(u);case"MM":return Qt(i);case"MMM":return en(n.months("short",!1,!1),1);case"MMMM":return en(n.months("long",!1,!1),1);case"L":return Qt(u);case"LL":return Qt(i);case"LLL":return en(n.months("short",!0,!1),1);case"LLLL":return en(n.months("long",!0,!1),1);case"d":return Qt(u);case"dd":return Qt(i);case"o":return Qt(s);case"ooo":return Qt(o);case"HH":return Qt(i);case"H":return Qt(u);case"hh":return Qt(i);case"h":return Qt(u);case"mm":return Qt(i);case"m":case"s":return Qt(u);case"ss":return Qt(i);case"S":return Qt(s);case"SSS":return Qt(o);case"u":return nn(/\d{1,9}/);case"a":return en(n.meridiems(),0);case"kkkk":return Qt(a);case"kk":return Qt(c,Z);case"W":return Qt(u);case"WW":return Qt(i);case"E":case"c":return Qt(r);case"EEE":return en(n.weekdays("short",!1,!1),1);case"EEEE":return en(n.weekdays("long",!1,!1),1);case"ccc":return en(n.weekdays("short",!0,!1),1);case"cccc":return en(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return tn(/([+-]\d{1,2})(?::(\d{2}))?/,2);case"ZZZ":return tn(/([+-]\d{1,2})(\d{2})?/,2);case"z":return nn(/[a-z_+-]{1,256}(\/[a-z_+-]{1,256}(\/[a-z_+-]{1,256})?)?/i);default:return l(e)}}(t)||{invalidReason:Bt};return e.token=t,e}(e,t)}),o=i.find(function(e){return e.invalidReason});if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};var a=function(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}(i),u=a[0],s=a[1],c=RegExp(u,"i"),l=function(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(n.hasOwnProperty(a)){var u=n[a],s=u.groups?u.groups+1:1;!u.literal&&u.token&&(i[u.token.val[0]]=u.deser(r.slice(o,o+s))),o+=s}return[r,i]}return[r,{}]}(e,c,s),f=l[0],d=l[1],h=d?function(r){var e;return e=M(r.Z)?M(r.z)?null:new Ve(r.z):new Fe(r.Z),M(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),M(r.u)||(r.S=b(r.u)),[Object.keys(r).reduce(function(e,t){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";default:return null}}(t);return n&&(e[n]=r[t]),e},{}),e]}(d):[null,null];return{input:e,tokens:r,regex:c,rawMatches:f,matches:d,result:h[0],zone:h[1]}}var on=[0,31,59,90,120,151,181,212,243,273,304,334],an=[0,31,60,91,121,152,182,213,244,274,305,335];function un(e,t){return new Ft("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function sn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function cn(e,t,n){return n+(E(e)?an:on)[t-1]}function ln(e,t){var n=E(e)?an:on,r=n.findIndex(function(e){return e<t});return{month:r+1,day:t-n[r]}}function fn(e){var t,n=e.year,r=e.month,i=e.day,o=cn(n,r,i),a=sn(n,r,i),u=Math.floor((o-a+10)/7);return u<1?u=F(t=n-1):u>F(n)?(t=n+1,u=1):t=n,Object.assign({weekYear:t,weekNumber:u,weekday:a},z(e))}function dn(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=sn(n,1,4),a=V(n),u=7*r+i-o-3;u<1?u+=V(t=n-1):a<u?(t=n+1,u-=V(n)):t=n;var s=ln(t,u),c=s.month,l=s.day;return Object.assign({year:t,month:c,day:l},z(e))}function hn(e){var t=e.year,n=cn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},z(e))}function mn(e){var t=e.year,n=ln(t,e.ordinal),r=n.month,i=n.day;return Object.assign({year:t,month:r,day:i},z(e))}function yn(e){var t=D(e.year),n=I(e.month,1,12),r=I(e.day,1,L(e.year,e.month));return t?n?!r&&un("day",e.day):un("month",e.month):un("year",e.year)}function vn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=I(t,0,23)||24===t&&0===n&&0===r&&0===i,a=I(n,0,59),u=I(r,0,59),s=I(i,0,999);return o?a?u?!s&&un("millisecond",i):un("second",r):un("minute",n):un("hour",t)}var gn="Invalid DateTime";function pn(e){return new Ft("unsupported zone",'the zone "'+e.name+'" is not supported')}function wn(e){return null===e.weekData&&(e.weekData=fn(e.c)),e.weekData}function kn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new An(Object.assign({},n,t,{old:n}))}function Sn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function bn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function On(e,t,n){return Sn(T(e),t,n)}function Tn(e,t){var n=e.o,r=e.c.year+t.years,i=e.c.month+t.months+3*t.quarters,o=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,L(r,i))+t.days+7*t.weeks}),a=Pt.fromObject({hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=Sn(T(o),n,e.zone),s=u[0],c=u[1];return 0!==a&&(s+=a,c=e.zone.offset(s)),{ts:s,o:c}}function Nn(e,t,n,r,i){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var u=t||a,s=An.fromObject(Object.assign(e,n,{zone:u,setZone:void 0}));return o?s:s.setZone(a)}return An.invalid(new Ft("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Mn(e,t){return e.isValid?Re.create(et.create("en-US"),{allowZ:!0,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Dn(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,u=t.includeZone,s=void 0!==u&&u,c=t.spaceZone,l=void 0!==c&&c,f="HH:mm";return r&&0===e.second&&0===e.millisecond||(f+=":ss",o&&0===e.millisecond||(f+=".SSS")),(s||a)&&l&&(f+=" "),s?f+="z":a&&(f+="ZZ"),Mn(e,f)}var In={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},En={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ln=["year","month","day","hour","minute","second","millisecond"],Fn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Zn=["year","ordinal","hour","minute","second","millisecond"];function xn(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new d(e);return t}function Cn(e,t){for(var n=Ln,r=0;r<n.length;r++){var i=n[r];M(e[i])&&(e[i]=In[i])}var o=yn(e)||vn(e);if(o)return An.invalid(o);var a=He.now(),u=On(e,t.offset(a),t),s=u[0],c=u[1];return new An({ts:s,zone:t,o:c})}function jn(t,n,r){var i=!!M(r.round)||r.round,e=function(e,t){return e=O(e,i||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)},o=function(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)};if(r.unit)return e(o(r.unit),r.unit);var a=r.units,u=Array.isArray(a),s=0;for(a=u?a:a[Symbol.iterator]();;){var c;if(u){if(s>=a.length)break;c=a[s++]}else{if((s=a.next()).done)break;c=s.value}var l=c,f=o(l);if(1<=Math.abs(f))return e(f,l)}return e(0,r.units[r.units.length-1])}var An=function(){function T(e){var t=e.zone||He.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ft("invalid input"):null)||(t.isValid?null:pn(t));this.ts=M(e.ts)?He.now():e.ts;var r=null,i=null;if(!n){var o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);r=o?e.old.c:bn(this.ts,t.offset(this.ts)),i=o?e.old.o:t.offset(this.ts)}this._zone=t,this.loc=e.loc||et.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}T.local=function(e,t,n,r,i,o,a){return M(e)?new T({ts:He.now()}):Cn({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},He.defaultZone)},T.utc=function(e,t,n,r,i,o,a){return M(e)?new T({ts:He.now(),zone:Fe.utcInstance}):Cn({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},Fe.utcInstance)},T.fromJSDate=function(e,t){return void 0===t&&(t={}),new T({ts:function(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN,zone:xe(t.zone,He.defaultZone),loc:et.fromObject(t)})},T.fromMillis=function(e,t){if(void 0===t&&(t={}),D(e))return new T({ts:e,zone:xe(t.zone,He.defaultZone),loc:et.fromObject(t)});throw new h("fromMillis requires a numerical input")},T.fromSeconds=function(e,t){if(void 0===t&&(t={}),D(e))return new T({ts:1e3*e,zone:xe(t.zone,He.defaultZone),loc:et.fromObject(t)});throw new h("fromSeconds requires a numerical input")},T.fromObject=function(e){var t=xe(e.zone,He.defaultZone);if(!t.isValid)return T.invalid(pn(t));var n=He.now(),r=t.offset(n),i=A(e,xn,["zone","locale","outputCalendar","numberingSystem"]),o=!M(i.ordinal),a=!M(i.year),u=!M(i.month)||!M(i.day),s=a||u,c=i.weekYear||i.weekNumber,l=et.fromObject(e);if((s||o)&&c)throw new N("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new N("Can't mix ordinal dates with month/day");var f,d,h=c||i.weekday&&!s,m=bn(n,r);h?(f=Fn,d=En,m=fn(m)):o?(f=Zn,d=Vn,m=hn(m)):(f=Ln,d=In);var y=!1,v=f,g=Array.isArray(v),p=0;for(v=g?v:v[Symbol.iterator]();;){var w;if(g){if(p>=v.length)break;w=v[p++]}else{if((p=v.next()).done)break;w=p.value}var k=w;M(i[k])?i[k]=y?d[k]:m[k]:y=!0}var S=(h?function(e){var t=D(e.weekYear),n=I(e.weekNumber,1,F(e.weekYear)),r=I(e.weekday,1,7);return t?n?!r&&un("weekday",e.weekday):un("week",e.week):un("weekYear",e.weekYear)}(i):o?function(e){var t=D(e.year),n=I(e.ordinal,1,V(e.year));return t?!n&&un("ordinal",e.ordinal):un("year",e.year)}(i):yn(i))||vn(i);if(S)return T.invalid(S);var b=On(h?dn(i):o?mn(i):i,r,t),O=new T({ts:b[0],zone:t,o:b[1],loc:l});return i.weekday&&s&&e.weekday!==O.weekday?T.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+O.toISO()):O},T.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return rt(e,[tt(ct,st),nt(gt,pt,wt)],[tt(lt,st),nt(dt,pt,wt)],[tt(ft,st),nt(ht,pt)],[tt(ut),nt(pt,wt)])}(e);return Nn(n[0],n[1],t,"ISO 8601",e)},T.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return rt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Nt,Mt])}(e);return Nn(n[0],n[1],t,"RFC 2822",e)},T.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return rt(e,[Dt,Vt],[It,Vt],[Et,Lt])}(e);return Nn(n[0],n[1],t,"HTTP",t)},T.fromFormat=function(e,t,n){if(void 0===n&&(n={}),M(e)||M(t))throw new h("fromFormat requires an input string and a format");var r=n,i=r.locale,o=void 0===i?null:i,a=r.numberingSystem,u=void 0===a?null:a,s=function(e,t,n){var r=rn(e,t,n);return[r.result,r.zone,r.invalidReason]}(et.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),e,t),c=s[0],l=s[1],f=s[2];return f?T.invalid(f):Nn(c,l,n,"format "+t,e)},T.fromString=function(e,t,n){return void 0===n&&(n={}),T.fromFormat(e,t,n)},T.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return rt(e,[tt(mt,vt),nt(gt,pt,wt,kt)],[tt(yt),nt(pt,wt,kt)])}(e);return Nn(n[0],n[1],t,"SQL",e)},T.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new h("need to specify a reason the DateTime is invalid");var n=e instanceof Ft?e:new Ft(e,t);if(He.throwOnInvalid)throw new c(n);return new T({invalid:n})},T.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=T.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Re.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},e.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Fe.instance(e),t)},e.toLocal=function(){return this.setZone(He.defaultZone)},e.setZone=function(e,t){var n=void 0===t?{}:t,r=n.keepLocalTime,i=void 0!==r&&r,o=n.keepCalendarTime,a=void 0!==o&&o;return(e=xe(e,He.defaultZone)).equals(this.zone)?this:e.isValid?kn(this,{ts:i||a?this.ts+60*(this.o-e.offset(this.ts))*1e3:this.ts,zone:e}):T.invalid(pn(e))},e.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar,o=this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i});return kn(this,{loc:o})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,n=A(e,xn,[]);!M(n.weekYear)||!M(n.weekNumber)||!M(n.weekday)?t=dn(Object.assign(fn(this.c),n)):M(n.ordinal)?(t=Object.assign(this.toObject(),n),M(n.day)&&(t.day=Math.min(L(t.year,t.month),t.day))):t=mn(Object.assign(hn(this.c),n));var r=On(t,this.o,this.zone);return kn(this,{ts:r[0],o:r[1]})},e.plus=function(e){return this.isValid?kn(this,Tn(this,Rt(e))):this},e.minus=function(e){return this.isValid?kn(this,Tn(this,Rt(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},n=Pt.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Re.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):gn},e.toLocaleString=function(e){return void 0===e&&(e=R),this.isValid?Re.create(this.loc.clone(e),e).formatDateTime(this):gn},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Re.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate()+"T"+this.toISOTime(e):null},e.toISODate=function(){return Mn(this,"yyyy-MM-dd")},e.toISOWeekDate=function(){return Mn(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset;return Dn(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:void 0===a||a})},e.toRFC2822=function(){return Mn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ")},e.toHTTP=function(){return Mn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return Mn(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Dn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():gn},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return Pt.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var r=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),i=function(e){return Array.isArray(e)?e:[e]}(t).map(Pt.normalizeUnit),o=e.valueOf()>this.valueOf(),a=$t(o?this:e,o?e:this,i,r);return o?a.negate():a},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(T.local(),e,t)},e.until=function(e){return this.isValid?Jt.fromDateTimes(this,e):this},e.hasSame=function(e,t){if(!this.isValid)return!1;if("millisecond"===t)return this.valueOf()===e.valueOf();var n=e.valueOf();return this.startOf(t)<=n&&n<=this.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=e.base||T.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;return jn(t,this.plus(n),Object.assign(e,{numeric:"always",units:["years","months","days","hours","minutes","seconds"]}))},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?jn(e.base||T.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},T.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(t,function(e){return e.valueOf()},Math.min)},T.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(t,function(e){return e.valueOf()},Math.max)},T.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,o=void 0===i?null:i,a=r.numberingSystem,u=void 0===a?null:a;return rn(et.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),e,t)},T.fromStringExplain=function(e,t,n){return void 0===n&&(n={}),T.fromFormatExplain(e,t,n)},i(T,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?wn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?wn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?wn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?hn(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Yt.months("short",{locale:this.locale})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Yt.months("long",{locale:this.locale})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Yt.weekdays("short",{locale:this.locale})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Yt.weekdays("long",{locale:this.locale})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?this.zone.offset(this.ts):NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return E(this.year)}},{key:"daysInMonth",get:function(){return L(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?V(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?F(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return R}},{key:"DATE_MED",get:function(){return W}},{key:"DATE_FULL",get:function(){return J}},{key:"DATE_HUGE",get:function(){return Y}},{key:"TIME_SIMPLE",get:function(){return G}},{key:"TIME_WITH_SECONDS",get:function(){return $}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return B}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return Q}},{key:"TIME_24_SIMPLE",get:function(){return X}},{key:"TIME_24_WITH_SECONDS",get:function(){return K}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return ee}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return te}},{key:"DATETIME_SHORT",get:function(){return ne}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return re}},{key:"DATETIME_MED",get:function(){return ie}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return oe}},{key:"DATETIME_FULL",get:function(){return ae}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return ue}},{key:"DATETIME_HUGE",get:function(){return se}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return ce}}]),T}();function zn(e){if(An.isDateTime(e))return e;if(e&&e.valueOf&&D(e.valueOf()))return An.fromJSDate(e);if(e&&"object"==typeof e)return An.fromObject(e);throw new h("Unknown datetime argument: "+e+", of type "+typeof e)}return e.DateTime=An,e.Duration=Pt,e.FixedOffsetZone=Fe,e.IANAZone=Ve,e.Info=Yt,e.Interval=Jt,e.InvalidZone=Ze,e.LocalZone=Me,e.Settings=He,e.Zone=Te,e}({});