Guest User

app-settings.js

a guest
Sep 21st, 2022
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 195.85 KB | None | 0 0
  1. {
  2. "locales": [
  3. {
  4. "code": "en",
  5. "name": "English"
  6. }
  7. ],
  8. "locale": "en",
  9. "locale_outgoing": "en",
  10. "date_format": "D MMM, YYYY",
  11. "reported_date_format": "DD-MMM-YYYY HH:mm:ss",
  12. "forms_only_mode": false,
  13. "default_responses": {
  14. "start_date": ""
  15. },
  16. "task_day_limit": 60,
  17. "district_admins_access_unallocated_messages": false,
  18. "public_access": false,
  19. "default_country_code": 63,
  20. "gateway_number": "",
  21. "contact_display_short": "clinic.name",
  22. "place_hierarchy_types": [
  23. "area",
  24. "branch",
  25. "cluster",
  26. "mentor",
  27. "the_community",
  28. "the_household"
  29. ],
  30. "roles": {
  31. "data_entry": {
  32. "name": "usertype.data-entry"
  33. },
  34. "analytics": {
  35. "name": "usertype.analytics"
  36. },
  37. "gateway": {
  38. "name": "usertype.gateway"
  39. },
  40. "national_admin": {
  41. "name": "usertype.national_admin"
  42. },
  43. "area_admin": {
  44. "name": "usertype.area_admin"
  45. },
  46. "branch_head": {
  47. "name": "usertype.branch_head"
  48. },
  49. "chcc": {
  50. "name": "usertype.chcc"
  51. },
  52. "chc_officer": {
  53. "name": "usertype.chc_officer"
  54. },
  55. "chc_mentor": {
  56. "name": "usertype.chc_mentor",
  57. "offline": true
  58. },
  59. "chc": {
  60. "name": "usertype.chc",
  61. "offline": true
  62. },
  63. "chc_trainee": {
  64. "name": "usertype.chc_trainee",
  65. "offline": true
  66. }
  67. },
  68. "permissions": {
  69. "can_access_gateway_api": [
  70. "gateway"
  71. ],
  72. "can_bulk_delete_reports": [
  73. "national_admin",
  74. "chc_mentor",
  75. "chc",
  76. "chc_trainee"
  77. ],
  78. "can_configure": [
  79. "national_admin"
  80. ],
  81. "can_create_people": [
  82. "national_admin",
  83. "chc_mentor",
  84. "chc",
  85. "chc_trainee"
  86. ],
  87. "can_create_places": [
  88. "national_admin",
  89. "chc_mentor",
  90. "chc",
  91. "chc_trainee"
  92. ],
  93. "can_create_records": [
  94. "data_entry",
  95. "gateway",
  96. "national_admin",
  97. "chc_mentor",
  98. "chc",
  99. "chc_trainee"
  100. ],
  101. "can_create_users": [
  102. "national_admin"
  103. ],
  104. "can_delete_contacts": [
  105. "national_admin"
  106. ],
  107. "can_delete_messages": [
  108. "national_admin"
  109. ],
  110. "can_delete_reports": [
  111. "national_admin"
  112. ],
  113. "can_delete_users": [
  114. "national_admin"
  115. ],
  116. "can_edit": [
  117. "gateway",
  118. "national_admin",
  119. "chc_mentor",
  120. "chc",
  121. "chc_trainee"
  122. ],
  123. "can_edit_profile": [
  124. "national_admin",
  125. "chc_mentor",
  126. "chc",
  127. "chc_trainee"
  128. ],
  129. "can_edit_verification": [
  130. "national_admin",
  131. "chc_mentor",
  132. "chc",
  133. "chc_trainee"
  134. ],
  135. "can_export_all": [
  136. "national_admin"
  137. ],
  138. "can_export_contacts": [
  139. "national_admin",
  140. "chc_mentor",
  141. "chc",
  142. "chc_trainee"
  143. ],
  144. "can_export_feedback": [
  145. "national_admin"
  146. ],
  147. "can_export_messages": [
  148. "analytics",
  149. "national_admin",
  150. "chc_mentor",
  151. "chc",
  152. "chc_trainee"
  153. ],
  154. "can_log_out_on_android": [
  155. "national_admin",
  156. "chc_trainee"
  157. ],
  158. "can_update_places": [
  159. "national_admin",
  160. "chc_mentor",
  161. "chc",
  162. "chc_trainee"
  163. ],
  164. "can_update_reports": [
  165. "national_admin",
  166. "chc_mentor",
  167. "chc",
  168. "chc_trainee"
  169. ],
  170. "can_update_users": [
  171. "national_admin"
  172. ],
  173. "can_export_dhis": [
  174. "national_admin"
  175. ],
  176. "can_verify_reports": [
  177. "national_admin",
  178. "chc_mentor",
  179. "chc",
  180. "chc_trainee"
  181. ],
  182. "can_view_analytics": [
  183. "analytics",
  184. "national_admin",
  185. "chc_mentor",
  186. "chc",
  187. "chc_trainee"
  188. ],
  189. "can_view_analytics_tab": [
  190. "national_admin",
  191. "chc_mentor",
  192. "chc",
  193. "chc_trainee"
  194. ],
  195. "can_view_call_action": [
  196. "national_admin",
  197. "chc_mentor",
  198. "chc",
  199. "chc_trainee"
  200. ],
  201. "can_view_contacts": [
  202. "national_admin",
  203. "branch_head",
  204. "chcc",
  205. "chc_officer",
  206. "chc_mentor",
  207. "chc",
  208. "chc_trainee"
  209. ],
  210. "can_view_contacts_tab": [
  211. "national_admin",
  212. "branch_head",
  213. "chcc",
  214. "chc_officer",
  215. "chc_mentor",
  216. "chc",
  217. "chc_trainee"
  218. ],
  219. "can_view_last_visited_date": [],
  220. "can_view_message_action": [
  221. "national_admin",
  222. "chc_mentor",
  223. "chc",
  224. "chc_trainee"
  225. ],
  226. "can_view_messages": [],
  227. "can_view_messages_tab": [],
  228. "can_view_outgoing_messages": [
  229. "national_admin"
  230. ],
  231. "can_view_reports": [
  232. "national_admin",
  233. "branch_head",
  234. "chcc",
  235. "chc_officer",
  236. "chc_mentor",
  237. "chc",
  238. "chc_trainee"
  239. ],
  240. "can_view_reports_tab": [
  241. "national_admin",
  242. "branch_head",
  243. "chcc",
  244. "chc_officer",
  245. "chc_mentor"
  246. ],
  247. "can_view_tasks": [
  248. "chc_mentor",
  249. "chc",
  250. "chc_trainee"
  251. ],
  252. "can_view_tasks_tab": [
  253. "chc_mentor",
  254. "chc",
  255. "chc_trainee"
  256. ],
  257. "can_view_unallocated_data_records": [
  258. "gateway",
  259. "national_admin",
  260. "chc_mentor",
  261. "chc",
  262. "chc_trainee"
  263. ],
  264. "can_view_users": [
  265. "national_admin"
  266. ],
  267. "can_write_wealth_quintiles": [],
  268. "can_aggregate_targets": [
  269. "chc_mentor"
  270. ]
  271. },
  272. "changes_controller": {
  273. "reiterate_changes": true,
  274. "changes_limit": 100,
  275. "debounce_interval": 200
  276. },
  277. "uhc": {
  278. "contacts_default_sort": "",
  279. "visit_count": {
  280. "month_start_date": 1,
  281. "visit_count_goal": 0
  282. }
  283. },
  284. "death_reporting": {
  285. "mark_deceased_forms": [
  286. "death_report"
  287. ],
  288. "date_field": "fields.death_details.date_of_death",
  289. "undo_deceased_forms": [
  290. "undo_death_report"
  291. ]
  292. },
  293. "contact_types": [
  294. {
  295. "id": "area",
  296. "name_key": "contact.type.area",
  297. "group_key": "contact.type.area.plural",
  298. "create_key": "contact.type.area.new",
  299. "edit_key": "contact.type.place.edit",
  300. "icon": "medic-district-hospital",
  301. "create_form": "form:contact:area:create",
  302. "edit_form": "form:contact:area:edit"
  303. },
  304. {
  305. "id": "branch",
  306. "name_key": "contact.type.branch",
  307. "group_key": "contact.type.branch.plural",
  308. "create_key": "contact.type.branch.new",
  309. "edit_key": "contact.type.place.edit",
  310. "parents": [
  311. "area"
  312. ],
  313. "icon": "medic-health-center",
  314. "create_form": "form:contact:branch:create",
  315. "edit_form": "form:contact:branch:edit"
  316. },
  317. {
  318. "id": "cluster",
  319. "name_key": "contact.type.cluster",
  320. "group_key": "contact.type.cluster.plural",
  321. "create_key": "contact.type.cluster.new",
  322. "edit_key": "contact.type.place.edit",
  323. "parents": [
  324. "branch"
  325. ],
  326. "icon": "medic-health-center",
  327. "create_form": "form:contact:cluster:create",
  328. "edit_form": "form:contact:cluster:edit",
  329. "count_visits": true
  330. },
  331. {
  332. "id": "mentor",
  333. "name_key": "contact.type.mentor",
  334. "group_key": "contact.type.mentor.plural",
  335. "create_key": "contact.type.mentor.new",
  336. "edit_key": "contact.type.place.edit",
  337. "parents": [
  338. "cluster"
  339. ],
  340. "icon": "medic-health-center",
  341. "create_form": "form:contact:mentor:create",
  342. "edit_form": "form:contact:mentor:edit",
  343. "count_visits": true
  344. },
  345. {
  346. "id": "the_community",
  347. "name_key": "contact.type.community",
  348. "group_key": "contact.type.community.plural",
  349. "create_key": "contact.type.community.new",
  350. "edit_key": "contact.type.place.edit",
  351. "parents": [
  352. "mentor"
  353. ],
  354. "icon": "medic-health-center",
  355. "create_form": "form:contact:the_community:create",
  356. "edit_form": "form:contact:the_community:edit",
  357. "count_visits": true
  358. },
  359. {
  360. "id": "the_household",
  361. "name_key": "contact.type.household",
  362. "group_key": "contact.type.household.plural",
  363. "create_key": "contact.type.household.new",
  364. "edit_key": "contact.type.place.edit",
  365. "parents": [
  366. "the_community"
  367. ],
  368. "icon": "medic-household",
  369. "create_form": "form:contact:the_household:create",
  370. "edit_form": "form:contact:the_household:edit",
  371. "count_visits": true
  372. },
  373. {
  374. "id": "person",
  375. "name_key": "contact.type.person",
  376. "group_key": "contact.type.person.plural",
  377. "create_key": "contact.type.person.new",
  378. "edit_key": "contact.type.person.edit",
  379. "primary_contact_key": "clinic.field.contact",
  380. "parents": [
  381. "area",
  382. "branch",
  383. "cluster",
  384. "mentor",
  385. "the_community",
  386. "the_household"
  387. ],
  388. "icon": "medic-person",
  389. "create_form": "form:contact:person:create",
  390. "edit_form": "form:contact:person:edit",
  391. "person": true
  392. }
  393. ],
  394. "setup_complete": true,
  395. "contact_summary": "var ContactSummary = {}; !function(e,t){if('object'==typeof exports&&'object'==typeof module)module.exports=t();else if('function'==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)('object'==typeof exports?exports:e)[r]=n[r]}}(ContactSummary,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(e,'__esModule',{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&'object'==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,'default',{enumerable:!0,value:e}),2&t&&'string'!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,'a',t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p='',n(n.s=1)}([function(e,t,n){'use strict';function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,'value'in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){if('undefined'==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if('function'==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function l(e){var t='function'==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf('[native code]')))return e;var n;if('function'!=typeof e)throw new TypeError('Super expression must either be null or a function');if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t=0;if('undefined'==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if('string'==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return'Object'===n&&e.constructor&&(n=e.constructor.name),'Map'===n||'Set'===n?Array.from(n):'Arguments'===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(t,'__esModule',{value:!0});var h=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(l(Error)),m=function(e){function t(t){return e.call(this,'Invalid DateTime: '+t.toMessage())||this}return o(t,e),t}(h),y=function(e){function t(t){return e.call(this,'Invalid Interval: '+t.toMessage())||this}return o(t,e),t}(h),p=function(e){function t(t){return e.call(this,'Invalid Duration: '+t.toMessage())||this}return o(t,e),t}(h),v=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(h),g=function(e){function t(t){return e.call(this,'Invalid unit '+t)||this}return o(t,e),t}(h),w=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(h),_=function(e){function t(){return e.call(this,'Zone is an abstract class')||this}return o(t,e),t}(h),b='numeric',k='short',T='long',S={year:b,month:b,day:b},O={year:b,month:k,day:b},M={year:b,month:k,day:b,weekday:k},N={year:b,month:T,day:b},I={year:b,month:T,day:b,weekday:T},D={hour:b,minute:b},E={hour:b,minute:b,second:b},L={hour:b,minute:b,second:b,timeZoneName:k},V={hour:b,minute:b,second:b,timeZoneName:T},x={hour:b,minute:b,hour12:!1},F={hour:b,minute:b,second:b,hour12:!1},C={hour:b,minute:b,second:b,hour12:!1,timeZoneName:k},j={hour:b,minute:b,second:b,hour12:!1,timeZoneName:T},Z={year:b,month:b,day:b,hour:b,minute:b},A={year:b,month:b,day:b,hour:b,minute:b,second:b},z={year:b,month:k,day:b,hour:b,minute:b},P={year:b,month:k,day:b,hour:b,minute:b,second:b},q={year:b,month:k,day:b,weekday:k,hour:b,minute:b},H={year:b,month:T,day:b,hour:b,minute:b,timeZoneName:k},W={year:b,month:T,day:b,hour:b,minute:b,second:b,timeZoneName:k},R={year:b,month:T,day:b,weekday:T,hour:b,minute:b,timeZoneName:T},U={year:b,month:T,day:b,weekday:T,hour:b,minute:b,second:b,timeZoneName:T};function Y(e){return void 0===e}function J(e){return'number'==typeof e}function G(e){return'number'==typeof e&&e%1==0}function $(){try{return'undefined'!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function B(){return!Y(Intl.DateTimeFormat.prototype.formatToParts)}function Q(){try{return'undefined'!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function X(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function te(e,t,n){return G(e)&&e>=t&&e<=n}function ne(e,t){return void 0===t&&(t=2),e.toString().length<t?('0'.repeat(t)+e).slice(-t):e.toString()}function re(e){return Y(e)||null===e||''===e?void 0:parseInt(e,10)}function ie(e){if(!Y(e)&&null!==e&&''!==e){var t=1e3*parseFloat('0.'+e);return Math.floor(t)}}function oe(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function ae(e){return e%4==0&&(e%100!=0||e%400==0)}function ue(e){return ae(e)?366:365}function se(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?ae(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ce(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function le(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function fe(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hour12:!1,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit'};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:t},o),u=$();if(u&&B()){var s=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(e){return'timezonename'===e.type.toLowerCase()}));return s?s.value:null}if(u){var c=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(c.length).replace(/^[, \\u200e]+/,'')}return null}function he(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function me(e){var t=Number(e);if('boolean'==typeof e||''===e||Number.isNaN(t))throw new w('Invalid unit value '+e);return t}function ye(e,t,n){var r={};for(var i in e)if(ee(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(null==o)continue;r[t(i)]=me(o)}return r}function pe(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?'+':'-';switch(t){case'short':return''+i+ne(n,2)+':'+ne(r,2);case'narrow':return''+i+n+(r>0?':'+r:'');case'techie':return''+i+ne(n,2)+ne(r,2);default:throw new RangeError('Value format '+t+' is out of range for property format')}}function ve(e){return X(e,['hour','minute','second','millisecond'])}var ge=/[A-Za-z_+-]{1,256}(:?\\/[A-Za-z_+-]{1,256}(\\/[A-Za-z_+-]{1,256})?)?/;function we(e){return JSON.stringify(e,Object.keys(e).sort())}var _e=['January','February','March','April','May','June','July','August','September','October','November','December'],be=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],ke=['J','F','M','A','M','J','J','A','S','O','N','D'];function Te(e){switch(e){case'narrow':return ke;case'short':return be;case'long':return _e;case'numeric':return['1','2','3','4','5','6','7','8','9','10','11','12'];case'2-digit':return['01','02','03','04','05','06','07','08','09','10','11','12'];default:return null}}var Se=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],Oe=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],Me=['M','T','W','T','F','S','S'];function Ne(e){switch(e){case'narrow':return Me;case'short':return Oe;case'long':return Se;case'numeric':return['1','2','3','4','5','6','7'];default:return null}}var Ie=['AM','PM'],De=['Before Christ','Anno Domini'],Ee=['BC','AD'],Le=['B','A'];function Ve(e){switch(e){case'narrow':return Le;case'short':return Ee;case'long':return De;default:return null}}function xe(e,t){for(var n,r='',i=d(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var Fe={D:S,DD:O,DDD:N,DDDD:I,t:D,tt:E,ttt:L,tttt:V,T:x,TT:F,TTT:C,TTTT:j,f:Z,ff:z,fff:H,ffff:R,F:A,FF:P,FFF:W,FFFF:U},Ce=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n='',r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);'\\''===a?(n.length>0&&i.push({literal:r,val:n}),t=null,n='',r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Fe[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ne(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i='en'===this.loc.listingMode(),o=this.loc.outputCalendar&&'gregory'!==this.loc.outputCalendar&&B(),a=function(e,n){return r.loc.extract(t,e,n)},u=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?'Z':t.isValid?t.zone.formatOffset(t.ts,e.format):''},s=function(){return i?function(e){return Ie[e.hour<12?0:1]}(t):a({hour:'numeric',hour12:!0},'dayperiod')},c=function(e,n){return i?function(e,t){return Te(t)[e.month-1]}(t,e):a(n?{month:e}:{month:e,day:'numeric'},'month')},l=function(e,n){return i?function(e,t){return Ne(t)[e.weekday-1]}(t,e):a(n?{weekday:e}:{weekday:e,month:'long',day:'numeric'},'weekday')},f=function(e){return i?function(e,t){return Ve(t)[e.year<0?0:1]}(t,e):a({era:e},'era')};return xe(e.parseFormat(n),(function(n){switch(n){case'S':return r.num(t.millisecond);case'u':case'SSS':return r.num(t.millisecond,3);case's':return r.num(t.second);case'ss':return r.num(t.second,2);case'm':return r.num(t.minute);case'mm':return r.num(t.minute,2);case'h':return r.num(t.hour%12==0?12:t.hour%12);case'hh':return r.num(t.hour%12==0?12:t.hour%12,2);case'H':return r.num(t.hour);case'HH':return r.num(t.hour,2);case'Z':return u({format:'narrow',allowZ:r.opts.allowZ});case'ZZ':return u({format:'short',allowZ:r.opts.allowZ});case'ZZZ':return u({format:'techie',allowZ:r.opts.allowZ});case'ZZZZ':return t.zone.offsetName(t.ts,{format:'short',locale:r.loc.locale});case'ZZZZZ':return t.zone.offsetName(t.ts,{format:'long',locale:r.loc.locale});case'z':return t.zoneName;case'a':return s();case'd':return o?a({day:'numeric'},'day'):r.num(t.day);case'dd':return o?a({day:'2-digit'},'day'):r.num(t.day,2);case'c':return r.num(t.weekday);case'ccc':return l('short',!0);case'cccc':return l('long',!0);case'ccccc':return l('narrow',!0);case'E':return r.num(t.weekday);case'EEE':return l('short',!1);case'EEEE':return l('long',!1);case'EEEEE':return l('narrow',!1);case'L':return o?a({month:'numeric',day:'numeric'},'month'):r.num(t.month);case'LL':return o?a({month:'2-digit',day:'numeric'},'month'):r.num(t.month,2);case'LLL':return c('short',!0);case'LLLL':return c('long',!0);case'LLLLL':return c('narrow',!0);case'M':return o?a({month:'numeric'},'month'):r.num(t.month);case'MM':return o?a({month:'2-digit'},'month'):r.num(t.month,2);case'MMM':return c('short',!1);case'MMMM':return c('long',!1);case'MMMMM':return c('narrow',!1);case'y':return o?a({year:'numeric'},'year'):r.num(t.year);case'yy':return o?a({year:'2-digit'},'year'):r.num(t.year.toString().slice(-2),2);case'yyyy':return o?a({year:'numeric'},'year'):r.num(t.year,4);case'yyyyyy':return o?a({year:'numeric'},'year'):r.num(t.year,6);case'G':return f('short');case'GG':return f('long');case'GGGGG':return f('narrow');case'kk':return r.num(t.weekYear.toString().slice(-2),2);case'kkkk':return r.num(t.weekYear,4);case'W':return r.num(t.weekNumber);case'WW':return r.num(t.weekNumber,2);case'o':return r.num(t.ordinal);case'ooo':return r.num(t.ordinal,3);case'q':return r.num(t.quarter);case'qq':return r.num(t.quarter,2);case'X':return r.num(Math.floor(t.ts/1e3));case'x':return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,o=function(e){switch(e[0]){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':return'hour';case'd':return'day';case'M':return'month';case'y':return'year';default:return null}},a=e.parseFormat(n),u=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),s=t.shiftTo.apply(t,u.map(o).filter((function(e){return e})));return xe(a,(r=s,function(e){var t=o(e);return t?i.num(r.get(t),e.length):e}))},e}(),je=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+': '+this.explanation:this.reason},e}(),Ze=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new _},t.formatOffset=function(e,t){throw new _},t.offset=function(e){throw new _},t.equals=function(e){throw new _},i(e,[{key:'type',get:function(){throw new _}},{key:'name',get:function(){throw new _}},{key:'universal',get:function(){throw new _}},{key:'isValid',get:function(){throw new _}}]),e}(),Ae=null,ze=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.offsetName=function(e,t){return de(e,t.format,t.locale)},n.formatOffset=function(e,t){return pe(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return'local'===e.type},i(t,[{key:'type',get:function(){return'local'}},{key:'name',get:function(){return $()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:'local'}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return!0}}],[{key:'instance',get:function(){return null===Ae&&(Ae=new t),Ae}}]),t}(Ze),Pe=RegExp('^'+ge.source+'$'),qe={};var He={year:0,month:1,day:2,hour:3,minute:4,second:5};var We={},Re=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}o(t,e),t.create=function(e){return We[e]||(We[e]=new t(e)),We[e]},t.resetCache=function(){We={},qe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Pe))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat('en-US',{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\\/GMT([+-]\\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return pe(this.offset(e),t)},n.offset=function(e){var t,n=new Date(e),r=(t=this.name,qe[t]||(qe[t]=new Intl.DateTimeFormat('en-US',{hour12:!1,timeZone:t,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'})),qe[t]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,u=o.value,s=He[a];Y(s)||(r[s]=parseInt(u,10))}return r}(r,n):function(e,t){var n=e.format(t).replace(/\\u200E/g,''),r=/(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}(r,n),o=i[0],a=i[1],u=i[2],s=i[3],c=+n,l=c%1e3;return(ce({year:o,month:a,day:u,hour:24===s?0:s,minute:i[4],second:i[5],millisecond:0})-(c-=l>=0?l:1e3+l))/6e4},n.equals=function(e){return'iana'===e.type&&e.name===this.name},i(t,[{key:'type',get:function(){return'iana'}},{key:'name',get:function(){return this.zoneName}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return this.valid}}]),t}(Ze),Ue=null,Ye=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}o(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);if(n)return new t(he(n[1],n[2]))}return null},i(t,null,[{key:'utcInstance',get:function(){return null===Ue&&(Ue=new t(0)),Ue}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return pe(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return'fixed'===e.type&&e.fixed===this.fixed},i(t,[{key:'type',get:function(){return'fixed'}},{key:'name',get:function(){return 0===this.fixed?'UTC':'UTC'+pe(this.fixed,'narrow')}},{key:'universal',get:function(){return!0}},{key:'isValid',get:function(){return!0}}]),t}(Ze),Je=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}o(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return''},n.offset=function(){return NaN},n.equals=function(){return!1},i(t,[{key:'type',get:function(){return'invalid'}},{key:'name',get:function(){return this.zoneName}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return!1}}]),t}(Ze);function Ge(e,t){var n;if(Y(e)||null===e)return t;if(e instanceof Ze)return e;if('string'==typeof e){var r=e.toLowerCase();return'local'===r?t:'utc'===r||'gmt'===r?Ye.utcInstance:null!=(n=Re.parseGMTOffset(e))?Ye.instance(n):Re.isValidSpecifier(r)?Re.create(e):Ye.parseSpecifier(r)||new Je(e)}return J(e)?Ye.instance(e):'object'==typeof e&&e.offset&&'number'==typeof e.offset?e:new Je(e)}var $e=function(){return Date.now()},Be=null,Qe=null,Ke=null,Xe=null,et=!1,tt=function(){function e(){}return e.resetCaches=function(){dt.resetCache(),Re.resetCache()},i(e,null,[{key:'now',get:function(){return $e},set:function(e){$e=e}},{key:'defaultZoneName',get:function(){return e.defaultZone.name},set:function(e){Be=e?Ge(e):null}},{key:'defaultZone',get:function(){return Be||ze.instance}},{key:'defaultLocale',get:function(){return Qe},set:function(e){Qe=e}},{key:'defaultNumberingSystem',get:function(){return Ke},set:function(e){Ke=e}},{key:'defaultOutputCalendar',get:function(){return Xe},set:function(e){Xe=e}},{key:'throwOnInvalid',get:function(){return et},set:function(e){et=e}}]),e}(),nt={};function rt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.DateTimeFormat(e,t),nt[n]=r),r}var it={};var ot={};function at(e,t){void 0===t&&(t={});var n=t,r=(n.base,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,['base'])),i=JSON.stringify([e,r]),o=ot[i];return o||(o=new Intl.RelativeTimeFormat(e,t),ot[i]=o),o}var ut=null;function st(e,t,n,r,i){var o=e.listingMode(n);return'error'===o?null:'en'===o?r(t):i(t)}var ct=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&$()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=it[n];return r||(r=new Intl.NumberFormat(e,t),it[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ne(this.floor?Math.floor(e):oe(e,3),this.padTo)},e}(),lt=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=$(),e.zone.universal&&this.hasIntl?(r='UTC',n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:sr.fromMillis(e.ts+60*e.offset*1e3)):'local'===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name),this.hasIntl){var i=Object.assign({},this.opts);r&&(i.timeZone=r),this.dtf=rt(t,i)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){switch(we(X(e,['weekday','era','year','month','day','hour','minute','second','timeZoneName','hour12']))){case we(S):return'M/d/yyyy';case we(O):return'LLL d, yyyy';case we(M):return'EEE, LLL d, yyyy';case we(N):return'LLLL d, yyyy';case we(I):return'EEEE, LLLL d, yyyy';case we(D):return'h:mm a';case we(E):return'h:mm:ss a';case we(L):case we(V):return'h:mm a';case we(x):return'HH:mm';case we(F):return'HH:mm:ss';case we(C):case we(j):return'HH:mm';case we(Z):return'M/d/yyyy, h:mm a';case we(z):return'LLL d, yyyy, h:mm a';case we(H):return'LLLL d, yyyy, h:mm a';case we(R):return'EEEE, LLLL d, yyyy, h:mm a';case we(A):return'M/d/yyyy, h:mm:ss a';case we(P):return'LLL d, yyyy, h:mm:ss a';case we(q):return'EEE, d LLL yyyy, h:mm a';case we(W):return'LLLL d, yyyy, h:mm:ss a';case we(U):return'EEEE, LLLL d, yyyy, h:mm:ss a';default:return'EEEE, LLLL d, yyyy, h:mm a'}}(this.opts),t=dt.create('en-US');return Ce.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&B()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:'en-US',numberingSystem:'latn',outputCalendar:'gregory'}},e}(),ft=function(){function e(e,t,n){this.opts=Object.assign({style:'long'},n),!t&&Q()&&(this.rtf=at(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n='always'),void 0===r&&(r=!1);var i={years:['year','yr.'],quarters:['quarter','qtr.'],months:['month','mo.'],weeks:['week','wk.'],days:['day','day','days'],hours:['hour','hr.'],minutes:['minute','min.'],seconds:['second','sec.']},o=-1===['hours','minutes','seconds'].indexOf(e);if('auto'===n&&o){var a='days'===e;switch(t){case 1:return a?'tomorrow':'next '+i[e][0];case-1:return a?'yesterday':'last '+i[e][0];case 0:return a?'today':'this '+i[e][0]}}var u=Object.is(t,-0)||t<0,s=Math.abs(t),c=1===s,l=i[e],f=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return u?s+' '+f+' ago':'in '+s+' '+f}(t,e,this.opts.numeric,'long'!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),dt=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf('-u-');if(-1===t)return[e];var n,r=e.substring(0,t);try{n=rt(e).resolvedOptions()}catch(e){n=rt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),o=i[0],a=i[1],u=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||u||null,this.intl=function(e,t,n){return $()?n||t?(e+='-u',n&&(e+='-ca-'+n),t&&(e+='-nu-'+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||tt.defaultLocale;return new e(o||(i?'en-US':function(){if(ut)return ut;if($()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ut=e&&'und'!==e?e:'en-US'}return ut='en-US'}()),n||tt.defaultNumberingSystem,r||tt.defaultOutputCalendar,o)},e.resetCache=function(){ut=null,nt={},it={},ot={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=$()&&B(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&'latn'!==this.numberingSystem||null!==this.outputCalendar&&'gregory'!==this.outputCalendar);return t||n&&r||e?!t||n&&r?'en':'intl':'error'},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),st(this,e,n,Te,(function(){var n=t?{month:e,day:'numeric'}:{month:e},i=t?'format':'standalone';return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=sr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,'month')}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),st(this,e,n,Ne,(function(){var n=t?{weekday:e,year:'numeric',month:'long',day:'numeric'}:{weekday:e},i=t?'format':'standalone';return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=sr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,'weekday')}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return Ie}),(function(){if(!t.meridiemCache){var e={hour:'numeric',hour12:!0};t.meridiemCache=[sr.utc(2016,11,13,9),sr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,'dayperiod')}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),st(this,e,t,Ve,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[sr.utc(-40,1,1),sr.utc(2017,1,1)].map((function(e){return n.extract(e,t,'era')}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new ct(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new lt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ft(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return'en'===this.locale||'en-us'===this.locale.toLowerCase()||$()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith('en-us')},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:'fastNumbers',get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||'latn'===e.numberingSystem)&&('latn'===e.numberingSystem||!e.locale||e.locale.startsWith('en')||$()&&'latn'===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e+t.source}),'');return RegExp('^'+r+'$')}function mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(t,n){var r=t[0],i=t[1],o=t[2],a=n(e,o),u=a[0],s=a[1],c=a[2];return[Object.assign(r,u),i||s,c]}),[{},null,1]).slice(0,2)}}function yt(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],u=a[0],s=a[1],c=u.exec(e);if(c)return s(c)}return[null,null]}function pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=re(e[n+r]);return[i,null,n+r]}}var vt=/(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/,gt=/(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/,wt=RegExp(''+gt.source+vt.source+'?'),_t=RegExp('(?:T'+wt.source+')?'),bt=pt('weekYear','weekNumber','weekDay'),kt=pt('year','ordinal'),Tt=RegExp(gt.source+' ?(?:'+vt.source+'|('+ge.source+'))?'),St=RegExp('(?: '+Tt.source+')?');function Ot(e,t,n){var r=e[t];return Y(r)?n:re(r)}function Mt(e,t){return[{year:Ot(e,t),month:Ot(e,t+1,1),day:Ot(e,t+2,1)},null,t+3]}function Nt(e,t){return[{hour:Ot(e,t,0),minute:Ot(e,t+1,0),second:Ot(e,t+2,0),millisecond:ie(e[t+3])},null,t+4]}function It(e,t){var n=!e[t]&&!e[t+1],r=he(e[t+1],e[t+2]);return[{},n?null:Ye.instance(r),t+3]}function Dt(e,t){return[{},e[t]?Re.create(e[t]):null,t+1]}var Et=/^-?P(?:(?:(-?\\d{1,9})Y)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})W)?(?:(-?\\d{1,9})D)?(?:T(?:(-?\\d{1,9})H)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,9}))?S)?)?)$/;function Lt(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],u=e[6],s=e[7],c=e[8],l='-'===t[0],f=function(e){return e&&l?-e:e};return[{years:f(re(n)),months:f(re(r)),weeks:f(re(i)),days:f(re(o)),hours:f(re(a)),minutes:f(re(u)),seconds:f(re(s)),milliseconds:f(ie(c))}]}var Vt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e,t,n,r,i,o,a){var u={year:2===t.length?fe(re(t)):re(t),month:be.indexOf(n)+1,day:re(r),hour:re(i),minute:re(o)};return a&&(u.second=re(a)),e&&(u.weekday=e.length>3?Se.indexOf(e)+1:Oe.indexOf(e)+1),u}var Ft=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;function Ct(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],u=e[6],s=e[7],c=e[8],l=e[9],f=e[10],d=e[11],h=xt(n,o,i,r,a,u,s);return t=c?Vt[c]:l?0:he(f,d),[h,new Ye(t)]}var jt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,Zt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,At=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;function zt(e){var t=e[1],n=e[2],r=e[3];return[xt(t,e[4],r,n,e[5],e[6],e[7]),Ye.utcInstance]}function Pt(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[xt(t,e[7],n,r,i,o,a),Ye.utcInstance]}var qt=ht(/([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/,_t),Ht=ht(/(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/,_t),Wt=ht(/(\\d{4})-?(\\d{3})/,_t),Rt=ht(wt),Ut=mt(Mt,Nt,It),Yt=mt(bt,Nt,It),Jt=mt(kt,Nt),Gt=mt(Nt,It);var $t=ht(/(\\d{4})-(\\d\\d)-(\\d\\d)/,St),Bt=ht(Tt),Qt=mt(Mt,Nt,It,Dt),Kt=mt(Nt,It,Dt);var Xt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},en=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Xt),tn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Xt),nn=['years','quarters','months','weeks','days','hours','minutes','seconds','milliseconds'],rn=nn.slice(0).reverse();function on(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new un(r)}function an(e,t,n,r,i){var o=e[i][n],a=t[n]/o,u=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[i]+=u,t[n]-=u*o}var un=function(){function e(e){var t='longterm'===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||dt.create(),this.conversionAccuracy=t?'longterm':'casual',this.invalid=e.invalid||null,this.matrix=t?tn:en,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||'object'!=typeof t)throw new w('Duration.fromObject: argument expected to be an object, got '+(null===t?'null':typeof t));return new e({values:ye(t,e.normalizeUnit,['locale','numberingSystem','conversionAccuracy','zone']),loc:dt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return yt(e,[Et,Lt])}(t)[0];if(r){var i=Object.assign(r,n);return e.fromObject(i)}return e.invalid('unparsable','the input \"'+t+'\" can\\'t be parsed as ISO 8601')},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w('need to specify a reason the Duration is invalid');var r=t instanceof je?t:new je(t,n);if(tt.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:'years',years:'years',quarter:'quarters',quarters:'quarters',month:'months',months:'months',week:'weeks',weeks:'weeks',day:'days',days:'days',hour:'hours',hours:'hours',minute:'minutes',minutes:'minutes',second:'seconds',seconds:'seconds',millisecond:'milliseconds',milliseconds:'milliseconds'}[e?e.toLowerCase():e];if(!t)throw new g(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ce.create(this.loc,n).formatDurationFromString(this,e):'Invalid Duration'},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e='P';return 0!==this.years&&(e+=this.years+'Y'),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+'M'),0!==this.weeks&&(e+=this.weeks+'W'),0!==this.days&&(e+=this.days+'D'),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+='T'),0!==this.hours&&(e+=this.hours+'H'),0!==this.minutes&&(e+=this.minutes+'M'),0===this.seconds&&0===this.milliseconds||(e+=oe(this.seconds+this.milliseconds/1e3,3)+'S'),'P'===e&&(e+='T0S'),e},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.valueOf=function(){return this.as('milliseconds')},t.plus=function(e){if(!this.isValid)return this;for(var t,n=sn(e),r={},i=d(nn);!(t=i()).done;){var o=t.value;(ee(n.values,o)||ee(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return on(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=sn(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=me(e(this.values[i],i))}return on(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?on(this,{values:Object.assign(this.values,ye(t,e.normalizeUnit,[]))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,o={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(o.conversionAccuracy=i),on(this,o)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){rn.reduce((function(n,r){return Y(t[r])?n:(n&&an(e,t,n,t,r),r)}),null)}(this.matrix,e),on(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(t){return e.normalizeUnit(t)}));for(var i,o,a={},u={},s=this.toObject(),c=d(nn);!(o=c()).done;){var l=o.value;if(n.indexOf(l)>=0){i=l;var f=0;for(var h in u)f+=this.matrix[h][l]*u[h],u[h]=0;J(s[l])&&(f+=s[l]);var m=Math.trunc(f);for(var y in a[l]=m,u[l]=f-m,s)nn.indexOf(y)>nn.indexOf(l)&&an(this.matrix,s,y,a,l)}else J(s[l])&&(u[l]=s[l])}for(var p in u)0!==u[p]&&(a[i]+=p===i?u[p]:u[p]/this.matrix[i][p]);return on(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return on(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=d(nn);!(t=n()).done;){var r=t.value;if(this.values[r]!==e.values[r])return!1}return!0},i(e,[{key:'locale',get:function(){return this.isValid?this.loc.locale:null}},{key:'numberingSystem',get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:'years',get:function(){return this.isValid?this.values.years||0:NaN}},{key:'quarters',get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:'months',get:function(){return this.isValid?this.values.months||0:NaN}},{key:'weeks',get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:'days',get:function(){return this.isValid?this.values.days||0:NaN}},{key:'hours',get:function(){return this.isValid?this.values.hours||0:NaN}},{key:'minutes',get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:'seconds',get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:'milliseconds',get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:'isValid',get:function(){return null===this.invalid}},{key:'invalidReason',get:function(){return this.invalid?this.invalid.reason:null}},{key:'invalidExplanation',get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function sn(e){if(J(e))return un.fromMillis(e);if(un.isDuration(e))return e;if('object'==typeof e)return un.fromObject(e);throw new w('Unknown duration argument '+e+' of type '+typeof e)}var cn='Invalid Interval';function ln(e,t){return e&&e.isValid?t&&t.isValid?t<e?fn.invalid('end before start','The end of an interval must be after its start, but you had start='+e.toISO()+' and end='+t.toISO()):null:fn.invalid('missing or invalid end'):fn.invalid('missing or invalid start')}var fn=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w('need to specify a reason the Interval is invalid');var r=t instanceof je?t:new je(t,n);if(tt.throwOnInvalid)throw new y(r);return new e({invalid:r})},e.fromDateTimes=function(t,n){var r=cr(t),i=cr(n),o=ln(r,i);return null==o?new e({start:r,end:i}):o},e.after=function(t,n){var r=sn(n),i=cr(t);return e.fromDateTimes(i,i.plus(r))},e.before=function(t,n){var r=sn(n),i=cr(t);return e.fromDateTimes(i.minus(r),i)},e.fromISO=function(t,n){var r=(t||'').split('/',2),i=r[0],o=r[1];if(i&&o){var a,u,s,c;try{u=(a=sr.fromISO(i,n)).isValid}catch(o){u=!1}try{c=(s=sr.fromISO(o,n)).isValid}catch(o){c=!1}if(u&&c)return e.fromDateTimes(a,s);if(u){var l=un.fromISO(o,n);if(l.isValid)return e.after(a,l)}else if(c){var f=un.fromISO(i,n);if(f.isValid)return e.before(s,f)}}return e.invalid('unparsable','the input \"'+t+'\" can\\'t be parsed as ISO 8601')},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e='milliseconds'),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e='milliseconds'),!this.isValid)return NaN;var t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.map(cr).filter((function(e){return t.contains(e)})).sort(),a=[],u=this.s,s=0;u<this.e;){var c=o[s]||this.e,l=+c>+this.e?this.e:c;a.push(e.fromDateTimes(u,l)),u=l,s+=1}return a},t.splitBy=function(t){var n=sn(t);if(!this.isValid||!n.isValid||0===n.as('milliseconds'))return[];for(var r,i,o=this.s,a=[];o<this.e;)i=+(r=o.plus(n))>+this.e?this.e:r,a.push(e.fromDateTimes(o,i)),o=i;return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],u=t.map((function(e){return[{time:e.s,type:'s'},{time:e.e,type:'e'}]})),s=d((n=Array.prototype).concat.apply(n,u).sort((function(e,t){return e.time-t.time})));!(r=s()).done;){var c=r.value;1===(o+='s'===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&a.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.xor([this].concat(r)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?'['+this.s.toISO()+' – '+this.e.toISO()+')':cn},t.toISO=function(e){return this.isValid?this.s.toISO(e)+'/'+this.e.toISO(e):cn},t.toISODate=function(){return this.isValid?this.s.toISODate()+'/'+this.e.toISODate():cn},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+'/'+this.e.toISOTime(e):cn},t.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?' – ':n;return this.isValid?''+this.s.toFormat(e)+r+this.e.toFormat(e):cn},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):un.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},i(e,[{key:'start',get:function(){return this.isValid?this.s:null}},{key:'end',get:function(){return this.isValid?this.e:null}},{key:'isValid',get:function(){return null===this.invalidReason}},{key:'invalidReason',get:function(){return this.invalid?this.invalid.reason:null}},{key:'invalidExplanation',get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),dn=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=tt.defaultZone);var t=sr.local().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Re.isValidSpecifier(e)&&Re.isValidZone(e)},e.normalizeZone=function(e){return Ge(e,tt.defaultZone)},e.months=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,u=n.outputCalendar,s=void 0===u?'gregory':u;return dt.create(i,a,s).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,u=n.outputCalendar,s=void 0===u?'gregory':u;return dt.create(i,a,s).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o;return dt.create(i,a,null).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o;return dt.create(i,a,null).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return dt.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e='short');var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return dt.create(r,null,'gregory').eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if($()){e=!0,t=B(),r=Q();try{n='America/New_York'===new Intl.DateTimeFormat('en',{timeZone:'America/New_York'}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function hn(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf('day').valueOf()},r=n(t)-n(e);return Math.floor(un.fromMillis(r).as('days'))}function mn(e,t,n,r){var i=function(e,t,n){for(var r,i,o={},a=0,u=[['years',function(e,t){return t.year-e.year}],['months',function(e,t){return t.month-e.month+12*(t.year-e.year)}],['weeks',function(e,t){var n=hn(e,t);return(n-n%7)/7}],['days',hn]];a<u.length;a++){var s=u[a],c=s[0],l=s[1];if(n.indexOf(c)>=0){var f;r=c;var d,h=l(e,t);if((i=e.plus(((f={})[c]=h,f)))>t)e=e.plus(((d={})[c]=h-1,d)),h-=1;else e=i;o[c]=h}}return[e,o,i,r]}(e,t,n),o=i[0],a=i[1],u=i[2],s=i[3],c=t-o,l=n.filter((function(e){return['hours','minutes','seconds','milliseconds'].indexOf(e)>=0}));if(0===l.length){var f;if(u<t)u=o.plus(((f={})[s]=1,f));u!==o&&(a[s]=(a[s]||0)+c/(u-o))}var d,h=un.fromObject(Object.assign(a,r));return l.length>0?(d=un.fromMillis(c,r)).shiftTo.apply(d,l).plus(h):h}var yn={arab:'[٠-٩]',arabext:'[۰-۹]',bali:'[᭐-᭙]',beng:'[০-৯]',deva:'[०-९]',fullwide:'[0-9]',gujr:'[૦-૯]',hanidec:'[〇|一|二|三|四|五|六|七|八|九]',khmr:'[០-៩]',knda:'[೦-೯]',laoo:'[໐-໙]',limb:'[᥆-᥏]',mlym:'[൦-൯]',mong:'[᠐-᠙]',mymr:'[၀-၉]',orya:'[୦-୯]',tamldec:'[௦-௯]',telu:'[౦-౯]',thai:'[๐-๙]',tibt:'[༠-༩]',latn:'\\\\d'},pn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vn=yn.hanidec.replace(/[\\[|\\]]/g,'').split('');function gn(e,t){var n=e.numberingSystem;return void 0===t&&(t=''),new RegExp(''+yn[n||'latn']+t)}function wn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t='';for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(yn.hanidec))t+=vn.indexOf(e[n]);else for(var i in pn){var o=pn[i],a=o[0],u=o[1];r>=a&&r<=u&&(t+=r-a)}}return parseInt(t,10)}return t}(n))}}}var _n='( |'+String.fromCharCode(160)+')',bn=new RegExp(_n,'g');function kn(e){return e.replace(/\\./g,'\\\\.?').replace(bn,_n)}function Tn(e){return e.replace(/\\./g,'').replace(bn,' ').toLowerCase()}function Sn(e,t){return null===e?null:{regex:RegExp(e.map(kn).join('|')),deser:function(n){var r=n[0];return e.findIndex((function(e){return Tn(r)===Tn(e)}))+t}}}function On(e,t){return{regex:e,deser:function(e){return he(e[1],e[2])},groups:t}}function Mn(e){return{regex:e,deser:function(e){return e[0]}}}var Nn={year:{'2-digit':'yy',numeric:'yyyyy'},month:{numeric:'M','2-digit':'MM',short:'MMM',long:'MMMM'},day:{numeric:'d','2-digit':'dd'},weekday:{short:'EEE',long:'EEEE'},dayperiod:'a',dayPeriod:'a',hour:{numeric:'h','2-digit':'hh'},minute:{numeric:'m','2-digit':'mm'},second:{numeric:'s','2-digit':'ss'}};var In=null;function Dn(e,t){if(e.literal)return e;var n=Ce.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ce.create(t,n).formatDateTimeParts((In||(In=sr.fromMillis(1555555555555)),In)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if('literal'===r)return{literal:!0,val:i};var o=n[r],a=Nn[r];return'object'==typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function En(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return Dn(e,t)})))}(Ce.parseFormat(n),e),i=r.map((function(t){return n=t,i=gn(r=e),o=gn(r,'{2}'),a=gn(r,'{3}'),u=gn(r,'{4}'),s=gn(r,'{6}'),c=gn(r,'{1,2}'),l=gn(r,'{1,3}'),f=gn(r,'{1,6}'),d=gn(r,'{1,9}'),h=gn(r,'{2,4}'),m=gn(r,'{4,6}'),y=function(e){return{regex:RegExp((t=e.val,t.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,'\\\\$&'))),deser:function(e){return e[0]},literal:!0};var t},(p=function(e){if(n.literal)return y(e);switch(e.val){case'G':return Sn(r.eras('short',!1),0);case'GG':return Sn(r.eras('long',!1),0);case'y':return wn(f);case'yy':return wn(h,fe);case'yyyy':return wn(u);case'yyyyy':return wn(m);case'yyyyyy':return wn(s);case'M':return wn(c);case'MM':return wn(o);case'MMM':return Sn(r.months('short',!0,!1),1);case'MMMM':return Sn(r.months('long',!0,!1),1);case'L':return wn(c);case'LL':return wn(o);case'LLL':return Sn(r.months('short',!1,!1),1);case'LLLL':return Sn(r.months('long',!1,!1),1);case'd':return wn(c);case'dd':return wn(o);case'o':return wn(l);case'ooo':return wn(a);case'HH':return wn(o);case'H':return wn(c);case'hh':return wn(o);case'h':return wn(c);case'mm':return wn(o);case'm':case'q':return wn(c);case'qq':return wn(o);case's':return wn(c);case'ss':return wn(o);case'S':return wn(l);case'SSS':return wn(a);case'u':return Mn(d);case'a':return Sn(r.meridiems(),0);case'kkkk':return wn(u);case'kk':return wn(h,fe);case'W':return wn(c);case'WW':return wn(o);case'E':case'c':return wn(i);case'EEE':return Sn(r.weekdays('short',!1,!1),1);case'EEEE':return Sn(r.weekdays('long',!1,!1),1);case'ccc':return Sn(r.weekdays('short',!0,!1),1);case'cccc':return Sn(r.weekdays('long',!0,!1),1);case'Z':case'ZZ':return On(new RegExp('([+-]'+c.source+')(?::('+o.source+'))?'),2);case'ZZZ':return On(new RegExp('([+-]'+c.source+')('+o.source+')?'),2);case'z':return Mn(/[a-z_+-/]{1,256}?/i);default:return y(e)}}(n)||{invalidReason:'missing Intl.DateTimeFormat.formatToParts support'}).token=n,p;var n,r,i,o,a,u,s,c,l,f,d,h,m,y,p})),o=i.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=function(e){return['^'+e.map((function(e){return e.regex})).reduce((function(e,t){return e+'('+t.source+')'}),'')+'$',e]}(i),u=a[0],s=a[1],c=RegExp(u,'i'),l=function(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(ee(n,a)){var u=n[a],s=u.groups?u.groups+1:1;!u.literal&&u.token&&(i[u.token.val[0]]=u.deser(r.slice(o,o+s))),o+=s}return[r,i]}return[r,{}]}(t,c,s),f=l[0],d=l[1],h=d?function(e){var t;return t=Y(e.Z)?Y(e.z)?null:Re.create(e.z):new Ye(e.Z),Y(e.q)||(e.M=3*(e.q-1)+1),Y(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Y(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':case'H':return'hour';case'd':return'day';case'o':return'ordinal';case'L':case'M':return'month';case'y':return'year';case'E':case'c':return'weekday';case'W':return'weekNumber';case'k':return'weekYear';case'q':return'quarter';default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(d):[null,null],m=h[0],y=h[1];if(ee(d,'a')&&ee(d,'H'))throw new v('Can\\'t include meridiem when specifying 24-hour format');return{input:t,tokens:r,regex:c,rawMatches:f,matches:d,result:m,zone:y}}var Ln=[0,31,59,90,120,151,181,212,243,273,304,334],Vn=[0,31,60,91,121,152,182,213,244,274,305,335];function xn(e,t){return new je('unit out of range','you specified '+t+' (of type '+typeof t+') as a '+e+', which is invalid')}function Fn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Cn(e,t,n){return n+(ae(e)?Vn:Ln)[t-1]}function jn(e,t){var n=ae(e)?Vn:Ln,r=n.findIndex((function(e){return e<t}));return{month:r+1,day:t-n[r]}}function Zn(e){var t,n=e.year,r=e.month,i=e.day,o=Cn(n,r,i),a=Fn(n,r,i),u=Math.floor((o-a+10)/7);return u<1?u=le(t=n-1):u>le(n)?(t=n+1,u=1):t=n,Object.assign({weekYear:t,weekNumber:u,weekday:a},ve(e))}function An(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=Fn(n,1,4),a=ue(n),u=7*r+i-o-3;u<1?u+=ue(t=n-1):u>a?(t=n+1,u-=ue(n)):t=n;var s=jn(t,u),c=s.month,l=s.day;return Object.assign({year:t,month:c,day:l},ve(e))}function zn(e){var t=e.year,n=Cn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},ve(e))}function Pn(e){var t=e.year,n=jn(t,e.ordinal),r=n.month,i=n.day;return Object.assign({year:t,month:r,day:i},ve(e))}function qn(e){var t=G(e.year),n=te(e.month,1,12),r=te(e.day,1,se(e.year,e.month));return t?n?!r&&xn('day',e.day):xn('month',e.month):xn('year',e.year)}function Hn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=te(t,0,23)||24===t&&0===n&&0===r&&0===i,a=te(n,0,59),u=te(r,0,59),s=te(i,0,999);return o?a?u?!s&&xn('millisecond',i):xn('second',r):xn('minute',n):xn('hour',t)}function Wn(e){return new je('unsupported zone','the zone \"'+e.name+'\" is not supported')}function Rn(e){return null===e.weekData&&(e.weekData=Zn(e.c)),e.weekData}function Un(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new sr(Object.assign({},n,t,{old:n}))}function Yn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Jn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Gn(e,t,n){return Yn(ce(e),t,n)}function $n(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,se(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=un.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as('milliseconds'),u=Yn(ce(o),n,e.zone),s=u[0],c=u[1];return 0!==a&&(s+=a,c=e.zone.offset(s)),{ts:s,o:c}}function Bn(e,t,n,r,i){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var u=t||a,s=sr.fromObject(Object.assign(e,n,{zone:u,setZone:void 0}));return o?s:s.setZone(a)}return sr.invalid(new je('unparsable','the input \"'+i+'\" can\\'t be parsed as '+r))}function Qn(e,t,n){return void 0===n&&(n=!0),e.isValid?Ce.create(dt.create('en-US'),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Kn(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,u=t.includeZone,s=void 0!==u&&u,c=t.spaceZone,l=void 0!==c&&c,f=t.format,d=void 0===f?'extended':f,h='basic'===d?'HHmm':'HH:mm';return r&&0===e.second&&0===e.millisecond||(h+='basic'===d?'ss':':ss',o&&0===e.millisecond||(h+='.SSS')),(s||a)&&l&&(h+=' '),s?h+='z':a&&(h+='basic'===d?'ZZZ':'ZZ'),Qn(e,h)}var Xn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},tr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=['year','month','day','hour','minute','second','millisecond'],rr=['weekYear','weekNumber','weekday','hour','minute','second','millisecond'],ir=['year','ordinal','hour','minute','second','millisecond'];function or(e){var t={year:'year',years:'year',month:'month',months:'month',day:'day',days:'day',hour:'hour',hours:'hour',minute:'minute',minutes:'minute',quarter:'quarter',quarters:'quarter',second:'second',seconds:'second',millisecond:'millisecond',milliseconds:'millisecond',weekday:'weekday',weekdays:'weekday',weeknumber:'weekNumber',weeksnumber:'weekNumber',weeknumbers:'weekNumber',weekyear:'weekYear',weekyears:'weekYear',ordinal:'ordinal'}[e.toLowerCase()];if(!t)throw new g(e);return t}function ar(e,t){for(var n,r=d(nr);!(n=r()).done;){var i=n.value;Y(e[i])&&(e[i]=Xn[i])}var o=qn(e)||Hn(e);if(o)return sr.invalid(o);var a=tt.now(),u=Gn(e,t.offset(a),t),s=u[0],c=u[1];return new sr({ts:s,zone:t,o:c})}function ur(e,t,n){var r=!!Y(n.round)||n.round,i=function(e,i){return e=oe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,u=d(n.units);!(a=u()).done;){var s=a.value,c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(0,n.units[n.units.length-1])}var sr=function(){function e(e){var t=e.zone||tt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new je('invalid input'):null)||(t.isValid?null:Wn(t));this.ts=Y(e.ts)?tt.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else{var a=t.offset(this.ts);r=Jn(this.ts,a),r=(n=Number.isNaN(r.year)?new je('invalid input'):null)?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||dt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.local=function(t,n,r,i,o,a,u){return Y(t)?new e({ts:tt.now()}):ar({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:u},tt.defaultZone)},e.utc=function(t,n,r,i,o,a,u){return Y(t)?new e({ts:tt.now(),zone:Ye.utcInstance}):ar({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:u},Ye.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,'[object Date]'===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid('invalid input');var o=Ge(n.zone,tt.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:dt.fromObject(n)}):e.invalid(Wn(o))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),J(t))return t<-864e13||t>864e13?e.invalid('Timestamp out of range'):new e({ts:t,zone:Ge(n.zone,tt.defaultZone),loc:dt.fromObject(n)});throw new w('fromMillis requires a numerical input, but received a '+typeof t+' with value '+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),J(t))return new e({ts:1e3*t,zone:Ge(n.zone,tt.defaultZone),loc:dt.fromObject(n)});throw new w('fromSeconds requires a numerical input')},e.fromObject=function(t){var n=Ge(t.zone,tt.defaultZone);if(!n.isValid)return e.invalid(Wn(n));var r=tt.now(),i=n.offset(r),o=ye(t,or,['zone','locale','outputCalendar','numberingSystem']),a=!Y(o.ordinal),u=!Y(o.year),s=!Y(o.month)||!Y(o.day),c=u||s,l=o.weekYear||o.weekNumber,f=dt.fromObject(t);if((c||a)&&l)throw new v('Can\\'t mix weekYear/weekNumber units with year/month/day or ordinals');if(s&&a)throw new v('Can\\'t mix ordinal dates with month/day');var h,m,y=l||o.weekday&&!c,p=Jn(r,i);y?(h=rr,m=er,p=Zn(p)):a?(h=ir,m=tr,p=zn(p)):(h=nr,m=Xn);for(var g,w=!1,_=d(h);!(g=_()).done;){var b=g.value;Y(o[b])?o[b]=w?m[b]:p[b]:w=!0}var k=(y?function(e){var t=G(e.weekYear),n=te(e.weekNumber,1,le(e.weekYear)),r=te(e.weekday,1,7);return t?n?!r&&xn('weekday',e.weekday):xn('week',e.week):xn('weekYear',e.weekYear)}(o):a?function(e){var t=G(e.year),n=te(e.ordinal,1,ue(e.year));return t?!n&&xn('ordinal',e.ordinal):xn('year',e.year)}(o):qn(o))||Hn(o);if(k)return e.invalid(k);var T=Gn(y?An(o):a?Pn(o):o,i,n),S=new e({ts:T[0],zone:n,o:T[1],loc:f});return o.weekday&&c&&t.weekday!==S.weekday?e.invalid('mismatched weekday','you can\\'t specify both a weekday of '+o.weekday+' and a date of '+S.toISO()):S},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return yt(e,[qt,Ut],[Ht,Yt],[Wt,Jt],[Rt,Gt])}(e);return Bn(n[0],n[1],t,'ISO 8601',e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return yt(function(e){return e.replace(/\\([^)]*\\)|[\\n\\t]/g,' ').replace(/(\\s\\s+)/g,' ').trim()}(e),[Ft,Ct])}(e);return Bn(n[0],n[1],t,'RFC 2822',e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return yt(e,[jt,zt],[Zt,zt],[At,Pt])}(e);return Bn(n[0],n[1],t,'HTTP',t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),Y(t)||Y(n))throw new w('fromFormat requires an input string and a format');var i=r,o=i.locale,a=void 0===o?null:o,u=i.numberingSystem,s=void 0===u?null:u,c=function(e,t,n){var r=En(e,t,n);return[r.result,r.zone,r.invalidReason]}(dt.fromOpts({locale:a,numberingSystem:s,defaultToEN:!0}),t,n),l=c[0],f=c[1],d=c[2];return d?e.invalid(d):Bn(l,f,r,'format '+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return yt(e,[$t,Qt],[Bt,Kt])}(e);return Bn(n[0],n[1],t,'SQL',e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w('need to specify a reason the DateTime is invalid');var r=t instanceof je?t:new je(t,n);if(tt.throwOnInvalid)throw new m(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ce.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Ye.instance(e),t)},t.toLocal=function(){return this.setZone(tt.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,u=void 0!==a&&a;if((t=Ge(t,tt.defaultZone)).equals(this.zone))return this;if(t.isValid){var s=this.ts;if(o||u){var c=t.offset(this.ts);s=Gn(this.toObject(),c,t)[0]}return Un(this,{ts:s,zone:t})}return e.invalid(Wn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Un(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=ye(e,or,[]);!Y(n.weekYear)||!Y(n.weekNumber)||!Y(n.weekday)?t=An(Object.assign(Zn(this.c),n)):Y(n.ordinal)?(t=Object.assign(this.toObject(),n),Y(n.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=Pn(Object.assign(zn(this.c),n));var r=Gn(t,this.o,this.zone);return Un(this,{ts:r[0],o:r[1]})},t.plus=function(e){return this.isValid?Un(this,$n(this,sn(e))):this},t.minus=function(e){return this.isValid?Un(this,$n(this,sn(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=un.normalizeUnit(e);switch(n){case'years':t.month=1;case'quarters':case'months':t.day=1;case'weeks':case'days':t.hour=0;case'hours':t.minute=0;case'minutes':t.second=0;case'seconds':t.millisecond=0}if('weeks'===n&&(t.weekday=1),'quarters'===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ce.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):'Invalid DateTime'},t.toLocaleString=function(e){return void 0===e&&(e=S),this.isValid?Ce.create(this.loc.clone(e),e).formatDateTime(this):'Invalid DateTime'},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ce.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+'T'+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n='basic'===(void 0===t?'extended':t)?'yyyyMMdd':'yyyy-MM-dd';return this.year>9999&&(n='+'+n),Qn(this,n)},t.toISOWeekDate=function(){return Qn(this,'kkkk-\\'W\\'WW-c')},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,u=void 0===a||a,s=t.format;return Kn(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:u,format:void 0===s?'extended':s})},t.toRFC2822=function(){return Qn(this,'EEE, dd LLL yyyy HH:mm:ss ZZZ',!1)},t.toHTTP=function(){return Qn(this.toUTC(),'EEE, dd LLL yyyy HH:mm:ss \\'GMT\\'')},t.toSQLDate=function(){return Qn(this,'yyyy-MM-dd')},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Kn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+' '+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():'Invalid DateTime'},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t='milliseconds'),void 0===n&&(n={}),!this.isValid||!e.isValid)return un.invalid(this.invalid||e.invalid,'created by diffing an invalid DateTime');var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(un.normalizeUnit),a=e.valueOf()>this.valueOf(),u=mn(a?this:e,a?e:this,o,i);return a?u.negate():u},t.diffNow=function(t,n){return void 0===t&&(t='milliseconds'),void 0===n&&(n={}),this.diff(e.local(),t,n)},t.until=function(e){return this.isValid?fn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;if('millisecond'===t)return this.valueOf()===e.valueOf();var n=e.valueOf();return this.startOf(t)<=n&&n<=this.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;return ur(n,this.plus(r),Object.assign(t,{numeric:'always',units:['years','months','days','hours','minutes','seconds']}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ur(t.base||e.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:'auto',units:['years','months','days'],calendary:!0})):null},e.min=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w('min requires all arguments be DateTimes');return K(n,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w('max requires all arguments be DateTimes');return K(n,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,o=void 0===i?null:i,a=r.numberingSystem,u=void 0===a?null:a;return En(dt.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,n,r){return void 0===r&&(r={}),e.fromFormatExplain(t,n,r)},i(e,[{key:'isValid',get:function(){return null===this.invalid}},{key:'invalidReason',get:function(){return this.invalid?this.invalid.reason:null}},{key:'invalidExplanation',get:function(){return this.invalid?this.invalid.explanation:null}},{key:'locale',get:function(){return this.isValid?this.loc.locale:null}},{key:'numberingSystem',get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:'outputCalendar',get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:'zone',get:function(){return this._zone}},{key:'zoneName',get:function(){return this.isValid?this.zone.name:null}},{key:'year',get:function(){return this.isValid?this.c.year:NaN}},{key:'quarter',get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:'month',get:function(){return this.isValid?this.c.month:NaN}},{key:'day',get:function(){return this.isValid?this.c.day:NaN}},{key:'hour',get:function(){return this.isValid?this.c.hour:NaN}},{key:'minute',get:function(){return this.isValid?this.c.minute:NaN}},{key:'second',get:function(){return this.isValid?this.c.second:NaN}},{key:'millisecond',get:function(){return this.isValid?this.c.millisecond:NaN}},{key:'weekYear',get:function(){return this.isValid?Rn(this).weekYear:NaN}},{key:'weekNumber',get:function(){return this.isValid?Rn(this).weekNumber:NaN}},{key:'weekday',get:function(){return this.isValid?Rn(this).weekday:NaN}},{key:'ordinal',get:function(){return this.isValid?zn(this.c).ordinal:NaN}},{key:'monthShort',get:function(){return this.isValid?dn.months('short',{locale:this.locale})[this.month-1]:null}},{key:'monthLong',get:function(){return this.isValid?dn.months('long',{locale:this.locale})[this.month-1]:null}},{key:'weekdayShort',get:function(){return this.isValid?dn.weekdays('short',{locale:this.locale})[this.weekday-1]:null}},{key:'weekdayLong',get:function(){return this.isValid?dn.weekdays('long',{locale:this.locale})[this.weekday-1]:null}},{key:'offset',get:function(){return this.isValid?+this.o:NaN}},{key:'offsetNameShort',get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:'short',locale:this.locale}):null}},{key:'offsetNameLong',get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:'long',locale:this.locale}):null}},{key:'isOffsetFixed',get:function(){return this.isValid?this.zone.universal:null}},{key:'isInDST',get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:'isInLeapYear',get:function(){return ae(this.year)}},{key:'daysInMonth',get:function(){return se(this.year,this.month)}},{key:'daysInYear',get:function(){return this.isValid?ue(this.year):NaN}},{key:'weeksInWeekYear',get:function(){return this.isValid?le(this.weekYear):NaN}}],[{key:'DATE_SHORT',get:function(){return S}},{key:'DATE_MED',get:function(){return O}},{key:'DATE_MED_WITH_WEEKDAY',get:function(){return M}},{key:'DATE_FULL',get:function(){return N}},{key:'DATE_HUGE',get:function(){return I}},{key:'TIME_SIMPLE',get:function(){return D}},{key:'TIME_WITH_SECONDS',get:function(){return E}},{key:'TIME_WITH_SHORT_OFFSET',get:function(){return L}},{key:'TIME_WITH_LONG_OFFSET',get:function(){return V}},{key:'TIME_24_SIMPLE',get:function(){return x}},{key:'TIME_24_WITH_SECONDS',get:function(){return F}},{key:'TIME_24_WITH_SHORT_OFFSET',get:function(){return C}},{key:'TIME_24_WITH_LONG_OFFSET',get:function(){return j}},{key:'DATETIME_SHORT',get:function(){return Z}},{key:'DATETIME_SHORT_WITH_SECONDS',get:function(){return A}},{key:'DATETIME_MED',get:function(){return z}},{key:'DATETIME_MED_WITH_SECONDS',get:function(){return P}},{key:'DATETIME_MED_WITH_WEEKDAY',get:function(){return q}},{key:'DATETIME_FULL',get:function(){return H}},{key:'DATETIME_FULL_WITH_SECONDS',get:function(){return W}},{key:'DATETIME_HUGE',get:function(){return R}},{key:'DATETIME_HUGE_WITH_SECONDS',get:function(){return U}}]),e}();function cr(e){if(sr.isDateTime(e))return e;if(e&&e.valueOf&&J(e.valueOf()))return sr.fromJSDate(e);if(e&&'object'==typeof e)return sr.fromObject(e);throw new w('Unknown datetime argument: '+e+', of type '+typeof e)}t.DateTime=sr,t.Duration=un,t.FixedOffsetZone=Ye,t.IANAZone=Re,t.Info=dn,t.Interval=fn,t.InvalidZone=Je,t.LocalZone=ze,t.Settings=tt,t.Zone=Ze},function(e,t,n){var r=n(2),i=n(4);e.exports=i(r,contact,reports)},function(e,t,n){const{DateTime:r}=n(0),i=n(3),{getField:o,isPregnant:a,isInPNCPeriod:u,hasHighRiskPregnancy:s,getLMPDateFromScreening:c,getReportedPrenatalVisits:l,getMicronutrientUsage:f,getMostRecentReport:d,getSubsequentPregnancyFollowUps:h,doneScreeningWithFP:m,getLatestFPMethod:y,isOnNewMalnutritionFollowup:p,isOnTBTreatment:v,getMostRecentCompletedTBMonthlyFollowup:g,getAgeInYears:w,getAgeInMonths:_,getAgeInWeeks:b,hasIMCIDangerSigns:k,getImmunizationStatusForMonth:T,getLatestScreeningHeight:S,getLatestScreeningWeight:O,getLatestVisitedDate:M,getLatestDateForHeightandWeight:N}=i,I=contact,D=reports,E=lineage,L={isActivePregnancy:a(I,D)},V=[{appliesToType:['person'],label:'CHC Status',value:'contact.chc_status.'+I.chc_status,translate:!0,width:4},{appliesToType:['person'],label:'CHC Volunteer ID',value:I.patient_id,width:4},{appliesToType:['person'],label:'Participant ID',value:I.external_id,width:4},{appliesToType:['person'],label:'ICM Phone Number',value:I.phone,width:4},{appliesToType:['person'],label:'Personal Phone Number',value:I.phone_alternate,width:4},{appliesToType:['person'],label:'Paymaya Preferred Number',value:'contact.preferred_paymaya.'+I.preferred_paymaya,translate:!0,width:4},{appliesToType:['person'],label:'contact.age',value:I.date_of_birth,width:4,filter:'age'},{appliesToType:['person'],label:'contact.gender',value:'contact.gender.'+I.gender,translate:!0,width:4},{appliesToType:['person'],label:'contact.parent',value:E,filter:'lineage'},{appliesToType:['person'],label:'contact.notes',value:I.notes,width:12},{appliesToType:['the_community'],label:'Community Status',value:'contact.type.community.status.'+I.community_status,translate:!0,width:4},{appliesToType:['the_community'],label:'Community ID',value:I.external_id,width:4},{appliesToType:['the_community'],label:'SG ID',value:I.sg_id,width:4},{appliesToType:['the_community'],label:'contact.phone',value:I.contact&&I.contact.phone,width:4},{appliesToType:['area','branch','cluster','mentor','the_community','the_household'],label:'Contact Person',value:I.contact&&I.contact.name,width:4},{appliesToType:['area','branch','cluster','mentor','the_household'],label:'contact.phone',value:I.contact&&I.contact.phone,width:4},{appliesToType:['area','branch','cluster','mentor','the_household'],label:'External ID',value:I.external_id,width:4},{appliesToType:['area','branch','cluster','mentor','the_community','the_household'],appliesIf:function(){return I.parent&&E[0]},label:'contact.parent',value:E,filter:'lineage'},{appliesToType:['area','branch','cluster','mentor','the_community','the_household'],label:'contact.notes',value:I.notes,width:12}];I.short_name&&V.unshift({appliesToType:['person'],label:'contact.short_name',value:I.short_name,width:4});const x=[{label:'contact.profile.pregnancy.active',appliesToType:'person',appliesIf:function(){return'person'===I.type&&'female'===I.gender&&'household_member'===I.role&&w(I)>=15&&w(I)<=49&&a(I,D)},fields:function(){const e=[],t=d(D,['screening']),n=c(t),i=Math.round(r.local().diff(r.fromISO(n),'weeks').weeks),o=r.fromISO(n).plus({days:280}),a=l(D,t),u=s(D),h=f(D,t);return e.push({label:'contact.profile.pregnancy.lmp_date',value:n,filter:'simpleDate',width:6},{label:'contact.profile.pregnancy.weeks_pregnant',value:i,width:6},{label:'contact.profile.pregnancy.edd',value:o,filter:'simpleDate',width:6},{label:'contact.profile.pregnancy.prenatalVisits',value:'contact.profile.visits.of',context:{count:a.length,total:4},translate:!0,width:6},{label:'contact.profile.pregnancy.status',value:u?'High risk':'No risk',icon:u?'icon-risk':'',width:6},{label:'contact.profile.pregnancy.vitamin',value:h?'Yes':'No',width:6}),e},modifyContext:function(e){const t=d(D,['screening']),n=c(t),r=l(D,t),i=h(D,t).filter(e=>'yes'===o(e,'followup_details.continue'));e.lmp_date=n,e.prenatal_visits=r.join(' '),e.num_followups=i.length}},{label:'contact.profile.fp',appliesToType:'person',appliesIf:function(){return'person'===I.type&&'female'===I.gender&&'household_member'===I.role&&w(I)>=15&&w(I)<=49&&!a(I,D)&&!u(I,D)&&m(D)},fields:function(){const e=[],t=y(D),n=t?'On FP':'Not on FP';return e.push({label:'contact.profile.fp.fp_status',value:n,width:6}),t&&e.push({label:'contact.profile.fp.fp_method',value:t,width:6}),e}},{label:'contact.profile.child',appliesToType:'person',appliesIf:function(){return'household_member'===I.role&&w(I)<5&&b(I)>=24},fields:function(){const e=[],t=Math.floor(_(I)),n=k(I,D)?'contact.profile.imci_danger_signs.present':'contact.profile.imci_danger_signs.none',r=p(I,D)?'contact.profile.malnutriton_new.followup':'contact.profile.weight.normal';return e.push({label:'contact.profile.malnutrition.status',value:r,translate:!0,width:6},{label:'contact.profile.imci.status',value:n,translate:!0,width:6}),9!==t&&12!==t||e.push({label:'contact.profile.imm.status',value:`contact.profile.imm.complete.${t}m.${T(D,t)}`,translate:!0,width:6}),e},modifyContext:function(e){e.on_new_malnutrition_followup=p(I,D)&&'yes',e.has_imci_danger_signs=k(I,D)&&'yes',e.latestScreeningHeight=S(D),e.latestScreeningWeight=O(D),e.latestVisitedDate=M(D),e.latestScreeningDateforHeightWeight=N(D)}},{label:'contact.profile.tb',appliesToType:'person',appliesIf:function(){return'household_member'===I.role&&v(I,D)},fields:function(){const e=[],t=g(D),n=parseInt(o(t,'followup_details_02.months')),i=-Math.round(r.fromMillis(t.reported_date).diffNow('months').months);return e.push({label:'contact.profile.tb.months',value:n+i,width:6}),e},modifyContext:function(e){e.on_tb_treatment=v(I,D)&&'yes'}}];e.exports={context:L,fields:V,cards:x}},function(e,t,n){const r=(e,t)=>['fields',...(t||'').split('.')].reduce((e,t)=>{if(void 0!==e)return e[t]},e),{DateTime:i}=n(0);function o(e){return'yes'===r(e,'g_pregnancy.pregnancy_details.pregnant')}function a(e){return r(e,'g_pregnancy.pregnancy_details_1.lmp_date')}function u(e,t){if(!e)return null;let n=i.fromISO(a(t));return e.filter((function(e){return'pregnancy_followup'===e.form&&e.reported_date>t.reported_date&&i.fromMillis(e.reported_date)<n.plus({days:308})}))}function s(e,t){if(e.length<1)return null;const n=e.filter(e=>!t||t.includes(e.form));return n.length<1?null:1===n.length?n[0]:n.reduce((e,t)=>e.reported_date>t.reported_date?e:t)}function c(e){const t=e.filter(e=>'tb_monthly_followup'===e.form&&'yes'===r(e,'followup_details_01.continue'));return!!t&&s(t)}function l(e){return e&&e.date_of_birth}function f(e){return Math.abs(i.fromISO(l(e)).diffNow('years').years)}e.exports={getField:r,isPregnant:function(e,t){if(!t||!t.length||'person'!==e.type)return null;const n=s(t,['screening']);return n&&o(n)&&!function(e,t){if(!e||!e.length)return null;const n=a(t);return e.some(e=>'delivery_report'===e.form&&e.reported_date>t.reported_date&&e.reported_date<=i.fromISO(n).plus({days:308}).toMillis())}(t,n)&&!function(e,t){if(!o(t))return null;const n=a(t);return e.some(e=>'pregnancy_termination'===e.form&&e.reported_date>t.reported_date&&e.reported_date<=i.fromISO(n).plus({days:308}).toMillis())}(t,n)},isInPNCPeriod:function(e,t){if(!t||!t.length||'person'!==e.type)return null;const n=s(t,['delivery_report']);return n&&i.fromISO(r(n,'delivery_details.date_of_delivery')).diffNow('days').days>=-42},hasHighRiskPregnancy:function(e){const t=s(e,['screening','pregnancy_followup','pregnancy_danger_signs_followup']);return'screening'===t.form&&'yes'===r(t,'g_pregnancy.danger_signs_2.any_signs')||'pregnancy_followup'===t.form&&'yes'===r(t,'danger_signs.any_signs')||'pregnancy_danger_signs_followup'===t.form&&'no'===r(t,'followup_details_3.issue_resolved')},getLMPDateFromScreening:a,getReportedPrenatalVisits:function(e,t){const n=[],i=r(t,'g_pregnancy.check_up.prenatal_visit');return i&&n.push(...i.split(' ')),u(e,t).forEach(e=>{const t=r(e,'check_up.prenatal_visit');t&&n.push(...t.split(' '))}),[...new Set(n)]},getMicronutrientUsage:function(e,t){const n=u(e,t);return n.length?'yes'===r(s(n,['pregnancy_followup']),'micronutrient.any_micronutrient'):'yes'===r(t,'g_pregnancy.micronutrient_1.any_micronutrient')},getMostRecentReport:s,doneScreeningWithFP:function(e){return e&&e.some(e=>'screening'===e.form&&r(e,'g_fp.fp_screening.using_fp'))},getLatestFPMethod:function(e){const t=s(e,['screening','fp_screening_followup','fp_followup']);return t&&('screening'===t.form&&r(t,'g_fp.fp_screening_1.fp_types')||'fp_screening_followup'===t.form&&r(t,'fp_screening_1.preferred_fp')||'fp_followup'===t.form&&r(t,'visit_details_2.fp_type'))},getSubsequentPregnancyFollowUps:u,isOnMalnutritionFollowup:function(e,t){if(f(e)>=5)return!1;const n=t.filter(e=>'screening'===e.form&&r(e,'malnutrition_followup_date'));if(!n.length)return!1;const i=s(n);if(i){const e=s(t,['malnutrition_discharge']);return!e||e.reported_date<i.reported_date}return!1},isOnNewMalnutritionFollowup:function(e,t){if(f(e)>=5)return!1;const n=t.filter(e=>'screening'===e.form&&r(e,'malnutrition_new_followup_date'));if(!n.length)return!1;const i=s(n);if(i){const e=s(t,['malnutrition_discharge']);return!e||e.reported_date<i.reported_date}return!1},isOnTBTreatment:function(e,t){const n=c(t);return n&&!function(e,t){const n=s(e,['tb_six_months_followup']);return!!n&&n.reported_date>t.reported_date&&'no'===r(n,'g_treatment_02.ongoing_treatment')}(t,n)},getMostRecentCompletedTBMonthlyFollowup:c,getAgeInYears:f,getAgeInMonths:function(e){return Math.abs(i.fromISO(l(e)).diffNow('months').months)},getAgeInWeeks:function(e){return Math.abs(i.fromISO(l(e)).diffNow('weeks').weeks)},hasIMCIDangerSigns:function(e,t){if(f(e)>=5)return!1;const n=t.filter(e=>'screening'===e.form&&r(e,'imci_danger_signs_followup_date'));if(!n.length)return!1;const i=s(n);if(i){const e=s(t,['imci_recovery']);return!e||e.reported_date<i.reported_date}return!1},getImmunizationStatusForMonth:function(e,t){const n=e.filter(e=>'screening'===e.form&&r(e,'g_child.g_imm.imm_'+t+'m_done'));if(!n.length)return'';const i=s(n);return r(i,'g_child.g_imm.imm_'+t+'m_done')||''},getChildHeight:function(e){return r(e,'g_child.g_malnutrition.child_height')},getChildWeight:function(e){return r(e,'g_child.g_malnutrition.child_weight')},getWFAClassification:function(e){return r(e,'g_child.g_malnutrition.g_recalculate_zscore.wfa_classification')},getWFHClassification:function(e){return r(e,'g_child.g_malnutrition.g_recalculate_zscore.wfh_classification')},getWFAZScore:function(e){return r(e,'g_child.g_malnutrition.g_recalculate_zscore.wfa_score')},getWFHZScore:function(e){return r(e,'g_child.g_malnutrition.g_recalculate_zscore.wfh_score')},isSuspectedMalnourished:function(e){return r(e,'g_child.g_malnutrition.g_recalculate_zscore.suspected_malnourished')},getLatestScreeningHeight:function(e){const t=s(e,['screening','health_facility_followup_every_2w']);return t&&('screening'===t.form&&r(t,'g_child.g_malnutrition.child_height')||'health_facility_followup_every_2w'===t.form&&r(t,'g_height_information.g_zscore_calculation.g_zscore_.g_discharge_reminder.new_height'))},getLatestScreeningWeight:function(e){const t=s(e,['screening','health_facility_followup_every_2w']);return t&&('screening'===t.form&&r(t,'g_child.g_malnutrition.child_weight')||'health_facility_followup_every_2w'===t.form&&r(t,'g_height_information.g_zscore_calculation.g_zscore_.g_discharge_reminder.new_weight'))},getLatestVisitedDate:function(e){const t=s(e,['screening','health_facility_followup_every_2w']);return t&&('screening'===t.form&&r(t,'screening_date')||'health_facility_followup_every_2w'===t.form&&r(t,'g_confirmation.g_visited_info.visited_date'))},getLatestDateForHeightandWeight:function(e){const t=s(e,['screening']);return t&&'screening'===t.form&&r(t,'screening_date')}}},function(e,t){function n(e){return Array.isArray(e)?e:[e]}function r(e,t){switch(typeof e){case'undefined':return!0;case'function':return e(t);default:return e}}function i(e,t,n){if(r(e.appliesIf,n)){var i='function'==typeof e.fields?e.fields(n):e.fields.filter((function(e){return r(e.appliesIf,n)})).map((function(e){var t={};return o(e,t,'label'),o(e,t,'value'),o(e,t,'translate'),o(e,t,'filter'),o(e,t,'width'),o(e,t,'icon'),e.context&&(t.context={},o(e.context,t.context,'count'),o(e.context,t.context,'total')),t}));return e.modifyContext&&e.modifyContext(t,n),{label:e.label,fields:i}}function o(e,t,r){switch(typeof e[r]){case'undefined':return;case'function':t[r]=e[r](n);break;default:t[r]=e[r]}}}e.exports=function(e,t,r){var o=e.fields||[],a=e.context||{},u=e.cards||[],s=t&&(t.contact_type||t.type),c={cards:[],fields:o.filter((function(e){var t=n(e.appliesToType),r=t.filter((function(e){return e&&'!'===e.charAt(0)}));if((t.includes(s)||r.length>0&&!r.includes('!'+s))&&(!e.appliesIf||e.appliesIf()))return delete e.appliesToType,delete e.appliesIf,!0}))};return u.forEach((function(e){var t,o,u,l,f=n(e.appliesToType);if(f.includes('report')&&f.length>1)throw new Error('You cannot set appliesToType to an array which includes the type \\'report\\' and another type.');if(f.includes('report'))for(t=0;t<r.length;++t)o=r[t],!(l=o)||l.errors&&l.errors.length||(u=i(e,a,o))&&c.cards.push(u);else{if(!f.includes(s))return;(u=i(e,a))&&c.cards.push(u)}})),c.context=a,c}}])})); return ContactSummary;",
  396. "tasks": {
  397. "rules": "define Target { _id: null, contact: null, deleted: null, type: null, pass: null, date: null, groupBy: null }\ndefine Contact { contact: null, reports: null, tasks: null }\ndefine Task { _id: null, deleted: null, doc: null, contact: null, icon: null, date: null, readyStart: null, readyEnd: null, title: null, fields: null, resolved: null, priority: null, priorityLabel: null, reports: null, actions: null }\nrule GenerateEvents {\n when { c: Contact } then { !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(e,'__esModule',{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&'object'==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,'default',{enumerable:!0,value:e}),2&t&&'string'!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,'a',t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p='',n(n.s=2)}([function(e,t,n){'use strict';function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,'value'in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if('undefined'==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if('function'==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,n){return(l=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function c(e){var t='function'==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf('[native code]')))return e;var n;if('function'!=typeof e)throw new TypeError('Super expression must either be null or a function');if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){var t=0;if('undefined'==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if('string'==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return'Object'===n&&e.constructor&&(n=e.constructor.name),'Map'===n||'Set'===n?Array.from(n):'Arguments'===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(t,'__esModule',{value:!0});var m=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(c(Error)),p=function(e){function t(t){return e.call(this,'Invalid DateTime: '+t.toMessage())||this}return o(t,e),t}(m),h=function(e){function t(t){return e.call(this,'Invalid Interval: '+t.toMessage())||this}return o(t,e),t}(m),y=function(e){function t(t){return e.call(this,'Invalid Duration: '+t.toMessage())||this}return o(t,e),t}(m),g=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(m),v=function(e){function t(t){return e.call(this,'Invalid unit '+t)||this}return o(t,e),t}(m),w=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(m),_=function(e){function t(){return e.call(this,'Zone is an abstract class')||this}return o(t,e),t}(m),T='numeric',b='short',S='long',k={year:T,month:T,day:T},I={year:T,month:b,day:T},D={year:T,month:b,day:T,weekday:b},O={year:T,month:S,day:T},F={year:T,month:S,day:T,weekday:S},U={hour:T,minute:T},M={hour:T,minute:T,second:T},N={hour:T,minute:T,second:T,timeZoneName:b},E={hour:T,minute:T,second:T,timeZoneName:S},L={hour:T,minute:T,hour12:!1},C={hour:T,minute:T,second:T,hour12:!1},V={hour:T,minute:T,second:T,hour12:!1,timeZoneName:b},x={hour:T,minute:T,second:T,hour12:!1,timeZoneName:S},W={year:T,month:T,day:T,hour:T,minute:T},A={year:T,month:T,day:T,hour:T,minute:T,second:T},j={year:T,month:b,day:T,hour:T,minute:T},Z={year:T,month:b,day:T,hour:T,minute:T,second:T},z={year:T,month:b,day:T,weekday:b,hour:T,minute:T},P={year:T,month:S,day:T,hour:T,minute:T,timeZoneName:b},q={year:T,month:S,day:T,hour:T,minute:T,second:T,timeZoneName:b},R={year:T,month:S,day:T,weekday:S,hour:T,minute:T,timeZoneName:S},J={year:T,month:S,day:T,weekday:S,hour:T,minute:T,second:T,timeZoneName:S};function H(e){return void 0===e}function G(e){return'number'==typeof e}function Y(e){return'number'==typeof e&&e%1==0}function B(){try{return'undefined'!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function $(){return!H(Intl.DateTimeFormat.prototype.formatToParts)}function Q(){try{return'undefined'!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function X(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function te(e,t,n){return Y(e)&&e>=t&&e<=n}function ne(e,t){return void 0===t&&(t=2),e.toString().length<t?('0'.repeat(t)+e).slice(-t):e.toString()}function re(e){return H(e)||null===e||''===e?void 0:parseInt(e,10)}function ie(e){if(!H(e)&&null!==e&&''!==e){var t=1e3*parseFloat('0.'+e);return Math.floor(t)}}function oe(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function ae(e){return e%4==0&&(e%100!=0||e%400==0)}function se(e){return ae(e)?366:365}function ue(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?ae(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function le(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ce(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function de(e){return e>99?e:e>60?1900+e:2e3+e}function fe(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hour12:!1,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit'};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:t},o),s=B();if(s&&$()){var u=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(e){return'timezonename'===e.type.toLowerCase()}));return u?u.value:null}if(s){var l=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(l.length).replace(/^[, \\u200e]+/,'')}return null}function me(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function pe(e){var t=Number(e);if('boolean'==typeof e||''===e||Number.isNaN(t))throw new w('Invalid unit value '+e);return t}function he(e,t,n){var r={};for(var i in e)if(ee(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(null==o)continue;r[t(i)]=pe(o)}return r}function ye(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?'+':'-';switch(t){case'short':return''+i+ne(n,2)+':'+ne(r,2);case'narrow':return''+i+n+(r>0?':'+r:'');case'techie':return''+i+ne(n,2)+ne(r,2);default:throw new RangeError('Value format '+t+' is out of range for property format')}}function ge(e){return X(e,['hour','minute','second','millisecond'])}var ve=/[A-Za-z_+-]{1,256}(:?\\/[A-Za-z_+-]{1,256}(\\/[A-Za-z_+-]{1,256})?)?/;function we(e){return JSON.stringify(e,Object.keys(e).sort())}var _e=['January','February','March','April','May','June','July','August','September','October','November','December'],Te=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],be=['J','F','M','A','M','J','J','A','S','O','N','D'];function Se(e){switch(e){case'narrow':return be;case'short':return Te;case'long':return _e;case'numeric':return['1','2','3','4','5','6','7','8','9','10','11','12'];case'2-digit':return['01','02','03','04','05','06','07','08','09','10','11','12'];default:return null}}var ke=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],Ie=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],De=['M','T','W','T','F','S','S'];function Oe(e){switch(e){case'narrow':return De;case'short':return Ie;case'long':return ke;case'numeric':return['1','2','3','4','5','6','7'];default:return null}}var Fe=['AM','PM'],Ue=['Before Christ','Anno Domini'],Me=['BC','AD'],Ne=['B','A'];function Ee(e){switch(e){case'narrow':return Ne;case'short':return Me;case'long':return Ue;default:return null}}function Le(e,t){for(var n,r='',i=f(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var Ce={D:k,DD:I,DDD:O,DDDD:F,t:U,tt:M,ttt:N,tttt:E,T:L,TT:C,TTT:V,TTTT:x,f:W,ff:j,fff:P,ffff:R,F:A,FF:Z,FFF:q,FFFF:J},Ve=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n='',r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);'\\''===a?(n.length>0&&i.push({literal:r,val:n}),t=null,n='',r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Ce[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ne(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i='en'===this.loc.listingMode(),o=this.loc.outputCalendar&&'gregory'!==this.loc.outputCalendar&&$(),a=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?'Z':t.isValid?t.zone.formatOffset(t.ts,e.format):''},u=function(){return i?function(e){return Fe[e.hour<12?0:1]}(t):a({hour:'numeric',hour12:!0},'dayperiod')},l=function(e,n){return i?function(e,t){return Se(t)[e.month-1]}(t,e):a(n?{month:e}:{month:e,day:'numeric'},'month')},c=function(e,n){return i?function(e,t){return Oe(t)[e.weekday-1]}(t,e):a(n?{weekday:e}:{weekday:e,month:'long',day:'numeric'},'weekday')},d=function(e){return i?function(e,t){return Ee(t)[e.year<0?0:1]}(t,e):a({era:e},'era')};return Le(e.parseFormat(n),(function(n){switch(n){case'S':return r.num(t.millisecond);case'u':case'SSS':return r.num(t.millisecond,3);case's':return r.num(t.second);case'ss':return r.num(t.second,2);case'm':return r.num(t.minute);case'mm':return r.num(t.minute,2);case'h':return r.num(t.hour%12==0?12:t.hour%12);case'hh':return r.num(t.hour%12==0?12:t.hour%12,2);case'H':return r.num(t.hour);case'HH':return r.num(t.hour,2);case'Z':return s({format:'narrow',allowZ:r.opts.allowZ});case'ZZ':return s({format:'short',allowZ:r.opts.allowZ});case'ZZZ':return s({format:'techie',allowZ:r.opts.allowZ});case'ZZZZ':return t.zone.offsetName(t.ts,{format:'short',locale:r.loc.locale});case'ZZZZZ':return t.zone.offsetName(t.ts,{format:'long',locale:r.loc.locale});case'z':return t.zoneName;case'a':return u();case'd':return o?a({day:'numeric'},'day'):r.num(t.day);case'dd':return o?a({day:'2-digit'},'day'):r.num(t.day,2);case'c':return r.num(t.weekday);case'ccc':return c('short',!0);case'cccc':return c('long',!0);case'ccccc':return c('narrow',!0);case'E':return r.num(t.weekday);case'EEE':return c('short',!1);case'EEEE':return c('long',!1);case'EEEEE':return c('narrow',!1);case'L':return o?a({month:'numeric',day:'numeric'},'month'):r.num(t.month);case'LL':return o?a({month:'2-digit',day:'numeric'},'month'):r.num(t.month,2);case'LLL':return l('short',!0);case'LLLL':return l('long',!0);case'LLLLL':return l('narrow',!0);case'M':return o?a({month:'numeric'},'month'):r.num(t.month);case'MM':return o?a({month:'2-digit'},'month'):r.num(t.month,2);case'MMM':return l('short',!1);case'MMMM':return l('long',!1);case'MMMMM':return l('narrow',!1);case'y':return o?a({year:'numeric'},'year'):r.num(t.year);case'yy':return o?a({year:'2-digit'},'year'):r.num(t.year.toString().slice(-2),2);case'yyyy':return o?a({year:'numeric'},'year'):r.num(t.year,4);case'yyyyyy':return o?a({year:'numeric'},'year'):r.num(t.year,6);case'G':return d('short');case'GG':return d('long');case'GGGGG':return d('narrow');case'kk':return r.num(t.weekYear.toString().slice(-2),2);case'kkkk':return r.num(t.weekYear,4);case'W':return r.num(t.weekNumber);case'WW':return r.num(t.weekNumber,2);case'o':return r.num(t.ordinal);case'ooo':return r.num(t.ordinal,3);case'q':return r.num(t.quarter);case'qq':return r.num(t.quarter,2);case'X':return r.num(Math.floor(t.ts/1e3));case'x':return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,o=function(e){switch(e[0]){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':return'hour';case'd':return'day';case'M':return'month';case'y':return'year';default:return null}},a=e.parseFormat(n),s=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),u=t.shiftTo.apply(t,s.map(o).filter((function(e){return e})));return Le(a,(r=u,function(e){var t=o(e);return t?i.num(r.get(t),e.length):e}))},e}(),xe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+': '+this.explanation:this.reason},e}(),We=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new _},t.formatOffset=function(e,t){throw new _},t.offset=function(e){throw new _},t.equals=function(e){throw new _},i(e,[{key:'type',get:function(){throw new _}},{key:'name',get:function(){throw new _}},{key:'universal',get:function(){throw new _}},{key:'isValid',get:function(){throw new _}}]),e}(),Ae=null,je=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.offsetName=function(e,t){return fe(e,t.format,t.locale)},n.formatOffset=function(e,t){return ye(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return'local'===e.type},i(t,[{key:'type',get:function(){return'local'}},{key:'name',get:function(){return B()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:'local'}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return!0}}],[{key:'instance',get:function(){return null===Ae&&(Ae=new t),Ae}}]),t}(We),Ze=RegExp('^'+ve.source+'$'),ze={};var Pe={year:0,month:1,day:2,hour:3,minute:4,second:5};var qe={},Re=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}o(t,e),t.create=function(e){return qe[e]||(qe[e]=new t(e)),qe[e]},t.resetCache=function(){qe={},ze={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Ze))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat('en-US',{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\\/GMT([+-]\\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return fe(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return ye(this.offset(e),t)},n.offset=function(e){var t,n=new Date(e),r=(t=this.name,ze[t]||(ze[t]=new Intl.DateTimeFormat('en-US',{hour12:!1,timeZone:t,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'})),ze[t]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,s=o.value,u=Pe[a];H(u)||(r[u]=parseInt(s,10))}return r}(r,n):function(e,t){var n=e.format(t).replace(/\\u200E/g,''),r=/(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}(r,n),o=i[0],a=i[1],s=i[2],u=i[3],l=+n,c=l%1e3;return(le({year:o,month:a,day:s,hour:24===u?0:u,minute:i[4],second:i[5],millisecond:0})-(l-=c>=0?c:1e3+c))/6e4},n.equals=function(e){return'iana'===e.type&&e.name===this.name},i(t,[{key:'type',get:function(){return'iana'}},{key:'name',get:function(){return this.zoneName}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return this.valid}}]),t}(We),Je=null,He=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}o(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);if(n)return new t(me(n[1],n[2]))}return null},i(t,null,[{key:'utcInstance',get:function(){return null===Je&&(Je=new t(0)),Je}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return ye(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return'fixed'===e.type&&e.fixed===this.fixed},i(t,[{key:'type',get:function(){return'fixed'}},{key:'name',get:function(){return 0===this.fixed?'UTC':'UTC'+ye(this.fixed,'narrow')}},{key:'universal',get:function(){return!0}},{key:'isValid',get:function(){return!0}}]),t}(We),Ge=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}o(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return''},n.offset=function(){return NaN},n.equals=function(){return!1},i(t,[{key:'type',get:function(){return'invalid'}},{key:'name',get:function(){return this.zoneName}},{key:'universal',get:function(){return!1}},{key:'isValid',get:function(){return!1}}]),t}(We);function Ye(e,t){var n;if(H(e)||null===e)return t;if(e instanceof We)return e;if('string'==typeof e){var r=e.toLowerCase();return'local'===r?t:'utc'===r||'gmt'===r?He.utcInstance:null!=(n=Re.parseGMTOffset(e))?He.instance(n):Re.isValidSpecifier(r)?Re.create(e):He.parseSpecifier(r)||new Ge(e)}return G(e)?He.instance(e):'object'==typeof e&&e.offset&&'number'==typeof e.offset?e:new Ge(e)}var Be=function(){return Date.now()},$e=null,Qe=null,Ke=null,Xe=null,et=!1,tt=function(){function e(){}return e.resetCaches=function(){ft.resetCache(),Re.resetCache()},i(e,null,[{key:'now',get:function(){return Be},set:function(e){Be=e}},{key:'defaultZoneName',get:function(){return e.defaultZone.name},set:function(e){$e=e?Ye(e):null}},{key:'defaultZone',get:function(){return $e||je.instance}},{key:'defaultLocale',get:function(){return Qe},set:function(e){Qe=e}},{key:'defaultNumberingSystem',get:function(){return Ke},set:function(e){Ke=e}},{key:'defaultOutputCalendar',get:function(){return Xe},set:function(e){Xe=e}},{key:'throwOnInvalid',get:function(){return et},set:function(e){et=e}}]),e}(),nt={};function rt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.DateTimeFormat(e,t),nt[n]=r),r}var it={};var ot={};function at(e,t){void 0===t&&(t={});var n=t,r=(n.base,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,['base'])),i=JSON.stringify([e,r]),o=ot[i];return o||(o=new Intl.RelativeTimeFormat(e,t),ot[i]=o),o}var st=null;function ut(e,t,n,r,i){var o=e.listingMode(n);return'error'===o?null:'en'===o?r(t):i(t)}var lt=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&B()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=it[n];return r||(r=new Intl.NumberFormat(e,t),it[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ne(this.floor?Math.floor(e):oe(e,3),this.padTo)},e}(),ct=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=B(),e.zone.universal&&this.hasIntl?(r='UTC',n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ur.fromMillis(e.ts+60*e.offset*1e3)):'local'===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name),this.hasIntl){var i=Object.assign({},this.opts);r&&(i.timeZone=r),this.dtf=rt(t,i)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){switch(we(X(e,['weekday','era','year','month','day','hour','minute','second','timeZoneName','hour12']))){case we(k):return'M/d/yyyy';case we(I):return'LLL d, yyyy';case we(D):return'EEE, LLL d, yyyy';case we(O):return'LLLL d, yyyy';case we(F):return'EEEE, LLLL d, yyyy';case we(U):return'h:mm a';case we(M):return'h:mm:ss a';case we(N):case we(E):return'h:mm a';case we(L):return'HH:mm';case we(C):return'HH:mm:ss';case we(V):case we(x):return'HH:mm';case we(W):return'M/d/yyyy, h:mm a';case we(j):return'LLL d, yyyy, h:mm a';case we(P):return'LLLL d, yyyy, h:mm a';case we(R):return'EEEE, LLLL d, yyyy, h:mm a';case we(A):return'M/d/yyyy, h:mm:ss a';case we(Z):return'LLL d, yyyy, h:mm:ss a';case we(z):return'EEE, d LLL yyyy, h:mm a';case we(q):return'LLLL d, yyyy, h:mm:ss a';case we(J):return'EEEE, LLLL d, yyyy, h:mm:ss a';default:return'EEEE, LLLL d, yyyy, h:mm a'}}(this.opts),t=ft.create('en-US');return Ve.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&$()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:'en-US',numberingSystem:'latn',outputCalendar:'gregory'}},e}(),dt=function(){function e(e,t,n){this.opts=Object.assign({style:'long'},n),!t&&Q()&&(this.rtf=at(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n='always'),void 0===r&&(r=!1);var i={years:['year','yr.'],quarters:['quarter','qtr.'],months:['month','mo.'],weeks:['week','wk.'],days:['day','day','days'],hours:['hour','hr.'],minutes:['minute','min.'],seconds:['second','sec.']},o=-1===['hours','minutes','seconds'].indexOf(e);if('auto'===n&&o){var a='days'===e;switch(t){case 1:return a?'tomorrow':'next '+i[e][0];case-1:return a?'yesterday':'last '+i[e][0];case 0:return a?'today':'this '+i[e][0]}}var s=Object.is(t,-0)||t<0,u=Math.abs(t),l=1===u,c=i[e],d=r?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return s?u+' '+d+' ago':'in '+u+' '+d}(t,e,this.opts.numeric,'long'!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ft=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf('-u-');if(-1===t)return[e];var n,r=e.substring(0,t);try{n=rt(e).resolvedOptions()}catch(e){n=rt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return B()?n||t?(e+='-u',n&&(e+='-ca-'+n),t&&(e+='-nu-'+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||tt.defaultLocale;return new e(o||(i?'en-US':function(){if(st)return st;if(B()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return st=e&&'und'!==e?e:'en-US'}return st='en-US'}()),n||tt.defaultNumberingSystem,r||tt.defaultOutputCalendar,o)},e.resetCache=function(){st=null,nt={},it={},ot={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=B()&&$(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&'latn'!==this.numberingSystem||null!==this.outputCalendar&&'gregory'!==this.outputCalendar);return t||n&&r||e?!t||n&&r?'en':'intl':'error'},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),ut(this,e,n,Se,(function(){var n=t?{month:e,day:'numeric'}:{month:e},i=t?'format':'standalone';return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=ur.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,'month')}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),ut(this,e,n,Oe,(function(){var n=t?{weekday:e,year:'numeric',month:'long',day:'numeric'}:{weekday:e},i=t?'format':'standalone';return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=ur.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,'weekday')}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),ut(this,void 0,e,(function(){return Fe}),(function(){if(!t.meridiemCache){var e={hour:'numeric',hour12:!0};t.meridiemCache=[ur.utc(2016,11,13,9),ur.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,'dayperiod')}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),ut(this,e,t,Ee,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[ur.utc(-40,1,1),ur.utc(2017,1,1)].map((function(e){return n.extract(e,t,'era')}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new lt(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ct(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new dt(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return'en'===this.locale||'en-us'===this.locale.toLowerCase()||B()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith('en-us')},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:'fastNumbers',get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||'latn'===e.numberingSystem)&&('latn'===e.numberingSystem||!e.locale||e.locale.startsWith('en')||B()&&'latn'===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e+t.source}),'');return RegExp('^'+r+'$')}function pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(t,n){var r=t[0],i=t[1],o=t[2],a=n(e,o),s=a[0],u=a[1],l=a[2];return[Object.assign(r,s),i||u,l]}),[{},null,1]).slice(0,2)}}function ht(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],u=a[1],l=s.exec(e);if(l)return u(l)}return[null,null]}function yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=re(e[n+r]);return[i,null,n+r]}}var gt=/(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/,vt=/(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/,wt=RegExp(''+vt.source+gt.source+'?'),_t=RegExp('(?:T'+wt.source+')?'),Tt=yt('weekYear','weekNumber','weekDay'),bt=yt('year','ordinal'),St=RegExp(vt.source+' ?(?:'+gt.source+'|('+ve.source+'))?'),kt=RegExp('(?: '+St.source+')?');function It(e,t,n){var r=e[t];return H(r)?n:re(r)}function Dt(e,t){return[{year:It(e,t),month:It(e,t+1,1),day:It(e,t+2,1)},null,t+3]}function Ot(e,t){return[{hour:It(e,t,0),minute:It(e,t+1,0),second:It(e,t+2,0),millisecond:ie(e[t+3])},null,t+4]}function Ft(e,t){var n=!e[t]&&!e[t+1],r=me(e[t+1],e[t+2]);return[{},n?null:He.instance(r),t+3]}function Ut(e,t){return[{},e[t]?Re.create(e[t]):null,t+1]}var Mt=/^-?P(?:(?:(-?\\d{1,9})Y)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})W)?(?:(-?\\d{1,9})D)?(?:T(?:(-?\\d{1,9})H)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,9}))?S)?)?)$/;function Nt(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c='-'===t[0],d=function(e){return e&&c?-e:e};return[{years:d(re(n)),months:d(re(r)),weeks:d(re(i)),days:d(re(o)),hours:d(re(a)),minutes:d(re(s)),seconds:d(re(u)),milliseconds:d(ie(l))}]}var Et={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Lt(e,t,n,r,i,o,a){var s={year:2===t.length?de(re(t)):re(t),month:Te.indexOf(n)+1,day:re(r),hour:re(i),minute:re(o)};return a&&(s.second=re(a)),e&&(s.weekday=e.length>3?ke.indexOf(e)+1:Ie.indexOf(e)+1),s}var Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;function Vt(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c=e[9],d=e[10],f=e[11],m=Lt(n,o,i,r,a,s,u);return t=l?Et[l]:c?0:me(d,f),[m,new He(t)]}var xt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,Wt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,At=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;function jt(e){var t=e[1],n=e[2],r=e[3];return[Lt(t,e[4],r,n,e[5],e[6],e[7]),He.utcInstance]}function Zt(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[Lt(t,e[7],n,r,i,o,a),He.utcInstance]}var zt=mt(/([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/,_t),Pt=mt(/(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/,_t),qt=mt(/(\\d{4})-?(\\d{3})/,_t),Rt=mt(wt),Jt=pt(Dt,Ot,Ft),Ht=pt(Tt,Ot,Ft),Gt=pt(bt,Ot),Yt=pt(Ot,Ft);var Bt=mt(/(\\d{4})-(\\d\\d)-(\\d\\d)/,kt),$t=mt(St),Qt=pt(Dt,Ot,Ft,Ut),Kt=pt(Ot,Ft,Ut);var Xt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},en=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Xt),tn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Xt),nn=['years','quarters','months','weeks','days','hours','minutes','seconds','milliseconds'],rn=nn.slice(0).reverse();function on(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new sn(r)}function an(e,t,n,r,i){var o=e[i][n],a=t[n]/o,s=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[i]+=s,t[n]-=s*o}var sn=function(){function e(e){var t='longterm'===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ft.create(),this.conversionAccuracy=t?'longterm':'casual',this.invalid=e.invalid||null,this.matrix=t?tn:en,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||'object'!=typeof t)throw new w('Duration.fromObject: argument expected to be an object, got '+(null===t?'null':typeof t));return new e({values:he(t,e.normalizeUnit,['locale','numberingSystem','conversionAccuracy','zone']),loc:ft.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return ht(e,[Mt,Nt])}(t)[0];if(r){var i=Object.assign(r,n);return e.fromObject(i)}return e.invalid('unparsable','the input \"'+t+'\" can\\'t be parsed as ISO 8601')},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w('need to specify a reason the Duration is invalid');var r=t instanceof xe?t:new xe(t,n);if(tt.throwOnInvalid)throw new y(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:'years',years:'years',quarter:'quarters',quarters:'quarters',month:'months',months:'months',week:'weeks',weeks:'weeks',day:'days',days:'days',hour:'hours',hours:'hours',minute:'minutes',minutes:'minutes',second:'seconds',seconds:'seconds',millisecond:'milliseconds',milliseconds:'milliseconds'}[e?e.toLowerCase():e];if(!t)throw new v(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ve.create(this.loc,n).formatDurationFromString(this,e):'Invalid Duration'},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e='P';return 0!==this.years&&(e+=this.years+'Y'),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+'M'),0!==this.weeks&&(e+=this.weeks+'W'),0!==this.days&&(e+=this.days+'D'),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+='T'),0!==this.hours&&(e+=this.hours+'H'),0!==this.minutes&&(e+=this.minutes+'M'),0===this.seconds&&0===this.milliseconds||(e+=oe(this.seconds+this.milliseconds/1e3,3)+'S'),'P'===e&&(e+='T0S'),e},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.valueOf=function(){return this.as('milliseconds')},t.plus=function(e){if(!this.isValid)return this;for(var t,n=un(e),r={},i=f(nn);!(t=i()).done;){var o=t.value;(ee(n.values,o)||ee(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return on(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=un(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=pe(e(this.values[i],i))}return on(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?on(this,{values:Object.assign(this.values,he(t,e.normalizeUnit,[]))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,o={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(o.conversionAccuracy=i),on(this,o)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){rn.reduce((function(n,r){return H(t[r])?n:(n&&an(e,t,n,t,r),r)}),null)}(this.matrix,e),on(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(t){return e.normalizeUnit(t)}));for(var i,o,a={},s={},u=this.toObject(),l=f(nn);!(o=l()).done;){var c=o.value;if(n.indexOf(c)>=0){i=c;var d=0;for(var m in s)d+=this.matrix[m][c]*s[m],s[m]=0;G(u[c])&&(d+=u[c]);var p=Math.trunc(d);for(var h in a[c]=p,s[c]=d-p,u)nn.indexOf(h)>nn.indexOf(c)&&an(this.matrix,u,h,a,c)}else G(u[c])&&(s[c]=u[c])}for(var y in s)0!==s[y]&&(a[i]+=y===i?s[y]:s[y]/this.matrix[i][y]);return on(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return on(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=f(nn);!(t=n()).done;){var r=t.value;if(this.values[r]!==e.values[r])return!1}return!0},i(e,[{key:'locale',get:function(){return this.isValid?this.loc.locale:null}},{key:'numberingSystem',get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:'years',get:function(){return this.isValid?this.values.years||0:NaN}},{key:'quarters',get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:'months',get:function(){return this.isValid?this.values.months||0:NaN}},{key:'weeks',get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:'days',get:function(){return this.isValid?this.values.days||0:NaN}},{key:'hours',get:function(){return this.isValid?this.values.hours||0:NaN}},{key:'minutes',get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:'seconds',get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:'milliseconds',get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:'isValid',get:function(){return null===this.invalid}},{key:'invalidReason',get:function(){return this.invalid?this.invalid.reason:null}},{key:'invalidExplanation',get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function un(e){if(G(e))return sn.fromMillis(e);if(sn.isDuration(e))return e;if('object'==typeof e)return sn.fromObject(e);throw new w('Unknown duration argument '+e+' of type '+typeof e)}var ln='Invalid Interval';function cn(e,t){return e&&e.isValid?t&&t.isValid?t<e?dn.invalid('end before start','The end of an interval must be after its start, but you had start='+e.toISO()+' and end='+t.toISO()):null:dn.invalid('missing or invalid end'):dn.invalid('missing or invalid start')}var dn=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w('need to specify a reason the Interval is invalid');var r=t instanceof xe?t:new xe(t,n);if(tt.throwOnInvalid)throw new h(r);return new e({invalid:r})},e.fromDateTimes=function(t,n){var r=lr(t),i=lr(n),o=cn(r,i);return null==o?new e({start:r,end:i}):o},e.after=function(t,n){var r=un(n),i=lr(t);return e.fromDateTimes(i,i.plus(r))},e.before=function(t,n){var r=un(n),i=lr(t);return e.fromDateTimes(i.minus(r),i)},e.fromISO=function(t,n){var r=(t||'').split('/',2),i=r[0],o=r[1];if(i&&o){var a,s,u,l;try{s=(a=ur.fromISO(i,n)).isValid}catch(o){s=!1}try{l=(u=ur.fromISO(o,n)).isValid}catch(o){l=!1}if(s&&l)return e.fromDateTimes(a,u);if(s){var c=sn.fromISO(o,n);if(c.isValid)return e.after(a,c)}else if(l){var d=sn.fromISO(i,n);if(d.isValid)return e.before(u,d)}}return e.invalid('unparsable','the input \"'+t+'\" can\\'t be parsed as ISO 8601')},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e='milliseconds'),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e='milliseconds'),!this.isValid)return NaN;var t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.map(lr).filter((function(e){return t.contains(e)})).sort(),a=[],s=this.s,u=0;s<this.e;){var l=o[u]||this.e,c=+l>+this.e?this.e:l;a.push(e.fromDateTimes(s,c)),s=c,u+=1}return a},t.splitBy=function(t){var n=un(t);if(!this.isValid||!n.isValid||0===n.as('milliseconds'))return[];for(var r,i,o=this.s,a=[];o<this.e;)i=+(r=o.plus(n))>+this.e?this.e:r,a.push(e.fromDateTimes(o,i)),o=i;return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],s=t.map((function(e){return[{time:e.s,type:'s'},{time:e.e,type:'e'}]})),u=f((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var l=r.value;1===(o+='s'===l.type?1:-1)?i=l.time:(i&&+i!=+l.time&&a.push(e.fromDateTimes(i,l.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.xor([this].concat(r)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?'['+this.s.toISO()+' – '+this.e.toISO()+')':ln},t.toISO=function(e){return this.isValid?this.s.toISO(e)+'/'+this.e.toISO(e):ln},t.toISODate=function(){return this.isValid?this.s.toISODate()+'/'+this.e.toISODate():ln},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+'/'+this.e.toISOTime(e):ln},t.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?' – ':n;return this.isValid?''+this.s.toFormat(e)+r+this.e.toFormat(e):ln},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):sn.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},i(e,[{key:'start',get:function(){return this.isValid?this.s:null}},{key:'end',get:function(){return this.isValid?this.e:null}},{key:'isValid',get:function(){return null===this.invalidReason}},{key:'invalidReason',get:function(){return this.invalid?this.invalid.reason:null}},{key:'invalidExplanation',get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),fn=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=tt.defaultZone);var t=ur.local().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Re.isValidSpecifier(e)&&Re.isValidZone(e)},e.normalizeZone=function(e){return Ye(e,tt.defaultZone)},e.months=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.outputCalendar,u=void 0===s?'gregory':s;return ft.create(i,a,u).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.outputCalendar,u=void 0===s?'gregory':s;return ft.create(i,a,u).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o;return ft.create(i,a,null).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e='long');var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o;return ft.create(i,a,null).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return ft.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e='short');var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return ft.create(r,null,'gregory').eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(B()){e=!0,t=$(),r=Q();try{n='America/New_York'===new Intl.DateTimeFormat('en',{timeZone:'America/New_York'}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function mn(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf('day').valueOf()},r=n(t)-n(e);return Math.floor(sn.fromMillis(r).as('days'))}function pn(e,t,n,r){var i=function(e,t,n){for(var r,i,o={},a=0,s=[['years',function(e,t){return t.year-e.year}],['months',function(e,t){return t.month-e.month+12*(t.year-e.year)}],['weeks',function(e,t){var n=mn(e,t);return(n-n%7)/7}],['days',mn]];a<s.length;a++){var u=s[a],l=u[0],c=u[1];if(n.indexOf(l)>=0){var d;r=l;var f,m=c(e,t);if((i=e.plus(((d={})[l]=m,d)))>t)e=e.plus(((f={})[l]=m-1,f)),m-=1;else e=i;o[l]=m}}return[e,o,i,r]}(e,t,n),o=i[0],a=i[1],s=i[2],u=i[3],l=t-o,c=n.filter((function(e){return['hours','minutes','seconds','milliseconds'].indexOf(e)>=0}));if(0===c.length){var d;if(s<t)s=o.plus(((d={})[u]=1,d));s!==o&&(a[u]=(a[u]||0)+l/(s-o))}var f,m=sn.fromObject(Object.assign(a,r));return c.length>0?(f=sn.fromMillis(l,r)).shiftTo.apply(f,c).plus(m):m}var hn={arab:'[٠-٩]',arabext:'[۰-۹]',bali:'[᭐-᭙]',beng:'[০-৯]',deva:'[०-९]',fullwide:'[0-9]',gujr:'[૦-૯]',hanidec:'[〇|一|二|三|四|五|六|七|八|九]',khmr:'[០-៩]',knda:'[೦-೯]',laoo:'[໐-໙]',limb:'[᥆-᥏]',mlym:'[൦-൯]',mong:'[᠐-᠙]',mymr:'[၀-၉]',orya:'[୦-୯]',tamldec:'[௦-௯]',telu:'[౦-౯]',thai:'[๐-๙]',tibt:'[༠-༩]',latn:'\\\\d'},yn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},gn=hn.hanidec.replace(/[\\[|\\]]/g,'').split('');function vn(e,t){var n=e.numberingSystem;return void 0===t&&(t=''),new RegExp(''+hn[n||'latn']+t)}function wn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t='';for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(hn.hanidec))t+=gn.indexOf(e[n]);else for(var i in yn){var o=yn[i],a=o[0],s=o[1];r>=a&&r<=s&&(t+=r-a)}}return parseInt(t,10)}return t}(n))}}}var _n='( |'+String.fromCharCode(160)+')',Tn=new RegExp(_n,'g');function bn(e){return e.replace(/\\./g,'\\\\.?').replace(Tn,_n)}function Sn(e){return e.replace(/\\./g,'').replace(Tn,' ').toLowerCase()}function kn(e,t){return null===e?null:{regex:RegExp(e.map(bn).join('|')),deser:function(n){var r=n[0];return e.findIndex((function(e){return Sn(r)===Sn(e)}))+t}}}function In(e,t){return{regex:e,deser:function(e){return me(e[1],e[2])},groups:t}}function Dn(e){return{regex:e,deser:function(e){return e[0]}}}var On={year:{'2-digit':'yy',numeric:'yyyyy'},month:{numeric:'M','2-digit':'MM',short:'MMM',long:'MMMM'},day:{numeric:'d','2-digit':'dd'},weekday:{short:'EEE',long:'EEEE'},dayperiod:'a',dayPeriod:'a',hour:{numeric:'h','2-digit':'hh'},minute:{numeric:'m','2-digit':'mm'},second:{numeric:'s','2-digit':'ss'}};var Fn=null;function Un(e,t){if(e.literal)return e;var n=Ve.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ve.create(t,n).formatDateTimeParts((Fn||(Fn=ur.fromMillis(1555555555555)),Fn)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if('literal'===r)return{literal:!0,val:i};var o=n[r],a=On[r];return'object'==typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function Mn(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return Un(e,t)})))}(Ve.parseFormat(n),e),i=r.map((function(t){return n=t,i=vn(r=e),o=vn(r,'{2}'),a=vn(r,'{3}'),s=vn(r,'{4}'),u=vn(r,'{6}'),l=vn(r,'{1,2}'),c=vn(r,'{1,3}'),d=vn(r,'{1,6}'),f=vn(r,'{1,9}'),m=vn(r,'{2,4}'),p=vn(r,'{4,6}'),h=function(e){return{regex:RegExp((t=e.val,t.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g,'\\\\$&'))),deser:function(e){return e[0]},literal:!0};var t},(y=function(e){if(n.literal)return h(e);switch(e.val){case'G':return kn(r.eras('short',!1),0);case'GG':return kn(r.eras('long',!1),0);case'y':return wn(d);case'yy':return wn(m,de);case'yyyy':return wn(s);case'yyyyy':return wn(p);case'yyyyyy':return wn(u);case'M':return wn(l);case'MM':return wn(o);case'MMM':return kn(r.months('short',!0,!1),1);case'MMMM':return kn(r.months('long',!0,!1),1);case'L':return wn(l);case'LL':return wn(o);case'LLL':return kn(r.months('short',!1,!1),1);case'LLLL':return kn(r.months('long',!1,!1),1);case'd':return wn(l);case'dd':return wn(o);case'o':return wn(c);case'ooo':return wn(a);case'HH':return wn(o);case'H':return wn(l);case'hh':return wn(o);case'h':return wn(l);case'mm':return wn(o);case'm':case'q':return wn(l);case'qq':return wn(o);case's':return wn(l);case'ss':return wn(o);case'S':return wn(c);case'SSS':return wn(a);case'u':return Dn(f);case'a':return kn(r.meridiems(),0);case'kkkk':return wn(s);case'kk':return wn(m,de);case'W':return wn(l);case'WW':return wn(o);case'E':case'c':return wn(i);case'EEE':return kn(r.weekdays('short',!1,!1),1);case'EEEE':return kn(r.weekdays('long',!1,!1),1);case'ccc':return kn(r.weekdays('short',!0,!1),1);case'cccc':return kn(r.weekdays('long',!0,!1),1);case'Z':case'ZZ':return In(new RegExp('([+-]'+l.source+')(?::('+o.source+'))?'),2);case'ZZZ':return In(new RegExp('([+-]'+l.source+')('+o.source+')?'),2);case'z':return Dn(/[a-z_+-/]{1,256}?/i);default:return h(e)}}(n)||{invalidReason:'missing Intl.DateTimeFormat.formatToParts support'}).token=n,y;var n,r,i,o,a,s,u,l,c,d,f,m,p,h,y})),o=i.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=function(e){return['^'+e.map((function(e){return e.regex})).reduce((function(e,t){return e+'('+t.source+')'}),'')+'$',e]}(i),s=a[0],u=a[1],l=RegExp(s,'i'),c=function(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(ee(n,a)){var s=n[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+u))),o+=u}return[r,i]}return[r,{}]}(t,l,u),d=c[0],f=c[1],m=f?function(e){var t;return t=H(e.Z)?H(e.z)?null:Re.create(e.z):new He(e.Z),H(e.q)||(e.M=3*(e.q-1)+1),H(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),H(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':case'H':return'hour';case'd':return'day';case'o':return'ordinal';case'L':case'M':return'month';case'y':return'year';case'E':case'c':return'weekday';case'W':return'weekNumber';case'k':return'weekYear';case'q':return'quarter';default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(f):[null,null],p=m[0],h=m[1];if(ee(f,'a')&&ee(f,'H'))throw new g('Can\\'t include meridiem when specifying 24-hour format');return{input:t,tokens:r,regex:l,rawMatches:d,matches:f,result:p,zone:h}}var Nn=[0,31,59,90,120,151,181,212,243,273,304,334],En=[0,31,60,91,121,152,182,213,244,274,305,335];function Ln(e,t){return new xe('unit out of range','you specified '+t+' (of type '+typeof t+') as a '+e+', which is invalid')}function Cn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Vn(e,t,n){return n+(ae(e)?En:Nn)[t-1]}function xn(e,t){var n=ae(e)?En:Nn,r=n.findIndex((function(e){return e<t}));return{month:r+1,day:t-n[r]}}function Wn(e){var t,n=e.year,r=e.month,i=e.day,o=Vn(n,r,i),a=Cn(n,r,i),s=Math.floor((o-a+10)/7);return s<1?s=ce(t=n-1):s>ce(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:a},ge(e))}function An(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=Cn(n,1,4),a=se(n),s=7*r+i-o-3;s<1?s+=se(t=n-1):s>a?(t=n+1,s-=se(n)):t=n;var u=xn(t,s),l=u.month,c=u.day;return Object.assign({year:t,month:l,day:c},ge(e))}function jn(e){var t=e.year,n=Vn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},ge(e))}function Zn(e){var t=e.year,n=xn(t,e.ordinal),r=n.month,i=n.day;return Object.assign({year:t,month:r,day:i},ge(e))}function zn(e){var t=Y(e.year),n=te(e.month,1,12),r=te(e.day,1,ue(e.year,e.month));return t?n?!r&&Ln('day',e.day):Ln('month',e.month):Ln('year',e.year)}function Pn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=te(t,0,23)||24===t&&0===n&&0===r&&0===i,a=te(n,0,59),s=te(r,0,59),u=te(i,0,999);return o?a?s?!u&&Ln('millisecond',i):Ln('second',r):Ln('minute',n):Ln('hour',t)}function qn(e){return new xe('unsupported zone','the zone \"'+e.name+'\" is not supported')}function Rn(e){return null===e.weekData&&(e.weekData=Wn(e.c)),e.weekData}function Jn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ur(Object.assign({},n,t,{old:n}))}function Hn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Gn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Yn(e,t,n){return Hn(le(e),t,n)}function Bn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,ue(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=sn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as('milliseconds'),s=Hn(le(o),n,e.zone),u=s[0],l=s[1];return 0!==a&&(u+=a,l=e.zone.offset(u)),{ts:u,o:l}}function $n(e,t,n,r,i){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var s=t||a,u=ur.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return o?u:u.setZone(a)}return ur.invalid(new xe('unparsable','the input \"'+i+'\" can\\'t be parsed as '+r))}function Qn(e,t,n){return void 0===n&&(n=!0),e.isValid?Ve.create(ft.create('en-US'),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Kn(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,s=t.includeZone,u=void 0!==s&&s,l=t.spaceZone,c=void 0!==l&&l,d=t.format,f=void 0===d?'extended':d,m='basic'===f?'HHmm':'HH:mm';return r&&0===e.second&&0===e.millisecond||(m+='basic'===f?'ss':':ss',o&&0===e.millisecond||(m+='.SSS')),(u||a)&&c&&(m+=' '),u?m+='z':a&&(m+='basic'===f?'ZZZ':'ZZ'),Qn(e,m)}var Xn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},tr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=['year','month','day','hour','minute','second','millisecond'],rr=['weekYear','weekNumber','weekday','hour','minute','second','millisecond'],ir=['year','ordinal','hour','minute','second','millisecond'];function or(e){var t={year:'year',years:'year',month:'month',months:'month',day:'day',days:'day',hour:'hour',hours:'hour',minute:'minute',minutes:'minute',quarter:'quarter',quarters:'quarter',second:'second',seconds:'second',millisecond:'millisecond',milliseconds:'millisecond',weekday:'weekday',weekdays:'weekday',weeknumber:'weekNumber',weeksnumber:'weekNumber',weeknumbers:'weekNumber',weekyear:'weekYear',weekyears:'weekYear',ordinal:'ordinal'}[e.toLowerCase()];if(!t)throw new v(e);return t}function ar(e,t){for(var n,r=f(nr);!(n=r()).done;){var i=n.value;H(e[i])&&(e[i]=Xn[i])}var o=zn(e)||Pn(e);if(o)return ur.invalid(o);var a=tt.now(),s=Yn(e,t.offset(a),t),u=s[0],l=s[1];return new ur({ts:u,zone:t,o:l})}function sr(e,t,n){var r=!!H(n.round)||n.round,i=function(e,i){return e=oe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,s=f(n.units);!(a=s()).done;){var u=a.value,l=o(u);if(Math.abs(l)>=1)return i(l,u)}return i(0,n.units[n.units.length-1])}var ur=function(){function e(e){var t=e.zone||tt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new xe('invalid input'):null)||(t.isValid?null:qn(t));this.ts=H(e.ts)?tt.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else{var a=t.offset(this.ts);r=Gn(this.ts,a),r=(n=Number.isNaN(r.year)?new xe('invalid input'):null)?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||ft.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.local=function(t,n,r,i,o,a,s){return H(t)?new e({ts:tt.now()}):ar({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},tt.defaultZone)},e.utc=function(t,n,r,i,o,a,s){return H(t)?new e({ts:tt.now(),zone:He.utcInstance}):ar({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},He.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,'[object Date]'===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid('invalid input');var o=Ye(n.zone,tt.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:ft.fromObject(n)}):e.invalid(qn(o))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),G(t))return t<-864e13||t>864e13?e.invalid('Timestamp out of range'):new e({ts:t,zone:Ye(n.zone,tt.defaultZone),loc:ft.fromObject(n)});throw new w('fromMillis requires a numerical input, but received a '+typeof t+' with value '+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),G(t))return new e({ts:1e3*t,zone:Ye(n.zone,tt.defaultZone),loc:ft.fromObject(n)});throw new w('fromSeconds requires a numerical input')},e.fromObject=function(t){var n=Ye(t.zone,tt.defaultZone);if(!n.isValid)return e.invalid(qn(n));var r=tt.now(),i=n.offset(r),o=he(t,or,['zone','locale','outputCalendar','numberingSystem']),a=!H(o.ordinal),s=!H(o.year),u=!H(o.month)||!H(o.day),l=s||u,c=o.weekYear||o.weekNumber,d=ft.fromObject(t);if((l||a)&&c)throw new g('Can\\'t mix weekYear/weekNumber units with year/month/day or ordinals');if(u&&a)throw new g('Can\\'t mix ordinal dates with month/day');var m,p,h=c||o.weekday&&!l,y=Gn(r,i);h?(m=rr,p=er,y=Wn(y)):a?(m=ir,p=tr,y=jn(y)):(m=nr,p=Xn);for(var v,w=!1,_=f(m);!(v=_()).done;){var T=v.value;H(o[T])?o[T]=w?p[T]:y[T]:w=!0}var b=(h?function(e){var t=Y(e.weekYear),n=te(e.weekNumber,1,ce(e.weekYear)),r=te(e.weekday,1,7);return t?n?!r&&Ln('weekday',e.weekday):Ln('week',e.week):Ln('weekYear',e.weekYear)}(o):a?function(e){var t=Y(e.year),n=te(e.ordinal,1,se(e.year));return t?!n&&Ln('ordinal',e.ordinal):Ln('year',e.year)}(o):zn(o))||Pn(o);if(b)return e.invalid(b);var S=Yn(h?An(o):a?Zn(o):o,i,n),k=new e({ts:S[0],zone:n,o:S[1],loc:d});return o.weekday&&l&&t.weekday!==k.weekday?e.invalid('mismatched weekday','you can\\'t specify both a weekday of '+o.weekday+' and a date of '+k.toISO()):k},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return ht(e,[zt,Jt],[Pt,Ht],[qt,Gt],[Rt,Yt])}(e);return $n(n[0],n[1],t,'ISO 8601',e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return ht(function(e){return e.replace(/\\([^)]*\\)|[\\n\\t]/g,' ').replace(/(\\s\\s+)/g,' ').trim()}(e),[Ct,Vt])}(e);return $n(n[0],n[1],t,'RFC 2822',e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return ht(e,[xt,jt],[Wt,jt],[At,Zt])}(e);return $n(n[0],n[1],t,'HTTP',t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),H(t)||H(n))throw new w('fromFormat requires an input string and a format');var i=r,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,u=void 0===s?null:s,l=function(e,t,n){var r=Mn(e,t,n);return[r.result,r.zone,r.invalidReason]}(ft.fromOpts({locale:a,numberingSystem:u,defaultToEN:!0}),t,n),c=l[0],d=l[1],f=l[2];return f?e.invalid(f):$n(c,d,r,'format '+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return ht(e,[Bt,Qt],[$t,Kt])}(e);return $n(n[0],n[1],t,'SQL',e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new w('need to specify a reason the DateTime is invalid');var r=t instanceof xe?t:new xe(t,n);if(tt.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ve.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(He.instance(e),t)},t.toLocal=function(){return this.setZone(tt.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,s=void 0!==a&&a;if((t=Ye(t,tt.defaultZone)).equals(this.zone))return this;if(t.isValid){var u=this.ts;if(o||s){var l=t.offset(this.ts);u=Yn(this.toObject(),l,t)[0]}return Jn(this,{ts:u,zone:t})}return e.invalid(qn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Jn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=he(e,or,[]);!H(n.weekYear)||!H(n.weekNumber)||!H(n.weekday)?t=An(Object.assign(Wn(this.c),n)):H(n.ordinal)?(t=Object.assign(this.toObject(),n),H(n.day)&&(t.day=Math.min(ue(t.year,t.month),t.day))):t=Zn(Object.assign(jn(this.c),n));var r=Yn(t,this.o,this.zone);return Jn(this,{ts:r[0],o:r[1]})},t.plus=function(e){return this.isValid?Jn(this,Bn(this,un(e))):this},t.minus=function(e){return this.isValid?Jn(this,Bn(this,un(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=sn.normalizeUnit(e);switch(n){case'years':t.month=1;case'quarters':case'months':t.day=1;case'weeks':case'days':t.hour=0;case'hours':t.minute=0;case'minutes':t.second=0;case'seconds':t.millisecond=0}if('weeks'===n&&(t.weekday=1),'quarters'===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ve.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):'Invalid DateTime'},t.toLocaleString=function(e){return void 0===e&&(e=k),this.isValid?Ve.create(this.loc.clone(e),e).formatDateTime(this):'Invalid DateTime'},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ve.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+'T'+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n='basic'===(void 0===t?'extended':t)?'yyyyMMdd':'yyyy-MM-dd';return this.year>9999&&(n='+'+n),Qn(this,n)},t.toISOWeekDate=function(){return Qn(this,'kkkk-\\'W\\'WW-c')},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,s=void 0===a||a,u=t.format;return Kn(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:s,format:void 0===u?'extended':u})},t.toRFC2822=function(){return Qn(this,'EEE, dd LLL yyyy HH:mm:ss ZZZ',!1)},t.toHTTP=function(){return Qn(this.toUTC(),'EEE, dd LLL yyyy HH:mm:ss \\'GMT\\'')},t.toSQLDate=function(){return Qn(this,'yyyy-MM-dd')},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Kn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+' '+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():'Invalid DateTime'},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t='milliseconds'),void 0===n&&(n={}),!this.isValid||!e.isValid)return sn.invalid(this.invalid||e.invalid,'created by diffing an invalid DateTime');var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(sn.normalizeUnit),a=e.valueOf()>this.valueOf(),s=pn(a?this:e,a?e:this,o,i);return a?s.negate():s},t.diffNow=function(t,n){return void 0===t&&(t='milliseconds'),void 0===n&&(n={}),this.diff(e.local(),t,n)},t.until=function(e){return this.isValid?dn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;if('millisecond'===t)return this.valueOf()===e.valueOf();var n=e.valueOf();return this.startOf(t)<=n&&n<=this.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;return sr(n,this.plus(r),Object.assign(t,{numeric:'always',units:['years','months','days','hours','minutes','seconds']}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?sr(t.base||e.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:'auto',units:['years','months','days'],calendary:!0})):null},e.min=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w('min requires all arguments be DateTimes');return K(n,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new w('max requires all arguments be DateTimes');return K(n,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,o=void 0===i?null:i,a=r.numberingSystem,s=void 0===a?null:a;return Mn(ft.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,n,r){return void 0===r&&(r={}),e.fromFormatExplain(t,n,r)},i(e,[{key:'isValid',get:function(){return null===this.invalid}},{key:'invalidReason',get:function(){return this.invalid?this.invalid.reason:null}},{key:'invalidExplanation',get:function(){return this.invalid?this.invalid.explanation:null}},{key:'locale',get:function(){return this.isValid?this.loc.locale:null}},{key:'numberingSystem',get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:'outputCalendar',get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:'zone',get:function(){return this._zone}},{key:'zoneName',get:function(){return this.isValid?this.zone.name:null}},{key:'year',get:function(){return this.isValid?this.c.year:NaN}},{key:'quarter',get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:'month',get:function(){return this.isValid?this.c.month:NaN}},{key:'day',get:function(){return this.isValid?this.c.day:NaN}},{key:'hour',get:function(){return this.isValid?this.c.hour:NaN}},{key:'minute',get:function(){return this.isValid?this.c.minute:NaN}},{key:'second',get:function(){return this.isValid?this.c.second:NaN}},{key:'millisecond',get:function(){return this.isValid?this.c.millisecond:NaN}},{key:'weekYear',get:function(){return this.isValid?Rn(this).weekYear:NaN}},{key:'weekNumber',get:function(){return this.isValid?Rn(this).weekNumber:NaN}},{key:'weekday',get:function(){return this.isValid?Rn(this).weekday:NaN}},{key:'ordinal',get:function(){return this.isValid?jn(this.c).ordinal:NaN}},{key:'monthShort',get:function(){return this.isValid?fn.months('short',{locale:this.locale})[this.month-1]:null}},{key:'monthLong',get:function(){return this.isValid?fn.months('long',{locale:this.locale})[this.month-1]:null}},{key:'weekdayShort',get:function(){return this.isValid?fn.weekdays('short',{locale:this.locale})[this.weekday-1]:null}},{key:'weekdayLong',get:function(){return this.isValid?fn.weekdays('long',{locale:this.locale})[this.weekday-1]:null}},{key:'offset',get:function(){return this.isValid?+this.o:NaN}},{key:'offsetNameShort',get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:'short',locale:this.locale}):null}},{key:'offsetNameLong',get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:'long',locale:this.locale}):null}},{key:'isOffsetFixed',get:function(){return this.isValid?this.zone.universal:null}},{key:'isInDST',get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:'isInLeapYear',get:function(){return ae(this.year)}},{key:'daysInMonth',get:function(){return ue(this.year,this.month)}},{key:'daysInYear',get:function(){return this.isValid?se(this.year):NaN}},{key:'weeksInWeekYear',get:function(){return this.isValid?ce(this.weekYear):NaN}}],[{key:'DATE_SHORT',get:function(){return k}},{key:'DATE_MED',get:function(){return I}},{key:'DATE_MED_WITH_WEEKDAY',get:function(){return D}},{key:'DATE_FULL',get:function(){return O}},{key:'DATE_HUGE',get:function(){return F}},{key:'TIME_SIMPLE',get:function(){return U}},{key:'TIME_WITH_SECONDS',get:function(){return M}},{key:'TIME_WITH_SHORT_OFFSET',get:function(){return N}},{key:'TIME_WITH_LONG_OFFSET',get:function(){return E}},{key:'TIME_24_SIMPLE',get:function(){return L}},{key:'TIME_24_WITH_SECONDS',get:function(){return C}},{key:'TIME_24_WITH_SHORT_OFFSET',get:function(){return V}},{key:'TIME_24_WITH_LONG_OFFSET',get:function(){return x}},{key:'DATETIME_SHORT',get:function(){return W}},{key:'DATETIME_SHORT_WITH_SECONDS',get:function(){return A}},{key:'DATETIME_MED',get:function(){return j}},{key:'DATETIME_MED_WITH_SECONDS',get:function(){return Z}},{key:'DATETIME_MED_WITH_WEEKDAY',get:function(){return z}},{key:'DATETIME_FULL',get:function(){return P}},{key:'DATETIME_FULL_WITH_SECONDS',get:function(){return q}},{key:'DATETIME_HUGE',get:function(){return R}},{key:'DATETIME_HUGE_WITH_SECONDS',get:function(){return J}}]),e}();function lr(e){if(ur.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return ur.fromJSDate(e);if(e&&'object'==typeof e)return ur.fromObject(e);throw new w('Unknown datetime argument: '+e+', of type '+typeof e)}t.DateTime=ur,t.Duration=sn,t.FixedOffsetZone=He,t.IANAZone=Re,t.Info=fn,t.Interval=dn,t.InvalidZone=Ge,t.LocalZone=je,t.Settings=tt,t.Zone=We},function(e,t){e.exports=function(e){var t={};!function e(t,n){var r=Object.keys(t);for(var i in r){var o=r[i];switch(typeof t[o]){case'object':e(t[o],n);break;case'function':t[o]=t[o].bind(n)}}}(e,t),t.definition=function e(t){var n=Object.assign({},t),r=Object.keys(n);for(var i in r){var o=r[i];if(Array.isArray(n[o])){n[o]=n[o].slice(0);for(var a=0;a<n[o].length;++a)'object'==typeof n[o][a]&&(n[o][a]=e(n[o][a]))}else'object'==typeof n[o]&&(n[o]=e(n[o]))}return n}(e)}},function(e,t,n){var r=n(3),i=n(5),o=n(6);n(7)(i,c,Utils,Target,emit),o(r,c,Utils,Task,emit),emit('_complete',{_id:!0})},function(e,t,n){const{DateTime:r}=n(0),i=n(4),{isCHC:o,wasPregnantAtScreening:a,getLMPDateFromScreening:s,isPregnancyTerminated:u,hasDelivered:l,hadIssuesWithFamilyPlanningAtScreening:c,hadIssuesWithFamilyPlanningAtFollowup:d,familyPlanningWithIssuesFollowupIsRescheduled:f,hasDangerSignsFollowup:m,isMuted:p,hasDeliveredSinceLessThan42Weeks:h,hadBreastfeedingIssues:y,doneCMAMIScreening:g,cmamiDangerSignsReferralGiven:v,cmamiWithIssuesFollowupIsRescheduled:w,childDangerSignsReferralGiven:_,malnutritionReferralGivenNew:T,malnutritionReferralGivenBeforeNew:b,imciDangerSignsReferralGiven:S,malnutritionWithIssuesReported:k,tbTreatmentStopped:I,getMostRecentCompletedTBMonthlyFollowup:D,getDOBISO:O,getAgeInWeeks:F,getAgeInYears:U}=i,M=(e,t,n)=>({id:'postnatal-'+n,start:e,end:t,dueDate:function(e,t,i){return r.fromISO(Utils.getField(i,'delivery_details.date_of_delivery')).plus({days:n}).toJSDate()}}),N=(e,t,n,i)=>({id:e,start:t,end:n,dueDate:function(e,t){return r.fromISO(O(t.contact)).plus({days:i}).toJSDate()}});e.exports=[{name:'sync-reminder',icon:'icon-sync',title:'task.sync.title',appliesTo:'contacts',appliesToType:['person'],appliesIf:function(e){return o()&&e.contact._id===user._id},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'sync',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'sync',label:'Sync'}],events:[(()=>{const e=r.local().get('day');if(e>18||e<4){const t=e>18?1:0,n=r.local().plus({month:t}).set({day:1});return{id:'sync-'+n.toISODate(),start:1,end:2,dueDate:()=>n.toJSDate()}}{const e=r.local().set({day:15});return{id:'sync-'+e.toISODate(),start:0,end:3,dueDate:()=>e.toJSDate()}}})()]},{name:'screening',icon:'icon-family',title:'task.screening.title',appliesTo:'contacts',appliesToType:['person'],appliesIf:function(e){return!p(e)&&o()&&'household_member'===e.contact.role},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'screening',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'screening',label:'Screening'}],events:[{id:'screening',start:60,end:180,days:60}]},{name:'screening.next',icon:'icon-family',title:'task.screening.title',appliesTo:'reports',appliesToType:['screening'],appliesIf:function(e){return!p(e)&&o()&&'household_member'===e.contact.role},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'screening',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'screening',label:'Screening'}],events:[{id:'screening',start:15,end:180,days:60}]},{name:'anc.pregnancy_followup.screening',icon:'icon-pregnancy',title:'task.anc.pregnancy_followup.title',appliesTo:'reports',appliesToType:['screening'],appliesIf:function(e,t){return!p(e)&&o()&&!!a(t)&&!u(e,t)&&!l(e,t)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'pregnancy_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'delivery_report',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'pregnancy_followup',label:'Pregnancy followup'}],events:[{id:'pregnancy-followup',start:5,end:180,days:30}]},{name:'anc.pregnancy_followup.rescheduled',icon:'icon-pregnancy',title:'task.anc.pregnancy_followup.title',appliesTo:'reports',appliesToType:['pregnancy_followup'],appliesIf:function(e,t){return!p(e)&&o()&&'no'===Utils.getField(t,'followup_details.continue')&&!u(e,t)&&!l(e,t)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'pregnancy_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'pregnancy_followup',label:'Pregnancy followup'}],events:[{id:'pregnancy-followup',start:5,end:180,dueDate:function(e,t,n){return r.fromISO(Utils.getField(n,'pregnancy_followup_date')).toJSDate()}}]},{name:'anc.pregnancy_followup.next',icon:'icon-pregnancy',title:'task.anc.pregnancy_followup.title',appliesTo:'reports',appliesToType:['pregnancy_followup'],appliesIf:function(e,t){return!p(e)&&o()&&'yes'===Utils.getField(t,'followup_details.continue')&&!u(e,t)&&!l(e,t)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'pregnancy_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'pregnancy_followup',label:'Pregnancy followup'}],events:[{id:'pregnancy-followup',start:5,end:180,days:30}]},{name:'anc.pregnancy_danger_signs_followup',icon:'icon-pregnancy-danger',title:'task.anc.pregnancy_danger_signs_followup.title',appliesTo:'reports',appliesToType:['screening','pregnancy_followup'],appliesIf:function(e,t){return!p(e)&&o()&&m(t)&&!u(e,t)&&!l(e,t)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'pregnancy_danger_signs_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'pregnancy_danger_signs_followup',label:'Pregnancy danger signs followup',modifyContent:function(e,t,n){e.lmp_date=s(n)}}],events:[{id:'pregnancy-danger-signs-followup',start:2,end:180,days:2}]},{name:'fp.with_issues_followup',icon:'icon-follow-up',title:'task.fp.with_issues_followup.title',appliesTo:'reports',appliesToType:['screening','fp_followup','fp_with_issues_followup'],appliesIf:(e,t)=>!p(e)&&o()&&('screening'===t.form&&c(t)||'fp_followup'===t.form&&d(t)||'fp_with_issues_followup'===t.form&&f(t)),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'fp_with_issues_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'fp_with_issues_followup',label:'FP with issues followup'}],events:[{id:'fp-with-issues-followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'fp_referral_followup_date')).toJSDate()}]},{name:'fp.screening_followup',icon:'icon-follow-up',title:'task.fp.screening_followup.title',appliesTo:'reports',appliesToType:['screening'],appliesIf:(e,t)=>!p(e)&&o()&&'other'===Utils.getField(t,'g_fp.fp_screening_4.fp_screening_4_1.fp_interest'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'fp_screening_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'fp_screening_followup',label:'FP screening followup'}],events:[{id:'fp-screening-followup',start:2,end:180,days:2}]},{name:'fp.followup',icon:'icon-follow-up',title:'task.fp.followup.title',appliesTo:'reports',appliesToType:['screening','fp_screening_followup'],appliesIf:(e,t)=>!p(e)&&o()&&('screening'===t.form&&'yes'===Utils.getField(t,'g_fp.fp_screening_4.fp_screening_4_1.fp_interest')&&'yes'===Utils.getField(t,'g_fp.fp_screening_4.referral_card.fp_rhu_given_again')||'fp_screening_followup'===t.form&&'yes'===Utils.getField(t,'fp_screening.fp_interest')&&'yes'===Utils.getField(t,'fp_screening_3.referral')),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'fp_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'fp_followup',label:'FP followup'}],events:[{id:'fp-followup',start:2,end:180,days:2}]},{name:'fp.followup.followup',icon:'icon-follow-up',title:'task.fp.followup.title',appliesTo:'reports',appliesToType:['fp_followup'],appliesIf:(e,t)=>!p(e)&&o()&&'no'===Utils.getField(t,'followup_details_1.continue'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'fp_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'fp_followup',label:'FP followup'}],events:[{id:'fp-followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'followup_details_1.reschedule')).toJSDate()}]},{name:'fp.procedure.followup',icon:'icon-follow-up',title:'task.fp.procedure.title',appliesTo:'reports',appliesToType:['fp_followup'],appliesIf:(e,t)=>!p(e)&&o()&&'yes'===Utils.getField(t,'visit_details_3.fp_appointment'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'fp_procedure_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'fp_procedure_followup',label:'FP procedure followup'}],events:[{id:'fp-procedure-followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'visit_details_3.next_appointment')).plus({days:2}).toJSDate()}]},{name:'cmami.screening',icon:'icon-infant',title:'task.cmami.screening.title',appliesTo:'contacts',appliesToType:['person'],appliesIf:function(e){return!p(e)&&o()&&'household_member'===e.contact.role&&F(e.contact)<6},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'cmami_screening',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'cmami_screening',label:'CMAMI Screening'}],events:[N('cmami-screening-d1',1,1,1),N('cmami-screening-d3',0,2,3),N('cmami-screening-d7',1,3,7),N('cmami-screening-d14',3,19,14),N('cmami-screening-d41',7,0,41)]},{name:'cmami.screening.immediate',icon:'icon-infant',title:'task.cmami.screening.title',appliesTo:'contacts',appliesToType:['person'],appliesIf:function(e){return!p(e)&&o()&&'household_member'===e.contact.role&&F(e.contact)>=6&&F(e.contact)<24&&!g(e)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'cmami_screening',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'cmami_screening',label:'CMAMI Screening'}],events:[{id:'cmami-screening-0',start:7,end:60,days:7}]},{name:'cmami.followup',icon:'icon-infant',title:'task.cmami.followup.title',appliesTo:'contacts',appliesToType:['person'],appliesIf:function(e){return!p(e)&&o()&&'household_member'===e.contact.role&&F(e.contact)>=6&&F(e.contact)<=22&&g(e)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'cmami_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'cmami_followup',label:'CMAMI follow up'}],events:[N('cmami-followup-w6',0,24,42),N('cmami-followup-w10',3,24,70),N('cmami-followup-w14',3,24,98),N('cmami-followup-w18',3,24,126),N('cmami-followup-w22',3,6,154)]},{name:'cmami.screening.followup.followup',icon:'icon-infant',title:'task.cmami.screening.followup.title',appliesTo:'reports',appliesToType:['cmami_followup'],appliesIf:function(e,t){return!p(e)&&o()&&!!Utils.getField(t,'resheduled_date')&&F(e.contact)<=22},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'cmami_screening_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'cmami_screening',label:'CMAMI Screening'}],events:[{id:'cmami-followup',start:3,end:160,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'rescheduled_date')).toJSDate()}]},{name:'pnc.postnatal.screening',icon:'icon-mother-child',title:'task.pnc.postnatal.screening.title',appliesTo:'reports',appliesToType:['delivery_report'],appliesIf:function(e,t){return!p(e)&&o()&&!0===h(t)},resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'postnatal_screening',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'postnatal_screening',label:'Postnatal screening',modifyContent:function(e,t,n){e.date_of_delivery=Utils.getField(n,'delivery_details.date_of_delivery')}}],events:[M(1,1,1),M(0,1,3),M(2,3,7),M(3,22,14),M(5,22,42),M(5,22,70),M(5,22,98),M(5,22,126),M(5,90,154)]},{name:'cmami.with_issues_followup',icon:'icon-infant',title:'task.cmami.with_issues_followup.title',appliesTo:'reports',appliesToType:['cmami_screening','cmami_followup','cmami_with_issues_followup'],appliesIf:(e,t)=>!p(e)&&o()&&F(e.contact)<=22&&('cmami_screening'===t.form&&y(t)||'cmami_followup'===t.form&&y(t)||'cmami_with_issues_followup'===t.form&&w(t)),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'cmami_with_issues_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'cmami_with_issues_followup',label:'CMAMI with issues followup'}],events:[{id:'cmami-with-issues-followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'issues_followup_date')).toJSDate()}]},{name:'cmami.danger_signs_followup',icon:'icon-infant-danger',title:'task.cmami.danger_signs.title',appliesTo:'reports',appliesToType:['cmami_screening','cmami_followup'],appliesIf:(e,t)=>!p(e)&&o()&&F(e.contact)<=22&&v(t),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'cmami_danger_signs_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'cmami_danger_signs_followup',label:'CMAMI danger signs followup'}],events:[{id:'cmami-danger-signs-followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'danger_signs_followup_date')).toJSDate()}]},{name:'child_health.danger_signs_followup',icon:'icon-child-danger',title:'task.child_health.danger_signs.title',appliesTo:'reports',appliesToType:['screening'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&_(t),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'child_health_danger_signs_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'child_health_danger_signs_followup',label:'Child health danger signs followup'}],events:[{id:'child-health-danger-signs-followup',start:2,end:180,days:2}]},{name:'malnutrition.every_2_weeks_followup',icon:'icon-child-nutrition',title:'task.malnutrition_every_2_weeks.title',appliesTo:'reports',appliesToType:['screening'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&(T(t)||b(t)),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'health_facility_followup_every_2w',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'malnutrition_followup_every_2w',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'malnutrition_discharge',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'health_facility_followup_every_2w',label:'Malnutrition every 2 weeks followup'}],events:[{id:'malnutrition-every2w-followup',start:5,end:180,days:14}]},{name:'malnutrition.every_2_weeks_followup.next',icon:'icon-child-nutrition',title:'task.malnutrition_every_2_weeks.title',appliesTo:'reports',appliesToType:['health_facility_followup_every_2w'],appliesIf:e=>!p(e)&&o()&&U(e.contact)<5,resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'health_facility_followup_every_2w',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'malnutrition_followup_every_2w',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'malnutrition_discharge',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'health_facility_followup_every_2w',label:'Malnutrition every 2 weeks followup'}],events:[{id:'malnutrition-every2w-followup',start:5,end:180,days:14}]},{name:'malnutrition.with_issues_followup',icon:'icon-follow-up',title:'task.malnutrition.with_issues_followup.title',appliesTo:'reports',appliesToType:['health_facility_followup_every_2w'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&k(t),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'malnutrition_with_issues_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'malnutrition_discharge',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'malnutrition_with_issues_followup',label:'Malnutrition with issues followup'}],events:[{id:'malnutrition-with-issues-followup',start:2,end:180,days:2}]},{name:'malnutrition.with_issues_followup.rescheduled',icon:'icon-follow-up',title:'task.malnutrition.with_issues_followup.title',appliesTo:'reports',appliesToType:['malnutrition_with_issues_followup'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&'no'===Utils.getField(t,'followup_details_1.continue'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'malnutrition_with_issues_followup',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'malnutrition_discharge',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'malnutrition_with_issues_followup',label:'Malnutrition with issues followup'}],events:[{id:'malnutrition-48hrs-followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'malnutrition_with_issues_followup_date')).toJSDate()}]},{name:'imci.appointment.followup',icon:'icon-follow-up',title:'task.imci_appointment_followup.title',appliesTo:'reports',appliesToType:['imci_followup_48h'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&Utils.getField(t,'appointment_date_iso'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'imci_appointment_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'imci_recovery',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'imci_appointment_followup',label:'IMCI follow up'}],events:[{id:'imci-appointment-followup',start:2,end:60,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'appointment_date_iso')).plus({days:2}).toJSDate()}]},{name:'imci.48_hrs_followup',icon:'icon-follow-up',title:'task.imci_48_hrs.title',appliesTo:'reports',appliesToType:['screening','imci_followup_48h','imci_followup_weekly'],appliesIf:(e,t)=>!p(e)&&o()&&S(t),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'imci_followup_48h',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'imci_recovery',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime())||U(e.contact)>=5,actions:[{type:'report',form:'imci_followup_48h',label:'IMCI 48 hrs followup'}],events:[{id:'imci-48hrs-followup',start:2,end:60,days:2}]},{name:'imci.weekly_followup',icon:'icon-follow-up',title:'task.imci_weekly.title',appliesTo:'reports',appliesToType:['screening','imci_followup_48h','imci_followup_weekly'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&S(t),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'imci_followup_weekly',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'imci_recovery',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'imci_followup_weekly',label:'IMCI weekly followup'}],events:[{id:'imci-weekly-followup',start:3,end:60,days:7}]},{name:'imci.weekly_followup.next',icon:'icon-follow-up',title:'task.imci_weekly.title',appliesTo:'reports',appliesToType:['imci_followup_weekly'],appliesIf:e=>!p(e)&&o()&&U(e.contact)<5,resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'imci_followup_weekly',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'imci_recovery',Utils.addDate(r,-n.start).getTime(),Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'imci_followup_weekly',label:'IMCI weekly followup'}],events:[{id:'imci-weekly-followup',start:3,end:60,days:7}]},{name:'imci.weekly_followup.rescheduled',icon:'icon-follow-up',title:'task.imci_weekly.title',appliesTo:'reports',appliesToType:['imci_followup_weekly'],appliesIf:(e,t)=>!p(e)&&o()&&U(e.contact)<5&&'no'===Utils.getField(t,'g_continue.continue'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'imci_followup_weekly',t.reported_date+1,Utils.addDate(r,n.end+1).getTime())||Utils.isFormSubmittedInWindow(e.reports,'imci_recovery',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'imci_followup_weekly',label:'IMCI weekly followup'}],events:[{id:'imci-weekly-followup',start:3,end:60,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'g_continue.reschedule')).toJSDate()}]},{name:'tb.follow_up',icon:'icon-tb',title:'tb.follow_up.title',appliesTo:'reports',appliesToType:['screening','tb_followup'],appliesIf:(e,t)=>!p(e)&&o()&&!I(e,t)&&('screening'===t.form&&!!Utils.getField(t,'tb_followup_date')||'tb_followup'===t.form&&'no'===Utils.getField(t,'g_continue.continue')),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'tb_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'tb_followup',label:'TB Follow up'}],events:[{id:'tb_followup',start:2,end:180,dueDate:(e,t,n)=>'screening'===n.form&&r.fromISO(Utils.getField(n,'tb_followup_date')).toJSDate()||'tb_followup'===n.form&&r.fromISO(Utils.getField(n,'g_continue.reschedule')).toJSDate()}]},{name:'tb.followup.testing',icon:'icon-tb',title:'tb.followup.testing.title',appliesTo:'reports',appliesToType:['tb_followup'],appliesIf:(e,t)=>!p(e)&&o()&&!I(e,t)&&!!Utils.getField(t,'test_followup_date'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'tb_test_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'tb_test_followup',label:'TB Testing Follow up'}],events:[{id:'tb_test_followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'test_followup_date')).toJSDate()}]},{name:'tb.followup.diagnosis',icon:'icon-tb',title:'tb.followup.diagnosis.title',appliesTo:'reports',appliesToType:['tb_followup','tb_test_followup'],appliesIf:(e,t)=>!p(e)&&o()&&!I(e,t)&&!!Utils.getField(t,'diagnosis_followup_date'),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'tb_diagnosis_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'tb_diagnosis_followup',label:'TB Diagnosis Follow up'}],events:[{id:'tb_diagnosis_followup',start:2,end:180,dueDate:(e,t,n)=>r.fromISO(Utils.getField(n,'diagnosis_followup_date')).toJSDate()}]},{name:'tb.followup.monthly',icon:'icon-tb',title:'tb.follow_up.monthly.title',appliesTo:'reports',appliesToType:['screening','tb_followup','tb_diagnosis_followup','tb_monthly_followup','tb_six_months_followup'],appliesIf:(e,t)=>!p(e)&&o()&&!I(e,t)&&('tb_monthly_followup'===t.form||!!Utils.getField(t,'tb_monthly_followup_date')),resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'tb_monthly_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'tb_monthly_followup',label:'TB Follow up'}],events:[{id:'tb_monthly_followup',start:5,end:180,dueDate:(e,t,n)=>'tb_monthly_followup'===n.form&&('yes'===Utils.getField(n,'followup_details_01.continue')&&r.fromMillis(n.reported_date).plus({days:30}).toJSDate()||r.fromISO(Utils.getField(n,'followup_details_01.reschedule')).toJSDate())||r.fromISO(Utils.getField(n,'tb_monthly_followup_date')).toJSDate()}]},{name:'tb.followup.6months',icon:'icon-tb',title:'tb.followup.6months.title',appliesTo:'reports',appliesToType:['tb_monthly_followup'],appliesIf:(e,t)=>!p(e)&&o()&&!I(e,t)&&'yes'===Utils.getField(t,'followup_details_01.continue')&&D(e.reports)._id===t._id,resolvedIf:(e,t,n,r)=>Utils.isFormSubmittedInWindow(e.reports,'tb_six_months_followup',t.reported_date+1,Utils.addDate(r,n.end+1).getTime()),actions:[{type:'report',form:'tb_six_months_followup',label:'TB Six Months Follow up'}],events:[{id:'tb_six_months_followup',start:30,end:180,dueDate:(e,t,n)=>{const i=Utils.getField(n,'followup_details_02.months');return r.fromMillis(n.reported_date).minus({months:i}).plus({months:6}).toJSDate()}}]}]},function(e,t,n){const{DateTime:r}=n(0);function i(e,t){if(e.length<1)return null;const n=e.filter(e=>!t||t.includes(e.form));return n.length<1?null:1===n.length?n[0]:n.reduce((e,t)=>e.reported_date>t.reported_date?e:t)}function o(e){return'yes'===Utils.getField(e,'g_pregnancy.pregnancy_details.pregnant')}function a(e){return Utils.getField(e,'g_pregnancy.pregnancy_details_1.lmp_date')}function s(e){const t=Utils.getField(e,'delivery_details.date_of_delivery');return r.fromISO(t).diffNow('days').days}function u(e){return e&&e.date_of_birth}e.exports={isCHC:function(){return['chc','chc_trainee'].includes(user.role)},wasPregnantAtScreening:o,getLMPDateFromScreening:a,isPregnancyTerminated:function(e,t){if(!o(t))return null;const n=a(t);return e.reports.some(e=>'pregnancy_termination'===e.form&&e.reported_date>t.reported_date&&e.reported_date<=r.fromISO(n).plus({days:308}).toMillis())},hasDelivered:function(e,t){if(!e.reports||!e.reports.length)return null;const n=a(t);return e.reports.some(e=>'delivery_report'===e.form&&e.reported_date>t.reported_date&&e.reported_date<=r.fromISO(n).plus({days:308}).toMillis())},hadIssuesWithFamilyPlanningAtScreening:function(e){return'yes'===Utils.getField(e,'g_fp.fp_screening.using_fp')&&'yes'===Utils.getField(e,'g_fp.fp_screening_1.any_issues')&&'yes'===Utils.getField(e,'g_fp.fp_screening_3.fp_rhu_given')},familyPlanningWithIssuesFollowupIsRescheduled:function(e){return'no'===Utils.getField(e,'followup_details_1.continue')},hadIssuesWithFamilyPlanningAtFollowup:function(e){return'yes'===Utils.getField(e,'visit_details_7.referral')},hasDangerSignsFollowup:function(e){return'screening'===e.form&&'yes'===Utils.getField(e,'g_pregnancy.danger_signs_2.any_signs')&&'yes'===Utils.getField(e,'g_pregnancy.danger_signs_4.rhu_given')||'pregnancy_followup'===e.form&&'yes'===Utils.getField(e,'danger_signs.any_signs')&&'yes'===Utils.getField(e,'danger_signs_referral.rhu.rhu_given')},isMuted:function(e){return e&&e.contact&&!!e.contact.muted},getNumberOfDaysSinceDelivery:s,hasDeliveredSinceLessThan42Weeks:function(e){return s(e)>=-294},hadBreastfeedingIssues:function(e){return'yes'===Utils.getField(e,'g_breastfeeding_issues.breastfeeding_issues')&&'yes'===Utils.getField(e,'breastfeeding_referral_2.breastfeeding_referral_given')},doneCMAMIScreening:function(e){return e.reports.some(e=>'cmami_screening'===e.form&&'yes'===Utils.getField(e,'g_introduction.consent'))},cmamiDangerSignsReferralGiven:function(e){return'yes'===Utils.getField(e,'danger_signs_referral_2.danger_signs_referral_given')},cmamiWithIssuesFollowupIsRescheduled:function(e){return'no'===Utils.getField(e,'followup_details_1.continue')},childDangerSignsReferralGiven:function(e){return!!Utils.getField(e,'child_danger_signs_followup_date')},malnutritionReferralGiven:function(e){return!!Utils.getField(e,'malnutrition_followup_date')},malnutritionReferralGivenBefore:function(e){return'yes'===Utils.getField(e,'child_on_malnutrition_followup')},malnutritionReferralGivenNew:function(e){return!!Utils.getField(e,'malnutrition_new_followup_date')},malnutritionReferralGivenBeforeNew:function(e){return'yes'===Utils.getField(e,'child_on_new_malnutrition_followup')},imciDangerSignsReferralGiven:function(e){return!!Utils.getField(e,'imci_danger_signs_followup_date')},malnutritionWithIssuesReported:function(e){return!!Utils.getField(e,'malnutrition_with_issues_followup_date')},tbTreatmentStopped:function(e,t){const n=i(e.reports,['tb_six_months_followup']);return!!n&&n.reported_date>t.reported_date&&'no'===Utils.getField(n,'g_treatment_02.ongoing_treatment')},getMostRecentCompletedTBMonthlyFollowup:function(e){const t=e.filter(e=>'tb_monthly_followup'===e.form&&'yes'===Utils.getField(e,'followup_details_01.continue'));return!!t&&i(t)},getDOBISO:u,getAgeInWeeks:function(e){return Math.abs(r.fromISO(u(e)).diffNow('weeks').weeks)},getAgeInMonths:function(e){return Math.abs(r.fromISO(u(e)).diffNow('months').months)},getAgeInYears:function(e){return Math.abs(r.fromISO(u(e)).diffNow('years').years)},getChildHeight:function(e){return Utils.getField(e,'g_child.g_malnutrition.child_height')},getChildWeight:function(e){return Utils.getField(e,'g_child.g_malnutrition.child_weight')},getWFAClassification:function(e){return Utils.getField(e,'g_child.g_malnutrition.g_recalculate_zscore.wfa_classification')},getWFHClassification:function(e){return Utils.getField(e,'g_child.g_malnutrition.g_recalculate_zscore.wfh_classification')},getWFAZScore:function(e){return Utils.getField(e,'g_child.g_malnutrition.g_recalculate_zscore.wfa_score')},getWFHZScore:function(e){return Utils.getField(e,'g_child.g_malnutrition.g_recalculate_zscore.wfh_score')},isSuspectedMalnourished:function(e){return Utils.getField(e,'g_child.g_malnutrition.g_recalculate_zscore.suspected_malnourished')},wasAlreadyScreened:function(e){return'yes'===Utils.getField(e,'g_child.g_malnutrition.chc_has_scale')||'yes'===Utils.getField(e,'g_child.g_malnutrition.chc_has_stadiometer')}}},function(e,t){e.exports=[]},function(e,t,n){var r=n(1);function i(e,t,n,r,i,o){var a;if(e.appliesToType){var s;if('contacts'===e.appliesTo){if(!i.contact)return;s='contact'===i.contact.type?i.contact.contact_type:i.contact.type}else{if(!o)return;s=o.form}if(-1===e.appliesToType.indexOf(s))return}if('scheduled_tasks'===e.appliesTo||!e.appliesIf||e.appliesIf(i,o))if('scheduled_tasks'===e.appliesTo){if(o&&e.appliesIf){if(!o.scheduled_tasks)return;for(a=0;a<o.scheduled_tasks.length;a++)e.appliesIf(i,o,a)&&l(a)}}else l();function u(e,t,n){var r;return(r='function'==typeof e.contactLabel?e.contactLabel(t,n):e.contactLabel)?{name:r}:t.contact}function l(a){var s,l,d,f,m=null;for(s=0;s<e.events.length;s++){if((l=e.events[s]).dueDate)m=l.dueDate(l,i,o,a);else if(o)m=void 0!==a?new Date(t.addDate(new Date(o.scheduled_tasks[a].due),l.days)):new Date(t.addDate(new Date(o.reported_date),l.days));else if(l.dueDate)m=l.dueDate(l,i);else{var p=i.contact&&i.contact.reported_date?new Date(i.contact.reported_date):new Date;m=new Date(t.addDate(p,l.days))}t.isTimely(m,l)&&(f={_id:(o?o._id:i.contact&&i.contact._id)+'~'+(l.id||s)+'~'+e.name,deleted:!(!(i.contact&&i.contact.deleted||o)||!o.deleted),doc:i,contact:u(e,i,o),icon:e.icon,date:m,readyStart:l.start||0,readyEnd:l.end||0,title:e.title,resolved:e.resolvedIf(i,o,l,m,a),actions:e.actions.map(c)},void 0!==a&&(f._id+='-'+a),'function'==typeof(d=e.priority)&&(d=d(i,o)),d&&(f.priority=d.level,f.priorityLabel=d.label),r('task',new n(f)))}}function c(e){var t={source:'task',source_id:!!o?o._id:i.contact&&i.contact._id,contact:i.contact};return e.modifyContent&&e.modifyContent(t,i,o),{type:'report',form:e.form,label:e.label||'Follow up',content:t}}}e.exports=function(e,t,n,o,a){if(e)for(var s,u=0;u<e.length;++u)switch(s=e[u],r(s),s.appliesTo){case'reports':case'scheduled_tasks':for(var l=0;l<t.reports.length;++l)i(s,n,o,a,t,t.reports[l]);break;case'contacts':t.contact&&i(s,n,o,a,t);break;default:throw new Error('Unrecognised task.appliesTo: '+s.appliesTo)}}},function(e,t,n){var r=n(1);function i(e,t,n,r,i,o){var a=!!o;if(i.contact){var s=i.contact.contact_type||i.contact.type,u=a?o.form:s;if(!(e.appliesToType&&e.appliesToType.indexOf(u)<0)&&(!e.appliesIf||e.appliesIf(i,o)))for(var l=a?o:i.contact,c=function(e,t,n){var r;return r='function'==typeof e.idType?e.idType(t,n):'report'===e.idType?n&&n._id:t.contact&&t.contact._id,Array.isArray(r)||(r=[r]),r}(e,i,o),d=!e.passesIf||!!e.passesIf(i,o),f=function(e,t,n,r){if('function'==typeof e.date)return e.date(n,r);if(void 0===e.date||'now'===e.date)return t.now().getTime();if('reported'===e.date)return r?r.reported_date:n.contact.reported_date;throw new Error('Unrecognised value for target.date: '+e.date)}(e,n,i,o),m=e.groupBy&&e.groupBy(i,o),p=0;p<c.length;++p){var h=new t({_id:c[p]+'~'+e.id,contact:i.contact,deleted:!!l.deleted,type:e.id,pass:d,groupBy:m,date:f});e.emitCustom?e.emitCustom(y,h,i,o):y(h)}}function y(e){r('target',e)}}e.exports=function(e,t,n,o,a){for(var s=0;s<e.length;++s){var u=e[s];switch(r(u),u.appliesTo){case'contacts':i(u,o,n,a,t);break;case'reports':for(var l=0;l<t.reports.length;++l){i(u,o,n,a,t,t.reports[l])}break;default:throw new Error('Unrecognised target.appliesTo: '+u.appliesTo)}}}}]); }\n}",
  398. "targets": {
  399. "enabled": true,
  400. "items": []
  401. }
  402. },
  403. "transitions": {
  404. "accept_patient_reports": false,
  405. "conditional_alerts": false,
  406. "default_responses": false,
  407. "update_sent_by": false,
  408. "registration": false,
  409. "update_clinics": false,
  410. "update_notifications": false,
  411. "update_scheduled_reports": false,
  412. "update_sent_forms": false,
  413. "generate_patient_id_on_people": true,
  414. "death_reporting": true,
  415. "muting": true
  416. },
  417. "muting": {
  418. "mute_forms": [
  419. "mute"
  420. ],
  421. "unmute_forms": [
  422. "unmute"
  423. ],
  424. "validations": {
  425. "join_responses": true,
  426. "list": []
  427. }
  428. }
  429. }
  430.  
Tags: medic
Add Comment
Please, Sign In to add comment