UNPKG

@devheniik/datepicker

Version:
1 lines 237 kB
var VueDatePicker=function(a){"use strict";function bt(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),a.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function al(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),a.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function Qa(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Xa(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Za(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),a.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function Ja(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function eo(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function Z(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function G(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function wt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wt=function(n){return typeof n}:wt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wt(e)}function J(e){G(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function He(e,t){G(2,arguments);var n=J(e),r=Z(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Ae(e,t){G(2,arguments);var n=J(e),r=Z(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var l=i.getDate();return o>=l?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function _t(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_t=function(n){return typeof n}:_t=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_t(e)}function to(e,t){if(G(2,arguments),!t||_t(t)!=="object")return new Date(NaN);var n=t.years?Z(t.years):0,r=t.months?Z(t.months):0,o=t.weeks?Z(t.weeks):0,i=t.days?Z(t.days):0,l=t.hours?Z(t.hours):0,f=t.minutes?Z(t.minutes):0,p=t.seconds?Z(t.seconds):0,y=J(e),O=r||n?Ae(y,r+n*12):y,b=i||o?He(O,i+o*7):O,c=f+l*60,k=p+c*60,R=k*1e3,W=new Date(b.getTime()+R);return W}function ol(e,t){G(2,arguments);var n=J(e).getTime(),r=Z(t);return new Date(n+r)}var il={};function Ie(){return il}function Ge(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=Ie(),b=Z((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:O.weekStartsOn)!==null&&r!==void 0?r:(p=O.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&n!==void 0?n:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=J(e),k=c.getDay(),R=(k<b?7:0)+k-b;return c.setDate(c.getDate()-R),c.setHours(0,0,0,0),c}function kt(e){return G(1,arguments),Ge(e,{weekStartsOn:1})}function ll(e){G(1,arguments);var t=J(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=kt(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var l=kt(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function ul(e){G(1,arguments);var t=ll(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=kt(n);return r}function Ot(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function no(e){G(1,arguments);var t=J(e);return t.setHours(0,0,0,0),t}var sl=864e5;function fl(e,t){G(2,arguments);var n=no(e),r=no(t),o=n.getTime()-Ot(n),i=r.getTime()-Ot(r);return Math.round((o-i)/sl)}function ro(e,t){G(2,arguments);var n=Z(t);return Ae(e,n*12)}var tr=6e4,nr=36e5,cl=1e3;function $t(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$t=function(n){return typeof n}:$t=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$t(e)}function ao(e){return G(1,arguments),e instanceof Date||$t(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ut(e){if(G(1,arguments),!ao(e)&&typeof e!="number")return!1;var t=J(e);return!isNaN(Number(t))}function oo(e,t){var n;G(1,arguments);var r=e||{},o=J(r.start),i=J(r.end),l=i.getTime();if(!(o.getTime()<=l))throw new RangeError("Invalid interval");var f=[],p=o;p.setHours(0,0,0,0);var y=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(y<1||isNaN(y))throw new RangeError("`options.step` must be a number greater than 1");for(;p.getTime()<=l;)f.push(J(p)),p.setDate(p.getDate()+y),p.setHours(0,0,0,0);return f}function dl(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=Ie(),b=Z((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:O.weekStartsOn)!==null&&r!==void 0?r:(p=O.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&n!==void 0?n:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=J(e),k=c.getDay(),R=(k<b?-7:0)+6-(k-b);return c.setDate(c.getDate()+R),c.setHours(23,59,59,999),c}function io(e,t){G(2,arguments);var n=Z(t);return ol(e,-n)}var ml=864e5;function yl(e){G(1,arguments);var t=J(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/ml)+1}function tt(e){G(1,arguments);var t=1,n=J(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function lo(e){G(1,arguments);var t=J(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=tt(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var l=tt(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function pl(e){G(1,arguments);var t=lo(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=tt(n);return r}var hl=6048e5;function uo(e){G(1,arguments);var t=J(e),n=tt(t).getTime()-pl(t).getTime();return Math.round(n/hl)+1}function Qe(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=Ie(),b=Z((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:O.weekStartsOn)!==null&&r!==void 0?r:(p=O.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&n!==void 0?n:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=J(e),k=c.getUTCDay(),R=(k<b?7:0)+k-b;return c.setUTCDate(c.getUTCDate()-R),c.setUTCHours(0,0,0,0),c}function rr(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=J(e),b=O.getUTCFullYear(),c=Ie(),k=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(p=c.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=new Date(0);R.setUTCFullYear(b+1,0,k),R.setUTCHours(0,0,0,0);var W=Qe(R,t),E=new Date(0);E.setUTCFullYear(b,0,k),E.setUTCHours(0,0,0,0);var N=Qe(E,t);return O.getTime()>=W.getTime()?b+1:O.getTime()>=N.getTime()?b:b-1}function gl(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=Ie(),b=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:O.firstWeekContainsDate)!==null&&r!==void 0?r:(p=O.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1),c=rr(e,t),k=new Date(0);k.setUTCFullYear(c,0,b),k.setUTCHours(0,0,0,0);var R=Qe(k,t);return R}var vl=6048e5;function so(e,t){G(1,arguments);var n=J(e),r=Qe(n,t).getTime()-gl(n,t).getTime();return Math.round(r/vl)+1}function le(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var bl={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return le(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):le(r+1,2)},d:function(t,n){return le(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return le(t.getUTCHours()%12||12,n.length)},H:function(t,n){return le(t.getUTCHours(),n.length)},m:function(t,n){return le(t.getUTCMinutes(),n.length)},s:function(t,n){return le(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return le(i,n.length)}};const ze=bl;var nt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wl={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ze.y(t,n)},Y:function(t,n,r,o){var i=rr(t,o),l=i>0?i:1-i;if(n==="YY"){var f=l%100;return le(f,2)}return n==="Yo"?r.ordinalNumber(l,{unit:"year"}):le(l,n.length)},R:function(t,n){var r=lo(t);return le(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return le(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return le(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return le(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return ze.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return le(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=so(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):le(i,n.length)},I:function(t,n,r){var o=uo(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):le(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ze.d(t,n)},D:function(t,n,r){var o=yl(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):le(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),l=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(l);case"ee":return le(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),l=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(l);case"cc":return le(l,n.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return le(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=nt.noon:o===0?i=nt.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=nt.evening:o>=12?i=nt.afternoon:o>=4?i=nt.morning:i=nt.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ze.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ze.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):le(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):le(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ze.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ze.s(t,n)},S:function(t,n){return ze.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return co(l);case"XXXX":case"XX":return Xe(l);case"XXXXX":case"XXX":default:return Xe(l,":")}},x:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();switch(n){case"x":return co(l);case"xxxx":case"xx":return Xe(l);case"xxxxx":case"xxx":default:return Xe(l,":")}},O:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+fo(l,":");case"OOOO":default:return"GMT"+Xe(l,":")}},z:function(t,n,r,o){var i=o._originalDate||t,l=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+fo(l,":");case"zzzz":default:return"GMT"+Xe(l,":")}},t:function(t,n,r,o){var i=o._originalDate||t,l=Math.floor(i.getTime()/1e3);return le(l,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,l=i.getTime();return le(l,n.length)}};function fo(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var l=t||"";return n+String(o)+l+le(i,2)}function co(e,t){if(e%60===0){var n=e>0?"-":"+";return n+le(Math.abs(e)/60,2)}return Xe(e,t)}function Xe(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=le(Math.floor(o/60),2),l=le(o%60,2);return r+i+n+l}const _l=wl;var mo=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},yo=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},kl=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return mo(t,n);var l;switch(o){case"P":l=n.dateTime({width:"short"});break;case"PP":l=n.dateTime({width:"medium"});break;case"PPP":l=n.dateTime({width:"long"});break;case"PPPP":default:l=n.dateTime({width:"full"});break}return l.replace("{{date}}",mo(o,n)).replace("{{time}}",yo(i,n))},Ol={p:yo,P:kl};const ar=Ol;var $l=["D","DD"],Pl=["YY","YYYY"];function po(e){return $l.indexOf(e)!==-1}function ho(e){return Pl.indexOf(e)!==-1}function Pt(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Tl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sl=function(t,n,r){var o,i=Tl[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Dl=Sl;function or(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Cl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ml={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rl={date:or({formats:Cl,defaultWidth:"full"}),time:or({formats:Nl,defaultWidth:"full"}),dateTime:or({formats:Ml,defaultWidth:"full"})};const Bl=Rl;var El={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xl=function(t,n,r,o){return El[t]};const Al=xl;function st(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var f=e.defaultWidth,p=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[p]||e.values[f]}var y=e.argumentCallback?e.argumentCallback(t):t;return o[y]}}var Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ul={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Wl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Fl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ll=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Hl={ordinalNumber:Ll,era:st({values:Il,defaultWidth:"wide"}),quarter:st({values:Yl,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:st({values:Vl,defaultWidth:"wide"}),day:st({values:Ul,defaultWidth:"wide"}),dayPeriod:st({values:Wl,defaultWidth:"wide",formattingValues:Fl,defaultFormattingWidth:"wide"})};const zl=Hl;function ft(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],f=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(f)?ql(f,function(b){return b.test(l)}):jl(f,function(b){return b.test(l)}),y;y=e.valueCallback?e.valueCallback(p):p,y=n.valueCallback?n.valueCallback(y):y;var O=t.slice(l.length);return{value:y,rest:O}}}function jl(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ql(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Kl(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}var Gl=/^(\d+)(th|st|nd|rd)?/i,Ql=/\d+/i,Xl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zl={any:[/^b/i,/^(a|c)/i]},Jl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eu={any:[/1/i,/2/i,/3/i,/4/i]},tu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ru={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},au={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ou={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},iu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lu={ordinalNumber:Kl({matchPattern:Gl,parsePattern:Ql,valueCallback:function(t){return parseInt(t,10)}}),era:ft({matchPatterns:Xl,defaultMatchWidth:"wide",parsePatterns:Zl,defaultParseWidth:"any"}),quarter:ft({matchPatterns:Jl,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ft({matchPatterns:tu,defaultMatchWidth:"wide",parsePatterns:nu,defaultParseWidth:"any"}),day:ft({matchPatterns:ru,defaultMatchWidth:"wide",parsePatterns:au,defaultParseWidth:"any"}),dayPeriod:ft({matchPatterns:ou,defaultMatchWidth:"any",parsePatterns:iu,defaultParseWidth:"any"})},uu={code:"en-US",formatDistance:Dl,formatLong:Bl,formatRelative:Al,localize:zl,match:lu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const go=uu;var su=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cu=/^'([^]*?)'?$/,du=/''/g,mu=/[a-zA-Z]/;function ct(e,t,n){var r,o,i,l,f,p,y,O,b,c,k,R,W,E,N,M,A,K;G(2,arguments);var H=String(t),j=Ie(),ee=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:j.locale)!==null&&r!==void 0?r:go,T=Z((i=(l=(f=(p=n==null?void 0:n.firstWeekContainsDate)!==null&&p!==void 0?p:n==null||(y=n.locale)===null||y===void 0||(O=y.options)===null||O===void 0?void 0:O.firstWeekContainsDate)!==null&&f!==void 0?f:j.firstWeekContainsDate)!==null&&l!==void 0?l:(b=j.locale)===null||b===void 0||(c=b.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Z((k=(R=(W=(E=n==null?void 0:n.weekStartsOn)!==null&&E!==void 0?E:n==null||(N=n.locale)===null||N===void 0||(M=N.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&W!==void 0?W:j.weekStartsOn)!==null&&R!==void 0?R:(A=j.locale)===null||A===void 0||(K=A.options)===null||K===void 0?void 0:K.weekStartsOn)!==null&&k!==void 0?k:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ee.localize)throw new RangeError("locale must contain localize property");if(!ee.formatLong)throw new RangeError("locale must contain formatLong property");var V=J(e);if(!ut(V))throw new RangeError("Invalid time value");var g=Ot(V),B=io(V,g),F={firstWeekContainsDate:T,weekStartsOn:I,locale:ee,_originalDate:V},ne=H.match(fu).map(function(L){var C=L[0];if(C==="p"||C==="P"){var s=ar[C];return s(L,ee.formatLong)}return L}).join("").match(su).map(function(L){if(L==="''")return"'";var C=L[0];if(C==="'")return yu(L);var s=_l[C];if(s)return!(n!=null&&n.useAdditionalWeekYearTokens)&&ho(L)&&Pt(L,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&po(L)&&Pt(L,t,String(e)),s(B,L,ee.localize,F);if(C.match(mu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return L}).join("");return ne}function yu(e){var t=e.match(cu);return t?t[1].replace(du,"'"):e}function pu(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function hu(e){G(1,arguments);var t=J(e),n=t.getDay();return n}function gu(e){G(1,arguments);var t=J(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function We(e){G(1,arguments);var t=J(e),n=t.getHours();return n}var vu=6048e5;function bu(e){G(1,arguments);var t=J(e),n=kt(t).getTime()-ul(t).getTime();return Math.round(n/vu)+1}function Fe(e){G(1,arguments);var t=J(e),n=t.getMinutes();return n}function fe(e){G(1,arguments);var t=J(e),n=t.getMonth();return n}function rt(e){G(1,arguments);var t=J(e),n=t.getSeconds();return n}function wu(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=J(e),b=O.getFullYear(),c=Ie(),k=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(p=c.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=new Date(0);R.setFullYear(b+1,0,k),R.setHours(0,0,0,0);var W=Ge(R,t),E=new Date(0);E.setFullYear(b,0,k),E.setHours(0,0,0,0);var N=Ge(E,t);return O.getTime()>=W.getTime()?b+1:O.getTime()>=N.getTime()?b:b-1}function _u(e,t){var n,r,o,i,l,f,p,y;G(1,arguments);var O=Ie(),b=Z((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(l=t.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:O.firstWeekContainsDate)!==null&&r!==void 0?r:(p=O.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&n!==void 0?n:1),c=wu(e,t),k=new Date(0);k.setFullYear(c,0,b),k.setHours(0,0,0,0);var R=Ge(k,t);return R}var ku=6048e5;function Ou(e,t){G(1,arguments);var n=J(e),r=Ge(n,t).getTime()-_u(n,t).getTime();return Math.round(r/ku)+1}function ce(e){return G(1,arguments),J(e).getFullYear()}function ir(e,t){G(2,arguments);var n=J(e),r=J(t);return n.getTime()>r.getTime()}function lr(e,t){G(2,arguments);var n=J(e),r=J(t);return n.getTime()<r.getTime()}function vo(e,t){G(2,arguments);var n=J(e),r=J(t);return n.getTime()===r.getTime()}function Tt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tt=function(n){return typeof n}:Tt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tt(e)}function bo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ur(e,t)}function ur(e,t){return ur=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},ur(e,t)}function wo(e){var t=Pu();return function(){var r=St(e),o;if(t){var i=St(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return $u(this,o)}}function $u(e,t){return t&&(Tt(t)==="object"||typeof t=="function")?t:sr(e)}function sr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},St(e)}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cr(e,t,n){return t&&_o(e.prototype,t),n&&_o(e,n),e}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tu=10,ko=function(){function e(){fr(this,e),dr(this,"subPriority",0)}return cr(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),Su=function(e){bo(n,e);var t=wo(n);function n(r,o,i,l,f){var p;return fr(this,n),p=t.call(this),p.value=r,p.validateValue=o,p.setValue=i,p.priority=l,f&&(p.subPriority=f),p}return cr(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,l){return this.setValue(o,i,this.value,l)}}]),n}(ko),Du=function(e){bo(n,e);var t=wo(n);function n(){var r;fr(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),dr(sr(r),"priority",Tu),dr(sr(r),"subPriority",-1),r}return cr(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var l=new Date(0);return l.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),l.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),l}}]),n}(ko);function Cu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nu(e,t,n){return t&&Oo(e.prototype,t),n&&Oo(e,n),e}var ie=function(){function e(){Cu(this,e)}return Nu(e,[{key:"run",value:function(n,r,o,i){var l=this.parse(n,r,o,i);return l?{setter:new Su(l.value,this.validate,this.set,this.priority,this.subPriority),rest:l.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}();function Dt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dt=function(n){return typeof n}:Dt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dt(e)}function Mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ru(e,t,n){return t&&$o(e.prototype,t),n&&$o(e,n),e}function Bu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}function mr(e,t){return mr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},mr(e,t)}function Eu(e){var t=Au();return function(){var r=Ct(e),o;if(t){var i=Ct(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return xu(this,o)}}function xu(e,t){return t&&(Dt(t)==="object"||typeof t=="function")?t:yr(e)}function yr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Au(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ct(e)}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iu=function(e){Bu(n,e);var t=Eu(n);function n(){var r;Mu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),Po(yr(r),"priority",140),Po(yr(r),"incompatibleTokens",["R","u","t","T"]),r}return Ru(n,[{key:"parse",value:function(o,i,l){switch(i){case"G":case"GG":case"GGG":return l.era(o,{width:"abbreviated"})||l.era(o,{width:"narrow"});case"GGGGG":return l.era(o,{width:"narrow"});case"GGGG":default:return l.era(o,{width:"wide"})||l.era(o,{width:"abbreviated"})||l.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,l){return i.era=l,o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(ie),ve={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ye={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function be(e,t){return e&&{value:t(e.value),rest:e.rest}}function pe(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ve(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,l=n[5]?parseInt(n[5],10):0;return{value:r*(o*nr+i*tr+l*cl),rest:t.slice(n[0].length)}}function To(e){return pe(ve.anyDigitsSigned,e)}function he(e,t){switch(e){case 1:return pe(ve.singleDigit,t);case 2:return pe(ve.twoDigits,t);case 3:return pe(ve.threeDigits,t);case 4:return pe(ve.fourDigits,t);default:return pe(new RegExp("^\\d{1,"+e+"}"),t)}}function Nt(e,t){switch(e){case 1:return pe(ve.singleDigitSigned,t);case 2:return pe(ve.twoDigitsSigned,t);case 3:return pe(ve.threeDigitsSigned,t);case 4:return pe(ve.fourDigitsSigned,t);default:return pe(new RegExp("^-?\\d{1,"+e+"}"),t)}}function pr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function So(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,l=Math.floor(i/100)*100,f=e>=i%100;o=e+l-(f?100:0)}return n?o:1-o}function Do(e){return e%400===0||e%4===0&&e%100!==0}function Mt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(n){return typeof n}:Mt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mt(e)}function Yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vu(e,t,n){return t&&Co(e.prototype,t),n&&Co(e,n),e}function Uu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hr(e,t)}function hr(e,t){return hr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},hr(e,t)}function Wu(e){var t=Lu();return function(){var r=Rt(e),o;if(t){var i=Rt(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Fu(this,o)}}function Fu(e,t){return t&&(Mt(t)==="object"||typeof t=="function")?t:gr(e)}function gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rt(e)}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hu=function(e){Uu(n,e);var t=Wu(n);function n(){var r;Yu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),No(gr(r),"priority",130),No(gr(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Vu(n,[{key:"parse",value:function(o,i,l){var f=function(y){return{year:y,isTwoDigitYear:i==="yy"}};switch(i){case"y":return be(he(4,o),f);case"yo":return be(l.ordinalNumber(o,{unit:"year"}),f);default:return be(he(i.length,o),f)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,l){var f=o.getUTCFullYear();if(l.isTwoDigitYear){var p=So(l.year,f);return o.setUTCFullYear(p,0,1),o.setUTCHours(0,0,0,0),o}var y=!("era"in i)||i.era===1?l.year:1-l.year;return o.setUTCFullYear(y,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(ie);function Bt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(n){return typeof n}:Bt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bt(e)}function zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ju(e,t,n){return t&&Mo(e.prototype,t),n&&Mo(e,n),e}function qu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function vr(e,t){return vr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},vr(e,t)}function Ku(e){var t=Qu();return function(){var r=Et(e),o;if(t){var i=Et(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Gu(this,o)}}function Gu(e,t){return t&&(Bt(t)==="object"||typeof t=="function")?t:br(e)}function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Et(e){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Et(e)}function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xu=function(e){qu(n,e);var t=Ku(n);function n(){var r;zu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),Ro(br(r),"priority",130),Ro(br(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return ju(n,[{key:"parse",value:function(o,i,l){var f=function(y){return{year:y,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return be(he(4,o),f);case"Yo":return be(l.ordinalNumber(o,{unit:"year"}),f);default:return be(he(i.length,o),f)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,l,f){var p=rr(o,f);if(l.isTwoDigitYear){var y=So(l.year,p);return o.setUTCFullYear(y,0,f.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Qe(o,f)}var O=!("era"in i)||i.era===1?l.year:1-l.year;return o.setUTCFullYear(O,0,f.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Qe(o,f)}}]),n}(ie);function xt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xt=function(n){return typeof n}:xt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xt(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ju(e,t,n){return t&&Bo(e.prototype,t),n&&Bo(e,n),e}function es(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wr(e,t)}function wr(e,t){return wr=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},wr(e,t)}function ts(e){var t=rs();return function(){var r=At(e),o;if(t){var i=At(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ns(this,o)}}function ns(e,t){return t&&(xt(t)==="object"||typeof t=="function")?t:_r(e)}function _r(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},At(e)}function Eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var as=function(e){es(n,e);var t=ts(n);function n(){var r;Zu(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),Eo(_r(r),"priority",130),Eo(_r(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Ju(n,[{key:"parse",value:function(o,i){return Nt(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,l){var f=new Date(0);return f.setUTCFullYear(l,0,4),f.setUTCHours(0,0,0,0),tt(f)}}]),n}(ie);function It(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?It=function(n){return typeof n}:It=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},It(e)}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t,n){return t&&xo(e.prototype,t),n&&xo(e,n),e}function ls(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression m