diff --git a/CHANGELOG.md b/CHANGELOG.md
index 625ee8121..f45bb9641 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
### Fixes:
+* Fix exception when registering in certain cases
* Fix vue-select usage
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
index f37d2d63e..f4b12a25f 100644
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ b/app/Http/Controllers/Auth/RegisterController.php
@@ -111,9 +111,9 @@ class RegisterController extends Controller
return $user;
} catch (\Exception $e) {
- Log::warning($e);
+ Log::error($e);
- return null;
+ abort(500, trans('auth.signup_error'));
}
}
diff --git a/psalm.xml b/psalm.xml
index 7d216f67b..e5c0588b7 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -137,6 +137,12 @@
+ "+e+".vcf<\/code> or .vCard<\/code> file:","import_upload_rule_cant_revert":"Make sure data is accurate before uploading, as you can\u2019t undo the upload.","import_upload_rule_format":"We support .vcard<\/code> and .vcf<\/code> files.","import_upload_rule_instructions":"Export instructions for Contacts.app (macOS)<\/a> and Google Contacts<\/a>.","import_upload_rule_limit":"Files are limited to 10MB.","import_upload_rule_multiple":"For now, if your contacts have multiple email addresses or phone numbers, only the first entry will be picked up.","import_upload_rule_time":"It might take up to 1 minute to upload the contacts and process them. Be patient.","import_upload_rule_vcard":"We support the vCard 3.0 format, which is the default format for Contacts.app (macOS) and Google Contacts.","import_upload_rules_desc":"We do however have some rules:","import_upload_title":"Import your contacts from a vCard file","import_vcard_contact_exist":"Contact already exists","import_vcard_contact_no_firstname":"No firstname (mandatory)","import_vcard_file_no_entries":"File contains no entries","import_vcard_file_not_found":"File not found","import_vcard_parse_error":"Error when parsing the vCard entry","import_vcard_unknown_entry":"Unknown contact name","import_view_report":"View report","lastname":"Last name","layout":"Layout","layout_big":"Full width of the browser","layout_small":"Maximum 1200 pixels wide","locale":"Language used in the app","locale_ar":"Arabic","locale_cs":"Czech","locale_de":"German","locale_en":"English","locale_en-GB":"English (United Kingdom)","locale_es":"Spanish","locale_fr":"French","locale_he":"Hebrew","locale_help":"Do you want to help translating Monica or add a new language? Please follow this link for more information<\/a>.","locale_hr":"Croatian","locale_it":"Italian","locale_ja":"Japanese","locale_nl":"Dutch","locale_pt":"Portuguese","locale_pt-BR":"Portuguese (Brazil)","locale_ru":"Russian","locale_tr":"Turkish","locale_zh":"Chinese Simplified","locale_zh-TW":"Chinese Traditional","logs_author":"By :name on :date","logs_title":"Everything that happened to this account","me_choose":"Choose yourself","me_choose_placeholder":"Choose yourself","me_help":"This is the contact that represents you<\/em> in Monica","me_no_contact":"No contact selected yet.","me_remove_contact":"Remove the association","me_select":"Select a contact","me_select_click":"Click here to select a contact.","me_title":"My contact","name":"Your name: :name","name_order":"Name order","name_order_firstname_lastname":".vcf<\/code> or .vCard<\/code> file:","import_upload_rule_cant_revert":"Make sure data is accurate before uploading, as you can\u2019t undo the upload.","import_upload_rule_format":"We support .vcard<\/code> and .vcf<\/code> files.","import_upload_rule_instructions":"Export instructions for Contacts.app (macOS)<\/a> and Google Contacts<\/a>.","import_upload_rule_limit":"Files are limited to 10MB.","import_upload_rule_multiple":"For now, if your contacts have multiple email addresses or phone numbers, only the first entry will be picked up.","import_upload_rule_time":"It might take up to 1 minute to upload the contacts and process them. Be patient.","import_upload_rule_vcard":"We support the vCard 3.0 format, which is the default format for Contacts.app (macOS) and Google Contacts.","import_upload_rules_desc":"We do however have some rules:","import_upload_title":"Import your contacts from a vCard file","import_vcard_contact_exist":"Contact already exists","import_vcard_contact_no_firstname":"No firstname (mandatory)","import_vcard_file_no_entries":"File contains no entries","import_vcard_file_not_found":"File not found","import_vcard_parse_error":"Error when parsing the vCard entry","import_vcard_unknown_entry":"Unknown contact name","import_view_report":"View report","lastname":"Last name","layout":"Layout","layout_big":"Full width of the browser","layout_small":"Maximum 1200 pixels wide","locale":"Language used in the app","locale_ar":"Arabic","locale_cs":"Czech","locale_de":"German","locale_en":"English","locale_en-GB":"English (United Kingdom)","locale_es":"Spanish","locale_fr":"French","locale_he":"Hebrew","locale_help":"Do you want to help translating Monica or add a new language? Please follow this link for more information<\/a>.","locale_hr":"Croatian","locale_it":"Italian","locale_ja":"Japanese","locale_nl":"Dutch","locale_pt":"Portuguese","locale_pt-BR":"Portuguese (Brazil)","locale_ru":"Russian","locale_tr":"Turkish","locale_zh":"Chinese Simplified","locale_zh-TW":"Chinese Traditional","logs_author":"By :name on :date","logs_title":"Everything that happened to this account","me_choose":"Choose yourself","me_choose_placeholder":"Choose yourself","me_help":"This is the contact that represents you<\/em> in Monica","me_no_contact":"No contact selected yet.","me_remove_contact":"Remove the association","me_select":"Select a contact","me_select_click":"Click here to select a contact.","me_title":"My contact","name":"Your name: :name","name_order":"Name order","name_order_firstname_lastname":"s[h]&&(e.offsets.popper[f]+=c[f]+m-s[h]),e.offsets.popper=z(e.offsets.popper);var b=c[f]+c[l]/2-m/2,g=a(e.instance.popper),v=parseFloat(g["margin"+d]),_=parseFloat(g["border"+d+"Width"]),y=b-e.offsets.popper[f]-v-_;return y=Math.max(Math.min(s[l]-m,y),0),e.arrowElement=r,e.offsets.arrow=(w(n={},f,Math.round(y)),w(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(P(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=L(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=N(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Q.FLIP:a=[r,i];break;case Q.CLOCKWISE:a=K(r);break;case Q.COUNTERCLOCKWISE:a=K(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=N(r);var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,f="left"===r&&d(u.right)>d(l.left)||"right"===r&&d(u.left)0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var Bt=[31,28,31,30,31,30,31,31,30,31,30,31],jt=[31,29,31,30,31,30,31,31,30,31,30,31];function Rt(e){return e%400==0||e%4==0&&e%100!=0}var Xt={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Et(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Et(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Pt(n.year,i);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Et(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Et(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=Ue(e,r);if(n.isTwoDigitYear){var o=Pt(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),He(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),He(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Dt("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Ie(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Dt("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Et(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Et(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return Ct(Ot.month,e,i);case"MM":return Et(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return Ct(Ot.month,e,i);case"LL":return Et(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return Ct(Ot.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return He(function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ve(e),i=_e(t),o=Ge(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return Ct(Ot.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Ie(function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ve(e),r=_e(t),i=Ye(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return Ct(Ot.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Et(t.length,e)}},validate:function(e,t,n){var r=Rt(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=jt[i]:t>=1&&t<=Bt[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return Ct(Ot.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Et(t.length,e)}},validate:function(e,t,n){return Rt(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Mt(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Et(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Mt(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Et(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Mt(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Et(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=_e(t);n%7==0&&(n-=7);var r=ve(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Wt(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Wt(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Wt(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return Ct(Ot.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return Ct(Ot.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return Ct(Ot.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return Ct(Ot.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return Ct(Ot.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return Ct(Ot.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Et(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Et(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return Nt(xt,e);case"XX":return Nt(Tt,e);case"XXXX":return Nt(Lt,e);case"XXXXX":return Nt(St,e);case"XXX":default:return Nt(kt,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return Nt(xt,e);case"xx":return Nt(Tt,e);case"xxxx":return Nt(Lt,e);case"xxxxx":return Nt(St,e);case"xxx":default:return Nt(kt,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return qt(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return qt(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},It=10,Ft=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yt=/^'(.*?)'?$/,Ht=/''/g,Ut=/\S/,Vt=/[a-zA-Z]/;function Gt(e,t,n,r){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var i=String(e),o=String(t),a=r||{},s=a.locale||Se;if(!s.match)throw new RangeError("locale must contain match property");var c=s.options&&s.options.firstWeekContainsDate,u=null==c?1:_e(c),l=null==a.firstWeekContainsDate?u:_e(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,f=null==d?0:_e(d),p=null==a.weekStartsOn?f:_e(a.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===i?ve(n):new Date(NaN);var h,m={firstWeekContainsDate:l,weekStartsOn:p,locale:s},b=[{priority:It,set:Kt,index:0}],g=o.match($t).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ct[t])(e,s.formatLong,m):e})).join("").match(Ft),v=[];for(h=0;h
\n":"'+(n?e:J(e,!0))+"
\n"},t.blockquote=function(e){return""+(n?e:J(e,!0))+"\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"
\n":"
\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},t.listitem=function(e){return"\n\n"+e+"\n"+t+"
\n"},t.tablerow=function(e){return"\n"+e+" \n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
":"
"},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"+n+""},t.image=function(e,t,n){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return n;var r='":">"},t.text=function(e){return e},e}(),ee=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),te=function(){function e(){this.seen={}}return e.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},e}(),ne=r.defaults,re=w,ie=function(){function e(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee,this.slugger=new te}e.parse=function(t,n){return new e(n).parse(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,s,c,u,l,d,f,p,h,m,b,g,v,_,y="",M=e.length;for(n=0;n
"+se(e.message+"",!0)+"";throw e}}return de.options=de.setOptions=function(e){return oe(de.defaults,e),ue(de.defaults),de},de.getDefaults=ce,de.defaults=le,de.use=function(e){var t=oe({},e);if(e.renderer&&function(){var n=de.defaults.renderer||new Z,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,o=new Array(i),a=0;a=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},Dvum:function(e,t,n){var r,i,o;!function(a,s){"use strict";e.exports?e.exports=s(n("wd/R")):(i=[n("wd/R")],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},i={},o={},a={};e&&"string"==typeof e.version||k("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),c=+s[0],u=+s[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),r=n[0],i=n[1]||"",o=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t