Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rrule-tz.min.js 115KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rrule=e():t.rrule=e()}("undefined"!=typeof self?self:this,function(){return r={},i.m=n=[function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function a(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u=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(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function c(t){var r="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return u(t,arguments,o(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(c(Error)),h=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return a(t,e),t}(l),d=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return a(t,e),t}(l),f=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return a(t,e),t}(l),U=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(l),y=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return a(t,e),t}(l),p=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(l),m=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return a(e,t),e}(l),v="numeric",b="short",g="long",w={year:v,month:v,day:v},k={year:v,month:b,day:v},T={year:v,month:g,day:v},O={year:v,month:g,day:v,weekday:g},S={hour:v,minute:v},E={hour:v,minute:v,second:v},D={hour:v,minute:v,second:v,timeZoneName:b},M={hour:v,minute:v,second:v,timeZoneName:g},N={hour:v,minute:v,hour12:!1},x={hour:v,minute:v,second:v,hour12:!1},L={hour:v,minute:v,second:v,hour12:!1,timeZoneName:b},C={hour:v,minute:v,second:v,hour12:!1,timeZoneName:g},Y={year:v,month:v,day:v,hour:v,minute:v},_={year:v,month:v,day:v,hour:v,minute:v,second:v},A={year:v,month:b,day:v,hour:v,minute:v},j={year:v,month:b,day:v,hour:v,minute:v,second:v},R={year:v,month:b,day:v,weekday:b,hour:v,minute:v},V={year:v,month:g,day:v,hour:v,minute:v,timeZoneName:b},F={year:v,month:g,day:v,hour:v,minute:v,second:v,timeZoneName:b},z={year:v,month:g,day:v,weekday:g,hour:v,minute:v,timeZoneName:g},Z={year:v,month:g,day:v,weekday:g,hour:v,minute:v,second:v,timeZoneName:g};function W(t){return void 0===t}function q(t){return"number"==typeof t}function H(t){return"number"==typeof t&&t%1==0}function I(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function P(){return!W(Intl.DateTimeFormat.prototype.formatToParts)}function J(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function G(t,r,i){if(0!==t.length)return t.reduce(function(t,e){var n=[r(e),e];return t&&i(t[0],n[0])===t[0]?t:n},null)[1]}function B(n,t){return t.reduce(function(t,e){return t[e]=n[e],t},{})}function K(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function $(t,e,n){return H(t)&&e<=t&&t<=n}function Q(t,e){return void 0===e&&(e=2),t.toString().length<e?("0".repeat(e)+t).slice(-e):t.toString()}function X(t){return W(t)||null===t||""===t?void 0:parseInt(t,10)}function tt(t){if(!W(t)&&null!==t&&""!==t){var e=1e3*parseFloat("0."+t);return Math.floor(e)}}function et(t,e,n){void 0===n&&(n=!1);var r=Math.pow(10,e);return(n?Math.trunc:Math.round)(t*r)/r}function nt(t){return t%4==0&&(t%100!=0||t%400==0)}function rt(t){return nt(t)?366:365}function it(t,e){var n,r,i=(n=e-1)-(r=12)*Math.floor(n/r)+1;return 2==i?nt(t+(e-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function at(t){var e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&0<=t.year&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function ot(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4==e||3==r?53:52}function st(t){return 99<t?t:60<t?1900+t:2e3+t}function ut(t,e,n,r){void 0===r&&(r=null);var i=new Date(t),a={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var o=Object.assign({timeZoneName:e},a),s=I();if(s&&P()){var u=new Intl.DateTimeFormat(n,o).formatToParts(i).find(function(t){return"timezonename"===t.type.toLowerCase()});return u?u.value:null}if(s){var c=new Intl.DateTimeFormat(n,a).format(i);return new Intl.DateTimeFormat(n,o).format(i).substring(c.length).replace(/^[, \u200e]+/,"")}return null}function ct(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function lt(t){var e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new p("Invalid unit value "+t);return e}function ht(t,e,n){var r={};for(var i in t)if(K(t,i)){if(0<=n.indexOf(i))continue;var a=t[i];if(null==a)continue;r[e(i)]=lt(a)}return r}function dt(t,e){var n=Math.trunc(t/60),r=Math.abs(t%60),i=0<=n&&!Object.is(n,-0)?"+":"-",a=i+Math.abs(n);switch(e){case"short":return i+Q(Math.abs(n),2)+":"+Q(r,2);case"narrow":return 0<r?a+":"+r:a;case"techie":return i+Q(Math.abs(n),2)+Q(r,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function ft(t){return B(t,["hour","minute","second","millisecond"])}var yt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function mt(t){return JSON.stringify(t,Object.keys(t).sort())}var pt=["January","February","March","April","May","June","July","August","September","October","November","December"],vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bt=["J","F","M","A","M","J","J","A","S","O","N","D"];function gt(t){switch(t){case"narrow":return bt;case"short":return vt;case"long":return pt;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 wt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],kt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Tt=["M","T","W","T","F","S","S"];function Ot(t){switch(t){case"narrow":return Tt;case"short":return kt;case"long":return wt;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var St=["AM","PM"],Et=["Before Christ","Anno Domini"],Dt=["BC","AD"],Mt=["B","A"];function Nt(t){switch(t){case"narrow":return Mt;case"short":return Dt;case"long":return Et;default:return null}}function xt(t,e){var n="",r=t,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}o.literal?n+=o.val:n+=e(o.val)}return n}var Lt={D:w,DD:k,DDD:T,DDDD:O,t:S,tt:E,ttt:D,tttt:M,T:N,TT:x,TTT:L,TTTT:C,f:Y,ff:A,fff:V,ffff:z,F:_,FF:j,FFF:F,FFFF:Z},It=function(){function f(t,e){this.opts=e,this.loc=t,this.systemLoc=null}f.create=function(t,e){return void 0===e&&(e={}),new f(t,e)},f.parseFormat=function(t){for(var e=null,n="",r=!1,i=[],a=0;a<t.length;a++){var o=t.charAt(a);"'"===o?(0<n.length&&i.push({literal:r,val:n}),e=null,n="",r=!r):r?n+=o:o===e?n+=o:(0<n.length&&i.push({literal:!1,val:n}),e=n=o)}return 0<n.length&&i.push({literal:r,val:n}),i},f.macroTokenToFormatOpts=function(t){return Lt[t]};var t=f.prototype;return t.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},t.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},t.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},t.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},t.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return Q(t,e);var n=Object.assign({},this.opts);return 0<e&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},t.formatDateTimeFromString=function(r,t){function i(t,e){return l.loc.extract(r,t,e)}function a(t){return r.isOffsetFixed&&0===r.offset&&t.allowZ?"Z":r.isValid?r.zone.formatOffset(r.ts,t.format):""}function o(){return h?St[r.hour<12?0:1]:i({hour:"numeric",hour12:!0},"dayperiod")}function s(t,e){return h?(n=r,gt(t)[n.month-1]):i(e?{month:t}:{month:t,day:"numeric"},"month");var n}function u(t,e){return h?(n=r,Ot(t)[n.weekday-1]):i(e?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday");var n}function c(t){return h?(e=r,Nt(t)[e.year<0?0:1]):i({era:t},"era");var e}var l=this,h="en"===this.loc.listingMode(),d=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&P();return xt(f.parseFormat(t),function(t){switch(t){case"S":return l.num(r.millisecond);case"u":case"SSS":return l.num(r.millisecond,3);case"s":return l.num(r.second);case"ss":return l.num(r.second,2);case"m":return l.num(r.minute);case"mm":return l.num(r.minute,2);case"h":return l.num(r.hour%12==0?12:r.hour%12);case"hh":return l.num(r.hour%12==0?12:r.hour%12,2);case"H":return l.num(r.hour);case"HH":return l.num(r.hour,2);case"Z":return a({format:"narrow",allowZ:l.opts.allowZ});case"ZZ":return a({format:"short",allowZ:l.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:!1});case"ZZZZ":return r.zone.offsetName(r.ts,{format:"short",locale:l.loc.locale});case"ZZZZZ":return r.zone.offsetName(r.ts,{format:"long",locale:l.loc.locale});case"z":return r.zoneName;case"a":return o();case"d":return d?i({day:"numeric"},"day"):l.num(r.day);case"dd":return d?i({day:"2-digit"},"day"):l.num(r.day,2);case"c":return l.num(r.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return l.num(r.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return d?i({month:"numeric",day:"numeric"},"month"):l.num(r.month);case"LL":return d?i({month:"2-digit",day:"numeric"},"month"):l.num(r.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return d?i({month:"numeric"},"month"):l.num(r.month);case"MM":return d?i({month:"2-digit"},"month"):l.num(r.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return d?i({year:"numeric"},"year"):l.num(r.year);case"yy":return d?i({year:"2-digit"},"year"):l.num(r.year.toString().slice(-2),2);case"yyyy":return d?i({year:"numeric"},"year"):l.num(r.year,4);case"yyyyyy":return d?i({year:"numeric"},"year"):l.num(r.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return l.num(r.weekYear.toString().slice(-2),2);case"kkkk":return l.num(r.weekYear,4);case"W":return l.num(r.weekNumber);case"WW":return l.num(r.weekNumber,2);case"o":return l.num(r.ordinal);case"ooo":return l.num(r.ordinal,3);case"q":return l.num(r.quarter);case"qq":return l.num(r.quarter,2);case"X":return l.num(Math.floor(r.ts/1e3));case"x":return l.num(r.ts);default:return(n=f.macroTokenToFormatOpts(e=t))?l.formatWithSystemDefault(r,n):e}var e,n})},t.formatDurationFromString=function(t,e){function n(t){switch(t[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}}var r,i=this,a=f.parseFormat(e),o=a.reduce(function(t,e){var n=e.literal,r=e.val;return n?t:t.concat(r)},[]),s=t.shiftTo.apply(t,o.map(n).filter(function(t){return t}));return xt(a,(r=s,function(t){var e=n(t);return e?i.num(r.get(e),t.length):t}))},f}(),Ut=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Ct=function(){function t(){}var e=t.prototype;return e.offsetName=function(){throw new m},e.formatOffset=function(){throw new m},e.offset=function(){throw new m},e.equals=function(){throw new m},i(t,[{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}}]),t}(),Yt=null,_t=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.offsetName=function(t,e){return ut(t,e.format,e.locale)},n.formatOffset=function(t,e){return dt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"local"===t.type},i(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return I()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Yt&&(Yt=new e),Yt}}]),e}(Ct),At=RegExp("^"+yt.source+"$"),jt={};var Rt={year:0,month:1,day:2,hour:3,minute:4,second:5};var Vt={},Ft=function(n){function r(t){var e;return(e=n.call(this)||this).zoneName=t,e.valid=r.isValidZone(t),e}a(r,n),r.create=function(t){return Vt[t]||(Vt[t]=new r(t)),Vt[t]},r.resetCache=function(){Vt={},jt={}},r.isValidSpecifier=function(t){return!(!t||!t.match(At))},r.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}},r.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var t=r.prototype;return t.offsetName=function(t,e){return ut(t,e.format,e.locale,this.name)},t.formatOffset=function(t,e){return dt(this.offset(t),e)},t.offset=function(t){var e,n,r,i,a,o,s=new Date(t),u=(o=this.name,jt[o]||(jt[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),jt[o]),c=u.formatToParts?function(t,e){for(var n=t.formatToParts(e),r=[],i=0;i<n.length;i++){var a=n[i],o=a.type,s=a.value,u=Rt[o];W(u)||(r[u]=parseInt(s,10))}return r}(u,s):(e=s,n=u.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],a=r[2],[r[3],i,a,r[4],r[5],r[6]]),l=c[0],h=c[1],d=c[2],f=c[3],y=at({year:l,month:h,day:d,hour:24===f?0:f,minute:c[4],second:c[5],millisecond:0}),m=s.valueOf();return(y-(m-=m%1e3))/6e4},t.equals=function(t){return"iana"===t.type&&t.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}(Ct),zt=null,Zt=function(n){function r(t){var e;return(e=n.call(this)||this).fixed=t,e}a(r,n),r.instance=function(t){return 0===t?r.utcInstance:new r(t)},r.parseSpecifier=function(t){if(t){var e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new r(ct(e[1],e[2]))}return null},i(r,null,[{key:"utcInstance",get:function(){return null===zt&&(zt=new r(0)),zt}}]);var t=r.prototype;return t.offsetName=function(){return this.name},t.formatOffset=function(t,e){return dt(this.fixed,e)},t.offset=function(){return this.fixed},t.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},i(r,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+dt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),r}(Ct),Wt=function(n){function t(t){var e;return(e=n.call(this)||this).zoneName=t,e}a(t,n);var e=t.prototype;return e.offsetName=function(){return null},e.formatOffset=function(){return""},e.offset=function(){return NaN},e.equals=function(){return!1},i(t,[{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}}]),t}(Ct);function qt(t,e){var n;if(W(t)||null===t)return e;if(t instanceof Ct)return t;if("string"!=typeof t)return q(t)?Zt.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wt(t);var r=t.toLowerCase();return"local"===r?e:"utc"===r||"gmt"===r?Zt.utcInstance:null!=(n=Ft.parseGMTOffset(t))?Zt.instance(n):Ft.isValidSpecifier(r)?Ft.create(t):Zt.parseSpecifier(r)||new Wt(t)}var Ht=function(){return Date.now()},Pt=null,Jt=null,Gt=null,Bt=null,Kt=!1,$t=function(){function t(){}return t.resetCaches=function(){se.resetCache(),Ft.resetCache()},i(t,null,[{key:"now",get:function(){return Ht},set:function(t){Ht=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){Pt=t?qt(t):null}},{key:"defaultZone",get:function(){return Pt||_t.instance}},{key:"defaultLocale",get:function(){return Jt},set:function(t){Jt=t}},{key:"defaultNumberingSystem",get:function(){return Gt},set:function(t){Gt=t}},{key:"defaultOutputCalendar",get:function(){return Bt},set:function(t){Bt=t}},{key:"throwOnInvalid",get:function(){return Kt},set:function(t){Kt=t}}]),t}(),Qt={};function Xt(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=Qt[n];return r||(r=new Intl.DateTimeFormat(t,e),Qt[n]=r),r}var te={};var ee={};var ne=null;function re(t,e,n,r,i){var a=t.listingMode(n);return"error"===a?null:"en"===a?r(e):i(e)}var ie=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e&&I()){var r={useGrouping:!1};0<n.padTo&&(r.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=te[n];return r||(r=new Intl.NumberFormat(t,e),te[n]=r),r}(t,r)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Q(this.floor?Math.floor(t):et(t,3),this.padTo)},t}(),ae=function(){function t(t,e,n){var r;if(this.opts=n,this.hasIntl=I(),t.zone.universal&&this.hasIntl?(r="UTC",n.timeZoneName?this.dt=t:this.dt=0===t.offset?t:or.fromMillis(t.ts+60*t.offset*1e3)):"local"===t.zone.type?this.dt=t:r=(this.dt=t).zone.name,this.hasIntl){var i=Object.assign({},this.opts);r&&(i.timeZone=r),this.dtf=Xt(e,i)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){var e="EEEE, LLLL d, yyyy, h:mm a";switch(mt(B(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case mt(w):return"M/d/yyyy";case mt(k):return"LLL d, yyyy";case mt(T):return"LLLL d, yyyy";case mt(O):return"EEEE, LLLL d, yyyy";case mt(S):return"h:mm a";case mt(E):return"h:mm:ss a";case mt(D):case mt(M):return"h:mm a";case mt(N):return"HH:mm";case mt(x):return"HH:mm:ss";case mt(L):case mt(C):return"HH:mm";case mt(Y):return"M/d/yyyy, h:mm a";case mt(A):return"LLL d, yyyy, h:mm a";case mt(V):return"LLLL d, yyyy, h:mm a";case mt(z):return e;case mt(_):return"M/d/yyyy, h:mm:ss a";case mt(j):return"LLL d, yyyy, h:mm:ss a";case mt(R):return"EEE, d LLL yyyy, h:mm a";case mt(F):return"LLLL d, yyyy, h:mm:ss a";case mt(Z):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return e}}(this.opts),e=se.create("en-US");return It.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&P()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),oe=function(){function t(t,e,n){this.opts=Object.assign({style:"long"},n),!e&&J()&&(this.rtf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=ee[n];return r||(r=new Intl.RelativeTimeFormat(t,e),ee[n]=r),r}(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&a){var o="days"===t;switch(e){case 1:return o?"tomorrow":"next "+i[t][0];case-1:return o?"yesterday":"last "+i[t][0];case 0:return o?"today":"this "+i[t][0]}}var s=Object.is(e,-0)||e<0,u=Math.abs(e),c=1===u,l=i[t],h=r?c?l[1]:l[2]||l[1]:c?i[t][0]:t;return s?u+" "+h+" ago":"in "+u+" "+h}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),se=function(){function a(t,e,n,r){var i,a,o,s=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,r=t.substring(0,e);try{n=Xt(t).resolvedOptions()}catch(t){n=Xt(r).resolvedOptions()}return[r,n.numberingSystem,n.calendar]}(t),u=s[0],c=s[1],l=s[2];this.locale=u,this.numberingSystem=e||c||null,this.outputCalendar=n||l||null,this.intl=(i=this.locale,a=this.numberingSystem,o=this.outputCalendar,I()?((o||a)&&(i+="-u",o&&(i+="-ca-"+o),a&&(i+="-nu-"+a)),i):[]),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}a.fromOpts=function(t){return a.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},a.create=function(t,e,n,r){void 0===r&&(r=!1);var i=t||$t.defaultLocale;return new a(i||(r?"en-US":function(){if(ne)return ne;if(I()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return ne=t&&"und"!==t?t:"en-US"}return ne="en-US"}()),e||$t.defaultNumberingSystem,n||$t.defaultOutputCalendar,i)},a.resetCache=function(){ne=null,Qt={},te={},ee={}},a.fromObject=function(t){var e=void 0===t?{}:t,n=e.locale,r=e.numberingSystem,i=e.outputCalendar;return a.create(n,r,i)};var t=a.prototype;return t.listingMode=function(t){void 0===t&&(t=!0);var e=I()&&P(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e||n&&r||t?!e||n&&r?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?a.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},t.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},t.months=function(n,r,t){var i=this;return void 0===r&&(r=!1),void 0===t&&(t=!0),re(this,n,t,gt,function(){var e=r?{month:n,day:"numeric"}:{month:n},t=r?"format":"standalone";return i.monthsCache[t][n]||(i.monthsCache[t][n]=function(t){for(var e=[],n=1;n<=12;n++){var r=or.utc(2016,n,1);e.push(t(r))}return e}(function(t){return i.extract(t,e,"month")})),i.monthsCache[t][n]})},t.weekdays=function(n,r,t){var i=this;return void 0===r&&(r=!1),void 0===t&&(t=!0),re(this,n,t,Ot,function(){var e=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},t=r?"format":"standalone";return i.weekdaysCache[t][n]||(i.weekdaysCache[t][n]=function(t){for(var e=[],n=1;n<=7;n++){var r=or.utc(2016,11,13+n);e.push(t(r))}return e}(function(t){return i.extract(t,e,"weekday")})),i.weekdaysCache[t][n]})},t.meridiems=function(t){var n=this;return void 0===t&&(t=!0),re(this,void 0,t,function(){return St},function(){if(!n.meridiemCache){var e={hour:"numeric",hour12:!0};n.meridiemCache=[or.utc(2016,11,13,9),or.utc(2016,11,13,19)].map(function(t){return n.extract(t,e,"dayperiod")})}return n.meridiemCache})},t.eras=function(t,e){var n=this;return void 0===e&&(e=!0),re(this,t,e,Nt,function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[or.utc(-40,1,1),or.utc(2017,1,1)].map(function(t){return n.extract(t,e,"era")})),n.eraCache[t]})},t.extract=function(t,e,n){var r=this.dtFormatter(t,e).formatToParts().find(function(t){return t.type.toLowerCase()===n});return r?r.value:null},t.numberFormatter=function(t){return void 0===t&&(t={}),new ie(this.intl,t.forceSimple||this.fastNumbers,t)},t.dtFormatter=function(t,e){return void 0===e&&(e={}),new ae(t,this.intl,e)},t.relFormatter=function(t){return void 0===t&&(t={}),new oe(this.intl,this.isEnglish(),t)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||I()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},i(a,[{key:"fastNumbers",get:function(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||I()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),a}();function ue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.reduce(function(t,e){return t+e.source},"");return RegExp("^"+r+"$")}function ce(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(c){return e.reduce(function(t,e){var n=t[0],r=t[1],i=t[2],a=e(c,i),o=a[0],s=a[1],u=a[2];return[Object.assign(n,o),r||s,u]},[{},null,1]).slice(0,2)}}function le(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i],s=o[0],u=o[1],c=s.exec(t);if(c)return u(c)}return[null,null]}function he(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return function(t,e){var n,r={};for(n=0;n<i.length;n++)r[i[n]]=X(t[e+n]);return[r,null,e+n]}}var de=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,fe=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,9}))?)?)?/,ye=RegExp(""+fe.source+de.source+"?"),me=RegExp("(?:T"+ye.source+")?"),pe=he("weekYear","weekNumber","weekDay"),ve=he("year","ordinal"),be=RegExp(fe.source+" ?(?:"+de.source+"|("+yt.source+"))?"),ge=RegExp("(?: "+be.source+")?");function we(t,e,n){var r=t[e];return W(r)?n:X(r)}function ke(t,e){return[{year:we(t,e),month:we(t,e+1,1),day:we(t,e+2,1)},null,e+3]}function Te(t,e){return[{hour:we(t,e,0),minute:we(t,e+1,0),second:we(t,e+2,0),millisecond:tt(t[e+3])},null,e+4]}function Oe(t,e){var n=!t[e]&&!t[e+1],r=ct(t[e+1],t[e+2]);return[{},n?null:Zt.instance(r),e+3]}function Se(t,e){return[{},t[e]?Ft.create(t[e]):null,e+1]}var Ee=/^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;function De(t){var e=t[1],n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],u=t[8];return[{years:X(e),months:X(n),weeks:X(r),days:X(i),hours:X(a),minutes:X(o),seconds:X(s),milliseconds:tt(u)}]}var Me={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ne(t,e,n,r,i,a,o){var s={year:2===e.length?st(X(e)):X(e),month:vt.indexOf(n)+1,day:X(r),hour:X(i),minute:X(a)};return o&&(s.second=X(o)),t&&(s.weekday=3<t.length?wt.indexOf(t)+1:kt.indexOf(t)+1),s}var xe=/^(?:(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 Le(t){var e,n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8],l=t[9],h=t[10],d=t[11],f=Ne(n,a,i,r,o,s,u);return e=c?Me[c]:l?0:ct(h,d),[f,new Zt(e)]}var Ie=/^(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$/,Ue=/^(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$/,Ce=/^(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 Ye(t){var e=t[1],n=t[2],r=t[3];return[Ne(e,t[4],r,n,t[5],t[6],t[7]),Zt.utcInstance]}function _e(t){var e=t[1],n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];return[Ne(e,t[7],n,r,i,a,o),Zt.utcInstance]}var Ae=ue(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,me),je=ue(/(\d{4})-?W(\d\d)(?:-?(\d))?/,me),Re=ue(/(\d{4})-?(\d{3})/,me),Ve=ue(ye),Fe=ce(ke,Te,Oe),ze=ce(pe,Te,Oe),Ze=ce(ve,Te),We=ce(Te,Oe);var qe=ue(/(\d{4})-(\d\d)-(\d\d)/,ge),He=ue(be),Pe=ce(ke,Te,Oe,Se),Je=ce(Te,Oe,Se);var Ge={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}},Be=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}},Ge),Ke=365.2425,$e=30.436875,Qe=Object.assign({years:{months:12,weeks:Ke/7,days:Ke,hours:24*Ke,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:Ke/28,days:Ke/4,hours:24*Ke/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:$e/7,days:$e,hours:24*$e,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Ge),Xe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tn=Xe.slice(0).reverse();function en(t,e,n){void 0===n&&(n=!1);var r={values:n?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new an(r)}function nn(t,e,n,r,i){var a,o=t[i][n],s=e[n]/o,u=!(Math.sign(s)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(s)<=1?(a=s)<0?Math.floor(a):Math.ceil(a):Math.trunc(s);r[i]+=u,e[n]-=u*o}function rn(n,r){tn.reduce(function(t,e){return W(r[e])?t:(t&&nn(n,r,t,r,e),e)},null)}var an=function(){function m(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||se.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?Qe:Be,this.isLuxonDuration=!0}m.fromMillis=function(t,e){return m.fromObject(Object.assign({milliseconds:t},e))},m.fromObject=function(t){if(null==t||"object"!=typeof t)throw new p("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new m({values:ht(t,m.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:se.fromObject(t),conversionAccuracy:t.conversionAccuracy})},m.fromISO=function(t,e){var n=le(t,[Ee,De])[0];if(n){var r=Object.assign(n,e);return m.fromObject(r)}return m.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},m.invalid=function(t,e){if(void 0===e&&(e=null),!t)throw new p("need to specify a reason the Duration is invalid");var n=t instanceof Ut?t:new Ut(t,e);if($t.throwOnInvalid)throw new f(n);return new m({invalid:n})},m.normalizeUnit=function(t){var e={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"}[t?t.toLowerCase():t];if(!e)throw new y(t);return e},m.isDuration=function(t){return t&&t.isLuxonDuration||!1};var t=m.prototype;return t.toFormat=function(t,e){void 0===e&&(e={});var n=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?It.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},t.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},t.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=et(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.valueOf=function(){return this.as("milliseconds")},t.plus=function(t){if(!this.isValid)return this;for(var e=on(t),n={},r=0,i=Xe;r<i.length;r++){var a=i[r];(K(e.values,a)||K(this.values,a))&&(n[a]=e.get(a)+this.get(a))}return en(this,{values:n},!0)},t.minus=function(t){if(!this.isValid)return this;var e=on(t);return this.plus(e.negate())},t.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];e[i]=lt(t(this.values[i],i))}return en(this,{values:e},!0)},t.get=function(t){return this[m.normalizeUnit(t)]},t.set=function(t){return this.isValid?en(this,{values:Object.assign(this.values,ht(t,m.normalizeUnit,[]))}):this},t.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,r=e.numberingSystem,i=e.conversionAccuracy,a={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(a.conversionAccuracy=i),en(this,a)},t.as=function(t){return this.isValid?this.shiftTo(t).get(t):NaN},t.normalize=function(){if(!this.isValid)return this;var t=this.toObject();return rn(this.matrix,t),en(this,{values:t},!0)},t.shiftTo=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!this.isValid)return this;if(0===e.length)return this;e=e.map(function(t){return m.normalizeUnit(t)});var r,i={},a={},o=this.toObject();rn(this.matrix,o);for(var s=0,u=Xe;s<u.length;s++){var c=u[s];if(0<=e.indexOf(c)){r=c;var l=0;for(var h in a)l+=this.matrix[h][c]*a[h],a[h]=0;q(o[c])&&(l+=o[c]);var d=Math.trunc(l);for(var f in i[c]=d,a[c]=l-d,o)Xe.indexOf(f)>Xe.indexOf(c)&&nn(this.matrix,o,f,i,c)}else q(o[c])&&(a[c]=o[c])}for(var y in a)0!==a[y]&&(i[r]+=y===r?a[y]:a[y]/this.matrix[r][y]);return en(this,{values:i},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);e<n.length;e++){var r=n[e];t[r]=-this.values[r]}return en(this,{values:t},!0)},t.equals=function(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(var e=0,n=Xe;e<n.length;e++){var r=n[e];if(this.values[r]!==t.values[r])return!1}return!0},i(m,[{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}}]),m}();function on(t){if(q(t))return an.fromMillis(t);if(an.isDuration(t))return t;if("object"==typeof t)return an.fromObject(t);throw new p("Unknown duration argument "+t+" of type "+typeof t)}var sn="Invalid Interval";var un=function(){function l(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}l.invalid=function(t,e){if(void 0===e&&(e=null),!t)throw new p("need to specify a reason the Interval is invalid");var n=t instanceof Ut?t:new Ut(t,e);if($t.throwOnInvalid)throw new d(n);return new l({invalid:n})},l.fromDateTimes=function(t,e){var n,r,i=sr(t),a=sr(e),o=(r=a,(n=i)&&n.isValid?r&&r.isValid?r<n?un.invalid("end before start","The end of an interval must be after its start, but you had start="+n.toISO()+" and end="+r.toISO()):null:un.invalid("missing or invalid end"):un.invalid("missing or invalid start"));return null==o?new l({start:i,end:a}):o},l.after=function(t,e){var n=on(e),r=sr(t);return l.fromDateTimes(r,r.plus(n))},l.before=function(t,e){var n=on(e),r=sr(t);return l.fromDateTimes(r.minus(n),r)},l.fromISO=function(t,e){var n=(t||"").split("/",2),r=n[0],i=n[1];if(r&&i){var a=or.fromISO(r,e),o=or.fromISO(i,e);if(a.isValid&&o.isValid)return l.fromDateTimes(a,o);if(a.isValid){var s=an.fromISO(i,e);if(s.isValid)return l.after(a,s)}else if(o.isValid){var u=an.fromISO(r,e);if(u.isValid)return l.before(o,u)}}return l.invalid("unparsable",'the input "'+t+"\" can't be parsed asISO 8601")},l.isInterval=function(t){return t&&t.isLuxonInterval||!1};var t=l.prototype;return t.length=function(t){return void 0===t&&(t="milliseconds"),this.isValid?this.toDuration.apply(this,[t]).get(t):NaN},t.count=function(t){if(void 0===t&&(t="milliseconds"),!this.isValid)return NaN;var e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+1},t.hasSame=function(t){return!!this.isValid&&this.e.minus(1).hasSame(this.s,t)},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(t){return!!this.isValid&&this.s>t},t.isBefore=function(t){return!!this.isValid&&this.e<=t},t.contains=function(t){return!!this.isValid&&(this.s<=t&&this.e>t)},t.set=function(t){var e=void 0===t?{}:t,n=e.start,r=e.end;return this.isValid?l.fromDateTimes(n||this.s,r||this.e):this},t.splitAt=function(){var e=this;if(!this.isValid)return[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=n.map(sr).filter(function(t){return e.contains(t)}).sort(),a=[],o=this.s,s=0;o<this.e;){var u=i[s]||this.e,c=+u>+this.e?this.e:u;a.push(l.fromDateTimes(o,c)),o=c,s+=1}return a},t.splitBy=function(t){var e=on(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];for(var n,r,i=this.s,a=[];i<this.e;)r=+(n=i.plus(e))>+this.e?this.e:n,a.push(l.fromDateTimes(i,r)),i=r;return a},t.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},t.overlaps=function(t){return this.e>t.s&&this.s<t.e},t.abutsStart=function(t){return!!this.isValid&&+this.e==+t.s},t.abutsEnd=function(t){return!!this.isValid&&+t.e==+this.s},t.engulfs=function(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)},t.equals=function(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))},t.intersection=function(t){if(!this.isValid)return this;var e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return n<e?null:l.fromDateTimes(e,n)},t.union=function(t){if(!this.isValid)return this;var e=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return l.fromDateTimes(e,n)},l.merge=function(t){var e=t.sort(function(t,e){return t.s-e.s}).reduce(function(t,e){var n=t[0],r=t[1];return r?r.overlaps(e)||r.abutsStart(e)?[n,r.union(e)]:[n.concat([r]),e]:[n,e]},[[],null]),n=e[0],r=e[1];return r&&n.push(r),n},l.xor=function(t){var e,n=null,r=0,i=[],a=t.map(function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]}),o=(e=Array.prototype).concat.apply(e,a).sort(function(t,e){return t.time-e.time}),s=Array.isArray(o),u=0;for(o=s?o:o[Symbol.iterator]();;){var c;if(s){if(u>=o.length)break;c=o[u++]}else{if((u=o.next()).done)break;c=u.value}n=1===(r+="s"===c.type?1:-1)?c.time:(n&&+n!=+c.time&&i.push(l.fromDateTimes(n,c.time)),null)}return l.merge(i)},t.difference=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return l.xor([this].concat(n)).map(function(t){return e.intersection(t)}).filter(function(t){return t&&!t.isEmpty()})},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sn},t.toISO=function(t){return this.isValid?this.s.toISO(t)+"/"+this.e.toISO(t):sn},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sn},t.toISOTime=function(t){return this.isValid?this.s.toISOTime(t)+"/"+this.e.toISOTime(t):sn},t.toFormat=function(t,e){var n=(void 0===e?{}:e).separator,r=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(t)+r+this.e.toFormat(t):sn},t.toDuration=function(t,e){return this.isValid?this.e.diff(this.s,t,e):an.invalid(this.invalidReason)},t.mapEndpoints=function(t){return l.fromDateTimes(t(this.s),t(this.e))},i(l,[{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}}]),l}(),cn=function(){function t(){}return t.hasDST=function(t){void 0===t&&(t=$t.defaultZone);var e=or.local().setZone(t).set({month:12});return!t.universal&&e.offset!==e.set({month:6}).offset},t.isValidIANAZone=function(t){return Ft.isValidSpecifier(t)&&Ft.isValidZone(t)},t.normalizeZone=function(t){return qt(t,$t.defaultZone)},t.months=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a,s=n.outputCalendar,u=void 0===s?"gregory":s;return se.create(i,o,u).months(t)},t.monthsFormat=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a,s=n.outputCalendar,u=void 0===s?"gregory":s;return se.create(i,o,u).months(t,!0)},t.weekdays=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a;return se.create(i,o,null).weekdays(t)},t.weekdaysFormat=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a;return se.create(i,o,null).weekdays(t,!0)},t.meridiems=function(t){var e=(void 0===t?{}:t).locale,n=void 0===e?null:e;return se.create(n).meridiems()},t.eras=function(t,e){void 0===t&&(t="short");var n=(void 0===e?{}:e).locale,r=void 0===n?null:n;return se.create(r,null,"gregory").eras(t)},t.features=function(){var t=!1,e=!1,n=!1,r=!1;if(I()){t=!0,e=P(),r=J();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(t){n=!1}}return{intl:t,intlTokens:e,zones:n,relative:r}},t}();function ln(t,e){function n(t){return t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}var r=n(e)-n(t);return Math.floor(an.fromMillis(r).as("days"))}function hn(t,e,n,r){var i=function(t,e,n){for(var r,i,a={},o=0,s=[["years",function(t,e){return e.year-t.year}],["months",function(t,e){return e.month-t.month+12*(e.year-t.year)}],["weeks",function(t,e){var n=ln(t,e);return(n-n%7)/7}],["days",ln]];o<s.length;o++){var u=s[o],c=u[0],l=u[1];if(0<=n.indexOf(c)){var h;r=c;var d,f=l(t,e);if(e<(i=t.plus(((h={})[c]=f,h))))t=t.plus(((d={})[c]=f-1,d)),--f;else t=i;a[c]=f}}return[t,a,i,r]}(t,e,n),a=i[0],o=i[1],s=i[2],u=i[3],c=e-a,l=n.filter(function(t){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(t)});if(0===l.length){var h;if(s<e)s=a.plus(((h={})[u]=1,h));s!==a&&(o[u]=(o[u]||0)+c/(s-a))}var d,f=an.fromObject(Object.assign(o,r));return 0<l.length?(d=an.fromMillis(c,r)).shiftTo.apply(d,l).plus(f):f}var dn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},fn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yn=dn.hanidec.replace(/[\[|\]]/g,"").split("");function mn(t,e){var n=t.numberingSystem;return void 0===e&&(e=""),new RegExp(""+dn[n||"latn"]+e)}var pn="missing Intl.DateTimeFormat.formatToParts support";function vn(t,n){return void 0===n&&(n=function(t){return t}),{regex:t,deser:function(t){var e=t[0];return n(function(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var n=0;n<t.length;n++){var r=t.charCodeAt(n);if(-1!==t[n].search(dn.hanidec))e+=yn.indexOf(t[n]);else for(var i in fn){var a=fn[i],o=a[0],s=a[1];o<=r&&r<=s&&(e+=r-o)}}return parseInt(e,10)}return e}(e))}}}function bn(t){return t.replace(/\./,"\\.?")}function gn(t){return t.replace(/\./,"").toLowerCase()}function wn(n,r){return null===n?null:{regex:RegExp(n.map(bn).join("|")),deser:function(t){var e=t[0];return n.findIndex(function(t){return gn(e)===gn(t)})+r}}}function kn(t,e){return{regex:t,deser:function(t){return ct(t[1],t[2])},groups:e}}function Tn(t){return{regex:t,deser:function(t){return t[0]}}}function On(e,n){function r(t){return{regex:RegExp(t.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:function(t){return t[0]},literal:!0}}var i=mn(n),a=mn(n,"{2}"),o=mn(n,"{3}"),s=mn(n,"{4}"),u=mn(n,"{6}"),c=mn(n,"{1,2}"),l=mn(n,"{1,3}"),h=mn(n,"{1,6}"),d=mn(n,"{1,9}"),f=mn(n,"{2,4}"),y=mn(n,"{4,6}"),t=function(t){if(e.literal)return r(t);switch(t.val){case"G":return wn(n.eras("short",!1),0);case"GG":return wn(n.eras("long",!1),0);case"y":return vn(h);case"yy":return vn(f,st);case"yyyy":return vn(s);case"yyyyy":return vn(y);case"yyyyyy":return vn(u);case"M":return vn(c);case"MM":return vn(a);case"MMM":return wn(n.months("short",!0,!1),1);case"MMMM":return wn(n.months("long",!0,!1),1);case"L":return vn(c);case"LL":return vn(a);case"LLL":return wn(n.months("short",!1,!1),1);case"LLLL":return wn(n.months("long",!1,!1),1);case"d":return vn(c);case"dd":return vn(a);case"o":return vn(l);case"ooo":return vn(o);case"HH":return vn(a);case"H":return vn(c);case"hh":return vn(a);case"h":return vn(c);case"mm":return vn(a);case"m":case"q":return vn(c);case"qq":return vn(a);case"s":return vn(c);case"ss":return vn(a);case"S":return vn(l);case"SSS":return vn(o);case"u":return Tn(d);case"a":return wn(n.meridiems(),0);case"kkkk":return vn(s);case"kk":return vn(f,st);case"W":return vn(c);case"WW":return vn(a);case"E":case"c":return vn(i);case"EEE":return wn(n.weekdays("short",!1,!1),1);case"EEEE":return wn(n.weekdays("long",!1,!1),1);case"ccc":return wn(n.weekdays("short",!0,!1),1);case"cccc":return wn(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return kn(new RegExp("([+-]"+c.source+")(?::("+a.source+"))?"),2);case"ZZZ":return kn(new RegExp("([+-]"+c.source+")("+a.source+")?"),2);case"z":return Tn(/[a-z_+-/]{1,256}?/i);default:return r(t)}}(e)||{invalidReason:pn};return t.token=e,t}var Sn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var En=null;function Dn(t,e){if(t.literal)return t;var n=It.macroTokenToFormatOpts(t.val);if(!n)return t;var r=It.create(e,n).formatDateTimeParts(En=En||or.fromMillis(1555555555555)).map(function(t){return function(t,e){var n=t.type,r=t.value;if("literal"===n)return{literal:!0,val:r};var i=e[n],a=Sn[n];return"object"==typeof a&&(a=a[i]),a?{literal:!1,val:a}:void 0}(t,n)});return r.includes(void 0)?t:r}function Mn(e,t,n){var r,i,a,o=(r=It.parseFormat(n),i=e,(a=Array.prototype).concat.apply(a,r.map(function(t){return Dn(t,i)}))),s=o.map(function(t){return On(t,e)}),u=s.find(function(t){return t.invalidReason});if(u)return{input:t,tokens:o,invalidReason:u.invalidReason};var c,l,h,d=["^"+(h=s).map(function(t){return t.regex}).reduce(function(t,e){return t+"("+e.source+")"},"")+"$",h],f=d[1],y=RegExp(d[0],"i"),m=function(t,e,n){var r=t.match(e);if(r){var i={},a=1;for(var o in n)if(K(n,o)){var s=n[o],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+u))),a+=u}return[r,i]}return[r,{}]}(t,y,f),p=m[0],v=m[1],b=v?(l=W((c=v).Z)?W(c.z)?null:Ft.create(c.z):new Zt(c.Z),W(c.q)||(c.M=3*(c.q-1)+1),W(c.h)||(c.h<12&&1===c.a?c.h+=12:12===c.h&&0===c.a&&(c.h=0)),0===c.G&&c.y&&(c.y=-c.y),W(c.u)||(c.S=tt(c.u)),[Object.keys(c).reduce(function(t,e){var n=function(t){switch(t){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";case"q":return"quarter";default:return null}}(e);return n&&(t[n]=c[e]),t},{}),l]):[null,null];return{input:t,tokens:o,regex:y,rawMatches:p,matches:v,result:b[0],zone:b[1]}}var Nn=[0,31,59,90,120,151,181,212,243,273,304,334],xn=[0,31,60,91,121,152,182,213,244,274,305,335];function Ln(t,e){return new Ut("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function In(t,e,n){var r=new Date(Date.UTC(t,e-1,n)).getUTCDay();return 0===r?7:r}function Un(t,e,n){return n+(nt(t)?xn:Nn)[e-1]}function Cn(t,e){var n=nt(t)?xn:Nn,r=n.findIndex(function(t){return t<e});return{month:r+1,day:e-n[r]}}function Yn(t){var e,n=t.year,r=t.month,i=t.day,a=Un(n,r,i),o=In(n,r,i),s=Math.floor((a-o+10)/7);return s<1?s=ot(e=n-1):s>ot(n)?(e=n+1,s=1):e=n,Object.assign({weekYear:e,weekNumber:s,weekday:o},ft(t))}function _n(t){var e,n=t.weekYear,r=t.weekNumber,i=t.weekday,a=In(n,1,4),o=rt(n),s=7*r+i-a-3;s<1?s+=rt(e=n-1):o<s?(e=n+1,s-=rt(n)):e=n;var u=Cn(e,s),c=u.month,l=u.day;return Object.assign({year:e,month:c,day:l},ft(t))}function An(t){var e=t.year,n=Un(e,t.month,t.day);return Object.assign({year:e,ordinal:n},ft(t))}function jn(t){var e=t.year,n=Cn(e,t.ordinal),r=n.month,i=n.day;return Object.assign({year:e,month:r,day:i},ft(t))}function Rn(t){var e=H(t.year),n=$(t.month,1,12),r=$(t.day,1,it(t.year,t.month));return e?n?!r&&Ln("day",t.day):Ln("month",t.month):Ln("year",t.year)}function Vn(t){var e=t.hour,n=t.minute,r=t.second,i=t.millisecond,a=$(e,0,23)||24===e&&0===n&&0===r&&0===i,o=$(n,0,59),s=$(r,0,59),u=$(i,0,999);return a?o?s?!u&&Ln("millisecond",i):Ln("second",r):Ln("minute",n):Ln("hour",e)}var Fn="Invalid DateTime";function zn(t){return new Ut("unsupported zone",'the zone "'+t.name+'" is not supported')}function Zn(t){return null===t.weekData&&(t.weekData=Yn(t.c)),t.weekData}function Wn(t,e){var n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new or(Object.assign({},n,e,{old:n}))}function qn(t,e,n){var r=t-60*e*1e3,i=n.offset(r);if(e===i)return[r,e];r-=60*(i-e)*1e3;var a=n.offset(r);return i===a?[r,i]:[t-60*Math.min(i,a)*1e3,Math.max(i,a)]}function Hn(t,e){t+=60*e*1e3;var n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Pn(t,e,n){return qn(at(t),e,n)}function Jn(t,e){var n=Object.keys(e.values);-1===n.indexOf("milliseconds")&&n.push("milliseconds"),e=e.shiftTo.apply(e,n);var r=t.o,i=t.c.year+e.years,a=t.c.month+e.months+3*e.quarters,o=Object.assign({},t.c,{year:i,month:a,day:Math.min(t.c.day,it(i,a))+e.days+7*e.weeks}),s=an.fromObject({hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=qn(at(o),r,t.zone),c=u[0],l=u[1];return 0!==s&&(c+=s,l=t.zone.offset(c)),{ts:c,o:l}}function Gn(t,e,n,r,i){var a=n.setZone,o=n.zone;if(t&&0!==Object.keys(t).length){var s=e||o,u=or.fromObject(Object.assign(t,n,{zone:s,setZone:void 0}));return a?u:u.setZone(o)}return or.invalid(new Ut("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Bn(t,e){return t.isValid?It.create(se.create("en-US"),{allowZ:!0,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Kn(t,e){var n=e.suppressSeconds,r=void 0!==n&&n,i=e.suppressMilliseconds,a=void 0!==i&&i,o=e.includeOffset,s=e.includeZone,u=void 0!==s&&s,c=e.spaceZone,l=void 0!==c&&c,h="HH:mm";return r&&0===t.second&&0===t.millisecond||(h+=":ss",a&&0===t.millisecond||(h+=".SSS")),(u||o)&&l&&(h+=" "),u?h+="z":o&&(h+="ZZ"),Bn(t,h)}var $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},tr=["year","month","day","hour","minute","second","millisecond"],er=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nr=["year","ordinal","hour","minute","second","millisecond"];function rr(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new y(t);return e}function ir(t,e){for(var n=0,r=tr;n<r.length;n++){var i=r[n];W(t[i])&&(t[i]=$n[i])}var a=Rn(t)||Vn(t);if(a)return or.invalid(a);var o=$t.now(),s=Pn(t,e.offset(o),e),u=s[0],c=s[1];return new or({ts:u,zone:e,o:c})}function ar(e,n,r){function t(t,e){return t=et(t,a||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(t,e)}function i(t){return r.calendary?n.hasSame(e,t)?0:n.startOf(t).diff(e.startOf(t),t).get(t):n.diff(e,t).get(t)}var a=!!W(r.round)||r.round;if(r.unit)return t(i(r.unit),r.unit);var o=r.units,s=Array.isArray(o),u=0;for(o=s?o:o[Symbol.iterator]();;){var c;if(s){if(u>=o.length)break;c=o[u++]}else{if((u=o.next()).done)break;c=u.value}var l=c,h=i(l);if(1<=Math.abs(h))return t(h,l)}return t(0,r.units[r.units.length-1])}var or=function(){function I(t){var e=t.zone||$t.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Ut("invalid input"):null)||(e.isValid?null:zn(e));this.ts=W(t.ts)?$t.now():t.ts;var r=null,i=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var a=[t.old.c,t.old.o];r=a[0],i=a[1]}else r=Hn(this.ts,e.offset(this.ts)),r=(n=Number.isNaN(r.year)?new Ut("invalid input"):null)?null:r,i=n?null:e.offset(this.ts);this._zone=e,this.loc=t.loc||se.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}I.local=function(t,e,n,r,i,a,o){return W(t)?new I({ts:$t.now()}):ir({year:t,month:e,day:n,hour:r,minute:i,second:a,millisecond:o},$t.defaultZone)},I.utc=function(t,e,n,r,i,a,o){return W(t)?new I({ts:$t.now(),zone:Zt.utcInstance}):ir({year:t,month:e,day:n,hour:r,minute:i,second:a,millisecond:o},Zt.utcInstance)},I.fromJSDate=function(t,e){void 0===e&&(e={});var n,r=(n=t,"[object Date]"===Object.prototype.toString.call(n)?t.valueOf():NaN);if(Number.isNaN(r))return I.invalid("invalid input");var i=qt(e.zone,$t.defaultZone);return i.isValid?new I({ts:r,zone:i,loc:se.fromObject(e)}):I.invalid(zn(i))},I.fromMillis=function(t,e){if(void 0===e&&(e={}),q(t))return t<-864e13||864e13<t?I.invalid("Timestamp out of range"):new I({ts:t,zone:qt(e.zone,$t.defaultZone),loc:se.fromObject(e)});throw new p("fromMillis requires a numerical input")},I.fromSeconds=function(t,e){if(void 0===e&&(e={}),q(t))return new I({ts:1e3*t,zone:qt(e.zone,$t.defaultZone),loc:se.fromObject(e)});throw new p("fromSeconds requires a numerical input")},I.fromObject=function(t){var e=qt(t.zone,$t.defaultZone);if(!e.isValid)return I.invalid(zn(e));var n=$t.now(),r=e.offset(n),i=ht(t,rr,["zone","locale","outputCalendar","numberingSystem"]),a=!W(i.ordinal),o=!W(i.year),s=!W(i.month)||!W(i.day),u=o||s,c=i.weekYear||i.weekNumber,l=se.fromObject(t);if((u||a)&&c)throw new U("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new U("Can't mix ordinal dates with month/day");var h,d,f=c||i.weekday&&!u,y=Hn(n,r);f?(h=er,d=Qn,y=Yn(y)):a?(h=nr,d=Xn,y=An(y)):(h=tr,d=$n);var m=!1,p=h,v=Array.isArray(p),b=0;for(p=v?p:p[Symbol.iterator]();;){var g;if(v){if(b>=p.length)break;g=p[b++]}else{if((b=p.next()).done)break;g=b.value}var w=g;W(i[w])?i[w]=m?d[w]:y[w]:m=!0}var k,T,O,S,E,D,M,N=(f?(E=H((S=i).weekYear),D=$(S.weekNumber,1,ot(S.weekYear)),M=$(S.weekday,1,7),E?D?!M&&Ln("weekday",S.weekday):Ln("week",S.week):Ln("weekYear",S.weekYear)):a?(T=H((k=i).year),O=$(k.ordinal,1,rt(k.year)),T?!O&&Ln("ordinal",k.ordinal):Ln("year",k.year)):Rn(i))||Vn(i);if(N)return I.invalid(N);var x=Pn(f?_n(i):a?jn(i):i,r,e),L=new I({ts:x[0],zone:e,o:x[1],loc:l});return i.weekday&&u&&t.weekday!==L.weekday?I.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+L.toISO()):L},I.fromISO=function(t,e){void 0===e&&(e={});var n=le(t,[Ae,Fe],[je,ze],[Re,Ze],[Ve,We]);return Gn(n[0],n[1],e,"ISO 8601",t)},I.fromRFC2822=function(t,e){void 0===e&&(e={});var n=le(t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[xe,Le]);return Gn(n[0],n[1],e,"RFC 2822",t)},I.fromHTTP=function(t,e){void 0===e&&(e={});var n=le(t,[Ie,Ye],[Ue,Ye],[Ce,_e]);return Gn(n[0],n[1],e,"HTTP",e)},I.fromFormat=function(t,e,n){if(void 0===n&&(n={}),W(t)||W(e))throw new p("fromFormat requires an input string and a format");var r,i=n.locale,a=void 0===i?null:i,o=n.numberingSystem,s=void 0===o?null:o,u=se.fromOpts({locale:a,numberingSystem:s,defaultToEN:!0}),c=[(r=Mn(u,t,e)).result,r.zone,r.invalidReason],l=c[0],h=c[1],d=c[2];return d?I.invalid(d):Gn(l,h,n,"format "+e,t)},I.fromString=function(t,e,n){return void 0===n&&(n={}),I.fromFormat(t,e,n)},I.fromSQL=function(t,e){void 0===e&&(e={});var n=le(t,[qe,Pe],[He,Je]);return Gn(n[0],n[1],e,"SQL",t)},I.invalid=function(t,e){if(void 0===e&&(e=null),!t)throw new p("need to specify a reason the DateTime is invalid");var n=t instanceof Ut?t:new Ut(t,e);if($t.throwOnInvalid)throw new h(n);return new I({invalid:n})},I.isDateTime=function(t){return t&&t.isLuxonDateTime||!1};var t=I.prototype;return t.get=function(t){return this[t]},t.resolvedLocaleOpts=function(t){void 0===t&&(t={});var e=It.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},t.toUTC=function(t,e){return void 0===t&&(t=0),void 0===e&&(e={}),this.setZone(Zt.instance(t),e)},t.toLocal=function(){return this.setZone($t.defaultZone)},t.setZone=function(t,e){var n=void 0===e?{}:e,r=n.keepLocalTime,i=void 0!==r&&r,a=n.keepCalendarTime,o=void 0!==a&&a;if((t=qt(t,$t.defaultZone)).equals(this.zone))return this;if(t.isValid){var s=this.ts;if(i||o){var u=this.o-t.offset(this.ts);s=Pn(this.toObject(),u,t)[0]}return Wn(this,{ts:s,zone:t})}return I.invalid(zn(t))},t.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,r=e.numberingSystem,i=e.outputCalendar,a=this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i});return Wn(this,{loc:a})},t.setLocale=function(t){return this.reconfigure({locale:t})},t.set=function(t){if(!this.isValid)return this;var e,n=ht(t,rr,[]);!W(n.weekYear)||!W(n.weekNumber)||!W(n.weekday)?e=_n(Object.assign(Yn(this.c),n)):W(n.ordinal)?(e=Object.assign(this.toObject(),n),W(n.day)&&(e.day=Math.min(it(e.year,e.month),e.day))):e=jn(Object.assign(An(this.c),n));var r=Pn(e,this.o,this.zone);return Wn(this,{ts:r[0],o:r[1]})},t.plus=function(t){return this.isValid?Wn(this,Jn(this,on(t))):this},t.minus=function(t){return this.isValid?Wn(this,Jn(this,on(t).negate())):this},t.startOf=function(t){if(!this.isValid)return this;var e={},n=an.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);e.month=3*(r-1)+1}return this.set(e)},t.endOf=function(t){var e;return this.isValid?this.plus(((e={})[t]=1,e)).startOf(t).minus(1):this},t.toFormat=function(t,e){return void 0===e&&(e={}),this.isValid?It.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Fn},t.toLocaleString=function(t){return void 0===t&&(t=w),this.isValid?It.create(this.loc.clone(t),t).formatDateTime(this):Fn},t.toLocaleParts=function(t){return void 0===t&&(t={}),this.isValid?It.create(this.loc.clone(t),t).formatDateTimeParts(this):[]},t.toISO=function(t){return void 0===t&&(t={}),this.isValid?this.toISODate()+"T"+this.toISOTime(t):null},t.toISODate=function(){var t="yyyy-MM-dd";return 9999<this.year&&(t="+"+t),Bn(this,t)},t.toISOWeekDate=function(){return Bn(this,"kkkk-'W'WW-c")},t.toISOTime=function(t){var e=void 0===t?{}:t,n=e.suppressMilliseconds,r=void 0!==n&&n,i=e.suppressSeconds,a=void 0!==i&&i,o=e.includeOffset;return Kn(this,{suppressSeconds:a,suppressMilliseconds:r,includeOffset:void 0===o||o})},t.toRFC2822=function(){return Bn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ")},t.toHTTP=function(){return Bn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Bn(this,"yyyy-MM-dd")},t.toSQLTime=function(t){var e=void 0===t?{}:t,n=e.includeOffset,r=void 0===n||n,i=e.includeZone;return Kn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(t){return void 0===t&&(t={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(t):null},t.toString=function(){return this.isValid?this.toISO():Fn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(t,e,n){if(void 0===e&&(e="milliseconds"),void 0===n&&(n={}),!this.isValid||!t.isValid)return an.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),a=(r=e,Array.isArray(r)?r:[r]).map(an.normalizeUnit),o=t.valueOf()>this.valueOf(),s=hn(o?this:t,o?t:this,a,i);return o?s.negate():s},t.diffNow=function(t,e){return void 0===t&&(t="milliseconds"),void 0===e&&(e={}),this.diff(I.local(),t,e)},t.until=function(t){return this.isValid?un.fromDateTimes(this,t):this},t.hasSame=function(t,e){if(!this.isValid)return!1;if("millisecond"===e)return this.valueOf()===t.valueOf();var n=t.valueOf();return this.startOf(e)<=n&&n<=this.endOf(e)},t.equals=function(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var e=t.base||I.fromObject({zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;return ar(e,this.plus(n),Object.assign(t,{numeric:"always",units:["years","months","days","hours","minutes","seconds"]}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ar(t.base||I.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},I.min=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.every(I.isDateTime))throw new p("min requires all arguments be DateTimes");return G(e,function(t){return t.valueOf()},Math.min)},I.max=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.every(I.isDateTime))throw new p("max requires all arguments be DateTimes");return G(e,function(t){return t.valueOf()},Math.max)},I.fromFormatExplain=function(t,e,n){void 0===n&&(n={});var r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a;return Mn(se.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),t,e)},I.fromStringExplain=function(t,e,n){return void 0===n&&(n={}),I.fromFormatExplain(t,e,n)},i(I,[{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?Zn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Zn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Zn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?An(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?cn.months("short",{locale:this.locale})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?cn.months("long",{locale:this.locale})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?cn.weekdays("short",{locale:this.locale})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?cn.weekdays("long",{locale:this.locale})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o: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 nt(this.year)}},{key:"daysInMonth",get:function(){return it(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?rt(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ot(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return w}},{key:"DATE_MED",get:function(){return k}},{key:"DATE_FULL",get:function(){return T}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return S}},{key:"TIME_WITH_SECONDS",get:function(){return E}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return D}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return M}},{key:"TIME_24_SIMPLE",get:function(){return N}},{key:"TIME_24_WITH_SECONDS",get:function(){return x}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return L}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return C}},{key:"DATETIME_SHORT",get:function(){return Y}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return _}},{key:"DATETIME_MED",get:function(){return A}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return R}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_HUGE",get:function(){return z}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Z}}]),I}();function sr(t){if(or.isDateTime(t))return t;if(t&&t.valueOf&&q(t.valueOf()))return or.fromJSDate(t);if(t&&"object"==typeof t)return or.fromObject(t);throw new p("Unknown datetime argument: "+t+", of type "+typeof t)}e.DateTime=or,e.Duration=an,e.FixedOffsetZone=Zt,e.IANAZone=Ft,e.Info=cn,e.Interval=un,e.InvalidZone=Wt,e.LocalZone=_t,e.Settings=$t,e.Zone=Ct},function(t,e,n){"use strict";n.r(e);var r=["MO","TU","WE","TH","FR","SA","SU"],y=(i.fromStr=function(t){return new i(r.indexOf(t))},i.prototype.nth=function(t){return this.n===t?this:new i(this.weekday,t)},i.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},i.prototype.toString=function(){var t=r[this.weekday];return this.n&&(t=(0<this.n?"+":"")+String(this.n)+t),t},i.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},i);function i(t,e){if(0===e)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=e}function a(t,e){void 0===e&&(e=t),1===arguments.length&&(e=t,t=0);for(var n=[],r=t;r<e;r++)n.push(r);return n}function M(t,e){var n=0,r=[];if(p(t))for(;n<e;n++)r[n]=[].concat(t);else for(;n<e;n++)r[n]=t;return r}var S=function(t){return null!=t},m=function(t){return"number"==typeof t},c=function(t){return 0<=r.indexOf(t)},p=Array.isArray;function o(t,e,n){void 0===n&&(n=" ");var r=String(t);return e>>=0,r.length>e?String(r):((e-=r.length)>n.length&&(n+=M(n,e/n.length)),n.slice(0,e)+String(r))}function u(t,e){return{div:Math.floor(t/e),mod:x(t,e)}}function N(t){return!S(t)||0===t.length}var s,l,d=function(t,e,n){var r=t.split(e);return n?r.slice(0,n).concat([r.slice(n).join(e)]):r},x=function(t,e){var n=t%e;return n*e<0?n+e:n},E=function(t){return!N(t)},L=function(t,e){return E(t)&&-1!==t.indexOf(e)};(l=s=s||{}).MONTH_DAYS=[31,28,31,30,31,30,31,31,30,31,30,31],l.ONE_DAY=864e5,l.MAXYEAR=9999,l.ORDINAL_BASE=new Date(Date.UTC(1970,0,1)),l.PY_WEEKDAYS=[6,0,1,2,3,4,5],l.getYearDay=function(t){var e=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());return Math.ceil((e.valueOf()-new Date(t.getUTCFullYear(),0,1).valueOf())/l.ONE_DAY)+1},l.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},l.isDate=function(t){return t instanceof Date},l.isValidDate=function(t){return l.isDate(t)&&!isNaN(t.getTime())},l.tzOffset=function(t){return 60*t.getTimezoneOffset()*1e3},l.daysBetween=function(t,e){var n=t.getTime()-l.tzOffset(t)-(e.getTime()-l.tzOffset(e));return Math.round(n/l.ONE_DAY)},l.toOrdinal=function(t){return l.daysBetween(t,l.ORDINAL_BASE)},l.fromOrdinal=function(t){return new Date(l.ORDINAL_BASE.getTime()+t*l.ONE_DAY)},l.getMonthDays=function(t){var e=t.getUTCMonth();return 1===e&&l.isLeapYear(t.getUTCFullYear())?29:l.MONTH_DAYS[e]},l.getWeekday=function(t){return l.PY_WEEKDAYS[t.getUTCDay()]},l.monthRange=function(t,e){var n=new Date(Date.UTC(t,e,1));return[l.getWeekday(n),l.getMonthDays(n)]},l.combine=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},l.clone=function(t){return new Date(t.getTime())},l.cloneDates=function(t){for(var e=[],n=0;n<t.length;n++)e.push(l.clone(t[n]));return e},l.sort=function(t){t.sort(function(t,e){return t.getTime()-e.getTime()})},l.timeToUntilString=function(t,e){void 0===e&&(e=!0);var n=new Date(t);return[o(n.getUTCFullYear().toString(),4,"0"),o(n.getUTCMonth()+1,2,"0"),o(n.getUTCDate(),2,"0"),"T",o(n.getUTCHours(),2,"0"),o(n.getUTCMinutes(),2,"0"),o(n.getUTCSeconds(),2,"0"),e?"Z":""].join("")},l.untilStringToDate=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(t);if(!e)throw new Error("Invalid UNTIL value: "+t);return new Date(Date.UTC(parseInt(e[1],10),parseInt(e[2],10)-1,parseInt(e[3],10),parseInt(e[5],10)||0,parseInt(e[6],10)||0,parseInt(e[7],10)||0))};var I=s;function h(t,e){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=e,"between"===t?(this.maxDate=e.inc?e.before:new Date(e.before.getTime()-1),this.minDate=e.inc?e.after:new Date(e.after.getTime()+1)):"before"===t?this.maxDate=e.inc?e.dt:new Date(e.dt.getTime()-1):"after"===t&&(this.minDate=e.inc?e.dt:new Date(e.dt.getTime()+1))}var f=(h.prototype.accept=function(t){++this.total;var e=this.minDate&&t<this.minDate,n=this.maxDate&&t>this.maxDate;if("between"===this.method){if(e)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!e||(this.add(t),!1);return this.add(t)},h.prototype.add=function(t){return this._result.push(t),!0},h.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}},h.prototype.clone=function(){return new h(this.method,this.args)},h),v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
  2. /*! *****************************************************************************
  3. Copyright (c) Microsoft Corporation. All rights reserved.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  5. this file except in compliance with the License. You may obtain a copy of the
  6. License at http://www.apache.org/licenses/LICENSE-2.0
  7. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  8. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  9. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  10. MERCHANTABLITY OR NON-INFRINGEMENT.
  11. See the Apache Version 2.0 License for specific language governing permissions
  12. and limitations under the License.
  13. ***************************************************************************** */function b(t,e){function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var g,U=function(){return(U=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function w(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function k(t,e,n){var r=g.call(this,t,e)||this;return r.iterator=n,r}function T(t,e){return-1!==t.indexOf(e)}function O(t){return t.toString()}function D(t,e,n){return e+" "+n+", "+t}var C=(b(k,g=f),k.prototype.add=function(t){return!!this.iterator(t,this._result.length)&&(this._result.push(t),!0)},k),Y={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};function _(t,e,n,r){if(void 0===e&&(e=O),void 0===n&&(n=Y),void 0===r&&(r=D),this.text=[],this.language=n||Y,this.gettext=e,this.dateFormatter=r,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);i.sort(function(t,e){return t-e}),a.sort(function(t,e){return e-t}),this.bymonthday=i.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(S(this.origOptions.byweekday)){var o=p(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],s=String(o);this.byweekday={allWeeks:o.filter(function(t){return!t.n}),someWeeks:o.filter(function(t){return Boolean(t.n)}),isWeekdays:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1===s.indexOf("SA")&&-1===s.indexOf("SU"),isEveryDay:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1!==s.indexOf("SA")&&-1!==s.indexOf("SU")};var u=function(t,e){return t.weekday-e.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}var A,j,R=(_.isFullyConvertible=function(t){if(!(t.options.freq in _.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var e in t.origOptions){if(T(["dtstart","wkst","freq"],e))return!0;if(!T(_.IMPLEMENTED[t.options.freq],e))return!1}return!0},_.prototype.isFullyConvertible=function(){return _.isFullyConvertible(this.rrule)},_.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in _.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[$t.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var e=this.options.until;this.add(this.dateFormatter(e.getUTCFullYear(),this.language.monthNames[e.getUTCMonth()],e.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},_.prototype.HOURLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},_.prototype.MINUTELY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},_.prototype.DAILY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},_.prototype.WEEKLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(1===this.options.interval&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},_.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},_.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},_.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},_.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},_.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},_.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},_.prototype.nth=function(t){var e,n;t=parseInt(t.toString(),10);var r=this.gettext;if(-1===t)return r("last");switch(n=Math.abs(t)){case 1:case 21:case 31:e=n+r("st");break;case 2:case 22:e=n+r("nd");break;case 3:case 23:e=n+r("rd");break;default:e=n+r("th")}return t<0?e+" "+r("last"):e},_.prototype.monthtext=function(t){return this.language.monthNames[t-1]},_.prototype.weekdaytext=function(t){var e=m(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[e]},_.prototype.plural=function(t){return t%100!=1},_.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},_.prototype.list=function(t,e,n,r){function i(t){return e&&e.call(a,t)}void 0===r&&(r=","),p(t)||(t=[t]),e=e||function(t){return t.toString()};var a=this;return n?function(t,e,n){for(var r="",i=0;i<t.length;i++)0!==i&&(i===t.length-1?r+=" "+n+" ":r+=e+" "),r+=t[i];return r}(t.map(i),r,n):t.map(i).join(r+" ")},_),V=(F.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},F.prototype.isDone=function(){return this.done&&null===this.symbol},F.prototype.nextSymbol=function(){var t,e;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var n in t=null,this.rules){var r=this.rules[n].exec(this.text);r&&(null===t||r[0].length>t[0].length)&&(t=r,e=n)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===e);return this.symbol=e,this.value=t,!0},F.prototype.accept=function(t){if(this.symbol!==t)return!1;if(this.value){var e=this.value;return this.nextSymbol(),e}return this.nextSymbol(),!0},F.prototype.acceptNumber=function(){return this.accept("number")},F.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},F);function F(t){this.done=!0,this.rules=t}function z(t,e){void 0===e&&(e=Y);var o={},s=new V(e.tokens);return s.start(t)?(function(){s.expect("every");var t=s.acceptNumber();t&&(o.interval=parseInt(t[0],10));if(s.isDone())throw new Error("Unexpected end");switch(s.symbol){case"day(s)":o.freq=$t.DAILY,s.nextSymbol()&&(function(){if(!s.accept("at"))return;do{var t=s.acceptNumber();if(!t)throw new Error("Unexpected symbol "+s.symbol+", expected hour");for(o.byhour=[parseInt(t[0],10)];s.accept("comma");){if(!(t=s.acceptNumber()))throw new Error("Unexpected symbol "+s.symbol+"; expected hour");o.byhour.push(parseInt(t[0],10))}}while(s.accept("comma")||s.accept("at"))}(),a());break;case"weekday(s)":o.freq=$t.WEEKLY,o.byweekday=[$t.MO,$t.TU,$t.WE,$t.TH,$t.FR],s.nextSymbol(),a();break;case"week(s)":o.freq=$t.WEEKLY,s.nextSymbol()&&(i(),a());break;case"hour(s)":o.freq=$t.HOURLY,s.nextSymbol()&&(i(),a());break;case"minute(s)":o.freq=$t.MINUTELY,s.nextSymbol()&&(i(),a());break;case"month(s)":o.freq=$t.MONTHLY,s.nextSymbol()&&(i(),a());break;case"year(s)":o.freq=$t.YEARLY,s.nextSymbol()&&(i(),a());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":o.freq=$t.WEEKLY;var e=s.symbol.substr(0,2).toUpperCase();if(o.byweekday=[$t[e]],!s.nextSymbol())return;for(;s.accept("comma");){if(s.isDone())throw new Error("Unexpected end");var n=c();if(!n)throw new Error("Unexpected symbol "+s.symbol+", expected weekday");o.byweekday.push($t[n]),s.nextSymbol()}!function(){s.accept("on"),s.accept("the");var t=l();if(!t)return;o.bymonthday=[t],s.nextSymbol();for(;s.accept("comma");){if(!(t=l()))throw new Error("Unexpected symbol "+s.symbol+"; expected monthday");o.bymonthday.push(t),s.nextSymbol()}}(),a();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(o.freq=$t.YEARLY,o.bymonth=[u()],!s.nextSymbol())return;for(;s.accept("comma");){if(s.isDone())throw new Error("Unexpected end");var r=u();if(!r)throw new Error("Unexpected symbol "+s.symbol+", expected month");o.bymonth.push(r),s.nextSymbol()}i(),a();break;default:throw new Error("Unknown symbol")}}(),o):null;function i(){var t=s.accept("on"),e=s.accept("the");if(t||e)do{var n=l(),r=c(),i=u();if(n)r?(s.nextSymbol(),o.byweekday||(o.byweekday=[]),o.byweekday.push($t[r].nth(n))):(o.bymonthday||(o.bymonthday=[]),o.bymonthday.push(n),s.accept("day(s)"));else if(r)s.nextSymbol(),o.byweekday||(o.byweekday=[]),o.byweekday.push($t[r]);else if("weekday(s)"===s.symbol)s.nextSymbol(),o.byweekday||(o.byweekday=[$t.MO,$t.TU,$t.WE,$t.TH,$t.FR]);else if("week(s)"===s.symbol){s.nextSymbol();var a=s.acceptNumber();if(!a)throw new Error("Unexpected symbol "+s.symbol+", expected week number");for(o.byweekno=[parseInt(a[0],10)];s.accept("comma");){if(!(a=s.acceptNumber()))throw new Error("Unexpected symbol "+s.symbol+"; expected monthday");o.byweekno.push(parseInt(a[0],10))}}else{if(!i)return;s.nextSymbol(),o.bymonth||(o.bymonth=[]),o.bymonth.push(i)}}while(s.accept("comma")||s.accept("the")||s.accept("on"))}function u(){switch(s.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function c(){switch(s.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return s.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(s.symbol){case"last":return s.nextSymbol(),-1;case"first":return s.nextSymbol(),1;case"second":return s.nextSymbol(),s.accept("last")?-2:2;case"third":return s.nextSymbol(),s.accept("last")?-3:3;case"nth":var t=parseInt(s.value[1],10);if(t<-366||366<t)throw new Error("Nth out of range: "+t);return s.nextSymbol(),s.accept("last")?-t:t;default:return!1}}function a(){if("until"===s.symbol){var t=Date.parse(s.text);if(!t)throw new Error("Cannot parse until date:"+s.text);o.until=new Date(t)}else s.accept("for")&&(o.count=parseInt(s.value[0],10),s.expect("number"))}}function Z(t){return t<A.HOURLY}
  14. /*!
  15. * rrule.js - Library for working with recurrence rules for calendar dates.
  16. * https://github.com/jakubroztocil/rrule
  17. *
  18. * Copyright 2010, Jakub Roztocil and Lars Schoning
  19. * Licenced under the BSD licence.
  20. * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
  21. *
  22. */(j=A=A||{})[j.YEARLY=0]="YEARLY",j[j.MONTHLY=1]="MONTHLY",j[j.WEEKLY=2]="WEEKLY",j[j.DAILY=3]="DAILY",j[j.HOURLY=4]="HOURLY",j[j.MINUTELY=5]="MINUTELY",j[j.SECONDLY=6]="SECONDLY";var W=["count","until","interval","byweekday","bymonthday","bymonth"];R.IMPLEMENTED=[],R.IMPLEMENTED[A.HOURLY]=W,R.IMPLEMENTED[A.MINUTELY]=W,R.IMPLEMENTED[A.DAILY]=["byhour"].concat(W),R.IMPLEMENTED[A.WEEKLY]=W,R.IMPLEMENTED[A.MONTHLY]=W,R.IMPLEMENTED[A.YEARLY]=["byweekno","byyearday"].concat(W);var q=R.isFullyConvertible,H=(P.prototype.getHours=function(){return this.hour},P.prototype.getMinutes=function(){return this.minute},P.prototype.getSeconds=function(){return this.second},P.prototype.getMilliseconds=function(){return this.millisecond},P.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},P);function P(t,e,n,r){this.hour=t,this.minute=e,this.second=n,this.millisecond=r||0}var J,G=(b(B,J=H),B.fromDate=function(t){return new this(t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.valueOf()%1e3)},B.prototype.getWeekday=function(){return s.getWeekday(new Date(this.getTime()))},B.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},B.prototype.getDay=function(){return this.day},B.prototype.getMonth=function(){return this.month},B.prototype.getYear=function(){return this.year},B.prototype.addYears=function(t){this.year+=t},B.prototype.addMonths=function(t){if(this.month+=t,12<this.month){var e=Math.floor(this.month/12),n=x(this.month,12);this.month=n,this.year+=e,0===this.month&&(this.month=12,--this.year)}},B.prototype.addWeekly=function(t,e){e>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-e))+7*t:this.day+=-(this.getWeekday()-e)+7*t,this.fixDay()},B.prototype.addDaily=function(t){this.day+=t,this.fixDay()},B.prototype.addHours=function(t,e,n){for(e&&(this.hour+=Math.floor((23-this.hour)/t)*t);;){this.hour+=t;var r=u(this.hour,24),i=r.div,a=r.mod;if(i&&(this.hour=a,this.addDaily(i)),N(n)||L(n,this.hour))break}},B.prototype.addMinutes=function(t,e,n,r){for(e&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/t)*t);;){this.minute+=t;var i=u(this.minute,60),a=i.div,o=i.mod;if(a&&(this.minute=o,this.addHours(a,!1,n)),(N(n)||L(n,this.hour))&&(N(r)||L(r,this.minute)))break}},B.prototype.addSeconds=function(t,e,n,r,i){for(e&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/t)*t);;){this.second+=t;var a=u(this.second,60),o=a.div,s=a.mod;if(o&&(this.second=s,this.addMinutes(o,!1,n,r)),(N(n)||L(n,this.hour))&&(N(r)||L(r,this.minute))&&(N(i)||L(i,this.second)))break}},B.prototype.fixDay=function(){if(!(this.day<=28)){var t=s.monthRange(this.year,this.month-1)[1];if(!(this.day<=t))for(;this.day>t;){if(this.day-=t,++this.month,13===this.month&&(this.month=1,++this.year,this.year>s.MAXYEAR))return;t=s.monthRange(this.year,this.month-1)[1]}}},B.prototype.add=function(t,e){var n=t.freq,r=t.interval,i=t.wkst,a=t.byhour,o=t.byminute,s=t.bysecond;switch(n){case A.YEARLY:return this.addYears(r);case A.MONTHLY:return this.addMonths(r);case A.WEEKLY:return this.addWeekly(r,i);case A.DAILY:return this.addDaily(r);case A.HOURLY:return this.addHours(r,e,a);case A.MINUTELY:return this.addMinutes(r,e,a,o);case A.SECONDLY:return this.addSeconds(r,e,a,o,s)}},B);function B(t,e,n,r,i,a,o){var s=J.call(this,r,i,a,o)||this;return s.year=t,s.month=e,s.day=n,s}function K(t){for(var e=[],n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];L(At,i)||e.push(i),I.isDate(t[i])&&!I.isValidDate(t[i])&&e.push(i)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return U({},t)}function $(t){var e=t.split("\n").map(X).filter(function(t){return null!==t});return U(U({},e[0]),e[1])}function Q(t){var e={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!n)return e;n[0];var r=n[1],i=n[2];return r&&(e.tzid=r),e.dtstart=I.untilStringToDate(i),e}function X(t){if(!(t=t.replace(/^\s+|\s+$/,"")).length)return null;var e=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!e)return tt(t);e[0];var n=e[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return tt(t);case"DTSTART":return Q(t);default:throw new Error("Unsupported RFC prop "+n+" in "+t)}}function tt(u){var c=Q(u.replace(/^RRULE:/i,""));return u.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(t){var e,n=t.split("="),r=n[0],i=n[1];switch(r.toUpperCase()){case"FREQ":c.freq=A[i.toUpperCase()];break;case"WKST":c.wkst=Yt[i.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var a=-1===(e=i).indexOf(",")?et(e):e.split(",").map(et),o=r.toLowerCase();c[o]=a;break;case"BYWEEKDAY":case"BYDAY":c.byweekday=i.split(",").map(function(t){if(2===t.length)return Yt[t];var e=t.match(/^([+-]?\d{1,2})([A-Z]{2})$/),n=Number(e[1]),r=e[2],i=Yt[r].weekday;return new y(i,n)});break;case"DTSTART":case"TZID":var s=Q(u);c.tzid=s.tzid,c.dtstart=s.dtstart;break;case"UNTIL":c.until=I.untilStringToDate(i);break;case"BYEASTER":c.byeaster=Number(i);break;default:throw new Error("Unknown RRULE property '"+r+"'")}}),c}function et(t){return/^[+-]?\d+$/.test(t)?Number(t):t}var nt=n(0),rt=(Object.defineProperty(it.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!0,configurable:!0}),it.prototype.toString=function(){var t=I.timeToUntilString(this.date.getTime(),this.isUTC);return this.isUTC?":"+t:";TZID="+this.tzid+":"+t},it.prototype.getTime=function(){return this.date.getTime()},it.prototype.rezonedDate=function(){if(this.isUTC)return this.date;try{return nt.DateTime.fromJSDate(this.date).setZone(this.tzid,{keepLocalTime:!0}).toJSDate()}catch(t){return t instanceof TypeError&&console.error("Using TZID without Luxon available is unsupported. Returned times are in UTC, not the requested time zone"),this.date}},it);function it(t,e){this.date=t,this.tzid=e}function at(t){for(var e,n=[],r="",i=Object.keys(t),a=Object.keys(_t),o=0;o<i.length;o++)if("tzid"!==i[o]&&L(a,i[o])){var s=i[o].toUpperCase(),u=t[i[o]],c="";if(S(u)&&(!p(u)||u.length)){switch(s){case"FREQ":c=Rt.FREQUENCIES[t.freq];break;case"WKST":c=m(u)?new y(u).toString():u.toString();break;case"BYWEEKDAY":s="BYDAY",c=(p(e=u)?e:[e]).map(function(t){return t instanceof y?t:p(t)?new y(t[0],t[1]):new y(t)}).toString();break;case"DTSTART":r=ot(u,t.tzid);break;case"UNTIL":c=I.timeToUntilString(u,!t.tzid);break;default:if(p(u)){for(var l=[],h=0;h<u.length;h++)l[h]=String(u[h]);c=l.toString()}else c=String(u)}c&&n.push([s,c])}}var d=n.map(function(t){return t[0]+"="+t[1].toString()}).join(";"),f="";return""!==d&&(f="RRULE:"+d),[r,f].filter(function(t){return!!t}).join("\n")}function ot(t,e){return t?"DTSTART"+new rt(new Date(t),e).toString():""}var st=(ut.prototype._cacheAdd=function(t,e,n){e=e&&(e instanceof Date?I.clone(e):I.cloneDates(e)),"all"===t?this.all=e:(n._value=e,this[t].push(n))},ut.prototype._cacheGet=function(t,r){function e(t){for(var e=0;e<i.length;e++){var n=i[e];if(String(r[n])!==String(t[n]))return!0}return!1}var n=!1,i=r?Object.keys(r):[],a=this[t];if("all"===t)n=this.all;else if(p(a))for(var o=0;o<a.length;o++){var s=a[o];if(!i.length||!e(s)){n=s._value;break}}if(!n&&this.all){var u=new f(t,r);for(o=0;o<this.all.length&&u.accept(this.all[o]);o++);n=u.getValue(),this._cacheAdd(t,n,r)}return p(n)?I.cloneDates(n):n instanceof Date?I.clone(n):n},ut);function ut(){this.all=!1,this.before=[],this.after=[],this.between=[]}var ct=w(M(1,31),M(2,28),M(3,31),M(4,30),M(5,31),M(6,30),M(7,31),M(8,31),M(9,30),M(10,31),M(11,30),M(12,31),M(1,7)),lt=w(M(1,31),M(2,29),M(3,31),M(4,30),M(5,31),M(6,30),M(7,31),M(8,31),M(9,30),M(10,31),M(11,30),M(12,31),M(1,7)),ht=a(1,29),dt=a(1,30),ft=a(1,31),yt=a(1,32),mt=w(yt,dt,yt,ft,yt,ft,yt,yt,ft,yt,ft,yt,yt.slice(0,7)),pt=w(yt,ht,yt,ft,yt,ft,yt,yt,ft,yt,ft,yt,yt.slice(0,7)),vt=a(-28,0),bt=a(-29,0),gt=a(-30,0),wt=a(-31,0),kt=w(wt,bt,wt,gt,wt,gt,wt,wt,gt,wt,gt,wt,wt.slice(0,7)),Tt=w(wt,vt,wt,gt,wt,gt,wt,wt,gt,wt,gt,wt,wt.slice(0,7)),Ot=[0,31,60,91,121,152,182,213,244,274,305,335,366],St=[0,31,59,90,120,151,181,212,243,273,304,334,365],Et=function(){for(var t=[],e=0;e<55;e++)t=t.concat(a(7));return t}();function Dt(t,e){var n,r,i,a,o,s,u=new Date(Date.UTC(t,0,1)),c=I.isLeapYear(t)?366:365,l=I.isLeapYear(t+1)?366:365,h=I.toOrdinal(u),d=I.getWeekday(u),f=U(U({yearlen:c,nextyearlen:l,yearordinal:h,yearweekday:d},(n=t,r=I.isLeapYear(n)?366:365,i=new Date(Date.UTC(n,0,1)),a=I.getWeekday(i),365!=r?{mmask:lt,mdaymask:mt,nmdaymask:kt,wdaymask:Et.slice(a),mrange:Ot}:{mmask:ct,mdaymask:pt,nmdaymask:Tt,wdaymask:Et.slice(a),mrange:St})),{wnomask:null});if(N(e.byweekno))return f;f.wnomask=M(0,7+c);var y=o=x(7-d+e.wkst,7);s=4<=y?(y=0,f.yearlen+x(d-e.wkst,7)):c-y;for(var m=Math.floor(s/7),p=x(s,7),v=Math.floor(m+p/4),b=0;b<e.byweekno.length;b++){var g=e.byweekno[b];if(g<0&&(g+=v+1),0<g&&g<=v){var w=void 0;1<g?(w=y+7*(g-1),y!==o&&(w-=7-o)):w=y;for(var k=0;k<7&&(f.wnomask[w]=1,w++,f.wdaymask[w]!==e.wkst);k++);}}if(L(e.byweekno,1)){w=y+7*v;if(y!==o&&(w-=7-o),w<c)for(b=0;b<7&&(w+=f.wnomask[w]=1,f.wdaymask[w]!==e.wkst);b++);}if(y){var T=void 0;if(L(e.byweekno,-1))T=-1;else{var O=I.getWeekday(new Date(Date.UTC(t-1,0,1))),S=x(7-O.valueOf()+e.wkst,7),E=I.isLeapYear(t-1)?366:365,D=void 0;D=4<=S?(S=0,E+x(O-e.wkst,7)):c-y,T=Math.floor(52+x(D,7)/4)}if(L(e.byweekno,T))for(w=0;w<y;w++)f.wnomask[w]=1}return f}function Mt(t){this.options=t}var Nt=(Mt.prototype.rebuild=function(t,e){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=Dt(t,n)),E(n.bynweekday)&&(e!==this.lastmonth||t!==this.lastyear)){var r=this.yearinfo,i=r.yearlen,a=r.mrange,o=r.wdaymask;this.monthinfo=function(t,e,n,r,i,a){var o={lastyear:t,lastmonth:e,nwdaymask:[]},s=[];if(a.freq===Rt.YEARLY)if(N(a.bymonth))s=[[0,n]];else for(var u=0;u<a.bymonth.length;u++)e=a.bymonth[u],s.push(r.slice(e-1,e+1));else a.freq===Rt.MONTHLY&&(s=[r.slice(e-1,e+1)]);if(N(s))return o;for(o.nwdaymask=M(0,n),u=0;u<s.length;u++)for(var c=s[u],l=c[0],h=c[1]-1,d=0;d<a.bynweekday.length;d++){var f=void 0,y=a.bynweekday[d],m=y[0],p=y[1];p<0?(f=h+7*(p+1),f-=x(i[f]-m,7)):(f=l+7*(p-1),f+=x(7-i[f]+m,7)),l<=f&&f<=h&&(o.nwdaymask[f]=1)}return o}(t,e,i,a,o,n)}S(n.byeaster)&&(this.eastermask=function(t,e){void 0===e&&(e=0);var n=t%19,r=Math.floor(t/100),i=t%100,a=Math.floor(r/4),o=r%4,s=Math.floor((r+8)/25),u=Math.floor((r-s+1)/3),c=Math.floor(19*n+r-a-u+15)%30,l=Math.floor(i/4),h=i%4,d=Math.floor(32+2*o+2*l-c-h)%7,f=Math.floor((n+11*c+22*d)/451),y=Math.floor((c+d-7*f+114)/31),m=(c+d-7*f+114)%31+1,p=Date.UTC(t,y-1,m+e),v=Date.UTC(t,0,1);return[Math.ceil((p-v)/864e5)]}(t,n.byeaster))},Object.defineProperty(Mt.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!0,configurable:!0}),Mt.prototype.ydayset=function(){return[a(this.yearlen),0,this.yearlen]},Mt.prototype.mdayset=function(t,e,n){for(var r=this.mrange[e-1],i=this.mrange[e],a=M(null,this.yearlen),o=r;o<i;o++)a[o]=o;return[a,r,i]},Mt.prototype.wdayset=function(t,e,n){for(var r=M(null,this.yearlen+7),i=I.toOrdinal(new Date(Date.UTC(t,e-1,n)))-this.yearordinal,a=i,o=0;o<7&&(r[i]=i,++i,this.wdaymask[i]!==this.options.wkst);o++);return[r,a,i]},Mt.prototype.ddayset=function(t,e,n){var r=M(null,this.yearlen),i=I.toOrdinal(new Date(Date.UTC(t,e-1,n)))-this.yearordinal;return r[i]=i,[r,i,1+i]},Mt.prototype.htimeset=function(e,t,n,r){var i=this,a=[];return this.options.byminute.forEach(function(t){a=a.concat(i.mtimeset(e,t,n,r))}),I.sort(a),a},Mt.prototype.mtimeset=function(e,n,t,r){var i=this.options.bysecond.map(function(t){return new H(e,n,t,r)});return I.sort(i),i},Mt.prototype.stimeset=function(t,e,n,r){return[new H(t,e,n,r)]},Mt.prototype.getdayset=function(t){switch(t){case A.YEARLY:return this.ydayset.bind(this);case A.MONTHLY:return this.mdayset.bind(this);case A.WEEKLY:return this.wdayset.bind(this);case A.DAILY:default:return this.ddayset.bind(this)}},Mt.prototype.gettimeset=function(t){switch(t){case A.HOURLY:return this.htimeset.bind(this);case A.MINUTELY:return this.mtimeset.bind(this);case A.SECONDLY:return this.stimeset.bind(this)}},Mt);function xt(t,e,n,r,i,a){for(var o=[],s=0;s<t.length;s++){var u=void 0,c=void 0,l=t[s];c=l<0?(u=Math.floor(l/e.length),x(l,e.length)):(u=Math.floor((l-1)/e.length),x(l-1,e.length));for(var h=[],d=n;d<r;d++){var f=a[d];S(f)&&h.push(f)}var y=void 0;y=u<0?h.slice(u)[0]:h[u];var m=e[c],p=I.fromOrdinal(i.yearordinal+y),v=I.combine(p,m);L(o,v)||o.push(v)}return I.sort(o),o}function Lt(t,e){var n=e.dtstart,r=e.freq,i=e.interval,a=e.until,o=e.bysetpos,s=e.count;if(0===s||0===i)return Ut(t);var u=G.fromDate(n),c=new Nt(e);c.rebuild(u.year,u.month);for(var l=function(t,e,n){var r=n.freq,i=n.byhour,a=n.byminute,o=n.bysecond;if(Z(r))return function(t){var r=t.dtstart.getTime()%1e3;if(!Z(t.freq))return[];var i=[];return t.byhour.forEach(function(n){t.byminute.forEach(function(e){t.bysecond.forEach(function(t){i.push(new H(n,e,t,r))})})}),i}(n);if(r>=Rt.HOURLY&&E(i)&&!L(i,e.hour)||r>=Rt.MINUTELY&&E(a)&&!L(a,e.minute)||r>=Rt.SECONDLY&&E(o)&&!L(o,e.second))return[];return t.gettimeset(r)(e.hour,e.minute,e.second,e.millisecond)}(c,u,e);;){var h=c.getdayset(r)(u.year,u.month,u.day),d=h[0],f=h[1],y=h[2],m=Ct(d,f,y,c,e);if(E(o))for(var p=xt(o,l,f,y,c,d),v=0;v<p.length;v++){var b=p[v];if(a&&a<b)return Ut(t);if(n<=b){var g=It(b,e);if(!t.accept(g))return Ut(t);if(s&&!--s)return Ut(t)}}else for(v=f;v<y;v++){var w=d[v];if(S(w))for(var k=I.fromOrdinal(c.yearordinal+w),T=0;T<l.length;T++){var O=l[T];b=I.combine(k,O);if(a&&a<b)return Ut(t);if(n<=b){g=It(b,e);if(!t.accept(g))return Ut(t);if(s&&!--s)return Ut(t)}}}if(0===e.interval)return Ut(t);if(u.add(e,m),u.year>I.MAXYEAR)return Ut(t);Z(r)||(l=c.gettimeset(r)(u.hour,u.minute,u.second,0)),c.rebuild(u.year,u.month)}}function It(t,e){return new rt(t,e.tzid).rezonedDate()}function Ut(t){return t.getValue()}function Ct(t,e,n,r,i){for(var a,o,s,u,c,l,h,d,f,y,m=!1,p=e;p<n;p++){var v=t[p];a=r,o=v,void 0,u=(s=i).bymonth,c=s.byweekno,l=s.byweekday,h=s.byeaster,d=s.bymonthday,f=s.bynmonthday,y=s.byyearday,(m=E(u)&&!L(u,a.mmask[o])||E(c)&&!a.wnomask[o]||E(l)&&!L(l,a.wdaymask[o])||E(a.nwdaymask)&&!a.nwdaymask[o]||null!==h&&!L(a.eastermask,o)||(E(d)||E(f))&&!L(d,a.mdaymask[o])&&!L(f,a.nmdaymask[o])||E(y)&&(o<a.yearlen&&!L(y,o+1)&&!L(y,-a.yearlen+o)||o>=a.yearlen&&!L(y,o+1-a.yearlen)&&!L(y,-a.nextyearlen+o-a.yearlen)))&&(t[v]=null)}return m}var Yt={MO:new y(0),TU:new y(1),WE:new y(2),TH:new y(3),FR:new y(4),SA:new y(5),SU:new y(6)},_t={freq:A.YEARLY,dtstart:null,interval:1,wkst:Yt.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},At=Object.keys(_t);function jt(t,e){void 0===t&&(t={}),void 0===e&&(e=!1),this._cache=e?null:new st,this.origOptions=K(t);var n=function(t){var e=U(U({},_t),K(t));if(S(e.byeaster)&&(e.freq=Rt.YEARLY),!S(e.freq)||!Rt.FREQUENCIES[e.freq])throw new Error("Invalid frequency: "+e.freq+" "+t.freq);if(e.dtstart||(e.dtstart=new Date((new Date).setMilliseconds(0))),S(e.wkst)?m(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=Rt.MO.weekday,S(e.bysetpos)){m(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var n=0;n<e.bysetpos.length;n++){if(0===(a=e.bysetpos[n])||!(-366<=a&&a<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(e.byweekno)||E(e.byweekno)||E(e.byyearday)||Boolean(e.bymonthday)||E(e.bymonthday)||S(e.byweekday)||S(e.byeaster)))switch(e.freq){case Rt.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case Rt.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case Rt.WEEKLY:e.byweekday=[I.getWeekday(e.dtstart)]}if(S(e.bymonth)&&!p(e.bymonth)&&(e.bymonth=[e.bymonth]),S(e.byyearday)&&!p(e.byyearday)&&m(e.byyearday)&&(e.byyearday=[e.byyearday]),S(e.bymonthday))if(p(e.bymonthday)){var r=[],i=[];for(n=0;n<e.bymonthday.length;n++){var a;0<(a=e.bymonthday[n])?r.push(a):a<0&&i.push(a)}e.bymonthday=r,e.bynmonthday=i}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);else e.bymonthday=[],e.bynmonthday=[];if(S(e.byweekno)&&!p(e.byweekno)&&(e.byweekno=[e.byweekno]),S(e.byweekday))if(m(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(c(e.byweekday))e.byweekday=[y.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof y)!e.byweekday.n||e.freq>Rt.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{var o=[],s=[];for(n=0;n<e.byweekday.length;n++){var u=e.byweekday[n];m(u)?o.push(u):c(u)?o.push(y.fromStr(u).weekday):!u.n||e.freq>Rt.MONTHLY?o.push(u.weekday):s.push([u.weekday,u.n])}e.byweekday=E(o)?o:null,e.bynweekday=E(s)?s:null}else e.bynweekday=null;return S(e.byhour)?m(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<Rt.HOURLY?[e.dtstart.getUTCHours()]:null,S(e.byminute)?m(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<Rt.MINUTELY?[e.dtstart.getUTCMinutes()]:null,S(e.bysecond)?m(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<Rt.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}(t).parsedOptions;this.options=n}var Rt=(jt.parseText=function(t,e){return z(t,e)},jt.fromText=function(t,e){return void 0===(n=e)&&(n=Y),new $t(z(t,n)||void 0);var n},jt.fromString=function(t){return new jt(jt.parseString(t)||void 0)},jt.prototype._iter=function(t){return Lt(t,this.options)},jt.prototype._cacheGet=function(t,e){return!!this._cache&&this._cache._cacheGet(t,e)},jt.prototype._cacheAdd=function(t,e,n){if(this._cache)return this._cache._cacheAdd(t,e,n)},jt.prototype.all=function(t){if(t)return this._iter(new C("all",{},t));var e=this._cacheGet("all");return!1===e&&(e=this._iter(new f("all",{})),this._cacheAdd("all",e)),e},jt.prototype.between=function(t,e,n,r){if(void 0===n&&(n=!1),!I.isValidDate(t)||!I.isValidDate(e))throw new Error("Invalid date passed in to RRule.between");var i={before:e,after:t,inc:n};if(r)return this._iter(new C("between",i,r));var a=this._cacheGet("between",i);return!1===a&&(a=this._iter(new f("between",i)),this._cacheAdd("between",a,i)),a},jt.prototype.before=function(t,e){if(void 0===e&&(e=!1),!I.isValidDate(t))throw new Error("Invalid date passed in to RRule.before");var n={dt:t,inc:e},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new f("before",n)),this._cacheAdd("before",r,n)),r},jt.prototype.after=function(t,e){if(void 0===e&&(e=!1),!I.isValidDate(t))throw new Error("Invalid date passed in to RRule.after");var n={dt:t,inc:e},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new f("after",n)),this._cacheAdd("after",r,n)),r},jt.prototype.count=function(){return this.all().length},jt.prototype.toString=function(){return at(this.origOptions)},jt.prototype.toText=function(t,e,n){return new R(this,t,e,n).toString()},jt.prototype.isFullyConvertibleToText=function(){return q(this)},jt.prototype.clone=function(){return new jt(this.origOptions)},jt.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],jt.YEARLY=A.YEARLY,jt.MONTHLY=A.MONTHLY,jt.WEEKLY=A.WEEKLY,jt.DAILY=A.DAILY,jt.HOURLY=A.HOURLY,jt.MINUTELY=A.MINUTELY,jt.SECONDLY=A.SECONDLY,jt.MO=Yt.MO,jt.TU=Yt.TU,jt.WE=Yt.WE,jt.TH=Yt.TH,jt.FR=Yt.FR,jt.SA=Yt.SA,jt.SU=Yt.SU,jt.parseString=$,jt.optionsToString=at,jt);var Vt,Ft={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function zt(t,e){var s=[],u=[],c=[],l=[],n=Q(t),r=n.dtstart,h=n.tzid;return function(t,e){void 0===e&&(e=!1);if(!(t=t&&t.trim()))throw new Error("Invalid empty string");if(!e)return t.split(/\s/);var n=t.split("\n"),r=0;for(;r<n.length;){var i=n[r]=n[r].replace(/\s+$/g,"");i?0<r&&" "===i[0]?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}(t,e.unfold).forEach(function(t){if(t){var e=function(t){var e=function(t){if(-1===t.indexOf(":"))return{name:"RRULE",value:t};var e=d(t,":",1),n=e[0],r=e[1];return{name:n,value:r}}(t),n=e.name,r=e.value,i=n.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}(t),n=e.name,r=e.parms,i=e.value;switch(n.toUpperCase()){case"RRULE":if(r.length)throw new Error("unsupported RRULE parm: "+r.join(","));s.push($(t));break;case"RDATE":var a=/RDATE(?:;TZID=([^:=]+))?/i.exec(t),o=(a[0],a[1]);o&&!h&&(h=o),u=u.concat(qt(i,r));break;case"EXRULE":if(r.length)throw new Error("unsupported EXRULE parm: "+r.join(","));c.push($(i));break;case"EXDATE":l=l.concat(qt(i,r));break;case"DTSTART":break;default:throw new Error("unsupported property: "+n)}}}),{dtstart:r,tzid:h,rrulevals:s,rdatevals:u,exrulevals:c,exdatevals:l}}function Zt(t,e){return void 0===e&&(e={}),function(t,e){var n=zt(t,e),r=n.rrulevals,i=n.rdatevals,a=n.exrulevals,o=n.exdatevals,s=n.dtstart,u=n.tzid,c=!1===e.cache;if(e.compatible&&(e.forceset=!0,e.unfold=!0),e.forceset||1<r.length||i.length||a.length||o.length){var l=new Jt(c);return l.dtstart(s),l.tzid(u||void 0),r.forEach(function(t){l.rrule(new Rt(Wt(t,s,u),c))}),i.forEach(function(t){l.rdate(t)}),a.forEach(function(t){l.exrule(new Rt(Wt(t,s,u),c))}),o.forEach(function(t){l.exdate(t)}),e.compatible&&e.dtstart&&l.rdate(s),l}var h=r[0]||{};return new Rt(Wt(h,h.dtstart||e.dtstart||s,h.tzid||e.tzid||u),c)}(t,function(t){var e=[],n=Object.keys(t),r=Object.keys(Ft);if(n.forEach(function(t){L(r,t)||e.push(t)}),e.length)throw new Error("Invalid options: "+e.join(", "));return U(U({},Ft),t)}(e))}function Wt(t,e,n){return U(U({},t),{dtstart:e,tzid:n})}function qt(t,e){return e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)}),t.split(",").map(function(t){return I.untilStringToDate(t)})}function Ht(r){var i=this;return function(t){if(void 0!==t&&(i["_"+r]=t),void 0!==i["_"+r])return i["_"+r];for(var e=0;e<i._rrule.length;e++){var n=i._rrule[e].origOptions[r];if(n)return n}}}function Pt(t){void 0===t&&(t=!1);var e=Vt.call(this,{},t)||this;return e.dtstart=Ht.apply(e,["dtstart"]),e.tzid=Ht.apply(e,["tzid"]),e._rrule=[],e._rdate=[],e._exrule=[],e._exdate=[],e}var Jt=(b(Pt,Vt=Rt),Pt.prototype._iter=function(t){return function(e,t,r,n,i,a){var o={},s=e.accept;function u(e,n){r.forEach(function(t){t.between(e,n,!0).forEach(function(t){o[Number(t)]=!0})})}i.forEach(function(t){var e=new rt(t,a).rezonedDate();o[Number(e)]=!0}),e.accept=function(t){var e=Number(t);return isNaN(e)?s.call(this,t):!(!o[e]&&(u(new Date(e-1),new Date(e+1)),!o[e]))||(o[e]=!0,s.call(this,t))},"between"===e.method&&(u(e.args.after,e.args.before),e.accept=function(t){var e=Number(t);return!!o[e]||(o[e]=!0,s.call(this,t))});for(var c=0;c<n.length;c++){var l=new rt(n[c],a).rezonedDate();if(!e.accept(new Date(l.getTime())))break}t.forEach(function(t){Lt(e,t.options)});var h=e._result;switch(I.sort(h),e.method){case"all":case"between":return h;case"before":return h.length&&h[h.length-1]||null;case"after":default:return h.length&&h[0]||null}}(t,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},Pt.prototype.rrule=function(t){Gt(t,this._rrule)},Pt.prototype.exrule=function(t){Gt(t,this._exrule)},Pt.prototype.rdate=function(t){Bt(t,this._rdate)},Pt.prototype.exdate=function(t){Bt(t,this._exdate)},Pt.prototype.rrules=function(){return this._rrule.map(function(t){return Zt(t.toString())})},Pt.prototype.exrules=function(){return this._exrule.map(function(t){return Zt(t.toString())})},Pt.prototype.rdates=function(){return this._rdate.map(function(t){return new Date(t.getTime())})},Pt.prototype.exdates=function(){return this._exdate.map(function(t){return new Date(t.getTime())})},Pt.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(at({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(t){return t.replace(/^RRULE:/,"EXRULE:")}).filter(function(t){return!/^DTSTART/.test(t)}))}),this._rdate.length&&e.push(Kt("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(Kt("EXDATE",this._exdate,this.tzid())),e},Pt.prototype.toString=function(){return this.valueOf().join("\n")},Pt.prototype.clone=function(){var e=new Pt(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},Pt);function Gt(t,e){if(!(t instanceof Rt))throw new TypeError(String(t)+" is not RRule instance");L(e.map(String),String(t))||e.push(t)}function Bt(t,e){if(!(t instanceof Date))throw new TypeError(String(t)+" is not Date instance");L(e.map(Number),Number(t))||(e.push(t),I.sort(e))}function Kt(t,e,n){var r=!n||"UTC"===n.toUpperCase();return(r?t+":":t+";TZID="+n+":")+e.map(function(t){return I.timeToUntilString(t.valueOf(),r)}).join(",")}n.d(e,"rrulestr",function(){return Zt}),n.d(e,"Frequency",function(){return A}),n.d(e,"Weekday",function(){return y}),n.d(e,"RRule",function(){return Rt}),n.d(e,"RRuleSet",function(){return Jt});
  23. /*!
  24. * rrule.js - Library for working with recurrence rules for calendar dates.
  25. * https://github.com/jakubroztocil/rrule
  26. *
  27. * Copyright 2010, Jakub Roztocil and Lars Schoning
  28. * Licenced under the BSD licence.
  29. * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
  30. *
  31. * Based on:
  32. * python-dateutil - Extensions to the standard Python datetime module.
  33. * Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
  34. * Copyright (c) 2012 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
  35. * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
  36. *
  37. */var $t=e.default=Rt}],i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1);function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,r});