@openmrs/esm-ward-app 9.2.1-pre.7405 → 9.2.1-pre.7408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/.turbo/turbo-build.log +4 -38
  2. package/dist/1011.js +1 -0
  3. package/dist/1011.js.map +1 -0
  4. package/dist/126.js +1 -0
  5. package/dist/1307.js +1 -0
  6. package/dist/1307.js.map +1 -0
  7. package/dist/1369.js +1 -0
  8. package/dist/1369.js.map +1 -0
  9. package/dist/15.js +1 -0
  10. package/dist/1564.js +1 -0
  11. package/dist/1567.js +1 -0
  12. package/dist/1739.js +1 -0
  13. package/dist/1739.js.map +1 -0
  14. package/dist/1845.js +1 -0
  15. package/dist/1895.js +1 -0
  16. package/dist/1895.js.map +1 -0
  17. package/dist/1953.js +1 -0
  18. package/dist/2016.js +1 -0
  19. package/dist/2016.js.map +1 -0
  20. package/dist/2117.js +1 -0
  21. package/dist/2117.js.map +1 -0
  22. package/dist/215.js +1 -0
  23. package/dist/2178.js +1 -0
  24. package/dist/239.js +1 -0
  25. package/dist/239.js.map +1 -0
  26. package/dist/2459.js +1 -0
  27. package/dist/2459.js.map +1 -0
  28. package/dist/2566.js +1 -0
  29. package/dist/2586.js +1 -0
  30. package/dist/2586.js.map +1 -0
  31. package/dist/2640.js +1 -0
  32. package/dist/2640.js.map +1 -0
  33. package/dist/2759.js +1 -0
  34. package/dist/3089.js +1 -0
  35. package/dist/3089.js.map +1 -0
  36. package/dist/3230.js +1 -0
  37. package/dist/3441.js +1 -0
  38. package/dist/3565.js +1 -0
  39. package/dist/3571.js +1 -0
  40. package/dist/3571.js.map +1 -0
  41. package/dist/3746.js +1 -0
  42. package/dist/3925.js +1 -0
  43. package/dist/3946.js +1 -0
  44. package/dist/3954.js +38 -0
  45. package/dist/3954.js.map +1 -0
  46. package/dist/401.js +1 -0
  47. package/dist/401.js.map +1 -0
  48. package/dist/4285.js +1 -0
  49. package/dist/4285.js.map +1 -0
  50. package/dist/4373.js +1 -0
  51. package/dist/4373.js.map +1 -0
  52. package/dist/4425.js +1 -0
  53. package/dist/4425.js.map +1 -0
  54. package/dist/4675.js +1 -0
  55. package/dist/4675.js.map +1 -0
  56. package/dist/4744.js +1 -0
  57. package/dist/4744.js.map +1 -0
  58. package/dist/4809.js +1 -0
  59. package/dist/4894.js +1 -0
  60. package/dist/4970.js +1 -0
  61. package/dist/4970.js.map +1 -0
  62. package/dist/504.js +1 -0
  63. package/dist/504.js.map +1 -0
  64. package/dist/5130.js +1 -0
  65. package/dist/5187.js +1 -0
  66. package/dist/5420.js +6 -0
  67. package/dist/5420.js.map +1 -0
  68. package/dist/5490.js +1 -0
  69. package/dist/5490.js.map +1 -0
  70. package/dist/5491.js +1 -0
  71. package/dist/5491.js.map +1 -0
  72. package/dist/5496.js +1 -0
  73. package/dist/5496.js.map +1 -0
  74. package/dist/5595.js +1 -0
  75. package/dist/5659.js +1 -0
  76. package/dist/5659.js.map +1 -0
  77. package/dist/5961.js +1 -0
  78. package/dist/6026.js +1 -0
  79. package/dist/6026.js.map +1 -0
  80. package/dist/6133.js +1 -0
  81. package/dist/6203.js +1 -0
  82. package/dist/6203.js.map +1 -0
  83. package/dist/6296.js +1 -0
  84. package/dist/6296.js.map +1 -0
  85. package/dist/634.js +1 -0
  86. package/dist/634.js.map +1 -0
  87. package/dist/6455.js +1 -0
  88. package/dist/6455.js.map +1 -0
  89. package/dist/6456.js +1 -0
  90. package/dist/6466.js +1 -0
  91. package/dist/6515.js +1 -0
  92. package/dist/6515.js.map +1 -0
  93. package/dist/6613.js +1 -0
  94. package/dist/6783.js +1 -0
  95. package/dist/6925.js +1 -0
  96. package/dist/6925.js.map +1 -0
  97. package/dist/7348.js +1 -0
  98. package/dist/74.js +1 -0
  99. package/dist/74.js.map +1 -0
  100. package/dist/7543.js +1 -0
  101. package/dist/7607.js +1 -0
  102. package/dist/7715.js +1 -0
  103. package/dist/7715.js.map +1 -0
  104. package/dist/772.js +1 -0
  105. package/dist/7965.js +1 -0
  106. package/dist/7965.js.map +1 -0
  107. package/dist/8599.js +1 -0
  108. package/dist/8727.js +1 -0
  109. package/dist/8847.js +1 -0
  110. package/dist/8910.js +1 -0
  111. package/dist/8910.js.map +1 -0
  112. package/dist/9015.js +1 -0
  113. package/dist/906.js +1 -0
  114. package/dist/9065.js +1 -0
  115. package/dist/9071.js +1 -0
  116. package/dist/9071.js.map +1 -0
  117. package/dist/9182.js +1 -0
  118. package/dist/9314.js +1 -0
  119. package/dist/9314.js.map +1 -0
  120. package/dist/9339.js +1 -0
  121. package/dist/9453.js +1 -0
  122. package/dist/9668.js +1 -0
  123. package/dist/9668.js.map +1 -0
  124. package/dist/9727.js +1 -0
  125. package/dist/9727.js.map +1 -0
  126. package/dist/9833.js +1 -0
  127. package/dist/9833.js.map +1 -0
  128. package/dist/9920.js +1 -0
  129. package/dist/9938.js +1 -0
  130. package/dist/main.js +5 -1
  131. package/dist/main.js.map +1 -1
  132. package/dist/openmrs-esm-ward-app.js +5 -1
  133. package/dist/openmrs-esm-ward-app.js.buildmanifest.json +709 -663
  134. package/dist/openmrs-esm-ward-app.js.map +1 -1
  135. package/dist/routes.json +1 -1
  136. package/package.json +6 -4
  137. package/rspack.config.js +1 -0
  138. package/dist/1119.js +0 -1
  139. package/dist/1197.js +0 -1
  140. package/dist/1326.js +0 -1
  141. package/dist/1326.js.map +0 -1
  142. package/dist/1741.js +0 -1
  143. package/dist/1741.js.map +0 -1
  144. package/dist/1776.js +0 -1
  145. package/dist/1776.js.map +0 -1
  146. package/dist/1899.js +0 -1
  147. package/dist/1899.js.map +0 -1
  148. package/dist/1987.js +0 -1
  149. package/dist/1987.js.map +0 -1
  150. package/dist/2146.js +0 -1
  151. package/dist/2216.js +0 -1
  152. package/dist/2216.js.map +0 -1
  153. package/dist/2372.js +0 -1
  154. package/dist/2372.js.map +0 -1
  155. package/dist/2470.js +0 -1
  156. package/dist/2470.js.map +0 -1
  157. package/dist/2690.js +0 -1
  158. package/dist/2728.js +0 -2
  159. package/dist/2728.js.LICENSE.txt +0 -9
  160. package/dist/2728.js.map +0 -1
  161. package/dist/283.js +0 -1
  162. package/dist/283.js.map +0 -1
  163. package/dist/2898.js +0 -2
  164. package/dist/2898.js.LICENSE.txt +0 -9
  165. package/dist/2898.js.map +0 -1
  166. package/dist/2913.js +0 -2
  167. package/dist/2913.js.LICENSE.txt +0 -32
  168. package/dist/2913.js.map +0 -1
  169. package/dist/2948.js +0 -1
  170. package/dist/2948.js.map +0 -1
  171. package/dist/3099.js +0 -1
  172. package/dist/3144.js +0 -2
  173. package/dist/3144.js.LICENSE.txt +0 -19
  174. package/dist/3144.js.map +0 -1
  175. package/dist/3365.js +0 -1
  176. package/dist/3365.js.map +0 -1
  177. package/dist/3413.js +0 -1
  178. package/dist/3413.js.map +0 -1
  179. package/dist/3584.js +0 -1
  180. package/dist/3673.js +0 -1
  181. package/dist/3673.js.map +0 -1
  182. package/dist/380.js +0 -1
  183. package/dist/380.js.map +0 -1
  184. package/dist/3982.js +0 -1
  185. package/dist/3982.js.map +0 -1
  186. package/dist/4041.js +0 -2
  187. package/dist/4041.js.LICENSE.txt +0 -9
  188. package/dist/4041.js.map +0 -1
  189. package/dist/4055.js +0 -1
  190. package/dist/4098.js +0 -1
  191. package/dist/4098.js.map +0 -1
  192. package/dist/4132.js +0 -1
  193. package/dist/4189.js +0 -1
  194. package/dist/4189.js.map +0 -1
  195. package/dist/4300.js +0 -1
  196. package/dist/4335.js +0 -1
  197. package/dist/439.js +0 -1
  198. package/dist/4439.js +0 -2
  199. package/dist/4439.js.LICENSE.txt +0 -39
  200. package/dist/4439.js.map +0 -1
  201. package/dist/4618.js +0 -1
  202. package/dist/4652.js +0 -1
  203. package/dist/4944.js +0 -1
  204. package/dist/5173.js +0 -1
  205. package/dist/5241.js +0 -1
  206. package/dist/5442.js +0 -1
  207. package/dist/5603.js +0 -1
  208. package/dist/5603.js.map +0 -1
  209. package/dist/5661.js +0 -1
  210. package/dist/581.js +0 -1
  211. package/dist/581.js.map +0 -1
  212. package/dist/5885.js +0 -1
  213. package/dist/5885.js.map +0 -1
  214. package/dist/6022.js +0 -1
  215. package/dist/6336.js +0 -1
  216. package/dist/6336.js.map +0 -1
  217. package/dist/6468.js +0 -1
  218. package/dist/6589.js +0 -1
  219. package/dist/6679.js +0 -1
  220. package/dist/668.js +0 -2
  221. package/dist/668.js.LICENSE.txt +0 -39
  222. package/dist/668.js.map +0 -1
  223. package/dist/6840.js +0 -1
  224. package/dist/6859.js +0 -1
  225. package/dist/7097.js +0 -1
  226. package/dist/7159.js +0 -1
  227. package/dist/7179.js +0 -2
  228. package/dist/7179.js.LICENSE.txt +0 -9
  229. package/dist/7179.js.map +0 -1
  230. package/dist/723.js +0 -1
  231. package/dist/7512.js +0 -1
  232. package/dist/7512.js.map +0 -1
  233. package/dist/7524.js +0 -1
  234. package/dist/7524.js.map +0 -1
  235. package/dist/7617.js +0 -1
  236. package/dist/7661.js +0 -1
  237. package/dist/7661.js.map +0 -1
  238. package/dist/795.js +0 -1
  239. package/dist/8163.js +0 -1
  240. package/dist/8349.js +0 -1
  241. package/dist/8371.js +0 -1
  242. package/dist/8501.js +0 -2
  243. package/dist/8501.js.LICENSE.txt +0 -5
  244. package/dist/8501.js.map +0 -1
  245. package/dist/8522.js +0 -1
  246. package/dist/8522.js.map +0 -1
  247. package/dist/8618.js +0 -1
  248. package/dist/8622.js +0 -1
  249. package/dist/8622.js.map +0 -1
  250. package/dist/89.js +0 -2
  251. package/dist/89.js.LICENSE.txt +0 -9
  252. package/dist/89.js.map +0 -1
  253. package/dist/890.js +0 -1
  254. package/dist/9117.js +0 -1
  255. package/dist/9117.js.map +0 -1
  256. package/dist/917.js +0 -1
  257. package/dist/917.js.map +0 -1
  258. package/dist/9214.js +0 -1
  259. package/dist/9538.js +0 -1
  260. package/dist/9559.js +0 -1
  261. package/dist/9559.js.map +0 -1
  262. package/dist/9569.js +0 -1
  263. package/dist/9756.js +0 -1
  264. package/dist/9756.js.map +0 -1
  265. package/dist/9775.js +0 -1
  266. package/dist/9775.js.map +0 -1
  267. package/dist/986.js +0 -1
  268. package/dist/9876.js +0 -2
  269. package/dist/9876.js.LICENSE.txt +0 -9
  270. package/dist/9876.js.map +0 -1
  271. package/dist/9879.js +0 -1
  272. package/dist/9895.js +0 -1
  273. package/dist/9900.js +0 -1
  274. package/dist/9913.js +0 -1
  275. package/webpack.config.js +0 -1
package/dist/9015.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9015"],{71696:function(e){e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyStateIllustration":"Empty state illustration","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingAdmissions":"Pending admissions","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/906.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["906"],{22237:function(e){e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyStateIllustration":"Empty state illustration","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingAdmissions":"Pending admissions","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/9065.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9065"],{91178:function(e){e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyStateIllustration":"Empty state illustration","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingAdmissions":"Pending admissions","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/9071.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9071"],{36691:function(e,a,r){r.r(a),r.d(a,{default:()=>t});var s=r(27350),n=r.n(s),p=r(17638);let t=function(e){var a=e.closeWorkspace,r=e.groupProps.wardPatient;return n().createElement(p.Z,{closeWorkspace:a,wardPatient:r})}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"9071.js","sources":["webpack://@openmrs/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/ward-patient-cancel-admission-request.workspace.tsx"],"names":["closeWorkspace","wardPatient","groupProps","CancelAdmissionRequest"],"mappings":"oNAeA,MAP6F,Y,IAC3FA,EAAAA,EAAAA,cAAc,CACAC,EAAAA,EAAdC,UAAU,CAAID,WAAW,CAEzB,OAAO,kBAACE,EAAAA,CAAsBA,CAAAA,CAACH,eAAgBA,EAAgBC,YAAaA,C,EAC9E,C"}
package/dist/9182.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9182"],{56:function(e){e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyStateIllustration":"Empty state illustration","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingAdmissions":"Pending admissions","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/9314.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9314"],{76682:function(e,n,t){"use strict";t.d(n,{Z:()=>s});var a=t(49130),i=t.n(a),o=t(22577),r=t.n(o)()(i());r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),r.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};let s=r},61440:function(e,n,t){"use strict";t.d(n,{Z:()=>s});var a=t(49130),i=t.n(a),o=t(22577),r=t.n(o)()(i());r.push([e.id,".-esm-ward__ward-patient-style__workspaceContainer___iFRP-{min-height:var(--desktop-workspace-window-height)}.-esm-ward__ward-patient-style__patientWorkspace___6Kxv2{display:flex;height:100%;flex-direction:column}.-esm-ward__ward-patient-style__headerPatientDetail___Zox29{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);margin:0 .25rem}.-esm-ward__ward-patient-style__patientWorkspaceContentSlot___Dz\\+wo{display:flex;flex:1;flex-direction:column}","",{version:3,sources:["webpack://./src/ward-workspace/patient-details/ward-patient.style.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAGA,2DACE,iDAAA,CAGF,yDACE,YAAA,CACA,WAAA,CACA,qBAAA,CAGF,4DCq1BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDn1BF,eAAA,CAGF,qEACE,YAAA,CACA,MAAA,CACA,qBAAA",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.workspaceContainer {\n min-height: var(--desktop-workspace-window-height);\n}\n\n.patientWorkspace {\n display: flex;\n height: 100%;\n flex-direction: column;\n}\n\n.headerPatientDetail {\n @include type.type-style('body-compact-02');\n margin: 0 layout.$spacing-02;\n}\n\n.patientWorkspaceContentSlot {\n display: flex;\n flex: 1;\n flex-direction: column;\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={workspaceContainer:"-esm-ward__ward-patient-style__workspaceContainer___iFRP-",patientWorkspace:"-esm-ward__ward-patient-style__patientWorkspace___6Kxv2",headerPatientDetail:"-esm-ward__ward-patient-style__headerPatientDetail___Zox29",patientWorkspaceContentSlot:"-esm-ward__ward-patient-style__patientWorkspaceContentSlot___Dz+wo"};let s=r},22577:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t}).join("")},n.i=function(e,t,a){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(a)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var s=0;s<e.length;s++){var p=[].concat(e[s]);a&&i[p[0]]||(t&&(p[2]?p[2]="".concat(t," and ").concat(p[2]):p[2]=t),n.push(p))}},n}},49130:function(e){"use strict";function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=Array(n);t<n;t++)a[t]=e[t];return a}e.exports=function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,a,i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=i){var o=[],r=!0,s=!1;try{for(i=i.call(e);!(r=(t=i.next()).done)&&(o.push(t.value),o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return o}}(e,4)||function(e,t){if(e){if("string"==typeof e)return n(e,4);var a=Object.prototype.toString.call(e).slice(8,-1);if("Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(e,t)}}(e,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=t[1],i=t[3];if(!i)return a;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return[a].concat(i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")})).concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o)," */")]).join("\n")}return[a].join("\n")}},46062:function(e){"use strict";var n=[];function t(e){for(var t=-1,a=0;a<n.length;a++)if(n[a].identifier===e){t=a;break}return t}function a(e,a){for(var i={},o=[],r=0;r<e.length;r++){var s=e[r],p=a.base?s[0]+a.base:s[0],l=i[p]||0,c="".concat(p," ").concat(l);i[p]=l+1;var d=t(c),u={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)n[d].references++,n[d].updater(u);else{var f=function(e,n){var t=n.domAPI(n);return t.update(e),function(n){n?(n.css!==e.css||n.media!==e.media||n.sourceMap!==e.sourceMap||n.supports!==e.supports||n.layer!==e.layer)&&t.update(e=n):t.remove()}}(u,a);a.byIndex=r,n.splice(r,0,{identifier:c,updater:f,references:1})}o.push(c)}return o}e.exports=function(e,i){var o=a(e=e||[],i=i||{});return function(e){e=e||[];for(var r=0;r<o.length;r++){var s=t(o[r]);n[s].references--}for(var p=a(e,i),l=0;l<o.length;l++){var c=t(o[l]);0===n[c].references&&(n[c].updater(),n.splice(c,1))}o=p}}},96793:function(e){"use strict";var n={};e.exports=function(e,t){var a=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!a)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}},11173:function(e){"use strict";e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},17892:function(e,n,t){"use strict";e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},44036:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){var a,i,o;a="",t.supports&&(a+="@supports (".concat(t.supports,") {")),t.media&&(a+="@media ".concat(t.media," {")),(i=void 0!==t.layer)&&(a+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),a+=t.css,i&&(a+="}"),t.media&&(a+="}"),t.supports&&(a+="}"),(o=t.sourceMap)&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(a,n,e.options)},remove:function(){!function(e){if(null!==e.parentNode)e.parentNode.removeChild(e)}(n)}}}},42464:function(e){"use strict";e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},65951:function(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>w});var a=t(20708),i=t(27350),o=t.n(i),r=t(46062),s=t.n(r),p=t(44036),l=t.n(p),c=t(96793),d=t.n(c),u=t(17892),f=t.n(u),h=t(11173),g=t.n(h),y=t(42464),b=t.n(y),m=t(76682),$={};$.styleTagTransform=b(),$.setAttributes=f(),$.insert=d().bind(null,"head"),$.domAPI=l(),$.insertStyleElement=g(),s()(m.Z,$);let v=m.Z&&m.Z.locals?m.Z.locals:void 0,w=function(e){var n,t=e.wardPatient,i=(null!=t?t:{}).patient,r=(null!=(n=(0,a.useAppContext)("ward-view-context"))?n:{}).WardPatientHeader;return i?r?o().createElement("div",{className:v.wardWorkspacePatientBanner},o().createElement(r,{wardPatient:t})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},97903:function(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>z});var a=t(20708),i=t(27350),o=t.n(i),r=t(65951),s=t(46062),p=t.n(s),l=t(44036),c=t.n(l),d=t(96793),u=t.n(d),f=t(17892),h=t.n(f),g=t(11173),y=t.n(g),b=t(42464),m=t.n(b),$=t(61440),v={};v.styleTagTransform=m(),v.setAttributes=h(),v.insert=u().bind(null,"head"),v.domAPI=c(),v.insertStyleElement=y(),p()($.Z,v);let w=$.Z&&$.Z.locals?$.Z.locals:void 0;var k=t(16709),x=t.n(k),A=t(68892);function z(e){var n=e.groupProps.wardPatient,t=e.launchChildWorkspace,i=(0,A.useTranslation)().t,s=null!=n?n:{},p=s.patient,l=s.visit,c=(0,a.useConfig)().hideWorkspaceVitalsLinks,d={patient:p,patientUuid:null==p?void 0:p.uuid,hideLinks:c,visitContext:l,launchCustomVitalsForm:function(){var e;t("ward-patient-vitals-workspace",{patientUuid:p.uuid,patient:{id:p.uuid,birthDate:null==(e=p.person)?void 0:e.birthdate},visitContext:l})}};return o().createElement(a.Workspace2,{title:i("wardPatient","Ward patient")},n&&o().createElement("div",{className:x()(w.workspaceContainer,w.patientWorkspace)},o().createElement(r.default,{wardPatient:n}),o().createElement(a.ExtensionSlot,{name:"ward-patient-workspace-header-slot",state:d}),o().createElement(a.ExtensionSlot,{name:"ward-patient-workspace-content-slot",state:d,className:w.patientWorkspaceContentSlot})))}(0,a.attach)("ward-patient-workspace-header-slot","patient-vitals-info")},16709:function(e){!function(){"use strict";var n={}.hasOwnProperty;function t(){for(var e="",i=0;i<arguments.length;i++){var o=arguments[i];o&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i="";for(var o in e)n.call(e,o)&&e[o]&&(i=a(i,o));return i}(o)))}return e}function a(e,n){return n?e?e+" "+n:e+n:e}e.exports?(t.default=t,e.exports=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}()}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"9314.js","sources":["webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-details/ward-patient.style.scss","webpack://@openmrs/esm-ward-app/../../node_modules/@openmrs/rspack-config/node_modules/css-loader/dist/runtime/api.js","webpack://@openmrs/esm-ward-app/../../node_modules/@openmrs/rspack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?6592","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-details/ward-patient.style.scss?f883","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-details/ward-patient.workspace.tsx","webpack://@openmrs/esm-ward-app/../../node_modules/classnames/index.js"],"names":["a","Array","Symbol","e","Object","TypeError","btoa","unescape","encodeURIComponent","JSON","i","n","document","window","Error","useAppContext","wardPatient","patient","WardPatientHeader","div","className","styles","console","warn","WardPatientWorkspace","groupProps","launchChildWorkspace","t","useTranslation","visit","hideWorkspaceVitalsLinks","useConfig","extensionSlotState","patientUuid","uuid","hideLinks","visitContext","launchCustomVitalsForm","id","birthDate","person","birthdate","Workspace2","title","classNames","WardPatientWorkspaceBanner","ExtensionSlot","name","state","attach","arguments","define"],"mappings":"uMAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAA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,CAEtB,G"}
package/dist/9339.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9339"],{83504:function(e){e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyStateIllustration":"Empty state illustration","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingAdmissions":"Pending admissions","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/9453.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9453"],{34356:function(e){e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyStateIllustration":"Empty state illustration","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","PatientNote":"Patient Note","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingAdmissions":"Pending admissions","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/9668.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9668"],{41755:function(e,n,a){a.r(n),a.d(n,{default:()=>c});var r=a(20708),t=a(27350),s=a.n(t),o=a(68892);function c(){var e=(0,o.useTranslation)().t;return s().createElement(r.ActionMenuButton2,{icon:function(e){return s().createElement(r.MovementIcon,e)},label:e("transfers","Transfers"),workspaceToLaunch:{workspaceName:"ward-patient-transfer-swap-workspace"}})}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"9668.js","sources":["webpack://@openmrs/esm-ward-app/./src/action-menu-buttons/transfer-workspace-siderail.component.tsx"],"names":["PatientTransferAndSwapSiderailIcon","t","useTranslation","ActionMenuButton2","icon","props","MovementIcon","label","workspaceToLaunch","workspaceName"],"mappings":"+NAIe,SAASA,IACtB,IAAQC,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CACT,OACE,kBAACE,EAAAA,iBAAiBA,CAAAA,CAChBC,KAAM,SAACC,CAAK,E,OAAK,kBAACC,EAAAA,YAAYA,CAAKD,E,EACnCE,MAAON,EAAE,YAAa,aACtBO,kBAAmB,CACjBC,cAAe,sCACjB,C,EAGN,C"}
package/dist/9727.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9727"],{64925:function(n,e,r){r.d(e,{Z:()=>l});var a=r(49130),t=r.n(a),i=r(22577),o=r.n(i)()(t());o.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__ward-view__wardView___FbpB2{background-color:#e4e4e4;display:flex;flex-direction:column;padding:0 1rem}.-esm-ward__ward-view__wardView___FbpB2.-esm-ward__ward-view__verticalTiling___As-Jz{height:calc(100vh - var(--omrs-topnav-height))}.-esm-ward__ward-view__wardViewMain___jYzEv{background-color:#e4e4e4;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));display:grid;gap:1rem}.-esm-ward__ward-view__wardViewMain___jYzEv.-esm-ward__ward-view__verticalTiling___As-Jz{display:block;column-width:280px;overflow-x:auto;height:calc(100% - 4rem)}.-esm-ward__ward-view__wardViewMain___jYzEv.-esm-ward__ward-view__verticalTiling___As-Jz>div{break-inside:avoid;margin-bottom:10px}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-view/ward-view.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,wCACE,wBAAA,CACA,YAAA,CACA,qBAAA,CACA,cAAA,CAEA,qFACE,8CAAA,CAIJ,4CACE,wBAAA,CACA,2DAAA,CACA,YAAA,CACA,QCaW,CDXX,yFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,wBAAA,CAEA,6FACE,kBAAA,CACA,kBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardView {\n background-color: #e4e4e4;\n display: flex;\n flex-direction: column;\n padding: 0 layout.$spacing-05;\n\n &.verticalTiling {\n height: calc(100vh - var(--omrs-topnav-height));\n }\n}\n\n.wardViewMain {\n background-color: #e4e4e4;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n display: grid;\n gap: layout.$spacing-05;\n\n &.verticalTiling {\n display: block;\n column-width: 280px;\n overflow-x: auto;\n height: calc(100% - 4rem);\n\n > div {\n break-inside: avoid;\n margin-bottom: 10px;\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={wardView:"-esm-ward__ward-view__wardView___FbpB2",verticalTiling:"-esm-ward__ward-view__verticalTiling___As-Jz",wardViewMain:"-esm-ward__ward-view__wardViewMain___jYzEv"};let l=o},40322:function(n,e,r){r.d(e,{Z:()=>v});var a=r(46062),t=r.n(a),i=r(44036),o=r.n(i),l=r(96793),u=r.n(l),d=r(17892),c=r.n(d),s=r(11173),p=r.n(s),g=r(42464),b=r.n(g),f=r(64925),m={};m.styleTagTransform=b(),m.setAttributes=c(),m.insert=u().bind(null,"head"),m.domAPI=o(),m.insertStyleElement=p(),t()(f.Z,m);let v=f.Z&&f.Z.locals?f.Z.locals:void 0},77177:function(n,e,r){r.d(e,{Z:()=>l});var a=r(20708),t=r(62836),i=r(59918),o=r.n(i);function l(){var n=(0,t.useParams)().locationUuid,e=(0,a.useSession)().sessionLocation,r=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(display,uuid)";return o()(n?"".concat(a.restBaseUrl,"/location/").concat(n,"?v=").concat(e):null,a.openmrsFetch)}(n||null),i=r.data,l=r.isLoading,u=r.error,d=n&&u;return{location:n?null==i?void 0:i.data:e,isLoadingLocation:l,errorFetchingLocation:u,invalidLocation:d}}},94121:function(n,e,r){r.r(e),r.d(e,{default:()=>g});var a=r(39684),t=r(20708),i=r(16709),o=r.n(i),l=r(27350),u=r.n(l),d=r(68892),c=r(77177),s=r(32515),p=r(40322);let g=function(){var n=(0,c.Z)(),e=n.isLoadingLocation,r=n.invalidLocation,i=n.location,l=(0,d.useTranslation)().t,g=null==i?void 0:i.uuid,b=(0,s.rg)(g);if(e)return u().createElement(u().Fragment,null);if(r)return u().createElement(a.K0D,{kind:"error",title:l("invalidLocationSpecified","Invalid location specified")});var f=b.id;return u().createElement("div",{className:o()(p.Z.wardView,p.Z.verticalTiling)},u().createElement(t.ExtensionSlot,{name:f}))}},32515:function(n,e,r){r.d(e,{Yw:()=>d,HK:()=>p,i:()=>u,rg:()=>g,wW:()=>c,_T:()=>s});var a=r(20708),t=r(27350),i=r(68892);function o(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,a=Array(e);r<e;r++)a[r]=n[r];return a}function l(n){return function(n){if(Array.isArray(n))return o(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return o(n,void 0);var r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(n,e)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(n){return{id:n.bedId,uuid:n.bedUuid,bedNumber:n.bedNumber,bedType:n.bedType,row:n.rowNumber,column:n.columnNumber,status:n.status}}function d(n){var e,r,a,t,i,o,u,d,c,s,p,g,b=l(null==(e=n.wardUnadmittedPatientsWithBed)?void 0:e.values()).concat(l(l(null==(r=n.wardAdmittedPatientsWithBed)?void 0:r.values()).map(function(n){return n.patient})),l(null==(a=n.wardUnassignedPatientsList)?void 0:a.map(function(n){return n.patient}))),f=null!=(d=null==b?void 0:b.length)?d:0,m=null!=(c=null==(t=b.filter(function(n){return n.person.age<1}))?void 0:t.length)?c:0,v=null!=(s=null==(i=b.filter(function(n){return"F"===n.person.gender}).filter(function(n){return n.person.age>=10}))?void 0:i.length)?s:0,A=null!=(p=null==(o=n.bedLayouts)?void 0:o.length)?p:0,w=null!=(g=null==(u=n.bedLayouts)?void 0:u.filter(function(n){var e;return(null==(e=n.patients)?void 0:e.length)>0}).length)?g:0;return{patients:f.toString(),freeBeds:(A-w).toString(),totalBeds:A.toString(),newborns:m.toString(),femalesOfReproductiveAge:v.toString()}}function c(n,e,r,a,t){var i=function(n){var e=new Map,r=!0,a=!1,t=void 0;try{for(var i,o=(null!=n?n:[])[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var l=i.value;l&&e.set(l.patient.uuid,l)}}catch(n){a=!0,t=n}finally{try{r||null==o.return||o.return()}finally{if(a)throw t}}return e}(l(null!=n?n:[]).concat(l(null!=a?a:[]))),o=new Map,u=new Map,d=e&&(m=new Intl.Collator([],{numeric:!0}),e.bedLayouts.filter(function(n){return n.bedId}).sort(function(n,e){return m.compare(n.bedNumber,e.bedNumber)})),c=new Set,s=0;null==d||d.map(function(n){n.patients.map(function(n){var e=i.get(n.uuid);if(c.add(n.uuid),(null==e||null==(r=e.currentInpatientLocation)?void 0:r.uuid)==t.uuid){o.set(n.uuid,e);var r,a,l=null==(a=e.currentInpatientRequest)?void 0:a.dispositionType;("TRANSFER"==l||"DISCHARGE"==l)&&s++}else u.set(n.uuid,n)})});var p=null!=(v=null==n?void 0:n.filter(function(n){return c.add(n.patient.uuid),!o.has(n.patient.uuid)&&!u.has(n.patient.uuid)}))?v:[],g=!0,b=!1,f=void 0;try{for(var m,v,A,w=(null!=r?r:[])[Symbol.iterator]();!(g=(A=w.next()).done);g=!0){var y=A.value;y&&c.add(y.patient.uuid)}}catch(n){b=!0,f=n}finally{try{g||null==w.return||w.return()}finally{if(b)throw f}}return{wardAdmittedPatientsWithBed:o,wardUnadmittedPatientsWithBed:u,wardPatientPendingCount:s,bedLayouts:d,wardUnassignedPatientsList:p,allWardPatientUuids:c,inpatientAdmissionsByPatientUuid:i}}function s(n,e){switch(n){case"patients":return e("patients","Patients");case"freeBeds":return e("freeBeds","Free beds");case"totalBeds":return e("totalBeds","Total beds");case"pendingOut":return e("pendingOut","Pending out");case"femalesOfReproductiveAge":return e("mothers","Mothers");case"newborns":return e("infants","Infants")}}function p(n,e){var r,t,o=(0,a.useConfig)(),l=(0,i.useTranslation)().t;try{return null==o||null==(t=o.patientCardElements)||null==(r=t[n])?void 0:r.find(function(n){return(null==n?void 0:n.id)==e})}catch(r){return(0,a.showNotification)({title:l("errorConfiguringPatientCard","Error configuring patient card"),kind:"error",critical:!0,description:l("errorConfiguringPatientCardMessage","Unable to find configuration for {{elementType}}, id: {{id}}",{elementType:n,id:e})}),null}}function g(n){var e=(0,a.useConfig)().wards,r=(0,t.useMemo)(function(){return null==e?void 0:e.find(function(e){var r;return null==e.appliedTo||(null==(r=e.appliedTo)?void 0:r.length)==0||e.appliedTo.some(function(e){return e.location==n})})},[e,n]);return r||(console.warn("No ward card configuration has `appliedTo` criteria that matches the current location. Using the default configuration."),{id:"default-ward"})}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"9727.js","sources":["webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.scss","webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.scss?3ca8","webpack://@openmrs/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useLocation.ts","webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.resource.ts","webpack://@openmrs/esm-ward-app/./src/utils.ts"],"names":["useWardLocation","locationUuidFromUrl","useParams","locationUuid","sessionLocation","useSession","useLocation","rep","useSWRImmutable","restBaseUrl","openmrsFetch","locationResponse","data","isLoadingLocation","isLoading","errorFetchingLocation","error","invalidLocation","location","response","t","useTranslation","uuid","wardConfig","useWardConfig","InlineNotification","kind","title","wardId","id","div","className","classNames","styles","ExtensionSlot","name","bedLayoutToBed","bedLayout","bedId","bedUuid","bedNumber","bedType","row","rowNumber","column","columnNumber","status","getWardMetrics","wardPatientGroup","filterNewborns","filterReproductiveAge","allPatients","wardUnadmittedPatientsWithBed","values","wardAdmittedPatientsWithBed","map","admission","patient","wardUnassignedPatientsList","patientCount","length","newborns","patients","filter","person","age","femalesOfReproductiveAge","gender","totalBeds","bedLayouts","occupiedBeds","bed","toString","freeBeds","createAndGetWardPatientGrouping","inpatientAdmissionsAtCurrentLocation","admissionLocation","inpatientRequests","inpatientAdmissionsAtOtherLocations","currentWardLocation","inpatientAdmissionsByPatientUuid","getInpatientAdmissionsUuidMap","inpatientAdmissions","Map","inpatientAdmission","set","collator","Intl","Collator","numeric","bl","sort","bedA","bedB","compare","allWardPatientUuids","Set","wardPatientPendingCount","get","add","currentInpatientLocation","dispositionType","currentInpatientRequest","has","inpatientRequest","getWardMetricNameTranslation","useElementConfig","elementType","config","useConfig","patientCardElements","find","elementConfig","e","showNotification","critical","description","wards","currentWardConfig","useMemo","wardDef","appliedTo","some","criteria","console","warn"],"mappings":"uMAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,ogCAAqgC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,2CAA2C,6EAA6E,CAAC,MAAQ,EAAE,CAAC,SAAW,mRAAmR,eAAiB,CAAC,g/DAAg/D,gpBAAgpB,05DAA05D,CAAC,WAAa,EAAE,EAAE,EAEjnM,EAAwB,MAAM,CAAG,CAChC,SAAY,yCACZ,eAAkB,+CAClB,aAAgB,4CACjB,EACA,MAAe,C,gLCDX,EAAU,CAAC,CAEf,GAAQ,iBAAiB,CAAG,IAC5B,EAAQ,aAAa,CAAG,IAElB,EAAQ,MAAM,CAAG,QAAa,CAAC,KAAM,QAE3C,EAAQ,MAAM,CAAG,IACjB,EAAQ,kBAAkB,CAAG,IA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globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9833"],{79801:function(e,t,r){r.r(t),r.d(t,{useBeforeUnload:()=>rM,useRouteError:()=>t_,Route:()=>tH,useParams:()=>tc,UNSAFE_ErrorResponseImpl:()=>er,useRoutes:()=>th,BrowserRouter:()=>rf,createHashRouter:()=>rr,redirectDocument:()=>ee,replace:()=>et,createRoutesFromChildren:()=>tX,useAsyncError:()=>tT,useLinkClickHandler:()=>rx,createPath:()=>P,useLoaderData:()=>tD,UNSAFE_DataRouterContext:()=>e4,useNavigate:()=>ti,useSearchParams:()=>rC,useSubmit:()=>rL,createRoutesFromElements:()=>tX,useInRouterContext:()=>tt,UNSAFE_useScrollRestoration:()=>rj,useNavigation:()=>tx,Navigate:()=>tI,unstable_usePrompt:()=>rO,unstable_HistoryRouter:()=>rm,UNSAFE_RouteContext:()=>e8,useViewTransitionState:()=>rF,matchRoutes:()=>A,useBlocker:()=>tj,redirect:()=>Z,createSearchParams:()=>t2,createMemoryRouter:()=>tZ,RouterProvider:()=>rd,useNavigationType:()=>tn,UNSAFE_DataRouterStateContext:()=>e2,NavigationType:()=>c,useOutletContext:()=>ts,UNSAFE_ViewTransitionContext:()=>ra,defer:()=>Q,Router:()=>tW,Routes:()=>t$,useFetcher:()=>r_,UNSAFE_FetchersContext:()=>ro,parsePath:()=>D,Await:()=>tV,generatePath:()=>O,useActionData:()=>tk,MemoryRouter:()=>tB,UNSAFE_LocationContext:()=>e6,useResolvedPath:()=>td,Form:()=>rb,isRouteErrorResponse:()=>en,useHref:()=>te,createBrowserRouter:()=>rt,HashRouter:()=>rp,UNSAFE_useRouteId:()=>tR,Outlet:()=>tz,useLocation:()=>tr,UNSAFE_NavigationContext:()=>e5,useRouteLoaderData:()=>tL,renderMatches:()=>tG,resolvePath:()=>I,useOutlet:()=>tu,AbortedDeferredError:()=>X,Link:()=>rg,useAsyncValue:()=>tA,useMatch:()=>ta,useFormAction:()=>rk,ScrollRestoration:()=>rE,json:()=>q,useMatches:()=>tP,NavLink:()=>rw,useFetchers:()=>rA,useRevalidator:()=>tC,matchPath:()=>F});var n,a,o,i,l,s,u,c,d,h,f,p=r(27350),m=r(28316),v=r.t(m,2);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let g="popstate";function w(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=C(t?t[o].pathname:"/",e,r,n);return R("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:P(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?D(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function b(e){return void 0===e&&(e={}),L(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return C("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:P(t)},null,e)}function E(e){return void 0===e&&(e={}),L(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=D(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),C("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:P(t))},function(e,t){R("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function S(e,t){if(!1===e||null==e)throw Error(t)}function R(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function x(e,t){return{usr:e.state,key:e.key,idx:t}}function C(e,t,r,n){return void 0===r&&(r=null),y({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?D(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function P(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function D(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function L(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:P(e);return S(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(y({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(g,h),s=e,()=>{a.removeEventListener(g,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=C(p.location,e,t);r&&r(n,e);let h=x(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=C(p.location,e,t);r&&r(n,e);let a=x(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let k=new Set(["lazy","caseSensitive","path","id","index","children"]);function _(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(S(!0!==e.index||!e.children,"Cannot specify children on an index route"),S(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=y({},e,t(e),{id:i});return n[i]=r,r}{let r=y({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=_(e.children,t,o,n)),r}})}function A(e,t,r){return void 0===r&&(r="/"),T(e,t,r,!1)}function T(e,t,r,n){let a=B(("string"==typeof t?D(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(S(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=V([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(S(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(M)&&(c+=-2),s&&(c+=2),u.filter(e=>!M(e)).reduce((e,t)=>e+(j.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=N(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=F({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=F({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:V([o,c.pathname]),pathnameBase:J(V([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=V([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function U(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let j=/^:[\w-]+$/,M=e=>"*"===e;function O(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(R(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return S("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function F(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),R("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function N(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return R(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function I(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?D(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:K(o),hash:Y(i)}}function z(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function H(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function W(e,t){let r=H(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function $(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=D(e):(S(!(a=y({},e)).pathname||!a.pathname.includes("?"),z("?","pathname","search",a)),S(!a.pathname||!a.pathname.includes("#"),z("#","pathname","hash",a)),S(!a.search||!a.search.includes("#"),z("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=I(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let V=e=>e.join("/").replace(/\/\/+/g,"/"),J=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",q=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),y({},r,{headers:n}))};class X extends Error{}class G{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],S(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new X("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof X)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return S(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let Q=function(e,t){return void 0===t&&(t={}),new G(e,"number"==typeof t?{status:t}:t)},Z=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,y({},r,{headers:n}))},ee=(e,t)=>{let r=Z(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},et=(e,t)=>{let r=Z(e,t);return r.headers.set("X-Remix-Replace","true"),r};class er{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function en(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let ea=["post","put","patch","delete"],eo=new Set(ea),ei=new Set(["get",...ea]),el=new Set([301,302,303,307,308]),es=new Set([307,308]),eu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ec={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ed={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},eh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ef=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ep="remix-router-transitions";function em(e){let t,r,n,a,o,i,l=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(S(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=ef;let h={},f=_(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eC,v=e.patchRoutesOnNavigation,g=y({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,E=null,x=null,P=null,D=null!=e.hydrationData,L=A(f,e.history.location,p),k=!1,j=null;if(null==L&&!v){let t=eN(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eF(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eb(e.route,t,r))}else n=L.every(e=>!eb(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(k=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:eu,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,N=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function er(e,t){void 0===t&&(t={}),M=y({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...b].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>Z.delete(e))}function ea(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eJ(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?ej(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ed));let m=!0===F||null!=M.navigation.formMethod&&eJ(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(N){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}er(y({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:eu,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,N=!1,H=!1,W=!1,$=[]}async function eo(t,r){if("number"==typeof t)return void e.history.go(t);let n=ev(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ey(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=C(M.location,a,r&&r.state);s=y({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eJ(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e9(m,{state:"blocked",location:s,proceed(){e9(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),eo(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ed),er({blockers:e})}}):await ei(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ei(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,E&&P&&(E[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),N=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,v=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!k?M.matches:A(h,n,p),g=!0===(a&&a.flushSync);if(v&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eJ(a.submission.formMethod)))return void ea(n,{matches:v},{flushSync:g});let w=to(v,h,n.pathname);if(w.active&&w.matches&&(v=w.matches),!v){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);ea(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let b=e_(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eO(v).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eJ(a.submission.formMethod)){let t=await em(b,n,a.submission,v,w.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eH(r)&&en(r.error)&&404===r.error.status){o=null,ea(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}v=t.matches||v,c=t.pendingActionResult,m=eZ(n,a.submission),g=!1,w.active=!1,b=e_(e.history,b.url,b.signal)}let{shortCircuited:S,matches:R,loaderData:x,errors:C}=await eg(b,n,v,w.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);S||(o=null,ea(n,y({matches:R||v},eM(c),{loaderData:x,errors:C})))}async function em(e,t,r,n,a,o){var i;let l;if(void 0===o&&(o={}),eI(),er({navigation:{state:"submitting",location:t,formMethod:(i=r).formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}},{flushSync:!0===o.flushSync}),a){let r=await ti(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eO(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:d.error,error:r.error}]}}if(r.matches)n=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:r}]}}}let s=eG(n,t);if(s.route.action||s.route.lazy){if(l=(await eA("action",M,e,[s],n,null))[s.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:d.error,error:eN(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(eW(l)){let t;return t=o&&null!=o.replace?o.replace:ek(l.response.headers.get("Location"),new URL(e.url),p)===M.location.pathname+M.location.search,await eD(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(ez(l))throw eN(400,{type:"defer-action"});if(eH(l)){let e=eO(n,s.route.id);return!0!==(o&&o.replace)&&(O=c.Push),{matches:n,pendingActionResult:[e.route.id,l]}}return{matches:n,pendingActionResult:[s.route.id,l]}}async function eg(t,n,a,i,l,s,u,c,d,h,m){let v=l||eZ(n,s),w=s||u||eQ(v),b=!H&&(!g.v7_partialHydration||!d);if(i){if(b){let e=eE(m);er(y({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eO(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=ew(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e5();return ea(n,y({matches:a,loaderData:{},errors:m&&eH(m[1])?{[m[0]]:m[1].error}:null},eM(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=v;let t=eE(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e0(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),er(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eT(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=eB(C);if(D)return await eD(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=eB(P))return X.add(D.key),await eD(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eU(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=y({},M.errors,k));let _=e5(),A=e6(Y),T=_||A||R.length>0;return y({matches:a,loaderData:L,errors:k},T?{fetchers:new Map(M.fetchers)}:{})}function eE(e){if(e&&!eH(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eS(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eN(405,{method:d.formMethod,pathname:a,routeId:n});return eX(t,n,e,{flushSync:u}),!0}return!1}if(eI(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);e$(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=e_(e.history,a,w.signal,d);if(s){let e=await ti(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eX(t,n,e.error,{flushSync:u});if(!e.matches)return void eX(t,n,eN(404,{pathname:a}),{flushSync:u});if(v(i=eG(l=e.matches,a)))return}J.set(t,w);let E=K,R=(await eA("action",M,b,[i],l,t))[i.route.id];if(b.signal.aborted){J.get(t)===w&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eW(R)||eH(R))return void e$(t,e1(void 0))}else{if(eW(R))return(J.delete(t),Y>E)?void e$(t,e1(void 0)):(X.add(t),e$(t,e0(d)),eD(b,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(eH(R))return void eX(t,n,R.error)}if(ez(R))throw eN(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=e_(e.history,x,w.signal),P=r||f,D="idle"!==M.navigation.state?A(P,M.navigation.location,p):M.matches;S(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=e0(d,R.data);M.fetchers.set(t,k);let[_,T]=ew(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e0(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),er({fetchers:new Map(M.fetchers)});let U=()=>T.forEach(e=>e2(e.key));w.signal.addEventListener("abort",U);let{loaderResults:j,fetcherResults:F}=await eT(M,D,_,T,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",U),q.delete(t),J.delete(t),T.forEach(e=>J.delete(e.key));let N=eB(j);if(N)return eD(C,N.result,!1,{preventScrollReset:c});if(N=eB(F))return X.add(N.key),eD(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eU(M,D,j,void 0,T,F,ee);if(M.fetchers.has(t)){let e=e1(R.data);M.fetchers.set(t,e)}e6(L),"loading"===M.navigation.state&&L>Y?(S(O,"Expected pending action"),o&&o.abort(),ea(M.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(er({errors:I,loaderData:ej(M.loaderData,B,D,I),fetchers:new Map(M.fetchers)}),W=!1)}async function ex(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);e$(t,e0(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=e_(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eX(t,r,e.error,{flushSync:l});if(!e.matches)return void eX(t,r,eN(404,{pathname:n}),{flushSync:l});a=eG(o=e.matches,n)}J.set(t,d);let f=K,p=(await eA("loader",M,h,[a],o,t))[a.route.id];if(ez(p)&&(p=await eq(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void e$(t,e1(void 0));if(eW(p))if(Y>f)return void e$(t,e1(void 0));else{X.add(t),await eD(h,p,!1,{preventScrollReset:s});return}if(eH(p))return void eX(t,r,p.error);S(!ez(p),"Unhandled fetcher deferred data"),e$(t,e1(p.data))}}async function eD(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");S(f,"Expected a Location header on the redirect Response"),f=ek(f,new URL(t.url),p);let m=C(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(eh.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==B(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let v=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:w,formEncType:b}=M.navigation;!i&&!u&&g&&w&&b&&(i=eQ(M.navigation));let E=i||u;if(es.has(r.response.status)&&E&&eJ(E.formMethod))await ei(v,m,{submission:y({},E,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?N:void 0});else{let e=eZ(m,i);await ei(v,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?N:void 0})}}async function eA(e,r,n,a,o,i){let l,s={};try{l=await eP(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(eV((u=t).result)&&el.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(S(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!eh.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ev(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await eL(t)}return s}async function eT(t,r,n,a,o){let i=t.matches,l=eA("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eN(404,{pathname:r.path})}});{let n=(await eA("loader",t,e_(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eK(r,u,o.signal,i,t.loaderData),eY(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eI(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function e$(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),er({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eX(e,t,r,n){void 0===n&&(n={});let a=eO(M.matches,t);e4(e),er({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||ec}function e4(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e3(e){for(let t of e){let e=e1(e7(t).data);M.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);S(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e3(e),t}function e6(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);S(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e3(t),t.length>0}function e8(e){M.blockers.delete(e),et.delete(e)}function e9(e,t){let r=M.blockers.get(e)||ed;S("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),er({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&R(!1,"A router only supports one blocker at a time");let a=Array.from(et.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eN(404,{pathname:e}),{matches:n,route:a}=eF(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return x&&x(e,t.map(e=>U(e,M.loaderData)))||e.key}function ta(e,t){if(E){let r=E[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(v){if(!e)return{active:!0,matches:T(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:T(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!v)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await v({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eR(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=A(l,n,p);if(u)return{type:"success",matches:u};let c=T(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}R(0===et.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ed),er({blockers:e})}});return}return ei(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ep);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ep,JSON.stringify(r))}catch(e){R(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ei(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,P=t,x=r||null,!D&&M.navigation===eu){D=!0;let e=ta(M.location,M.matches);null!=e&&er({restoreScrollPosition:e})}return()=>{E=null,P=null,x=null}},navigate:eo,fetch:function(e,t,n,a){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=ev(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=A(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void eX(e,t,eN(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ey(g.v7_normalizeFormMethod,!0,l,a);if(m)return void eX(e,t,m,{flushSync:o});let v=eG(s,d),y=!0===(a&&a.preventScrollReset);if(h&&eJ(h.formMethod))return void eS(e,t,d,v,s,c.active,o,y,h);G.set(e,{routeId:t,path:d}),ex(e,t,d,v,s,c.active,o,y,h)},revalidate:function(){if(eI(),er({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ei(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ei(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===N})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||e4(e)):Q.set(e,t),er({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),z&&z(),b.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ed;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;eR(e,n,r||f,h,t),a&&(f=[...f],er({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=_(e,t,void 0,h={})}}}function ev(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=$(a||".",W(s,o),B(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eX(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:V([r,c.pathname])),P(c)}function ey(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!ei.has(a.toLowerCase())))return{path:r,error:eN(405,{method:n.formMethod})};let l=()=>({path:r,error:eN(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eI(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eJ(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eJ(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(S("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eA(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eA(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eT(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eT(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eJ(d.formMethod))return{path:r,submission:d};let h=D(r);return t&&h.search&&eX(h.search)&&o.append("index",""),h.search="?"+o,{path:P(h),submission:d}}function eg(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function ew(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let v=m?eH(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=eg(r,Object.keys(t.errors)[0],!0):m&&eH(m[1])&&(b=eg(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eb(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eS(e,y({currentUrl:g,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eE(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=A(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eG(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eS(d,y({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eb(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eE(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eS(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eR(e,t,r,n,a){var o;let i;if(e){let t=n[e];S(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=_(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ex(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];S(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;R(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||k.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,y({},t(a),{lazy:void 0}))}async function eC(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eP(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?ex(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?eD(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return y({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function eD(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eN(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eN(404,{pathname:r})}S(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function eL(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(eV(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new er(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return e$(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new er((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:en(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:en(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:e$(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function ek(e,t,r){if(eh.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=B(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function e_(e,t,r,n){let a=e.createURL(eI(t)).toString(),o={signal:r};if(n&&eJ(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eA(n.formData):o.body=n.formData}return new Request(a,o)}function eA(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eT(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eU(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&eH(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(S(!eW(a),"Cannot handle redirect results in processLoaderData"),eH(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eO(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=en(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else ez(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(S(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eH(i)){let t=eO(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=y({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eW(i))S(!1,"Unhandled fetcher revalidation redirect");else if(ez(i))S(!1,"Unhandled fetcher deferred data");else{let t=e1(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function ej(e,t,r,n){let a=y({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eM(e){return e?eH(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eO(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eF(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eN(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new er(e||500,l,Error(s),!0)}function eB(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eW(n))return{key:r,result:n}}}function eI(e){let t="string"==typeof e?D(e):e;return P(y({},t,{hash:""}))}function ez(e){return e.type===d.deferred}function eH(e){return e.type===d.error}function eW(e){return(e&&e.type)===d.redirect}function e$(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eV(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eJ(e){return eo.has(e.toLowerCase())}async function eK(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eE(c,u)&&(a&&a[u.route.id])!==void 0;ez(s)&&d&&await eq(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eY(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&ez(l)&&(S(i,"Expected an AbortController for revalidating fetcher deferred result"),await eq(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eq(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eX(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eG(e,t){let r="string"==typeof t?D(t).search:t.search;if(e[e.length-1].route.index&&eX(r||""))return e[e.length-1];let n=H(e);return n[n.length-1]}function eQ(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eZ(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e7(){return(e7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}Symbol("deferred");let e4=p.createContext(null),e2=p.createContext(null),e3=p.createContext(null),e5=p.createContext(null),e6=p.createContext(null),e8=p.createContext({outlet:null,matches:[],isDataRoute:!1}),e9=p.createContext(null);function te(e,t){let{relative:r}=void 0===t?{}:t;tt()||S(!1);let{basename:n,navigator:a}=p.useContext(e5),{hash:o,pathname:i,search:l}=td(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:V([n,i])),a.createHref({pathname:s,search:l,hash:o})}function tt(){return null!=p.useContext(e6)}function tr(){return tt()||S(!1),p.useContext(e6).location}function tn(){return p.useContext(e6).navigationType}function ta(e){tt()||S(!1);let{pathname:t}=tr();return p.useMemo(()=>F(e,N(t)),[t,e])}function to(e){p.useContext(e5).static||p.useLayoutEffect(e)}function ti(){let{isDataRoute:e}=p.useContext(e8);return e?function(){let{router:e}=tb(tg.UseNavigateStable),t=tS(tw.UseNavigateStable),r=p.useRef(!1);return to(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e7({fromRouteId:t},a)))},[e,t])}():function(){tt()||S(!1);let e=p.useContext(e4),{basename:t,future:r,navigator:n}=p.useContext(e5),{matches:a}=p.useContext(e8),{pathname:o}=tr(),i=JSON.stringify(W(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return to(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=$(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:V([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let tl=p.createContext(null);function ts(){return p.useContext(tl)}function tu(e){let t=p.useContext(e8).outlet;return t?p.createElement(tl.Provider,{value:e},t):t}function tc(){let{matches:e}=p.useContext(e8),t=e[e.length-1];return t?t.params:{}}function td(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e5),{matches:a}=p.useContext(e8),{pathname:o}=tr(),i=JSON.stringify(W(a,n.v7_relativeSplatPath));return p.useMemo(()=>$(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function th(e,t){return tf(e,t)}function tf(e,t,r,n){let a;tt()||S(!1);let{navigator:o}=p.useContext(e5),{matches:i}=p.useContext(e8),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=tr();if(t){var h;let e="string"==typeof t?D(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||S(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=A(e,{pathname:m}),y=ty(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:V([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:V([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e6.Provider,{value:{location:e7({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let tp=p.createElement(function(){let e=t_(),t=en(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class tm extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(e8.Provider,{value:this.props.routeContext},p.createElement(e9.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tv(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e4);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e8.Provider,{value:t},n)}function ty(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||S(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tp,s&&(u<0&&0===a?(o="route-fallback",tM[o]||(tM[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tv,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(tm,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tg=((o=tg||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tw=((i=tw||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tb(e){let t=p.useContext(e4);return t||S(!1),t}function tE(e){let t=p.useContext(e2);return t||S(!1),t}function tS(e){let t,r=((t=p.useContext(e8))||S(!1),t),n=r.matches[r.matches.length-1];return n.route.id||S(!1),n.route.id}function tR(){return tS(tw.UseRouteId)}function tx(){return tE(tw.UseNavigation).navigation}function tC(){let e=tb(tg.UseRevalidator),t=tE(tw.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tP(){let{matches:e,loaderData:t}=tE(tw.UseMatches);return p.useMemo(()=>e.map(e=>U(e,t)),[e,t])}function tD(){let e=tE(tw.UseLoaderData),t=tS(tw.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tL(e){return tE(tw.UseRouteLoaderData).loaderData[e]}function tk(){let e=tE(tw.UseActionData),t=tS(tw.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function t_(){var e;let t=p.useContext(e9),r=tE(tw.UseRouteError),n=tS(tw.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tA(){let e=p.useContext(e3);return null==e?void 0:e._data}function tT(){let e=p.useContext(e3);return null==e?void 0:e._error}let tU=0;function tj(e){let{router:t,basename:r}=tb(tg.UseBlocker),n=tE(tw.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e7({},n,{pathname:B(n.pathname,r)||n.pathname}),nextLocation:e7({},a,{pathname:B(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tU);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ed}let tM={},tO=(e,t,r)=>{};function tF(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&tO("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath||tO("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&tO("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&tO("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&tO("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&tO("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let tN=p.startTransition;function tB(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=w({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tN?tN(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tF(o),[o]),p.createElement(tW,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tI(e){let{to:t,replace:r,state:n,relative:a}=e;tt()||S(!1);let{future:o,static:i}=p.useContext(e5),{matches:l}=p.useContext(e8),{pathname:s}=tr(),u=ti(),c=JSON.stringify($(t,W(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tz(e){return tu(e.context)}function tH(e){S(!1)}function tW(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;tt()&&S(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e7({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=D(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=B(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e5.Provider,{value:u},p.createElement(e6.Provider,{children:r,value:y}))}function t$(e){let{children:t,location:r}=e;return tf(tX(t),r)}function tV(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tY,{resolve:n,errorElement:r},p.createElement(tq,null,t))}var tJ=((l=tJ||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tK=new Promise(()=>{});class tY extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tJ.pending;if(r instanceof Promise)if(this.state.error){a=tJ.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tJ.error:"_data"in n?tJ.success:tJ.pending:(a=tJ.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tJ.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tJ.error&&n._error instanceof X)throw tK;if(a===tJ.error&&!t)throw n._error;if(a===tJ.error)return p.createElement(e3.Provider,{value:n,children:t});if(a===tJ.success)return p.createElement(e3.Provider,{value:n,children:e});throw n}}function tq(e){let{children:t}=e,r=tA(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tX(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tX(e.props.children,a));e.type!==tH&&S(!1),e.props.index&&e.props.children&&S(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tX(e.props.children,a)),r.push(o)}),r}function tG(e){return ty(e)}function tQ(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function tZ(e,t){return em({basename:null==t?void 0:t.basename,future:e7({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tQ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function t0(){return(t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t1(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let t7="application/x-www-form-urlencoded";function t4(e){return null!=e&&"string"==typeof e.tagName}function t2(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t3=null,t5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t6(e){return null==e||t5.has(e)?e:null}let t8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t9=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],re=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function rt(e,t){return em({basename:null==t?void 0:t.basename,future:t0({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rn(),routes:e,mapRouteProperties:tQ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rr(e,t){return em({basename:null==t?void 0:t.basename,future:t0({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:E({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rn(),routes:e,mapRouteProperties:tQ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rn(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=t0({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new er(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let ra=p.createContext({isTransitioning:!1}),ro=p.createContext(new Map),ri=p.startTransition,rl=v.flushSync,rs=p.useId;function ru(e){rl?rl(e):e()}class rc{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rd(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)ri?ri(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?ru(()=>o(e)):w(()=>o(e)));if(a){ru(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{ru(()=>o(e))});t.finished.finally(()=>{ru(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),ru(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new rc)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tF(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e4.Provider,{value:R},p.createElement(e2.Provider,{value:a},p.createElement(ro.Provider,{value:y.current},p.createElement(ra.Provider,{value:s},p.createElement(tW,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rh,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rh=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tf(t,void 0,n,r)});function rf(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ri?ri(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tF(n),[n]),p.createElement(tW,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rp(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=E({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ri?ri(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tF(n),[n]),p.createElement(tW,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rm(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&ri?ri(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tF(n),[n]),p.createElement(tW,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let rv="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ry=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rg=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t1(e,t8),{basename:f}=p.useContext(e5),m=!1;if("string"==typeof u&&ry.test(u)&&(r=u,rv))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=B(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=te(u,{relative:a}),y=rx(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",t0({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rw=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t1(e,t9),h=td(s,{relative:d.relative}),f=tr(),m=p.useContext(e2),{navigator:v,basename:y}=p.useContext(e5),g=null!=m&&rF(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=B(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rg,t0({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rb=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t1(e,re),m=rL(),v=rk(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",t0({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rE(e){let{getKey:t,storageKey:r}=e;return rj({getKey:t,storageKey:r}),null}function rS(e){let t=p.useContext(e4);return t||S(!1),t}function rR(e){let t=p.useContext(e2);return t||S(!1),t}function rx(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=ti(),u=tr(),c=td(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:P(u)===P(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rC(e){let t=p.useRef(t2(e)),r=p.useRef(!1),n=tr(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t2(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=ti(),i=p.useCallback((e,t)=>{let n=t2("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rP=0,rD=()=>"__"+String(++rP)+"__";function rL(){let{router:e}=rS(h.UseSubmit),{basename:t}=p.useContext(e5),r=tR();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"undefined"==typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(t4(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?B(i,t):null,r=e.getAttribute("method")||"get",a=t6(e.getAttribute("enctype"))||t7,o=new FormData(e)}else if(t4(e)&&"button"===e.tagName.toLowerCase()||t4(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?B(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t6(e.getAttribute("formenctype"))||t6(i.getAttribute("enctype"))||t7,o=new FormData(i,e),!function(){if(null===t3)try{new FormData(document.createElement("form"),0),t3=!1}catch(e){t3=!0}return t3}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(t4(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t7,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rD();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function rk(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e5),a=p.useContext(e8);a||S(!1);let[o]=a.matches.slice(-1),i=t0({},td(e||".",{relative:r})),l=tr();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:V([n,i.pathname])),P(i)}function r_(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rS(h.UseFetcher),a=rR(f.UseFetcher),o=p.useContext(ro),i=p.useContext(e8),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||S(!1),i||S(!1),null==l&&S(!1);let s=rs?rs():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rD()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||S(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rL(),v=p.useCallback((e,t)=>{m(e,t0({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rb,t0({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||ec,w=o.get(u);return p.useMemo(()=>t0({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function rA(){return Array.from(rR(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return t0({},r,{key:t})})}let rT="react-router-scroll-positions",rU={};function rj(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rS(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rR(f.UseScrollRestoration),{basename:i}=p.useContext(e5),l=tr(),s=tP(),u=tx();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(p.useCallback(()=>{"idle"===u.state&&(rU[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rT,JSON.stringify(rU))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"undefined"!=typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rT);e&&(rU=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(t0({},e,{pathname:B(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rU,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rM(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rO(e){let{when:t,message:r}=e,n=tj(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rF(e,t){void 0===t&&(t={});let r=p.useContext(ra);null==r&&S(!1);let{basename:n}=rS(h.useViewTransitionState),a=td(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=B(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=B(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=F(a.pathname,i)||null!=F(a.pathname,o)}}}]);