text: import{r as t,e as n,h as i,H as e,g as r}from"./p-8dfd188c.js";import{i as s,f as a}from"./p-63696788.js";import{p as o}from"./p-65134490.js";import{s as u}from"./p-c50c697b.js";import{c as h,a as d,b as c}from"./p-eab67c09.js";const l=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,f=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,m=(t,n,i)=>{if(!n||"string"==typeof n){const t=((t="",n="")=>{null==t&&(t=""),10!==t.length&&7!==t.length&&4!==t.length||(t+=" ");const i="string"==typeof t&&t.length>0?new Date(t):new Date,e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return n&&n.length>0?new Date(i.getTime()-((t,n)=>{const i=new Date(t.toLocaleString("en-US",{timeZone:"utc"})),e=new Date(t.toLocaleString("en-US",{timeZone:n}));return i.getTime()-e.getTime()})(e,n)):e})(n,i);Number.isNaN(t.getTime())||(n=t.toISOString())}if(n&&""!==n){if("string"==typeof n){if(n=(t=>{let n=null;if(null!=t&&""!==t&&(n=f.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=l.exec(t)),null===n)return;for(let t=1;t<8;t++)n[t]=void 0!==n[t]?parseInt(n[t],10):void 0;let i=0;return n[9]&&n[10]&&(i=60*parseInt(n[10],10),n[11]&&(i+=parseInt(n[11],10)),"-"===n[9]&&(i*=-1)),{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],second:n[6],millisecond:n[7],tzOffset:i}})(n))return Object.assign(t,n),!0}else{if(n.year||n.hour||n.month||n.day||n.minute||n.second){void 0!==n.ampm&&void 0!==n.hour&&(n.hour.value="pm"===n.ampm.value?12===n.hour.value?12:n.hour.value+12:12===n.hour.value?0:n.hour.value);for(const i of Object.keys(n))t[i]=n[i].value;return!0}if(n.ampm)return n.hour={value:n.hour?n.hour.value:"pm"===n.ampm.value?t.hour<12?t.hour+12:t.hour:t.hour>=12?t.hour-12:t.hour},t.hour=n.hour.value,t.ampm=n.ampm.value,!0}console.warn(`Error parsing date: "${n}". Please provide a valid ISO 8601 datetime format: https://www.w3.org/TR/NOTE-datetime`)}else for(const n in t)t.hasOwnProperty(n)&&delete t[n];return!1},v=(t,n)=>{if(null==t)return;let i;return"string"==typeof t&&(t=t.replace(/\[|\]/g,"").split(",")),Array.isArray(t)&&(i=t.map((t=>t.toString().trim()))),void 0!==i&&0!==i.length||console.warn(`Invalid "${n}Names". Must be an array of strings, or a comma separated string.`),i},p=t=>("0"+(void 0!==t?Math.abs(t):"0")).slice(-2),Y=t=>("000"+(void 0!==t?Math.abs(t):"0")).slice(-4),M=["DD.MM.YYYY","D.M.YYYY","DD.MM.YY","D.M.YY","YYYY.MM.DD","YYYY.M.D","YY.MM.DD","YY.M.D","DD/MM/YYYY","D/M/YYYY","DD/MM/YY","D/M/YY","YYYY/MM/DD","YYYY/M/D","YY/MM/DD","YY/M/D","DD MM YYYY","D M YYYY","DD MM YY","D M YY","YYYY MM DD","YYYY M D","YY MM DD","YY M D"],g=["HH:mm","HH:mm:ss","h:mm a","h:mm:ss a"],y="YYYY",D="YY",k="MMMM",b="MMM",w="MM",S="DDDD",x="DDD",H="DD",N="HH",T="hh",_="h",G="mm",W="ss",E="A",O="a",F=[{f:y,k:"year"},{f:k,k:"month"},{f:S,k:"day"},{f:b,k:"month"},{f:x,k:"day"},{f:D,k:"year"},{f:w,k:"month"},{f:H,k:"day"},{f:N,k:"hour"},{f:T,k:"hour"},{f:G,k:"minute"},{f:W,k:"second"},{f:"M",k:"month"},{f:"D",k:"day"},{f:"H",k:"hour"},{f:_,k:"hour"},{f:"m",k:"minute"},{f:"s",k:"second"},{f:E,k:"ampm"},{f:O,k:"ampm"}],j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],L=["January","February","March","April","May","June","July","August","September","October","November","December"],Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var z=h((function(t){t.exports=function(){var n,i;function e(){return n.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function o(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,n){var i,e=[];for(i=0;i<t.length;++i)e.push(n(t[i],i));return e}function d(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function l(t,n){for(var i in n)d(n,i)&&(t[i]=n[i]);return d(n,"toString")&&(t.toString=n.toString),d(n,"valueOf")&&(t.valueOf=n.valueOf),t}function f(t,n,i,e){return Sn(t,n,i,e,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function v(t){if(null==t._isValid){var n=m(t),e=i.call(n.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&e);if(t._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function p(t){var n=f(NaN);return null!=t?l(m(n),t):m(n).userInvalidated=!0,n}i=Array.prototype.some?Array.prototype.some:function(t){for(var n=Object(this),i=n.length>>>0,e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var Y=e.momentProperties=[];function M(t,n){var i,e,r;if(a(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),a(n._i)||(t._i=n._i),a(n._f)||(t._f=n._f),a(n._l)||(t._l=n._l),a(n._strict)||(t._strict=n._strict),a(n._tzm)||(t._tzm=n._tzm),a(n._isUTC)||(t._isUTC=n._isUTC),a(n._offset)||(t._offset=n._offset),a(n._pf)||(t._pf=m(n)),a(n._locale)||(t._locale=n._locale),Y.length>0)for(i=0;i<Y.length;i++)a(r=n[e=Y[i]])||(t[e]=r);return t}var g=!1;function y(t){M(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,e.updateOffset(this),g=!1)}function D(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function k(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=k(n)),i}function w(t,n,i){var e,r=Math.min(t.length,n.length),s=Math.abs(t.length-n.length),a=0;for(e=0;e<r;e++)(i&&t[e]!==n[e]||!i&&b(t[e])!==b(n[e]))&&a++;return a+s}function S(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,n){var i=!0;return l((function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var r,s=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var o in r+="\n["+a+"] ",arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];s.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)}),n)}var H,N={};function T(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),N[t]||(S(n),N[t]=!0)}function _(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function G(t,n){var i,e=l({},t);for(i in n)d(n,i)&&(s(t[i])&&s(n[i])?(e[i]={},l(e[i],t[i]),l(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)d(t,i)&&!d(n,i)&&s(t[i])&&(e[i]=l({},e[i]));return e}function W(t){null!=t&&this.set(t)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,H=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)d(t,n)&&i.push(n);return i};var E={};function O(t,n){var i=t.toLowerCase();E[i]=E[i+"s"]=E[n]=t}function F(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function j(t){var n,i,e={};for(i in t)d(t,i)&&(n=F(i))&&(e[n]=t[i]);return e}var A={};function L(t,n){A[t]=n}function Z(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},R={};function P(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(R[t]=r),n&&(R[n[0]]=function(){return Z(r.apply(this,arguments),n[1],n[2])}),i&&(R[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,n){return t.isValid()?(n=$(n,t.localeData()),I[n]=I[n]||function(t){var n,i,e,r=t.match(z);for(n=0,i=r.length;n<i;n++)r[n]=R[r[n]]?R[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=_(r[e])?r[e].call(n,t):r[e];return s}}(n),I[n](t)):t.localeData().invalidDate()}function $(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(C.lastIndex=0;i>=0&&C.test(t);)t=t.replace(C,e),C.lastIndex=0,i-=1;return t}var J=/\d/,q=/\d\d/,Q=/\d{3}/,B=/\d{4}/,V=/[+-]?\d{6}/,X=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,nt=/\d{1,3}/,it=/\d{1,4}/,et=/[+-]?\d{1,6}/,rt=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ht={};function dt(t,n,i){ht[t]=_(n)?n:function(t){return t&&i?i:n}}function ct(t,n){return d(ht,t)?ht[t](n._strict,n._locale):new RegExp(lt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function lt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var i,e=n;for("string"==typeof t&&(t=[t]),o(n)&&(e=function(t,i){i[n]=b(t)}),i=0;i<t.length;i++)ft[t[i]]=e}function vt(t,n){mt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function pt(t,n,i){null!=n&&d(ft,t)&&ft[t](n,i._a,i,t)}function Yt(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}P("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),P(0,["YY",2],0,(function(){return this.year()%100})),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),O("year","y"),L("year",1),dt("Y",st),dt("YY",X,q),dt("YYYY",it,B),dt("YYYYY",et,V),dt("YYYYYY",et,V),mt(["YYYYY","YYYYYY"],0),mt("YYYY",(function(t,n){n[0]=2===t.length?e.parseTwoDigitYear(t):b(t)})),mt("YY",(function(t,n){n[0]=e.parseTwoDigitYear(t)})),mt("Y",(function(t,n){n[0]=parseInt(t,10)})),e.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var gt,yt=Dt("FullYear",!0);function Dt(t,n){return function(i){return null!=i?(bt(this,t,i),e.updateOffset(this,n),this):kt(this,t)}}function kt(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function bt(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),wt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+n](i))}function wt(t,n){if(isNaN(t)||isNaN(n))return NaN;var i,e=(n%(i=12)+i)%i;return t+=(n-e)/12,1===e?Mt(t)?29:28:31-e%7%2}gt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},P("M",["MM",2],"Mo",(function(){return this.month()+1})),P("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),P("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),O("month","M"),L("month",8),dt("M",X),dt("MM",X,q),dt("MMM",(function(t,n){return n.monthsShortRegex(t)})),dt("MMMM",(function(t,n){return n.monthsRegex(t)})),mt(["M","MM"],(function(t,n){n[1]=b(t)-1})),mt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[1]=r:m(i).invalidMonth=t}));var St=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ht="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Nt(t,n,i){var e,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=f([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=gt.call(this._shortMonthsParse,a))?r:null:-1!==(r=gt.call(this._longMonthsParse,a))?r:null:"MMM"===n?-1!==(r=gt.call(this._shortMonthsParse,a))||-1!==(r=gt.call(this._longMonthsParse,a))?r:null:-1!==(r=gt.call(this._longMonthsParse,a))||-1!==(r=gt.call(this._shortMonthsParse,a))?r:null}function Tt(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=b(n);else if(!o(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),wt(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function _t(t){return null!=t?(Tt(this,t),e.updateOffset(this,!0),this):kt(this,"Month")}var Gt=ut;var Wt=ut;function Et(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=f([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=lt(e[n]),r[n]=lt(r[n]);for(n=0;n<24;n++)s[n]=lt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ot(t,n,i,e,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,n,i,e,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,n,i,e,r,s,a),o}function Ft(t){var n;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)}else n=new Date(Date.UTC.apply(null,arguments));return n}function jt(t,n,i){var e=7+n-i;return-(7+Ft(t,0,e).getUTCDay()-n)%7+e-1}function At(t,n,i,e,r){var s,a,o=1+7*(n-1)+(7+i-e)%7+jt(t,e,r);return o<=0?a=Yt(s=t-1)+o:o>Yt(t)?(s=t+1,a=o-Yt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Lt(t,n,i){var e,r,s=jt(t.year(),n,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?e=a+Zt(r=t.year()-1,n,i):a>Zt(t.year(),n,i)?(e=a-Zt(t.year(),n,i),r=t.year()+1):(r=t.year(),e=a),{week:e,year:r}}function Zt(t,n,i){var e=jt(t,n,i),r=jt(t+1,n,i);return(Yt(t)-e+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),L("week",5),L("isoWeek",5),dt("w",X),dt("ww",X,q),dt("W",X),dt("WW",X,q),vt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=b(t)}));function zt(t,n){return t.slice(n,7).concat(t.slice(0,n))}P("d",0,"do","day"),P("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),P("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),P("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),dt("d",X),dt("e",X),dt("E",X),dt("dd",(function(t,n){return n.weekdaysMinRegex(t)})),dt("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),dt("dddd",(function(t,n){return n.weekdaysRegex(t)})),vt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:m(i).invalidWeekday=t})),vt(["d","e","E"],(function(t,n,i,e){n[e]=b(t)}));var Ct="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Pt(t,n,i){var e,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=f([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=gt.call(this._weekdaysParse,a))?r:null:"ddd"===n?-1!==(r=gt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=gt.call(this._minWeekdaysParse,a))?r:null:"dddd"===n?-1!==(r=gt.call(this._weekdaysParse,a))||-1!==(r=gt.call(this._shortWeekdaysParse,a))||-1!==(r=gt.call(this._minWeekdaysParse,a))?r:null:"ddd"===n?-1!==(r=gt.call(this._shortWeekdaysParse,a))||-1!==(r=gt.call(this._weekdaysParse,a))||-1!==(r=gt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=gt.call(this._minWeekdaysParse,a))||-1!==(r=gt.call(this._weekdaysParse,a))||-1!==(r=gt.call(this._shortWeekdaysParse,a))?r:null}var Ut=ut;var $t=ut;var Jt=ut;function qt(){function t(t,n){return n.length-t.length}var n,i,e,r,s,a=[],o=[],u=[],h=[];for(n=0;n<7;n++)i=f([2e3,1]).day(n),e=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),s=this.weekdays(i,""),a.push(e),o.push(r),u.push(s),h.push(e),h.push(r),h.push(s);for(a.sort(t),o.sort(t),u.sort(t),h.sort(t),n=0;n<7;n++)o[n]=lt(o[n]),u[n]=lt(u[n]),h[n]=lt(h[n]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Bt(t,n){P(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function Vt(t,n){return n._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,Qt),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+Qt.apply(this)+Z(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+Qt.apply(this)+Z(this.minutes(),2)+Z(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+Z(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+Z(this.minutes(),2)+Z(this.seconds(),2)})),Bt("a",!0),Bt("A",!1),O("hour","h"),L("hour",13),dt("a",Vt),dt("A",Vt),dt("H",X),dt("h",X),dt("k",X),dt("HH",X,q),dt("hh",X,q),dt("kk",X,q),dt("hmm",K),dt("hmmss",tt),dt("Hmm",K),dt("Hmmss",tt),mt(["H","HH"],3),mt(["k","kk"],(function(t,n){var i=b(t);n[3]=24===i?0:i})),mt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),mt(["h","hh"],(function(t,n,i){n[3]=b(t),m(i).bigHour=!0})),mt("hmm",(function(t,n,i){var e=t.length-2;n[3]=b(t.substr(0,e)),n[4]=b(t.substr(e)),m(i).bigHour=!0})),mt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[3]=b(t.substr(0,e)),n[4]=b(t.substr(e,2)),n[5]=b(t.substr(r)),m(i).bigHour=!0})),mt("Hmm",(function(t,n){var i=t.length-2;n[3]=b(t.substr(0,i)),n[4]=b(t.substr(i))})),mt("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[3]=b(t.substr(0,i)),n[4]=b(t.substr(i,2)),n[5]=b(t.substr(e))}));var Xt,Kt=Dt("Hours",!0),tn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Ht,week:{dow:0,doy:6},weekdays:Ct,weekdaysMin:Rt,weekdaysShort:It,meridiemParse:/[ap]\.?m?\.?/i},nn={},en={};function rn(t){return t?t.toLowerCase().replace("_","-"):t}function sn(n){var i=null;if(!nn[n]&&t&&t.exports)try{i=Xt._abbr,c("./locale/"+n),an(i)}catch(t){}return nn[n]}function an(t,n){var i;return t&&((i=a(n)?un(t):on(t,n))?Xt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Xt._abbr}function on(t,n){if(null!==n){var i,e=tn;if(n.abbr=t,null!=nn[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=nn[t]._config;else if(null!=n.parentLocale)if(null!=nn[n.parentLocale])e=nn[n.parentLocale]._config;else{if(null==(i=sn(n.parentLocale)))return en[n.parentLocale]||(en[n.parentLocale]=[]),en[n.parentLocale].push({name:t,config:n}),null;e=i._config}return nn[t]=new W(G(e,n)),en[t]&&en[t].forEach((function(t){on(t.name,t.config)})),an(t),nn[t]}return delete nn[t],null}function un(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Xt;if(!r(t)){if(n=sn(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=rn(t[s]).split("-")).length,i=(i=rn(t[s+1]))?i.split("-"):null;n>0;){if(e=sn(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&w(r,i,!0)>=n-1)break;n--}s++}return Xt}(t)}function hn(t){var n,i=t._a;return i&&-2===m(t).overflow&&(n=i[1]<0||i[1]>11?1:i[2]<1||i[2]>wt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,m(t)._overflowDayOfYear&&(n<0||n>2)&&(n=2),m(t)._overflowWeeks&&-1===n&&(n=7),m(t)._overflowWeekday&&-1===n&&(n=8),m(t).overflow=n),t}function dn(t,n,i){return null!=t?t:null!=n?n:i}function cn(t){var n,i,r,s,a,o=[];if(!t._d){for(r=function(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var n,i,e,r,s,a,o,u;if(null!=(n=t._w).GG||null!=n.W||null!=n.E)s=1,a=4,i=dn(n.GG,t._a[0],Lt(xn(),1,4).year),e=dn(n.W,1),((r=dn(n.E,1))<1||r>7)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var h=Lt(xn(),s,a);i=dn(n.gg,t._a[0],h.year),e=dn(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(u=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(u=!0)):r=s}e<1||e>Zt(i,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=At(i,e,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(a=dn(t._a[0],r[0]),(t._dayOfYear>Yt(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),i=Ft(a,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=r[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Ft:Ot).apply(null,o),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(m(t).weekdayMismatch=!0)}}var ln=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mn=/Z|[+-]\d\d(?::?\d\d)?/,vn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yn=/^\/?Date\((\-?\d+)/i;function Mn(t){var n,i,e,r,s,a,o=t._i,u=ln.exec(o)||fn.exec(o);if(u){for(m(t).iso=!0,n=0,i=vn.length;n<i;n++)if(vn[n][1].exec(u[1])){r=vn[n][0],e=!1!==vn[n][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(n=0,i=pn.length;n<i;n++)if(pn[n][1].exec(u[3])){s=(u[2]||" ")+pn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(u[4]){if(!mn.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),bn(t)}else t._isValid=!1}var gn=/^(?:(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{4}))$/;function yn(t){var n=parseInt(t,10);return n<=49?2e3+n:n<=999?1900+n:n}var Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kn(t){var n,i,e,r,s,a,o=gn.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(o){var u=(n=o[3],i=o[2],e=o[5],r=o[6],s=o[7],a=[yn(o[4]),Ht.indexOf(n),parseInt(i,10),parseInt(e,10),parseInt(r,10)],s&&a.push(parseInt(s,10)),a);if(!function(t,n,i){return!t||It.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(m(i).weekdayMismatch=!0,i._isValid=!1,!1)}(o[1],u,t))return;t._a=u,t._tzm=function(t,n,i){if(t)return Dn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(o[8],o[9],o[10]),t._d=Ft.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function bn(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],m(t).empty=!0;var n,i,r,s,a,o=""+t._i,u=o.length,h=0;for(r=$(t._f,t._locale).match(z)||[],n=0;n<r.length;n++)(i=(o.match(ct(s=r[n],t))||[])[0])&&((a=o.substr(0,o.indexOf(i))).length>0&&m(t).unusedInput.push(a),o=o.slice(o.indexOf(i)+i.length),h+=i.length),R[s]?(i?m(t).empty=!1:m(t).unusedTokens.push(s),pt(s,i,t)):t._strict&&!i&&m(t).unusedTokens.push(s);m(t).charsLeftOver=u-h,o.length>0&&m(t).unusedInput.push(o),t._a[3]<=12&&!0===m(t).bigHour&&t._a[3]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[3]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[3],t._meridiem),cn(t),hn(t)}else kn(t);else Mn(t)}function wn(t){var n=t._i,i=t._f;return t._locale=t._locale||un(t._l),null===n||void 0===i&&""===n?p({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),D(n)?new y(hn(n)):(u(n)?t._d=n:r(i)?function(t){var n,i,e,r,s;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)s=0,n=M({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],bn(n),v(n)&&(s+=m(n).charsLeftOver,s+=10*m(n).unusedTokens.length,m(n).score=s,(null==e||s<e)&&(e=s,i=n));l(t,i||n)}(t):i?bn(t):function(t){var n=t._i;a(n)?t._d=new Date(e.now()):u(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=Yn.exec(t._i);null===n?(Mn(t),!1===t._isValid&&(delete t._isValid,kn(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):r(n)?(t._a=h(n.slice(0),(function(t){return parseInt(t,10)})),cn(t)):s(n)?function(t){if(!t._d){var n=j(t._i);t._a=h([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),cn(t)}}(t):o(n)?t._d=new Date(n):e.createFromInputFallback(t)}(t),v(t)||(t._d=null),t))}function Sn(t,n,i,e,a){var o,u={};return!0!==i&&!1!==i||(e=i,i=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(t.hasOwnProperty(n))return!1;return!0}(t)||r(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=i,u._i=t,u._f=n,u._strict=e,(o=new y(hn(wn(u))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function xn(t,n,i,e){return Sn(t,n,i,e,!1)}e.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),e.ISO_8601=function(){},e.RFC_2822=function(){};var Hn=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()})),Nn=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()}));function Tn(t,n){var i,e;if(1===n.length&&r(n[0])&&(n=n[0]),!n.length)return xn();for(i=n[0],e=1;e<n.length;++e)n[e].isValid()&&!n[e][t](i)||(i=n[e]);return i}var _n=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Gn(t){var n=j(t),i=n.year||0,e=n.quarter||0,r=n.month||0,s=n.week||n.isoWeek||0,a=n.day||0,o=n.hour||0,u=n.minute||0,h=n.second||0,d=n.millisecond||0;this._isValid=function(t){for(var n in t)if(-1===gt.call(_n,n)||null!=t[n]&&isNaN(t[n]))return!1;for(var i=!1,e=0;e<_n.length;++e)if(t[_n[e]]){if(i)return!1;parseFloat(t[_n[e]])!==b(t[_n[e]])&&(i=!0)}return!0}(n),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*e+12*i,this._data={},this._locale=un(),this._bubble()}function Wn(t){return t instanceof Gn}function En(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function On(t,n){P(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Z(~~(t/60),2)+n+Z(~~t%60,2)}))}On("Z",":"),On("ZZ",""),dt("Z",ot),dt("ZZ",ot),mt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=jn(ot,t)}));var Fn=/([\+\-]|\d\d)/gi;function jn(t,n){var i=(n||"").match(t);if(null===i)return null;var e=((i[i.length-1]||[])+"").match(Fn)||["-",0,0],r=60*e[1]+b(e[2]);return 0===r?0:"+"===e[0]?r:-r}function An(t,n){var i,r;return n._isUTC?(i=n.clone(),r=(D(t)||u(t)?t.valueOf():xn(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),e.updateOffset(i,!1),i):xn(t).local()}function Ln(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Zn(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var zn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Cn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function In(t,n){var i,e,r,s,a,u,h=t,c=null;return Wn(t)?h={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(h={},n?h[n]=t:h.milliseconds=t):(c=zn.exec(t))?(i="-"===c[1]?-1:1,h={y:0,d:b(c[2])*i,h:b(c[3])*i,m:b(c[4])*i,s:b(c[5])*i,ms:b(En(1e3*c[6]))*i}):(c=Cn.exec(t))?h={y:Rn(c[2],i="-"===c[1]?-1:1),M:Rn(c[3],i),w:Rn(c[4],i),d:Rn(c[5],i),h:Rn(c[6],i),m:Rn(c[7],i),s:Rn(c[8],i)}:null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(s=xn(h.from),a=xn(h.to),r=s.isValid()&&a.isValid()?(a=An(a,s),s.isBefore(a)?u=Pn(s,a):((u=Pn(a,s)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(h={}).ms=r.milliseconds,h.M=r.months),e=new Gn(h),Wn(t)&&d(t,"_locale")&&(e._locale=t._locale),e}function Rn(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function Pn(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function Un(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(T(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),$n(this,In(i="string"==typeof i?+i:i,e),t),this}}function $n(t,n,i,r){var s=n._milliseconds,a=En(n._days),o=En(n._months);t.isValid()&&(r=null==r||r,o&&Tt(t,kt(t,"Month")+o*i),a&&bt(t,"Date",kt(t,"Date")+a*i),s&&t._d.setTime(t._d.valueOf()+s*i),r&&e.updateOffset(t,a||o))}In.fn=Gn.prototype,In.invalid=function(){return In(NaN)};var Jn=Un(1,"add"),qn=Un(-1,"subtract");function Qn(t,n){var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function Bn(t){var n;return void 0===t?this._locale._abbr:(null!=(n=un(t))&&(this._locale=n),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Vn=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Xn(){return this._locale}var Kn=1e3,ti=6e4,ni=36e5,ii=126227808e5;function ei(t,n){return(t%n+n)%n}function ri(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-ii:new Date(t,n,i).valueOf()}function si(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-ii:Date.UTC(t,n,i)}function ai(t,n){P(0,[t,t.length],0,n)}function oi(t,n,i,e,r){var s;return null==t?Lt(this,e,r).year:(n>(s=Zt(t,e,r))&&(n=s),ui.call(this,t,n,i,e,r))}function ui(t,n,i,e,r){var s=At(t,n,i,e,r),a=Ft(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),dt("G",st),dt("g",st),dt("GG",X,q),dt("gg",X,q),dt("GGGG",it,B),dt("gggg",it,B),dt("GGGGG",et,V),dt("ggggg",et,V),vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=b(t)})),vt(["gg","GG"],(function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)})),P("Q",0,"Qo","quarter"),O("quarter","Q"),L("quarter",7),dt("Q",J),mt("Q",(function(t,n){n[1]=3*(b(t)-1)})),P("D",["DD",2],"Do","date"),O("date","D"),L("date",9),dt("D",X),dt("DD",X,q),dt("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),mt(["D","DD"],2),mt("Do",(function(t,n){n[2]=b(t.match(X)[0])}));var hi=Dt("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),L("dayOfYear",4),dt("DDD",nt),dt("DDDD",Q),mt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=b(t)})),P("m",["mm",2],0,"minute"),O("minute","m"),L("minute",14),dt("m",X),dt("mm",X,q),mt(["m","mm"],4);var di=Dt("Minutes",!1);P("s",["ss",2],0,"second"),O("second","s"),L("second",15),dt("s",X),dt("ss",X,q),mt(["s","ss"],5);var ci,li=Dt("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),O("millisecond","ms"),L("millisecond",16),dt("S",nt,J),dt("SS",nt,q),dt("SSS",nt,Q),ci="SSSS";ci.length<=9;ci+="S")dt(ci,rt);function fi(t,n){n[6]=b(1e3*("0."+t))}for(ci="S";ci.length<=9;ci+="S")mt(ci,fi);var mi=Dt("Milliseconds",!1);P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var vi=y.prototype;function pi(t){return t}vi.add=Jn,vi.calendar=function(t,n){var i=t||xn(),r=An(i,this).startOf("day"),s=e.calendarFormat(this,r)||"sameElse",a=n&&(_(n[s])?n[s].call(this,i):n[s]);return this.format(a||this.localeData().calendar(s,this,xn(i)))},vi.clone=function(){return new y(this)},vi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=An(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=F(n)){case"year":s=Qn(this,e)/12;break;case"month":s=Qn(this,e);break;case"quarter":s=Qn(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:k(s)},vi.endOf=function(t){var n;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?si:ri;switch(t){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=ni-ei(n+(this._isUTC?0:this.utcOffset()*ti),ni)-1;break;case"minute":n=this._d.valueOf(),n+=ti-ei(n,ti)-1;break;case"second":n=this._d.valueOf(),n+=Kn-ei(n,Kn)-1}return this._d.setTime(n),e.updateOffset(this,!0),this},vi.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=U(this,t);return this.localeData().postformat(n)},vi.from=function(t,n){return this.isValid()&&(D(t)&&t.isValid()||xn(t).isValid())?In({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},vi.fromNow=function(t){return this.from(xn(),t)},vi.to=function(t,n){return this.isValid()&&(D(t)&&t.isValid()||xn(t).isValid())?In({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},vi.toNow=function(t){return this.to(xn(),t)},vi.get=function(t){return _(this[t=F(t)])?this[t]():this},vi.invalidAt=function(){return m(this).overflow},vi.isAfter=function(t,n){var i=D(t)?t:xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=F(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},vi.isBefore=function(t,n){var i=D(t)?t:xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=F(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},vi.isBetween=function(t,n,i,e){var r=D(t)?t:xn(t),s=D(n)?n:xn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},vi.isSame=function(t,n){var i,e=D(t)?t:xn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=F(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},vi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},vi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},vi.isValid=function(){return v(this)},vi.lang=Vn,vi.locale=Bn,vi.localeData=Xn,vi.max=Nn,vi.min=Hn,vi.parsingFlags=function(){return l({},m(this))},vi.set=function(t,n){if("object"==typeof t)for(var i=function(t){var n=[];for(var i in t)n.push({unit:i,priority:A[i]});return n.sort((function(t,n){return t.priority-n.priority})),n}(t=j(t)),e=0;e<i.length;e++)this[i[e].unit](t[i[e].unit]);else if(_(this[t=F(t)]))return this[t](n);return this},vi.startOf=function(t){var n;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?si:ri;switch(t){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=ei(n+(this._isUTC?0:this.utcOffset()*ti),ni);break;case"minute":n=this._d.valueOf(),n-=ei(n,ti);break;case"second":n=this._d.valueOf(),n-=ei(n,Kn)}return this._d.setTime(n),e.updateOffset(this,!0),this},vi.subtract=qn,vi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},vi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},vi.toDate=function(){return new Date(this.valueOf())},vi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",n="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z");var i="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},vi.toJSON=function(){return this.isValid()?this.toISOString():null},vi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vi.unix=function(){return Math.floor(this.valueOf()/1e3)},vi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vi.year=yt,vi.isLeapYear=function(){return Mt(this.year())},vi.weekYear=function(t){return oi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vi.isoWeekYear=function(t){return oi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},vi.quarter=vi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},vi.month=_t,vi.daysInMonth=function(){return wt(this.year(),this.month())},vi.week=vi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},vi.isoWeek=vi.isoWeeks=function(t){var n=Lt(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},vi.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},vi.isoWeeksInYear=function(){return Zt(this.year(),1,4)},vi.date=hi,vi.day=vi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},vi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},vi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},vi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},vi.hour=vi.hours=Kt,vi.minute=vi.minutes=di,vi.second=vi.seconds=li,vi.millisecond=vi.milliseconds=mi,vi.utcOffset=function(t,n,i){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=jn(ot,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(r=Ln(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!n||this._changeInProgress?$n(this,In(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Ln(this)},vi.utc=function(t){return this.utcOffset(0,t)},vi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ln(this),"m")),this},vi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=jn(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},vi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},vi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vi.isLocal=function(){return!!this.isValid()&&!this._isUTC},vi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vi.isUtc=Zn,vi.isUTC=Zn,vi.zoneAbbr=function(){return this._isUTC?"UTC":""},vi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vi.dates=x("dates accessor is deprecated. Use date instead.",hi),vi.months=x("months accessor is deprecated. Use month instead",_t),vi.years=x("years accessor is deprecated. Use year instead",yt),vi.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),vi.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(M(t,this),(t=wn(t))._a){var n=t._isUTC?f(t._a):xn(t._a);this._isDSTShifted=this.isValid()&&w(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Yi=W.prototype;function Mi(t,n,i,e){var r=un(),s=f().set(e,n);return r[i](s,t)}function gi(t,n,i){if(o(t)&&(n=t,t=void 0),t=t||"",null!=n)return Mi(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=Mi(t,e,i,"month");return r}function yi(t,n,i,e){"boolean"==typeof t?(o(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,o(n)&&(i=n,n=void 0),n=n||"");var r,s=un(),a=t?s._week.dow:0;if(null!=i)return Mi(n,(i+a)%7,e,"day");var u=[];for(r=0;r<7;r++)u[r]=Mi(n,(r+a)%7,e,"day");return u}Yi.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return _(e)?e.call(n,i):e},Yi.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},Yi.invalidDate=function(){return this._invalidDate},Yi.ordinal=function(t){return this._ordinal.replace("%d",t)},Yi.preparse=pi,Yi.postformat=pi,Yi.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return _(r)?r(t,n,i,e):r.replace(/%d/i,t)},Yi.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return _(i)?i(n):i.replace(/%s/i,n)},Yi.set=function(t){var n,i;for(i in t)_(n=t[i])?this[i]=n:this["_"+i]=n;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Yi.months=function(t,n){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||St).test(n)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Yi.monthsShort=function(t,n){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[St.test(n)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Yi.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return Nt.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=f([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},Yi.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Et.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Yi.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||Et.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Gt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Yi.week=function(t){return Lt(t,this._week.dow,this._week.doy).week},Yi.firstDayOfYear=function(){return this._week.doy},Yi.firstDayOfWeek=function(){return this._week.dow},Yi.weekdays=function(t,n){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?zt(i,this._week.dow):t?i[t.day()]:i},Yi.weekdaysMin=function(t){return!0===t?zt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Yi.weekdaysShort=function(t){return!0===t?zt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Yi.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return Pt.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=f([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},Yi.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Yi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Yi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Yi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Yi.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},an("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===b(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),e.lang=x("moment.lang is deprecated. Use moment.locale instead.",an),e.langData=x("moment.langData is deprecated. Use moment.localeData instead.",un);var Di=Math.abs;function ki(t,n,i,e){var r=In(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function bi(t){return t<0?Math.floor(t):Math.ceil(t)}function wi(t){return 4800*t/146097}function Si(t){return 146097*t/4800}function xi(t){return function(){return this.as(t)}}var Hi=xi("ms"),Ni=xi("s"),Ti=xi("m"),_i=xi("h"),Gi=xi("d"),Wi=xi("w"),Ei=xi("M"),Oi=xi("Q"),Fi=xi("y");function ji(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ai=ji("milliseconds"),Li=ji("seconds"),Zi=ji("minutes"),zi=ji("hours"),Ci=ji("days"),Ii=ji("months"),Ri=ji("years");var Pi=Math.round,Ui={ss:44,s:45,m:45,h:22,d:26,M:11};function $i(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var Ji=Math.abs;function qi(t){return(t>0)-(t<0)||+t}function Qi(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i=Ji(this._milliseconds)/1e3,e=Ji(this._days),r=Ji(this._months);t=k(i/60),n=k(t/60),i%=60,t%=60;var s=k(r/12),a=r%=12,o=e,u=n,h=t,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var l=c<0?"-":"",f=qi(this._months)!==qi(c)?"-":"",m=qi(this._days)!==qi(c)?"-":"",v=qi(this._milliseconds)!==qi(c)?"-":"";return l+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||h||d?"T":"")+(u?v+u+"H":"")+(h?v+h+"M":"")+(d?v+d+"S":"")}var Bi=Gn.prototype;return Bi.isValid=function(){return this._isValid},Bi.abs=function(){var t=this._data;return this._milliseconds=Di(this._milliseconds),this._days=Di(this._days),this._months=Di(this._months),t.milliseconds=Di(t.milliseconds),t.seconds=Di(t.seconds),t.minutes=Di(t.minutes),t.hours=Di(t.hours),t.months=Di(t.months),t.years=Di(t.years),this},Bi.add=function(t,n){return ki(this,t,n,1)},Bi.subtract=function(t,n){return ki(this,t,n,-1)},Bi.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(i=this._months+wi(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(Si(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},Bi.asMilliseconds=Hi,Bi.asSeconds=Ni,Bi.asMinutes=Ti,Bi.asHours=_i,Bi.asDays=Gi,Bi.asWeeks=Wi,Bi.asMonths=Ei,Bi.asQuarters=Oi,Bi.asYears=Fi,Bi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},Bi._bubble=function(){var t,n,i,e,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*bi(Si(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=k(s/1e3),u.seconds=t%60,n=k(t/60),u.minutes=n%60,i=k(n/60),u.hours=i%24,a+=k(i/24),o+=r=k(wi(a)),a-=bi(Si(r)),e=k(o/12),o%=12,u.days=a,u.months=o,u.years=e,this},Bi.clone=function(){return In(this)},Bi.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},Bi.milliseconds=Ai,Bi.seconds=Li,Bi.minutes=Zi,Bi.hours=zi,Bi.days=Ci,Bi.weeks=function(){return k(this.days()/7)},Bi.months=Ii,Bi.years=Ri,Bi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var n=this.localeData(),i=function(t,n,i){var e=In(t).abs(),r=Pi(e.as("s")),s=Pi(e.as("m")),a=Pi(e.as("h")),o=Pi(e.as("d")),u=Pi(e.as("M")),h=Pi(e.as("y")),d=r<=Ui.ss&&["s",r]||r<Ui.s&&["ss",r]||s<=1&&["m"]||s<Ui.m&&["mm",s]||a<=1&&["h"]||a<Ui.h&&["hh",a]||o<=1&&["d"]||o<Ui.d&&["dd",o]||u<=1&&["M"]||u<Ui.M&&["MM",u]||h<=1&&["y"]||["yy",h];return d[2]=n,d[3]=+t>0,d[4]=i,$i.apply(null,d)}(this,!t,n);return t&&(i=n.pastFuture(+this,i)),n.postformat(i)},Bi.toISOString=Qi,Bi.toString=Qi,Bi.toJSON=Qi,Bi.locale=Bn,Bi.localeData=Xn,Bi.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qi),Bi.lang=Vn,P("X",0,0,"unix"),P("x",0,0,"valueOf"),dt("x",st),dt("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t,10))})),mt("x",(function(t,n,i){i._d=new Date(b(t))})),e.version="2.24.0",n=xn,e.fn=vi,e.min=function(){return Tn("isBefore",[].slice.call(arguments,0))},e.max=function(){return Tn("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=f,e.unix=function(t){return xn(1e3*t)},e.months=function(t,n){return gi(t,n,"months")},e.isDate=u,e.locale=an,e.invalid=p,e.duration=In,e.isMoment=D,e.weekdays=function(t,n,i){return yi(t,n,i,"weekdays")},e.parseZone=function(){return xn.apply(null,arguments).parseZone()},e.localeData=un,e.isDuration=Wn,e.monthsShort=function(t,n){return gi(t,n,"monthsShort")},e.weekdaysMin=function(t,n,i){return yi(t,n,i,"weekdaysMin")},e.defineLocale=on,e.updateLocale=function(t,n){if(null!=n){var i,e,r=tn;null!=(e=sn(t))&&(r=e._config),(i=new W(n=G(r,n))).parentLocale=nn[t],nn[t]=i,an(t)}else null!=nn[t]&&(null!=nn[t].parentLocale?nn[t]=nn[t].parentLocale:null!=nn[t]&&delete nn[t]);return nn[t]},e.locales=function(){return H(nn)},e.weekdaysShort=function(t,n,i){return yi(t,n,i,"weekdaysShort")},e.normalizeUnits=F,e.relativeTimeRounding=function(t){return void 0===t?Pi:"function"==typeof t&&(Pi=t,!0)},e.relativeTimeThreshold=function(t,n){return void 0!==Ui[t]&&(void 0===n?Ui[t]:(Ui[t]=n,"s"===t&&(Ui.ss=n-1),!0))},e.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},e.prototype=vi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()}));const C=class{constructor(i){t(this,i),this.bkkrOpen=n(this,"bkkrOpen",7),this.bkkrCancel=n(this,"bkkrCancel",7),this.bkkrInput=n(this,"bkkrInput",7),this.bkkrChange=n(this,"bkkrChange",7),this.bkkrBlur=n(this,"bkkrBlur",7),this.bkkrFocus=n(this,"bkkrFocus",7),this.bkkrStyle=n(this,"bkkrStyle",7),this.datetimeId="bkkr-datetime-"+R++,this.inheritedAttributes={},this.locale={},this.datetimeValue={},this.fireFocusEvents=!0,this.hasFocus=!1,this.isExpanded=!1,this.autofocus=!1,this.disabled=!1,this.displayFormat=I,this.name=this.datetimeId,this.readonly=!1,this.required=!1,this.type="date",this.value=null,this.interfaceOptions={},this.onInput=t=>{const n=t.target;if(!n.value)return void(this.value=null);const i=z(n.value,"time"===this.type?g:M,!0);this.value=i.isValid()?i.format():n.value,console.log(this.value),console.log(this.datetimeValue),this.bkkrInput.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.emitStyle(),this.fireFocusEvents&&this.bkkrBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.emitStyle(),this.fireFocusEvents&&this.bkkrFocus.emit(t)}}disabledChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.bkkrChange.emit({value:null==this.value?this.value:this.value.toString()})}componentWillLoad(){this.inheritedAttributes=s(this.el,["tabindex","title"]),this.locale={monthNames:v(this.monthNames,"monthNames"),monthShortNames:v(this.monthShortNames,"monthShortNames"),dayNames:v(this.dayNames,"dayNames"),dayShortNames:v(this.dayShortNames,"dayShortNames")},this.updateDatetimeValue(this.value),this.emitStyle()}connectedCallback(){this.emitStyle(),document.dispatchEvent(new CustomEvent("bkkrdatetimeDidLoad",{detail:this.el}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("bkkrdatetimeDidUnload",{detail:this.el}))}async setFocus(){this.nativeinput&&this.nativeinput.focus()}async setBlur(){this.nativeinput&&this.nativeinput.blur()}getdatetimeElement(){return Promise.resolve(this.nativeinput)}async open(t){if(this.disabled||this.isExpanded)return;this.bkkrOpen.emit();const n=this.overlay=await this.openPopover(t);return this.overlay.addEventListener("bkkrDatepickerDidChange",(t=>this.close(t))),this.isExpanded=!0,this.hasFocus=!0,this.emitStyle(),n.onDidDismiss().then((()=>{this.overlay.removeEventListener("bkkrDatepickerDidChange",(t=>this.close(t))),this.overlay=void 0,this.isExpanded=!1,this.hasFocus=!1,this.emitStyle(),this.setFocus(),this.bkkrCancel.emit()})),await n.present(),n}openPopover(t){const{value:n,locale:i,min:e,max:r,type:s}=this,a=this.interfaceOptions,u=Object.assign(Object.assign({},a),{component:"bkkr-datetime-popover",cssClass:["datetime-popover",a.cssClass],event:t,componentProps:{header:a.header,subHeader:a.subHeader,value:n,locale:i,min:e,max:r,type:s}});return o.create(u)}close(t){return this.value=t.detail.value,this.updateDatetimeValue(t.detail.value),this.overlay?(this.hasFocus=!1,this.emitStyle(),this.overlay.dismiss()):Promise.resolve(!1)}getValue(){return(this.value||"").toString()}emitStyle(){this.bkkrStyle.emit({interactive:!0,datetime:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}updateDatetimeValue(t){m(this.datetimeValue,t,this.displayTimezone)}hasValue(){return this.getValue().length>0}get displayValue(){if(null!=this.value&&0!==this.value.length)return((t,n,i)=>{if(void 0===n)return;const e=[];let r=!1;if(F.forEach(((s,a)=>{if(t.indexOf(s.f)>-1){const o="{"+a+"}",u=((t,n,i,e)=>{if(t!==S&&t!==x){if(t===E)return void 0!==i&&void 0!==i.hour?i.hour<12?"AM":"PM":n?n.toUpperCase():"";if(t===O)return void 0!==i&&void 0!==i.hour?i.hour<12?"am":"pm":n||"";if(null==n)return"";if(t===D||t===w||t===H||t===N||t===G||t===W)return p(n);if(t===y)return Y(n);if(t===k)return(e.monthNames?e.monthNames:L)[n-1];if(t===b)return(e.monthShortNames?e.monthShortNames:Z)[n-1];if(t===T||t===_){if(0===n)return"12";if(n>12&&(n-=12),t===T&&n<10)return"0"+n}return n.toString()}try{return n=new Date(i.year,i.month-1,i.day).getDay(),t===S?(e.dayNames?e.dayNames:j)[n]:(e.dayShortNames?e.dayShortNames:A)[n]}catch(t){}})(s.f,n[s.k],n,i);r||void 0===u||null==n[s.k]||(r=!0),e.push(o,u||""),t=t.replace(s.f,o)}})),r){for(let n=0;n<e.length;n+=2)t=t.replace(e[n],e[n+1]);return t}})(this.displayFormat||I,this.datetimeValue,this.locale)}render(){const t=this.datetimeId+"-lbl",n=a(this.el);return n&&(n.id=t),i(e,{"aria-disabled":this.disabled?"true":null,class:u(this.color,{"has-value":this.hasValue(),"has-focus":this.hasFocus})},i("input",Object.assign({class:"native-datetime",ref:t=>this.nativeinput=t,"aria-labelledby":t,disabled:this.disabled,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,type:"text",value:this.displayValue,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus},this.inheritedAttributes)),i("input",{class:"cloned-datetime",disabled:this.disabled,min:this.min,max:this.max,name:this.name,readOnly:this.readonly,required:this.required,type:"text",value:this.value,tabindex:"-1"}),!this.readonly&&!this.disabled&&i("button",{type:"button",class:"datetime-calendar-icon",onClick:t=>this.open(t)},i("bkkr-icon",{size:"small",name:"calendar"})))}get el(){return r(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"]}}},I="DD.MM.YYYY";let R=0;C.style=".sc-bkkr-datetime-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--padding-top:10px;--padding-end:calc(var(--bkkr-spacer, 16px) / 2);--padding-bottom:10px;--padding-start:0;--background:transparent;--color:initial;padding-left:0 !important;padding-right:0 !important;padding-top:0 !important;padding-bottom:0 !important;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;background:var(--background);color:var(--color);font-family:var(--default-font-sans-serif);font-size:inherit}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-bkkr-datetime-h{padding-left:unset;padding-right:unset;-webkit-padding-start:0 !important;padding-inline-start:0 !important;-webkit-padding-end:0 !important;padding-inline-end:0 !important}}bkkr-item.sc-bkkr-datetime-h:not(.item-label),bkkr-item:not(.item-label) .sc-bkkr-datetime-h{--padding-start:0}.item-label-stacked.sc-bkkr-datetime-h,.item-label-stacked .sc-bkkr-datetime-h,.item-label-floating.sc-bkkr-datetime-h,.item-label-floating .sc-bkkr-datetime-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.native-datetime.sc-bkkr-datetime{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;display:inline-block;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-datetime.sc-bkkr-datetime{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-datetime.sc-bkkr-datetime::-moz-placeholder{-moz-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime::-ms-input-placeholder{-ms-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime::-webkit-input-placeholder{-webkit-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);-webkit-transition-delay:var(--placeholder-transition-delay, none);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime:-ms-input-placeholder{-ms-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime::placeholder{-webkit-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);-webkit-transition-delay:var(--placeholder-transition-delay, none);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-datetime.sc-bkkr-datetime:-webkit-autofill{background-color:transparent}.native-datetime.sc-bkkr-datetime:invalid{-webkit-box-shadow:none;box-shadow:none}.native-datetime.sc-bkkr-datetime::-ms-clear{display:none}.native-datetime[disabled].sc-bkkr-datetime{opacity:0.4}.cloned-datetime.sc-bkkr-datetime{display:none;pointer-events:none}.datetime-calendar-icon.sc-bkkr-datetime{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;background-size:18px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.datetime-calendar-icon.sc-bkkr-datetime:focus{opacity:0.5}";export{C as bkkr_datetime}