@learncard/react 2.5.15 → 2.5.17

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 (462) hide show
  1. package/package.json +2 -2
  2. package/dist/base.css +0 -1
  3. package/dist/base.js +0 -3
  4. package/dist/cjs/AchievementCard-f0130caa.js +0 -67
  5. package/dist/cjs/AchievementCard-f0130caa.js.map +0 -1
  6. package/dist/cjs/ArrowArcLeft.svg +0 -4
  7. package/dist/cjs/ArrowArcRight.svg +0 -4
  8. package/dist/cjs/AwardRibbon-14ba45fb.js +0 -33
  9. package/dist/cjs/AwardRibbon-14ba45fb.js.map +0 -1
  10. package/dist/cjs/BoostGenericCard-315c6b82.js +0 -77
  11. package/dist/cjs/BoostGenericCard-315c6b82.js.map +0 -1
  12. package/dist/cjs/BoostSmallCard-30f75abb.js +0 -117
  13. package/dist/cjs/BoostSmallCard-30f75abb.js.map +0 -1
  14. package/dist/cjs/Button-a7af702b.js +0 -18
  15. package/dist/cjs/Button-a7af702b.js.map +0 -1
  16. package/dist/cjs/CaretRightFilled.svg +0 -3
  17. package/dist/cjs/Checkmark-f611aa4d.js +0 -58
  18. package/dist/cjs/Checkmark-f611aa4d.js.map +0 -1
  19. package/dist/cjs/CircleCheckButton-43c96841.js +0 -30
  20. package/dist/cjs/CircleCheckButton-43c96841.js.map +0 -1
  21. package/dist/cjs/CircleIcon-a45953f5.js +0 -1083
  22. package/dist/cjs/CircleIcon-a45953f5.js.map +0 -1
  23. package/dist/cjs/CircleSpinner-093cce04.js +0 -49
  24. package/dist/cjs/CircleSpinner-093cce04.js.map +0 -1
  25. package/dist/cjs/CourseCard-338a32ee.js +0 -92
  26. package/dist/cjs/CourseCard-338a32ee.js.map +0 -1
  27. package/dist/cjs/CourseVerticalCard-b76f5407.js +0 -98
  28. package/dist/cjs/CourseVerticalCard-b76f5407.js.map +0 -1
  29. package/dist/cjs/FlippyCard-209549c5.js +0 -34
  30. package/dist/cjs/FlippyCard-209549c5.js.map +0 -1
  31. package/dist/cjs/GenericArrow-8dfb261d.js +0 -27
  32. package/dist/cjs/GenericArrow-8dfb261d.js.map +0 -1
  33. package/dist/cjs/GenericCard-9674fcc0.js +0 -61
  34. package/dist/cjs/GenericCard-9674fcc0.js.map +0 -1
  35. package/dist/cjs/GreenCheckCircle.svg +0 -4
  36. package/dist/cjs/JobHistoryCard-05a3f98b.js +0 -43
  37. package/dist/cjs/JobHistoryCard-05a3f98b.js.map +0 -1
  38. package/dist/cjs/JobListCard-c662e649.js +0 -127
  39. package/dist/cjs/JobListCard-c662e649.js.map +0 -1
  40. package/dist/cjs/LearnCardCreditCardBackFace-87cc8b9f.js +0 -72
  41. package/dist/cjs/LearnCardCreditCardBackFace-87cc8b9f.js.map +0 -1
  42. package/dist/cjs/LearnCardCreditCardFrontFace-4452fd7a.js +0 -78
  43. package/dist/cjs/LearnCardCreditCardFrontFace-4452fd7a.js.map +0 -1
  44. package/dist/cjs/LearnPill-5c9bf172.js +0 -40
  45. package/dist/cjs/LearnPill-5c9bf172.js.map +0 -1
  46. package/dist/cjs/Lightbulb-1c28af02.js +0 -22
  47. package/dist/cjs/Lightbulb-1c28af02.js.map +0 -1
  48. package/dist/cjs/MiniVCThumbnail-a78e44f2.js +0 -69
  49. package/dist/cjs/MiniVCThumbnail-a78e44f2.js.map +0 -1
  50. package/dist/cjs/Notification-9d230f1b.js +0 -94
  51. package/dist/cjs/Notification-9d230f1b.js.map +0 -1
  52. package/dist/cjs/NotificationBoostCard-3b3bd47d.js +0 -121
  53. package/dist/cjs/NotificationBoostCard-3b3bd47d.js.map +0 -1
  54. package/dist/cjs/NotificationUserAcceptedBoostCard-423b9320.js +0 -74
  55. package/dist/cjs/NotificationUserAcceptedBoostCard-423b9320.js.map +0 -1
  56. package/dist/cjs/NotificationUserCard-d4dab06c.js +0 -94
  57. package/dist/cjs/NotificationUserCard-d4dab06c.js.map +0 -1
  58. package/dist/cjs/QRCodeCard-efaa58e1.js +0 -42
  59. package/dist/cjs/QRCodeCard-efaa58e1.js.map +0 -1
  60. package/dist/cjs/RedXCircle.svg +0 -5
  61. package/dist/cjs/RoundedPill-85e7ed68.js +0 -106
  62. package/dist/cjs/RoundedPill-85e7ed68.js.map +0 -1
  63. package/dist/cjs/SchoolIDCard-1baf77e8.js +0 -4728
  64. package/dist/cjs/SchoolIDCard-1baf77e8.js.map +0 -1
  65. package/dist/cjs/SkillTabCard-14ba0618.js +0 -42
  66. package/dist/cjs/SkillTabCard-14ba0618.js.map +0 -1
  67. package/dist/cjs/SkillVerticalCard-3eb3a8e9.js +0 -35
  68. package/dist/cjs/SkillVerticalCard-3eb3a8e9.js.map +0 -1
  69. package/dist/cjs/SkillsCard-4b6dbb4f.js +0 -66
  70. package/dist/cjs/SkillsCard-4b6dbb4f.js.map +0 -1
  71. package/dist/cjs/SkillsStatsCard-97a35a88.js +0 -77
  72. package/dist/cjs/SkillsStatsCard-97a35a88.js.map +0 -1
  73. package/dist/cjs/SmallAchievementCard-c76701ce.js +0 -43
  74. package/dist/cjs/SmallAchievementCard-c76701ce.js.map +0 -1
  75. package/dist/cjs/Trophy-9ede7f2b.js +0 -25
  76. package/dist/cjs/Trophy-9ede7f2b.js.map +0 -1
  77. package/dist/cjs/User-92f9cf40.js +0 -91
  78. package/dist/cjs/User-92f9cf40.js.map +0 -1
  79. package/dist/cjs/VCCard-b6ddea8f.js +0 -79
  80. package/dist/cjs/VCCard-b6ddea8f.js.map +0 -1
  81. package/dist/cjs/VCDisplayBackFace-7000dc04.js +0 -87
  82. package/dist/cjs/VCDisplayBackFace-7000dc04.js.map +0 -1
  83. package/dist/cjs/VCDisplayCard-043dc048.js +0 -191
  84. package/dist/cjs/VCDisplayCard-043dc048.js.map +0 -1
  85. package/dist/cjs/VCDisplayCard2-3a96dc6a.js +0 -1005
  86. package/dist/cjs/VCDisplayCard2-3a96dc6a.js.map +0 -1
  87. package/dist/cjs/VCThumbnail-6bf86bb2.js +0 -143
  88. package/dist/cjs/VCThumbnail-6bf86bb2.js.map +0 -1
  89. package/dist/cjs/VCVerificationCheck-46fa75d3.js +0 -81
  90. package/dist/cjs/VCVerificationCheck-46fa75d3.js.map +0 -1
  91. package/dist/cjs/VCVerificationPill-f270da3c.js +0 -75
  92. package/dist/cjs/VCVerificationPill-f270da3c.js.map +0 -1
  93. package/dist/cjs/X.svg +0 -4
  94. package/dist/cjs/YellowWarningCircle.svg +0 -4
  95. package/dist/cjs/addawardlight.svg +0 -8
  96. package/dist/cjs/award.svg +0 -3
  97. package/dist/cjs/badge.png +0 -0
  98. package/dist/cjs/briefcase.svg +0 -6
  99. package/dist/cjs/card-chip.svg +0 -26
  100. package/dist/cjs/coins.svg +0 -3
  101. package/dist/cjs/constants-35d9ebc6.js +0 -109
  102. package/dist/cjs/constants-35d9ebc6.js.map +0 -1
  103. package/dist/cjs/contactless-symbol.svg +0 -3
  104. package/dist/cjs/credential.helpers-86774cc9.js +0 -2188
  105. package/dist/cjs/credential.helpers-86774cc9.js.map +0 -1
  106. package/dist/cjs/default-face.jpeg +0 -0
  107. package/dist/cjs/gradcaplight.svg +0 -3
  108. package/dist/cjs/graduation.svg +0 -3
  109. package/dist/cjs/icon.green.fat-arrow.png +0 -0
  110. package/dist/cjs/icons-ac6eb6ec.js +0 -48
  111. package/dist/cjs/icons-ac6eb6ec.js.map +0 -1
  112. package/dist/cjs/index-82de573c.js +0 -774
  113. package/dist/cjs/index-82de573c.js.map +0 -1
  114. package/dist/cjs/index-83152f8d.js +0 -74
  115. package/dist/cjs/index-83152f8d.js.map +0 -1
  116. package/dist/cjs/index-a961acab.js +0 -3538
  117. package/dist/cjs/index-a961acab.js.map +0 -1
  118. package/dist/cjs/index-d836b84d.js +0 -51
  119. package/dist/cjs/index-d836b84d.js.map +0 -1
  120. package/dist/cjs/index.js +0 -161
  121. package/dist/cjs/index.js.map +0 -1
  122. package/dist/cjs/index10.js +0 -11
  123. package/dist/cjs/index10.js.map +0 -1
  124. package/dist/cjs/index11.js +0 -36
  125. package/dist/cjs/index11.js.map +0 -1
  126. package/dist/cjs/index12.js +0 -161
  127. package/dist/cjs/index12.js.map +0 -1
  128. package/dist/cjs/index13.js +0 -12
  129. package/dist/cjs/index13.js.map +0 -1
  130. package/dist/cjs/index14.js +0 -24
  131. package/dist/cjs/index14.js.map +0 -1
  132. package/dist/cjs/index15.js +0 -12
  133. package/dist/cjs/index15.js.map +0 -1
  134. package/dist/cjs/index16.js +0 -14
  135. package/dist/cjs/index16.js.map +0 -1
  136. package/dist/cjs/index17.js +0 -23
  137. package/dist/cjs/index17.js.map +0 -1
  138. package/dist/cjs/index18.js +0 -11
  139. package/dist/cjs/index18.js.map +0 -1
  140. package/dist/cjs/index19.js +0 -12
  141. package/dist/cjs/index19.js.map +0 -1
  142. package/dist/cjs/index2.js +0 -37
  143. package/dist/cjs/index2.js.map +0 -1
  144. package/dist/cjs/index20.js +0 -17
  145. package/dist/cjs/index20.js.map +0 -1
  146. package/dist/cjs/index21.js +0 -19
  147. package/dist/cjs/index21.js.map +0 -1
  148. package/dist/cjs/index22.js +0 -15
  149. package/dist/cjs/index22.js.map +0 -1
  150. package/dist/cjs/index23.js +0 -17
  151. package/dist/cjs/index23.js.map +0 -1
  152. package/dist/cjs/index24.js +0 -12
  153. package/dist/cjs/index24.js.map +0 -1
  154. package/dist/cjs/index25.js +0 -24
  155. package/dist/cjs/index25.js.map +0 -1
  156. package/dist/cjs/index26.js +0 -40
  157. package/dist/cjs/index26.js.map +0 -1
  158. package/dist/cjs/index27.js +0 -11
  159. package/dist/cjs/index27.js.map +0 -1
  160. package/dist/cjs/index28.js +0 -12
  161. package/dist/cjs/index28.js.map +0 -1
  162. package/dist/cjs/index29.js +0 -12
  163. package/dist/cjs/index29.js.map +0 -1
  164. package/dist/cjs/index3.js +0 -36
  165. package/dist/cjs/index3.js.map +0 -1
  166. package/dist/cjs/index30.js +0 -25
  167. package/dist/cjs/index30.js.map +0 -1
  168. package/dist/cjs/index31.js +0 -12
  169. package/dist/cjs/index31.js.map +0 -1
  170. package/dist/cjs/index32.js +0 -12
  171. package/dist/cjs/index32.js.map +0 -1
  172. package/dist/cjs/index33.js +0 -24
  173. package/dist/cjs/index33.js.map +0 -1
  174. package/dist/cjs/index34.js +0 -31
  175. package/dist/cjs/index34.js.map +0 -1
  176. package/dist/cjs/index35.js +0 -22
  177. package/dist/cjs/index35.js.map +0 -1
  178. package/dist/cjs/index36.js +0 -26
  179. package/dist/cjs/index36.js.map +0 -1
  180. package/dist/cjs/index37.js +0 -20
  181. package/dist/cjs/index37.js.map +0 -1
  182. package/dist/cjs/index38.js +0 -10
  183. package/dist/cjs/index38.js.map +0 -1
  184. package/dist/cjs/index39.js +0 -13
  185. package/dist/cjs/index39.js.map +0 -1
  186. package/dist/cjs/index4.js +0 -39
  187. package/dist/cjs/index4.js.map +0 -1
  188. package/dist/cjs/index40.js +0 -15
  189. package/dist/cjs/index40.js.map +0 -1
  190. package/dist/cjs/index41.js +0 -15
  191. package/dist/cjs/index41.js.map +0 -1
  192. package/dist/cjs/index5.js +0 -11
  193. package/dist/cjs/index5.js.map +0 -1
  194. package/dist/cjs/index6.js +0 -24
  195. package/dist/cjs/index6.js.map +0 -1
  196. package/dist/cjs/index7.js +0 -24
  197. package/dist/cjs/index7.js.map +0 -1
  198. package/dist/cjs/index8.js +0 -15
  199. package/dist/cjs/index8.js.map +0 -1
  200. package/dist/cjs/index9.js +0 -27
  201. package/dist/cjs/index9.js.map +0 -1
  202. package/dist/cjs/lhplaceholder.png +0 -0
  203. package/dist/cjs/lightbulb.svg +0 -3
  204. package/dist/cjs/master-card-logo.svg +0 -20
  205. package/dist/cjs/minigradcapcolored.svg +0 -3
  206. package/dist/cjs/minijob.svg +0 -5
  207. package/dist/cjs/minipuzzle.svg +0 -3
  208. package/dist/cjs/minipuzzlecolored.svg +0 -3
  209. package/dist/cjs/minitrophy.svg +0 -3
  210. package/dist/cjs/minitrophycolored.svg +0 -3
  211. package/dist/cjs/notifications-56c6fc94.js +0 -21
  212. package/dist/cjs/notifications-56c6fc94.js.map +0 -1
  213. package/dist/cjs/skillgraph.svg +0 -29
  214. package/dist/cjs/skillplaceholder.png +0 -0
  215. package/dist/cjs/social-badge.png +0 -0
  216. package/dist/cjs/trophy.svg +0 -3
  217. package/dist/cjs/types-c83b33ec.js +0 -115
  218. package/dist/cjs/types-c83b33ec.js.map +0 -1
  219. package/dist/cjs/types-e4d9a257.js +0 -25
  220. package/dist/cjs/types-e4d9a257.js.map +0 -1
  221. package/dist/cjs/types.esm-6fa436eb.js +0 -4080
  222. package/dist/cjs/types.esm-6fa436eb.js.map +0 -1
  223. package/dist/cjs/user.svg +0 -4
  224. package/dist/cjs/vc.check.svg +0 -10
  225. package/dist/cjs/verified-check.png +0 -0
  226. package/dist/cjs/walletTrophy.webp +0 -0
  227. package/dist/cjs/walletcurrency.webp +0 -0
  228. package/dist/cjs/walletids.webp +0 -0
  229. package/dist/cjs/walletjobhistory.webp +0 -0
  230. package/dist/cjs/walletlearninghistory.webp +0 -0
  231. package/dist/cjs/walletskills.webp +0 -0
  232. package/dist/esm/AchievementCard-b9eb551c.js +0 -61
  233. package/dist/esm/AchievementCard-b9eb551c.js.map +0 -1
  234. package/dist/esm/ArrowArcLeft.svg +0 -4
  235. package/dist/esm/ArrowArcRight.svg +0 -4
  236. package/dist/esm/AwardRibbon-3e682281.js +0 -27
  237. package/dist/esm/AwardRibbon-3e682281.js.map +0 -1
  238. package/dist/esm/BoostGenericCard-9c14e541.js +0 -71
  239. package/dist/esm/BoostGenericCard-9c14e541.js.map +0 -1
  240. package/dist/esm/BoostSmallCard-e42ec5ed.js +0 -108
  241. package/dist/esm/BoostSmallCard-e42ec5ed.js.map +0 -1
  242. package/dist/esm/Button-5f805204.js +0 -12
  243. package/dist/esm/Button-5f805204.js.map +0 -1
  244. package/dist/esm/CaretRightFilled.svg +0 -3
  245. package/dist/esm/Checkmark-d8b8f43d.js +0 -52
  246. package/dist/esm/Checkmark-d8b8f43d.js.map +0 -1
  247. package/dist/esm/CircleCheckButton-551054f6.js +0 -24
  248. package/dist/esm/CircleCheckButton-551054f6.js.map +0 -1
  249. package/dist/esm/CircleIcon-38b874e2.js +0 -1076
  250. package/dist/esm/CircleIcon-38b874e2.js.map +0 -1
  251. package/dist/esm/CircleSpinner-9b8b1a6b.js +0 -42
  252. package/dist/esm/CircleSpinner-9b8b1a6b.js.map +0 -1
  253. package/dist/esm/CourseCard-663ff174.js +0 -82
  254. package/dist/esm/CourseCard-663ff174.js.map +0 -1
  255. package/dist/esm/CourseVerticalCard-922a0860.js +0 -88
  256. package/dist/esm/CourseVerticalCard-922a0860.js.map +0 -1
  257. package/dist/esm/FlippyCard-a2de5cf1.js +0 -28
  258. package/dist/esm/FlippyCard-a2de5cf1.js.map +0 -1
  259. package/dist/esm/GenericArrow-0dba1707.js +0 -21
  260. package/dist/esm/GenericArrow-0dba1707.js.map +0 -1
  261. package/dist/esm/GenericCard-eaab7759.js +0 -55
  262. package/dist/esm/GenericCard-eaab7759.js.map +0 -1
  263. package/dist/esm/GreenCheckCircle.svg +0 -4
  264. package/dist/esm/JobHistoryCard-80d4ef27.js +0 -37
  265. package/dist/esm/JobHistoryCard-80d4ef27.js.map +0 -1
  266. package/dist/esm/JobListCard-5e3879ea.js +0 -120
  267. package/dist/esm/JobListCard-5e3879ea.js.map +0 -1
  268. package/dist/esm/LearnCardCreditCardBackFace-9baa9e6b.js +0 -65
  269. package/dist/esm/LearnCardCreditCardBackFace-9baa9e6b.js.map +0 -1
  270. package/dist/esm/LearnCardCreditCardFrontFace-cf793917.js +0 -70
  271. package/dist/esm/LearnCardCreditCardFrontFace-cf793917.js.map +0 -1
  272. package/dist/esm/LearnPill-3d9564d4.js +0 -34
  273. package/dist/esm/LearnPill-3d9564d4.js.map +0 -1
  274. package/dist/esm/Lightbulb-a3c1679f.js +0 -16
  275. package/dist/esm/Lightbulb-a3c1679f.js.map +0 -1
  276. package/dist/esm/MiniVCThumbnail-6a07e810.js +0 -62
  277. package/dist/esm/MiniVCThumbnail-6a07e810.js.map +0 -1
  278. package/dist/esm/Notification-0f58ef6a.js +0 -88
  279. package/dist/esm/Notification-0f58ef6a.js.map +0 -1
  280. package/dist/esm/NotificationBoostCard-134edf94.js +0 -112
  281. package/dist/esm/NotificationBoostCard-134edf94.js.map +0 -1
  282. package/dist/esm/NotificationUserAcceptedBoostCard-8c13bd3f.js +0 -66
  283. package/dist/esm/NotificationUserAcceptedBoostCard-8c13bd3f.js.map +0 -1
  284. package/dist/esm/NotificationUserCard-dbcc80f9.js +0 -86
  285. package/dist/esm/NotificationUserCard-dbcc80f9.js.map +0 -1
  286. package/dist/esm/QRCodeCard-c57e2067.js +0 -36
  287. package/dist/esm/QRCodeCard-c57e2067.js.map +0 -1
  288. package/dist/esm/RedXCircle.svg +0 -5
  289. package/dist/esm/RoundedPill-731211b3.js +0 -99
  290. package/dist/esm/RoundedPill-731211b3.js.map +0 -1
  291. package/dist/esm/SchoolIDCard-3b746226.js +0 -4722
  292. package/dist/esm/SchoolIDCard-3b746226.js.map +0 -1
  293. package/dist/esm/SkillTabCard-d86c6452.js +0 -36
  294. package/dist/esm/SkillTabCard-d86c6452.js.map +0 -1
  295. package/dist/esm/SkillVerticalCard-108f49bb.js +0 -28
  296. package/dist/esm/SkillVerticalCard-108f49bb.js.map +0 -1
  297. package/dist/esm/SkillsCard-92a51db2.js +0 -59
  298. package/dist/esm/SkillsCard-92a51db2.js.map +0 -1
  299. package/dist/esm/SkillsStatsCard-1628fe9c.js +0 -70
  300. package/dist/esm/SkillsStatsCard-1628fe9c.js.map +0 -1
  301. package/dist/esm/SmallAchievementCard-2d87ac82.js +0 -37
  302. package/dist/esm/SmallAchievementCard-2d87ac82.js.map +0 -1
  303. package/dist/esm/Trophy-702610b8.js +0 -19
  304. package/dist/esm/Trophy-702610b8.js.map +0 -1
  305. package/dist/esm/User-fd276ad5.js +0 -82
  306. package/dist/esm/User-fd276ad5.js.map +0 -1
  307. package/dist/esm/VCCard-ef720e3a.js +0 -73
  308. package/dist/esm/VCCard-ef720e3a.js.map +0 -1
  309. package/dist/esm/VCDisplayBackFace-927c7c9e.js +0 -80
  310. package/dist/esm/VCDisplayBackFace-927c7c9e.js.map +0 -1
  311. package/dist/esm/VCDisplayCard-aea6b2e1.js +0 -183
  312. package/dist/esm/VCDisplayCard-aea6b2e1.js.map +0 -1
  313. package/dist/esm/VCDisplayCard2-04aa53e0.js +0 -998
  314. package/dist/esm/VCDisplayCard2-04aa53e0.js.map +0 -1
  315. package/dist/esm/VCThumbnail-3c254bda.js +0 -135
  316. package/dist/esm/VCThumbnail-3c254bda.js.map +0 -1
  317. package/dist/esm/VCVerificationCheck-80249524.js +0 -72
  318. package/dist/esm/VCVerificationCheck-80249524.js.map +0 -1
  319. package/dist/esm/VCVerificationPill-2c7fa3de.js +0 -65
  320. package/dist/esm/VCVerificationPill-2c7fa3de.js.map +0 -1
  321. package/dist/esm/X.svg +0 -4
  322. package/dist/esm/YellowWarningCircle.svg +0 -4
  323. package/dist/esm/addawardlight.svg +0 -8
  324. package/dist/esm/award.svg +0 -3
  325. package/dist/esm/badge.png +0 -0
  326. package/dist/esm/briefcase.svg +0 -6
  327. package/dist/esm/card-chip.svg +0 -26
  328. package/dist/esm/coins.svg +0 -3
  329. package/dist/esm/constants-db0e356b.js +0 -89
  330. package/dist/esm/constants-db0e356b.js.map +0 -1
  331. package/dist/esm/contactless-symbol.svg +0 -3
  332. package/dist/esm/credential.helpers-d440380c.js +0 -2182
  333. package/dist/esm/credential.helpers-d440380c.js.map +0 -1
  334. package/dist/esm/default-face.jpeg +0 -0
  335. package/dist/esm/gradcaplight.svg +0 -3
  336. package/dist/esm/graduation.svg +0 -3
  337. package/dist/esm/icon.green.fat-arrow.png +0 -0
  338. package/dist/esm/icons-9d160530.js +0 -32
  339. package/dist/esm/icons-9d160530.js.map +0 -1
  340. package/dist/esm/index-7103ad3c.js +0 -46
  341. package/dist/esm/index-7103ad3c.js.map +0 -1
  342. package/dist/esm/index-7dcfe90e.js +0 -56
  343. package/dist/esm/index-7dcfe90e.js.map +0 -1
  344. package/dist/esm/index-aa1098e1.js +0 -768
  345. package/dist/esm/index-aa1098e1.js.map +0 -1
  346. package/dist/esm/index-e1f279c6.js +0 -3529
  347. package/dist/esm/index-e1f279c6.js.map +0 -1
  348. package/dist/esm/index.js +0 -96
  349. package/dist/esm/index.js.map +0 -1
  350. package/dist/esm/index10.js +0 -3
  351. package/dist/esm/index10.js.map +0 -1
  352. package/dist/esm/index11.js +0 -28
  353. package/dist/esm/index11.js.map +0 -1
  354. package/dist/esm/index12.js +0 -96
  355. package/dist/esm/index12.js.map +0 -1
  356. package/dist/esm/index13.js +0 -4
  357. package/dist/esm/index13.js.map +0 -1
  358. package/dist/esm/index14.js +0 -15
  359. package/dist/esm/index14.js.map +0 -1
  360. package/dist/esm/index15.js +0 -4
  361. package/dist/esm/index15.js.map +0 -1
  362. package/dist/esm/index16.js +0 -6
  363. package/dist/esm/index16.js.map +0 -1
  364. package/dist/esm/index17.js +0 -15
  365. package/dist/esm/index17.js.map +0 -1
  366. package/dist/esm/index18.js +0 -3
  367. package/dist/esm/index18.js.map +0 -1
  368. package/dist/esm/index19.js +0 -4
  369. package/dist/esm/index19.js.map +0 -1
  370. package/dist/esm/index2.js +0 -29
  371. package/dist/esm/index2.js.map +0 -1
  372. package/dist/esm/index20.js +0 -8
  373. package/dist/esm/index20.js.map +0 -1
  374. package/dist/esm/index21.js +0 -11
  375. package/dist/esm/index21.js.map +0 -1
  376. package/dist/esm/index22.js +0 -7
  377. package/dist/esm/index22.js.map +0 -1
  378. package/dist/esm/index23.js +0 -8
  379. package/dist/esm/index23.js.map +0 -1
  380. package/dist/esm/index24.js +0 -4
  381. package/dist/esm/index24.js.map +0 -1
  382. package/dist/esm/index25.js +0 -15
  383. package/dist/esm/index25.js.map +0 -1
  384. package/dist/esm/index26.js +0 -28
  385. package/dist/esm/index26.js.map +0 -1
  386. package/dist/esm/index27.js +0 -3
  387. package/dist/esm/index27.js.map +0 -1
  388. package/dist/esm/index28.js +0 -3
  389. package/dist/esm/index28.js.map +0 -1
  390. package/dist/esm/index29.js +0 -4
  391. package/dist/esm/index29.js.map +0 -1
  392. package/dist/esm/index3.js +0 -28
  393. package/dist/esm/index3.js.map +0 -1
  394. package/dist/esm/index30.js +0 -17
  395. package/dist/esm/index30.js.map +0 -1
  396. package/dist/esm/index31.js +0 -4
  397. package/dist/esm/index31.js.map +0 -1
  398. package/dist/esm/index32.js +0 -4
  399. package/dist/esm/index32.js.map +0 -1
  400. package/dist/esm/index33.js +0 -8
  401. package/dist/esm/index33.js.map +0 -1
  402. package/dist/esm/index34.js +0 -23
  403. package/dist/esm/index34.js.map +0 -1
  404. package/dist/esm/index35.js +0 -14
  405. package/dist/esm/index35.js.map +0 -1
  406. package/dist/esm/index36.js +0 -18
  407. package/dist/esm/index36.js.map +0 -1
  408. package/dist/esm/index37.js +0 -12
  409. package/dist/esm/index37.js.map +0 -1
  410. package/dist/esm/index38.js +0 -7
  411. package/dist/esm/index38.js.map +0 -1
  412. package/dist/esm/index39.js +0 -5
  413. package/dist/esm/index39.js.map +0 -1
  414. package/dist/esm/index4.js +0 -31
  415. package/dist/esm/index4.js.map +0 -1
  416. package/dist/esm/index40.js +0 -5
  417. package/dist/esm/index40.js.map +0 -1
  418. package/dist/esm/index41.js +0 -7
  419. package/dist/esm/index41.js.map +0 -1
  420. package/dist/esm/index5.js +0 -3
  421. package/dist/esm/index5.js.map +0 -1
  422. package/dist/esm/index6.js +0 -16
  423. package/dist/esm/index6.js.map +0 -1
  424. package/dist/esm/index7.js +0 -15
  425. package/dist/esm/index7.js.map +0 -1
  426. package/dist/esm/index8.js +0 -7
  427. package/dist/esm/index8.js.map +0 -1
  428. package/dist/esm/index9.js +0 -19
  429. package/dist/esm/index9.js.map +0 -1
  430. package/dist/esm/lhplaceholder.png +0 -0
  431. package/dist/esm/lightbulb.svg +0 -3
  432. package/dist/esm/master-card-logo.svg +0 -20
  433. package/dist/esm/minigradcapcolored.svg +0 -3
  434. package/dist/esm/minijob.svg +0 -5
  435. package/dist/esm/minipuzzle.svg +0 -3
  436. package/dist/esm/minipuzzlecolored.svg +0 -3
  437. package/dist/esm/minitrophy.svg +0 -3
  438. package/dist/esm/minitrophycolored.svg +0 -3
  439. package/dist/esm/notifications-009bbd80.js +0 -18
  440. package/dist/esm/notifications-009bbd80.js.map +0 -1
  441. package/dist/esm/skillgraph.svg +0 -29
  442. package/dist/esm/skillplaceholder.png +0 -0
  443. package/dist/esm/social-badge.png +0 -0
  444. package/dist/esm/trophy.svg +0 -3
  445. package/dist/esm/types-7081a9e5.js +0 -109
  446. package/dist/esm/types-7081a9e5.js.map +0 -1
  447. package/dist/esm/types-b32d28d5.js +0 -23
  448. package/dist/esm/types-b32d28d5.js.map +0 -1
  449. package/dist/esm/types.esm-ee6b190e.js +0 -4078
  450. package/dist/esm/types.esm-ee6b190e.js.map +0 -1
  451. package/dist/esm/user.svg +0 -4
  452. package/dist/esm/vc.check.svg +0 -10
  453. package/dist/esm/verified-check.png +0 -0
  454. package/dist/esm/walletTrophy.webp +0 -0
  455. package/dist/esm/walletcurrency.webp +0 -0
  456. package/dist/esm/walletids.webp +0 -0
  457. package/dist/esm/walletjobhistory.webp +0 -0
  458. package/dist/esm/walletlearninghistory.webp +0 -0
  459. package/dist/esm/walletskills.webp +0 -0
  460. package/dist/index.d.ts +0 -856
  461. package/dist/main.css +0 -1
  462. package/dist/main.js +0 -3
@@ -1,2188 +0,0 @@
1
- 'use strict';
2
-
3
- var types_esm = require('./types.esm-6fa436eb.js');
4
- var index = require('./index-a961acab.js');
5
-
6
- /**
7
- * @name addMilliseconds
8
- * @category Millisecond Helpers
9
- * @summary Add the specified number of milliseconds to the given date.
10
- *
11
- * @description
12
- * Add the specified number of milliseconds to the given date.
13
- *
14
- * @param {Date|Number} date - the date to be changed
15
- * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
16
- * @returns {Date} the new date with the milliseconds added
17
- * @throws {TypeError} 2 arguments required
18
- *
19
- * @example
20
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
21
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
22
- * //=> Thu Jul 10 2014 12:45:30.750
23
- */
24
-
25
- function addMilliseconds(dirtyDate, dirtyAmount) {
26
- index.requiredArgs(2, arguments);
27
- var timestamp = index.toDate(dirtyDate).getTime();
28
- var amount = index.toInteger(dirtyAmount);
29
- return new Date(timestamp + amount);
30
- }
31
-
32
- /**
33
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
34
- * They usually appear for dates that denote time before the timezones were introduced
35
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
36
- * and GMT+01:00:00 after that date)
37
- *
38
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
39
- * which would lead to incorrect calculations.
40
- *
41
- * This function returns the timezone offset in milliseconds that takes seconds in account.
42
- */
43
- function getTimezoneOffsetInMilliseconds(date) {
44
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
45
- utcDate.setUTCFullYear(date.getFullYear());
46
- return date.getTime() - utcDate.getTime();
47
- }
48
-
49
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
50
- /**
51
- * @name isDate
52
- * @category Common Helpers
53
- * @summary Is the given value a date?
54
- *
55
- * @description
56
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
57
- *
58
- * @param {*} value - the value to check
59
- * @returns {boolean} true if the given value is a date
60
- * @throws {TypeError} 1 arguments required
61
- *
62
- * @example
63
- * // For a valid date:
64
- * const result = isDate(new Date())
65
- * //=> true
66
- *
67
- * @example
68
- * // For an invalid date:
69
- * const result = isDate(new Date(NaN))
70
- * //=> true
71
- *
72
- * @example
73
- * // For some value:
74
- * const result = isDate('2014-02-31')
75
- * //=> false
76
- *
77
- * @example
78
- * // For an object:
79
- * const result = isDate({})
80
- * //=> false
81
- */
82
-
83
- function isDate(value) {
84
- index.requiredArgs(1, arguments);
85
- return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
86
- }
87
-
88
- /**
89
- * @name isValid
90
- * @category Common Helpers
91
- * @summary Is the given date valid?
92
- *
93
- * @description
94
- * Returns false if argument is Invalid Date and true otherwise.
95
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
96
- * Invalid Date is a Date, whose time value is NaN.
97
- *
98
- * Time value of Date: http://es5.github.io/#x15.9.1.1
99
- *
100
- * @param {*} date - the date to check
101
- * @returns {Boolean} the date is valid
102
- * @throws {TypeError} 1 argument required
103
- *
104
- * @example
105
- * // For the valid date:
106
- * const result = isValid(new Date(2014, 1, 31))
107
- * //=> true
108
- *
109
- * @example
110
- * // For the value, convertable into a date:
111
- * const result = isValid(1393804800000)
112
- * //=> true
113
- *
114
- * @example
115
- * // For the invalid date:
116
- * const result = isValid(new Date(''))
117
- * //=> false
118
- */
119
-
120
- function isValid(dirtyDate) {
121
- index.requiredArgs(1, arguments);
122
-
123
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
124
- return false;
125
- }
126
-
127
- var date = index.toDate(dirtyDate);
128
- return !isNaN(Number(date));
129
- }
130
-
131
- /**
132
- * @name subMilliseconds
133
- * @category Millisecond Helpers
134
- * @summary Subtract the specified number of milliseconds from the given date.
135
- *
136
- * @description
137
- * Subtract the specified number of milliseconds from the given date.
138
- *
139
- * @param {Date|Number} date - the date to be changed
140
- * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
141
- * @returns {Date} the new date with the milliseconds subtracted
142
- * @throws {TypeError} 2 arguments required
143
- *
144
- * @example
145
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
146
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
147
- * //=> Thu Jul 10 2014 12:45:29.250
148
- */
149
-
150
- function subMilliseconds(dirtyDate, dirtyAmount) {
151
- index.requiredArgs(2, arguments);
152
- var amount = index.toInteger(dirtyAmount);
153
- return addMilliseconds(dirtyDate, -amount);
154
- }
155
-
156
- var MILLISECONDS_IN_DAY = 86400000;
157
- function getUTCDayOfYear(dirtyDate) {
158
- index.requiredArgs(1, arguments);
159
- var date = index.toDate(dirtyDate);
160
- var timestamp = date.getTime();
161
- date.setUTCMonth(0, 1);
162
- date.setUTCHours(0, 0, 0, 0);
163
- var startOfYearTimestamp = date.getTime();
164
- var difference = timestamp - startOfYearTimestamp;
165
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
166
- }
167
-
168
- function addLeadingZeros(number, targetLength) {
169
- var sign = number < 0 ? '-' : '';
170
- var output = Math.abs(number).toString();
171
-
172
- while (output.length < targetLength) {
173
- output = '0' + output;
174
- }
175
-
176
- return sign + output;
177
- }
178
-
179
- /*
180
- * | | Unit | | Unit |
181
- * |-----|--------------------------------|-----|--------------------------------|
182
- * | a | AM, PM | A* | |
183
- * | d | Day of month | D | |
184
- * | h | Hour [1-12] | H | Hour [0-23] |
185
- * | m | Minute | M | Month |
186
- * | s | Second | S | Fraction of second |
187
- * | y | Year (abs) | Y | |
188
- *
189
- * Letters marked by * are not implemented but reserved by Unicode standard.
190
- */
191
-
192
- var formatters$1 = {
193
- // Year
194
- y: function y(date, token) {
195
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
196
- // | Year | y | yy | yyy | yyyy | yyyyy |
197
- // |----------|-------|----|-------|-------|-------|
198
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
199
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
200
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
201
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
202
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
203
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
204
-
205
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
206
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
207
- },
208
- // Month
209
- M: function M(date, token) {
210
- var month = date.getUTCMonth();
211
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
212
- },
213
- // Day of the month
214
- d: function d(date, token) {
215
- return addLeadingZeros(date.getUTCDate(), token.length);
216
- },
217
- // AM or PM
218
- a: function a(date, token) {
219
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
220
-
221
- switch (token) {
222
- case 'a':
223
- case 'aa':
224
- return dayPeriodEnumValue.toUpperCase();
225
-
226
- case 'aaa':
227
- return dayPeriodEnumValue;
228
-
229
- case 'aaaaa':
230
- return dayPeriodEnumValue[0];
231
-
232
- case 'aaaa':
233
- default:
234
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
235
- }
236
- },
237
- // Hour [1-12]
238
- h: function h(date, token) {
239
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
240
- },
241
- // Hour [0-23]
242
- H: function H(date, token) {
243
- return addLeadingZeros(date.getUTCHours(), token.length);
244
- },
245
- // Minute
246
- m: function m(date, token) {
247
- return addLeadingZeros(date.getUTCMinutes(), token.length);
248
- },
249
- // Second
250
- s: function s(date, token) {
251
- return addLeadingZeros(date.getUTCSeconds(), token.length);
252
- },
253
- // Fraction of second
254
- S: function S(date, token) {
255
- var numberOfDigits = token.length;
256
- var milliseconds = date.getUTCMilliseconds();
257
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
258
- return addLeadingZeros(fractionalSeconds, token.length);
259
- }
260
- };
261
-
262
- var dayPeriodEnum = {
263
- am: 'am',
264
- pm: 'pm',
265
- midnight: 'midnight',
266
- noon: 'noon',
267
- morning: 'morning',
268
- afternoon: 'afternoon',
269
- evening: 'evening',
270
- night: 'night'
271
- };
272
-
273
- /*
274
- * | | Unit | | Unit |
275
- * |-----|--------------------------------|-----|--------------------------------|
276
- * | a | AM, PM | A* | Milliseconds in day |
277
- * | b | AM, PM, noon, midnight | B | Flexible day period |
278
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
279
- * | d | Day of month | D | Day of year |
280
- * | e | Local day of week | E | Day of week |
281
- * | f | | F* | Day of week in month |
282
- * | g* | Modified Julian day | G | Era |
283
- * | h | Hour [1-12] | H | Hour [0-23] |
284
- * | i! | ISO day of week | I! | ISO week of year |
285
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
286
- * | k | Hour [1-24] | K | Hour [0-11] |
287
- * | l* | (deprecated) | L | Stand-alone month |
288
- * | m | Minute | M | Month |
289
- * | n | | N | |
290
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
291
- * | p! | Long localized time | P! | Long localized date |
292
- * | q | Stand-alone quarter | Q | Quarter |
293
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
294
- * | s | Second | S | Fraction of second |
295
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
296
- * | u | Extended year | U* | Cyclic year |
297
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
298
- * | w | Local week of year | W* | Week of month |
299
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
300
- * | y | Year (abs) | Y | Local week-numbering year |
301
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
302
- *
303
- * Letters marked by * are not implemented but reserved by Unicode standard.
304
- *
305
- * Letters marked by ! are non-standard, but implemented by date-fns:
306
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
307
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
308
- * i.e. 7 for Sunday, 1 for Monday, etc.
309
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
310
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
311
- * `R` is supposed to be used in conjunction with `I` and `i`
312
- * for universal ISO week-numbering date, whereas
313
- * `Y` is supposed to be used in conjunction with `w` and `e`
314
- * for week-numbering date specific to the locale.
315
- * - `P` is long localized date format
316
- * - `p` is long localized time format
317
- */
318
- var formatters = {
319
- // Era
320
- G: function G(date, token, localize) {
321
- var era = date.getUTCFullYear() > 0 ? 1 : 0;
322
-
323
- switch (token) {
324
- // AD, BC
325
- case 'G':
326
- case 'GG':
327
- case 'GGG':
328
- return localize.era(era, {
329
- width: 'abbreviated'
330
- });
331
- // A, B
332
-
333
- case 'GGGGG':
334
- return localize.era(era, {
335
- width: 'narrow'
336
- });
337
- // Anno Domini, Before Christ
338
-
339
- case 'GGGG':
340
- default:
341
- return localize.era(era, {
342
- width: 'wide'
343
- });
344
- }
345
- },
346
- // Year
347
- y: function y(date, token, localize) {
348
- // Ordinal number
349
- if (token === 'yo') {
350
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
351
-
352
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
353
- return localize.ordinalNumber(year, {
354
- unit: 'year'
355
- });
356
- }
357
-
358
- return formatters$1.y(date, token);
359
- },
360
- // Local week-numbering year
361
- Y: function Y(date, token, localize, options) {
362
- var signedWeekYear = index.getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
363
-
364
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
365
-
366
- if (token === 'YY') {
367
- var twoDigitYear = weekYear % 100;
368
- return addLeadingZeros(twoDigitYear, 2);
369
- } // Ordinal number
370
-
371
-
372
- if (token === 'Yo') {
373
- return localize.ordinalNumber(weekYear, {
374
- unit: 'year'
375
- });
376
- } // Padding
377
-
378
-
379
- return addLeadingZeros(weekYear, token.length);
380
- },
381
- // ISO week-numbering year
382
- R: function R(date, token) {
383
- var isoWeekYear = index.getUTCISOWeekYear(date); // Padding
384
-
385
- return addLeadingZeros(isoWeekYear, token.length);
386
- },
387
- // Extended year. This is a single number designating the year of this calendar system.
388
- // The main difference between `y` and `u` localizers are B.C. years:
389
- // | Year | `y` | `u` |
390
- // |------|-----|-----|
391
- // | AC 1 | 1 | 1 |
392
- // | BC 1 | 1 | 0 |
393
- // | BC 2 | 2 | -1 |
394
- // Also `yy` always returns the last two digits of a year,
395
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
396
- u: function u(date, token) {
397
- var year = date.getUTCFullYear();
398
- return addLeadingZeros(year, token.length);
399
- },
400
- // Quarter
401
- Q: function Q(date, token, localize) {
402
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
403
-
404
- switch (token) {
405
- // 1, 2, 3, 4
406
- case 'Q':
407
- return String(quarter);
408
- // 01, 02, 03, 04
409
-
410
- case 'QQ':
411
- return addLeadingZeros(quarter, 2);
412
- // 1st, 2nd, 3rd, 4th
413
-
414
- case 'Qo':
415
- return localize.ordinalNumber(quarter, {
416
- unit: 'quarter'
417
- });
418
- // Q1, Q2, Q3, Q4
419
-
420
- case 'QQQ':
421
- return localize.quarter(quarter, {
422
- width: 'abbreviated',
423
- context: 'formatting'
424
- });
425
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
426
-
427
- case 'QQQQQ':
428
- return localize.quarter(quarter, {
429
- width: 'narrow',
430
- context: 'formatting'
431
- });
432
- // 1st quarter, 2nd quarter, ...
433
-
434
- case 'QQQQ':
435
- default:
436
- return localize.quarter(quarter, {
437
- width: 'wide',
438
- context: 'formatting'
439
- });
440
- }
441
- },
442
- // Stand-alone quarter
443
- q: function q(date, token, localize) {
444
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
445
-
446
- switch (token) {
447
- // 1, 2, 3, 4
448
- case 'q':
449
- return String(quarter);
450
- // 01, 02, 03, 04
451
-
452
- case 'qq':
453
- return addLeadingZeros(quarter, 2);
454
- // 1st, 2nd, 3rd, 4th
455
-
456
- case 'qo':
457
- return localize.ordinalNumber(quarter, {
458
- unit: 'quarter'
459
- });
460
- // Q1, Q2, Q3, Q4
461
-
462
- case 'qqq':
463
- return localize.quarter(quarter, {
464
- width: 'abbreviated',
465
- context: 'standalone'
466
- });
467
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
468
-
469
- case 'qqqqq':
470
- return localize.quarter(quarter, {
471
- width: 'narrow',
472
- context: 'standalone'
473
- });
474
- // 1st quarter, 2nd quarter, ...
475
-
476
- case 'qqqq':
477
- default:
478
- return localize.quarter(quarter, {
479
- width: 'wide',
480
- context: 'standalone'
481
- });
482
- }
483
- },
484
- // Month
485
- M: function M(date, token, localize) {
486
- var month = date.getUTCMonth();
487
-
488
- switch (token) {
489
- case 'M':
490
- case 'MM':
491
- return formatters$1.M(date, token);
492
- // 1st, 2nd, ..., 12th
493
-
494
- case 'Mo':
495
- return localize.ordinalNumber(month + 1, {
496
- unit: 'month'
497
- });
498
- // Jan, Feb, ..., Dec
499
-
500
- case 'MMM':
501
- return localize.month(month, {
502
- width: 'abbreviated',
503
- context: 'formatting'
504
- });
505
- // J, F, ..., D
506
-
507
- case 'MMMMM':
508
- return localize.month(month, {
509
- width: 'narrow',
510
- context: 'formatting'
511
- });
512
- // January, February, ..., December
513
-
514
- case 'MMMM':
515
- default:
516
- return localize.month(month, {
517
- width: 'wide',
518
- context: 'formatting'
519
- });
520
- }
521
- },
522
- // Stand-alone month
523
- L: function L(date, token, localize) {
524
- var month = date.getUTCMonth();
525
-
526
- switch (token) {
527
- // 1, 2, ..., 12
528
- case 'L':
529
- return String(month + 1);
530
- // 01, 02, ..., 12
531
-
532
- case 'LL':
533
- return addLeadingZeros(month + 1, 2);
534
- // 1st, 2nd, ..., 12th
535
-
536
- case 'Lo':
537
- return localize.ordinalNumber(month + 1, {
538
- unit: 'month'
539
- });
540
- // Jan, Feb, ..., Dec
541
-
542
- case 'LLL':
543
- return localize.month(month, {
544
- width: 'abbreviated',
545
- context: 'standalone'
546
- });
547
- // J, F, ..., D
548
-
549
- case 'LLLLL':
550
- return localize.month(month, {
551
- width: 'narrow',
552
- context: 'standalone'
553
- });
554
- // January, February, ..., December
555
-
556
- case 'LLLL':
557
- default:
558
- return localize.month(month, {
559
- width: 'wide',
560
- context: 'standalone'
561
- });
562
- }
563
- },
564
- // Local week of year
565
- w: function w(date, token, localize, options) {
566
- var week = index.getUTCWeek(date, options);
567
-
568
- if (token === 'wo') {
569
- return localize.ordinalNumber(week, {
570
- unit: 'week'
571
- });
572
- }
573
-
574
- return addLeadingZeros(week, token.length);
575
- },
576
- // ISO week of year
577
- I: function I(date, token, localize) {
578
- var isoWeek = index.getUTCISOWeek(date);
579
-
580
- if (token === 'Io') {
581
- return localize.ordinalNumber(isoWeek, {
582
- unit: 'week'
583
- });
584
- }
585
-
586
- return addLeadingZeros(isoWeek, token.length);
587
- },
588
- // Day of the month
589
- d: function d(date, token, localize) {
590
- if (token === 'do') {
591
- return localize.ordinalNumber(date.getUTCDate(), {
592
- unit: 'date'
593
- });
594
- }
595
-
596
- return formatters$1.d(date, token);
597
- },
598
- // Day of year
599
- D: function D(date, token, localize) {
600
- var dayOfYear = getUTCDayOfYear(date);
601
-
602
- if (token === 'Do') {
603
- return localize.ordinalNumber(dayOfYear, {
604
- unit: 'dayOfYear'
605
- });
606
- }
607
-
608
- return addLeadingZeros(dayOfYear, token.length);
609
- },
610
- // Day of week
611
- E: function E(date, token, localize) {
612
- var dayOfWeek = date.getUTCDay();
613
-
614
- switch (token) {
615
- // Tue
616
- case 'E':
617
- case 'EE':
618
- case 'EEE':
619
- return localize.day(dayOfWeek, {
620
- width: 'abbreviated',
621
- context: 'formatting'
622
- });
623
- // T
624
-
625
- case 'EEEEE':
626
- return localize.day(dayOfWeek, {
627
- width: 'narrow',
628
- context: 'formatting'
629
- });
630
- // Tu
631
-
632
- case 'EEEEEE':
633
- return localize.day(dayOfWeek, {
634
- width: 'short',
635
- context: 'formatting'
636
- });
637
- // Tuesday
638
-
639
- case 'EEEE':
640
- default:
641
- return localize.day(dayOfWeek, {
642
- width: 'wide',
643
- context: 'formatting'
644
- });
645
- }
646
- },
647
- // Local day of week
648
- e: function e(date, token, localize, options) {
649
- var dayOfWeek = date.getUTCDay();
650
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
651
-
652
- switch (token) {
653
- // Numerical value (Nth day of week with current locale or weekStartsOn)
654
- case 'e':
655
- return String(localDayOfWeek);
656
- // Padded numerical value
657
-
658
- case 'ee':
659
- return addLeadingZeros(localDayOfWeek, 2);
660
- // 1st, 2nd, ..., 7th
661
-
662
- case 'eo':
663
- return localize.ordinalNumber(localDayOfWeek, {
664
- unit: 'day'
665
- });
666
-
667
- case 'eee':
668
- return localize.day(dayOfWeek, {
669
- width: 'abbreviated',
670
- context: 'formatting'
671
- });
672
- // T
673
-
674
- case 'eeeee':
675
- return localize.day(dayOfWeek, {
676
- width: 'narrow',
677
- context: 'formatting'
678
- });
679
- // Tu
680
-
681
- case 'eeeeee':
682
- return localize.day(dayOfWeek, {
683
- width: 'short',
684
- context: 'formatting'
685
- });
686
- // Tuesday
687
-
688
- case 'eeee':
689
- default:
690
- return localize.day(dayOfWeek, {
691
- width: 'wide',
692
- context: 'formatting'
693
- });
694
- }
695
- },
696
- // Stand-alone local day of week
697
- c: function c(date, token, localize, options) {
698
- var dayOfWeek = date.getUTCDay();
699
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
700
-
701
- switch (token) {
702
- // Numerical value (same as in `e`)
703
- case 'c':
704
- return String(localDayOfWeek);
705
- // Padded numerical value
706
-
707
- case 'cc':
708
- return addLeadingZeros(localDayOfWeek, token.length);
709
- // 1st, 2nd, ..., 7th
710
-
711
- case 'co':
712
- return localize.ordinalNumber(localDayOfWeek, {
713
- unit: 'day'
714
- });
715
-
716
- case 'ccc':
717
- return localize.day(dayOfWeek, {
718
- width: 'abbreviated',
719
- context: 'standalone'
720
- });
721
- // T
722
-
723
- case 'ccccc':
724
- return localize.day(dayOfWeek, {
725
- width: 'narrow',
726
- context: 'standalone'
727
- });
728
- // Tu
729
-
730
- case 'cccccc':
731
- return localize.day(dayOfWeek, {
732
- width: 'short',
733
- context: 'standalone'
734
- });
735
- // Tuesday
736
-
737
- case 'cccc':
738
- default:
739
- return localize.day(dayOfWeek, {
740
- width: 'wide',
741
- context: 'standalone'
742
- });
743
- }
744
- },
745
- // ISO day of week
746
- i: function i(date, token, localize) {
747
- var dayOfWeek = date.getUTCDay();
748
- var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
749
-
750
- switch (token) {
751
- // 2
752
- case 'i':
753
- return String(isoDayOfWeek);
754
- // 02
755
-
756
- case 'ii':
757
- return addLeadingZeros(isoDayOfWeek, token.length);
758
- // 2nd
759
-
760
- case 'io':
761
- return localize.ordinalNumber(isoDayOfWeek, {
762
- unit: 'day'
763
- });
764
- // Tue
765
-
766
- case 'iii':
767
- return localize.day(dayOfWeek, {
768
- width: 'abbreviated',
769
- context: 'formatting'
770
- });
771
- // T
772
-
773
- case 'iiiii':
774
- return localize.day(dayOfWeek, {
775
- width: 'narrow',
776
- context: 'formatting'
777
- });
778
- // Tu
779
-
780
- case 'iiiiii':
781
- return localize.day(dayOfWeek, {
782
- width: 'short',
783
- context: 'formatting'
784
- });
785
- // Tuesday
786
-
787
- case 'iiii':
788
- default:
789
- return localize.day(dayOfWeek, {
790
- width: 'wide',
791
- context: 'formatting'
792
- });
793
- }
794
- },
795
- // AM or PM
796
- a: function a(date, token, localize) {
797
- var hours = date.getUTCHours();
798
- var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
799
-
800
- switch (token) {
801
- case 'a':
802
- case 'aa':
803
- return localize.dayPeriod(dayPeriodEnumValue, {
804
- width: 'abbreviated',
805
- context: 'formatting'
806
- });
807
-
808
- case 'aaa':
809
- return localize.dayPeriod(dayPeriodEnumValue, {
810
- width: 'abbreviated',
811
- context: 'formatting'
812
- }).toLowerCase();
813
-
814
- case 'aaaaa':
815
- return localize.dayPeriod(dayPeriodEnumValue, {
816
- width: 'narrow',
817
- context: 'formatting'
818
- });
819
-
820
- case 'aaaa':
821
- default:
822
- return localize.dayPeriod(dayPeriodEnumValue, {
823
- width: 'wide',
824
- context: 'formatting'
825
- });
826
- }
827
- },
828
- // AM, PM, midnight, noon
829
- b: function b(date, token, localize) {
830
- var hours = date.getUTCHours();
831
- var dayPeriodEnumValue;
832
-
833
- if (hours === 12) {
834
- dayPeriodEnumValue = dayPeriodEnum.noon;
835
- } else if (hours === 0) {
836
- dayPeriodEnumValue = dayPeriodEnum.midnight;
837
- } else {
838
- dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
839
- }
840
-
841
- switch (token) {
842
- case 'b':
843
- case 'bb':
844
- return localize.dayPeriod(dayPeriodEnumValue, {
845
- width: 'abbreviated',
846
- context: 'formatting'
847
- });
848
-
849
- case 'bbb':
850
- return localize.dayPeriod(dayPeriodEnumValue, {
851
- width: 'abbreviated',
852
- context: 'formatting'
853
- }).toLowerCase();
854
-
855
- case 'bbbbb':
856
- return localize.dayPeriod(dayPeriodEnumValue, {
857
- width: 'narrow',
858
- context: 'formatting'
859
- });
860
-
861
- case 'bbbb':
862
- default:
863
- return localize.dayPeriod(dayPeriodEnumValue, {
864
- width: 'wide',
865
- context: 'formatting'
866
- });
867
- }
868
- },
869
- // in the morning, in the afternoon, in the evening, at night
870
- B: function B(date, token, localize) {
871
- var hours = date.getUTCHours();
872
- var dayPeriodEnumValue;
873
-
874
- if (hours >= 17) {
875
- dayPeriodEnumValue = dayPeriodEnum.evening;
876
- } else if (hours >= 12) {
877
- dayPeriodEnumValue = dayPeriodEnum.afternoon;
878
- } else if (hours >= 4) {
879
- dayPeriodEnumValue = dayPeriodEnum.morning;
880
- } else {
881
- dayPeriodEnumValue = dayPeriodEnum.night;
882
- }
883
-
884
- switch (token) {
885
- case 'B':
886
- case 'BB':
887
- case 'BBB':
888
- return localize.dayPeriod(dayPeriodEnumValue, {
889
- width: 'abbreviated',
890
- context: 'formatting'
891
- });
892
-
893
- case 'BBBBB':
894
- return localize.dayPeriod(dayPeriodEnumValue, {
895
- width: 'narrow',
896
- context: 'formatting'
897
- });
898
-
899
- case 'BBBB':
900
- default:
901
- return localize.dayPeriod(dayPeriodEnumValue, {
902
- width: 'wide',
903
- context: 'formatting'
904
- });
905
- }
906
- },
907
- // Hour [1-12]
908
- h: function h(date, token, localize) {
909
- if (token === 'ho') {
910
- var hours = date.getUTCHours() % 12;
911
- if (hours === 0) hours = 12;
912
- return localize.ordinalNumber(hours, {
913
- unit: 'hour'
914
- });
915
- }
916
-
917
- return formatters$1.h(date, token);
918
- },
919
- // Hour [0-23]
920
- H: function H(date, token, localize) {
921
- if (token === 'Ho') {
922
- return localize.ordinalNumber(date.getUTCHours(), {
923
- unit: 'hour'
924
- });
925
- }
926
-
927
- return formatters$1.H(date, token);
928
- },
929
- // Hour [0-11]
930
- K: function K(date, token, localize) {
931
- var hours = date.getUTCHours() % 12;
932
-
933
- if (token === 'Ko') {
934
- return localize.ordinalNumber(hours, {
935
- unit: 'hour'
936
- });
937
- }
938
-
939
- return addLeadingZeros(hours, token.length);
940
- },
941
- // Hour [1-24]
942
- k: function k(date, token, localize) {
943
- var hours = date.getUTCHours();
944
- if (hours === 0) hours = 24;
945
-
946
- if (token === 'ko') {
947
- return localize.ordinalNumber(hours, {
948
- unit: 'hour'
949
- });
950
- }
951
-
952
- return addLeadingZeros(hours, token.length);
953
- },
954
- // Minute
955
- m: function m(date, token, localize) {
956
- if (token === 'mo') {
957
- return localize.ordinalNumber(date.getUTCMinutes(), {
958
- unit: 'minute'
959
- });
960
- }
961
-
962
- return formatters$1.m(date, token);
963
- },
964
- // Second
965
- s: function s(date, token, localize) {
966
- if (token === 'so') {
967
- return localize.ordinalNumber(date.getUTCSeconds(), {
968
- unit: 'second'
969
- });
970
- }
971
-
972
- return formatters$1.s(date, token);
973
- },
974
- // Fraction of second
975
- S: function S(date, token) {
976
- return formatters$1.S(date, token);
977
- },
978
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
979
- X: function X(date, token, _localize, options) {
980
- var originalDate = options._originalDate || date;
981
- var timezoneOffset = originalDate.getTimezoneOffset();
982
-
983
- if (timezoneOffset === 0) {
984
- return 'Z';
985
- }
986
-
987
- switch (token) {
988
- // Hours and optional minutes
989
- case 'X':
990
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
991
- // Hours, minutes and optional seconds without `:` delimiter
992
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
993
- // so this token always has the same output as `XX`
994
-
995
- case 'XXXX':
996
- case 'XX':
997
- // Hours and minutes without `:` delimiter
998
- return formatTimezone(timezoneOffset);
999
- // Hours, minutes and optional seconds with `:` delimiter
1000
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1001
- // so this token always has the same output as `XXX`
1002
-
1003
- case 'XXXXX':
1004
- case 'XXX': // Hours and minutes with `:` delimiter
1005
-
1006
- default:
1007
- return formatTimezone(timezoneOffset, ':');
1008
- }
1009
- },
1010
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1011
- x: function x(date, token, _localize, options) {
1012
- var originalDate = options._originalDate || date;
1013
- var timezoneOffset = originalDate.getTimezoneOffset();
1014
-
1015
- switch (token) {
1016
- // Hours and optional minutes
1017
- case 'x':
1018
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
1019
- // Hours, minutes and optional seconds without `:` delimiter
1020
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1021
- // so this token always has the same output as `xx`
1022
-
1023
- case 'xxxx':
1024
- case 'xx':
1025
- // Hours and minutes without `:` delimiter
1026
- return formatTimezone(timezoneOffset);
1027
- // Hours, minutes and optional seconds with `:` delimiter
1028
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1029
- // so this token always has the same output as `xxx`
1030
-
1031
- case 'xxxxx':
1032
- case 'xxx': // Hours and minutes with `:` delimiter
1033
-
1034
- default:
1035
- return formatTimezone(timezoneOffset, ':');
1036
- }
1037
- },
1038
- // Timezone (GMT)
1039
- O: function O(date, token, _localize, options) {
1040
- var originalDate = options._originalDate || date;
1041
- var timezoneOffset = originalDate.getTimezoneOffset();
1042
-
1043
- switch (token) {
1044
- // Short
1045
- case 'O':
1046
- case 'OO':
1047
- case 'OOO':
1048
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1049
- // Long
1050
-
1051
- case 'OOOO':
1052
- default:
1053
- return 'GMT' + formatTimezone(timezoneOffset, ':');
1054
- }
1055
- },
1056
- // Timezone (specific non-location)
1057
- z: function z(date, token, _localize, options) {
1058
- var originalDate = options._originalDate || date;
1059
- var timezoneOffset = originalDate.getTimezoneOffset();
1060
-
1061
- switch (token) {
1062
- // Short
1063
- case 'z':
1064
- case 'zz':
1065
- case 'zzz':
1066
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1067
- // Long
1068
-
1069
- case 'zzzz':
1070
- default:
1071
- return 'GMT' + formatTimezone(timezoneOffset, ':');
1072
- }
1073
- },
1074
- // Seconds timestamp
1075
- t: function t(date, token, _localize, options) {
1076
- var originalDate = options._originalDate || date;
1077
- var timestamp = Math.floor(originalDate.getTime() / 1000);
1078
- return addLeadingZeros(timestamp, token.length);
1079
- },
1080
- // Milliseconds timestamp
1081
- T: function T(date, token, _localize, options) {
1082
- var originalDate = options._originalDate || date;
1083
- var timestamp = originalDate.getTime();
1084
- return addLeadingZeros(timestamp, token.length);
1085
- }
1086
- };
1087
-
1088
- function formatTimezoneShort(offset, dirtyDelimiter) {
1089
- var sign = offset > 0 ? '-' : '+';
1090
- var absOffset = Math.abs(offset);
1091
- var hours = Math.floor(absOffset / 60);
1092
- var minutes = absOffset % 60;
1093
-
1094
- if (minutes === 0) {
1095
- return sign + String(hours);
1096
- }
1097
-
1098
- var delimiter = dirtyDelimiter || '';
1099
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
1100
- }
1101
-
1102
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
1103
- if (offset % 60 === 0) {
1104
- var sign = offset > 0 ? '-' : '+';
1105
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
1106
- }
1107
-
1108
- return formatTimezone(offset, dirtyDelimiter);
1109
- }
1110
-
1111
- function formatTimezone(offset, dirtyDelimiter) {
1112
- var delimiter = dirtyDelimiter || '';
1113
- var sign = offset > 0 ? '-' : '+';
1114
- var absOffset = Math.abs(offset);
1115
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
1116
- var minutes = addLeadingZeros(absOffset % 60, 2);
1117
- return sign + hours + delimiter + minutes;
1118
- }
1119
-
1120
- var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1121
- switch (pattern) {
1122
- case 'P':
1123
- return formatLong.date({
1124
- width: 'short'
1125
- });
1126
-
1127
- case 'PP':
1128
- return formatLong.date({
1129
- width: 'medium'
1130
- });
1131
-
1132
- case 'PPP':
1133
- return formatLong.date({
1134
- width: 'long'
1135
- });
1136
-
1137
- case 'PPPP':
1138
- default:
1139
- return formatLong.date({
1140
- width: 'full'
1141
- });
1142
- }
1143
- };
1144
-
1145
- var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1146
- switch (pattern) {
1147
- case 'p':
1148
- return formatLong.time({
1149
- width: 'short'
1150
- });
1151
-
1152
- case 'pp':
1153
- return formatLong.time({
1154
- width: 'medium'
1155
- });
1156
-
1157
- case 'ppp':
1158
- return formatLong.time({
1159
- width: 'long'
1160
- });
1161
-
1162
- case 'pppp':
1163
- default:
1164
- return formatLong.time({
1165
- width: 'full'
1166
- });
1167
- }
1168
- };
1169
-
1170
- var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
1171
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
1172
- var datePattern = matchResult[1];
1173
- var timePattern = matchResult[2];
1174
-
1175
- if (!timePattern) {
1176
- return dateLongFormatter(pattern, formatLong);
1177
- }
1178
-
1179
- var dateTimeFormat;
1180
-
1181
- switch (datePattern) {
1182
- case 'P':
1183
- dateTimeFormat = formatLong.dateTime({
1184
- width: 'short'
1185
- });
1186
- break;
1187
-
1188
- case 'PP':
1189
- dateTimeFormat = formatLong.dateTime({
1190
- width: 'medium'
1191
- });
1192
- break;
1193
-
1194
- case 'PPP':
1195
- dateTimeFormat = formatLong.dateTime({
1196
- width: 'long'
1197
- });
1198
- break;
1199
-
1200
- case 'PPPP':
1201
- default:
1202
- dateTimeFormat = formatLong.dateTime({
1203
- width: 'full'
1204
- });
1205
- break;
1206
- }
1207
-
1208
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
1209
- };
1210
-
1211
- var longFormatters = {
1212
- p: timeLongFormatter,
1213
- P: dateTimeLongFormatter
1214
- };
1215
-
1216
- var protectedDayOfYearTokens = ['D', 'DD'];
1217
- var protectedWeekYearTokens = ['YY', 'YYYY'];
1218
- function isProtectedDayOfYearToken(token) {
1219
- return protectedDayOfYearTokens.indexOf(token) !== -1;
1220
- }
1221
- function isProtectedWeekYearToken(token) {
1222
- return protectedWeekYearTokens.indexOf(token) !== -1;
1223
- }
1224
- function throwProtectedError(token, format, input) {
1225
- if (token === 'YYYY') {
1226
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1227
- } else if (token === 'YY') {
1228
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1229
- } else if (token === 'D') {
1230
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1231
- } else if (token === 'DD') {
1232
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1233
- }
1234
- }
1235
-
1236
- var formatDistanceLocale = {
1237
- lessThanXSeconds: {
1238
- one: 'less than a second',
1239
- other: 'less than {{count}} seconds'
1240
- },
1241
- xSeconds: {
1242
- one: '1 second',
1243
- other: '{{count}} seconds'
1244
- },
1245
- halfAMinute: 'half a minute',
1246
- lessThanXMinutes: {
1247
- one: 'less than a minute',
1248
- other: 'less than {{count}} minutes'
1249
- },
1250
- xMinutes: {
1251
- one: '1 minute',
1252
- other: '{{count}} minutes'
1253
- },
1254
- aboutXHours: {
1255
- one: 'about 1 hour',
1256
- other: 'about {{count}} hours'
1257
- },
1258
- xHours: {
1259
- one: '1 hour',
1260
- other: '{{count}} hours'
1261
- },
1262
- xDays: {
1263
- one: '1 day',
1264
- other: '{{count}} days'
1265
- },
1266
- aboutXWeeks: {
1267
- one: 'about 1 week',
1268
- other: 'about {{count}} weeks'
1269
- },
1270
- xWeeks: {
1271
- one: '1 week',
1272
- other: '{{count}} weeks'
1273
- },
1274
- aboutXMonths: {
1275
- one: 'about 1 month',
1276
- other: 'about {{count}} months'
1277
- },
1278
- xMonths: {
1279
- one: '1 month',
1280
- other: '{{count}} months'
1281
- },
1282
- aboutXYears: {
1283
- one: 'about 1 year',
1284
- other: 'about {{count}} years'
1285
- },
1286
- xYears: {
1287
- one: '1 year',
1288
- other: '{{count}} years'
1289
- },
1290
- overXYears: {
1291
- one: 'over 1 year',
1292
- other: 'over {{count}} years'
1293
- },
1294
- almostXYears: {
1295
- one: 'almost 1 year',
1296
- other: 'almost {{count}} years'
1297
- }
1298
- };
1299
-
1300
- var formatDistance = function formatDistance(token, count, options) {
1301
- var result;
1302
- var tokenValue = formatDistanceLocale[token];
1303
-
1304
- if (typeof tokenValue === 'string') {
1305
- result = tokenValue;
1306
- } else if (count === 1) {
1307
- result = tokenValue.one;
1308
- } else {
1309
- result = tokenValue.other.replace('{{count}}', count.toString());
1310
- }
1311
-
1312
- if (options !== null && options !== void 0 && options.addSuffix) {
1313
- if (options.comparison && options.comparison > 0) {
1314
- return 'in ' + result;
1315
- } else {
1316
- return result + ' ago';
1317
- }
1318
- }
1319
-
1320
- return result;
1321
- };
1322
-
1323
- function buildFormatLongFn(args) {
1324
- return function () {
1325
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1326
- // TODO: Remove String()
1327
- var width = options.width ? String(options.width) : args.defaultWidth;
1328
- var format = args.formats[width] || args.formats[args.defaultWidth];
1329
- return format;
1330
- };
1331
- }
1332
-
1333
- var dateFormats = {
1334
- full: 'EEEE, MMMM do, y',
1335
- long: 'MMMM do, y',
1336
- medium: 'MMM d, y',
1337
- short: 'MM/dd/yyyy'
1338
- };
1339
- var timeFormats = {
1340
- full: 'h:mm:ss a zzzz',
1341
- long: 'h:mm:ss a z',
1342
- medium: 'h:mm:ss a',
1343
- short: 'h:mm a'
1344
- };
1345
- var dateTimeFormats = {
1346
- full: "{{date}} 'at' {{time}}",
1347
- long: "{{date}} 'at' {{time}}",
1348
- medium: '{{date}}, {{time}}',
1349
- short: '{{date}}, {{time}}'
1350
- };
1351
- var formatLong = {
1352
- date: buildFormatLongFn({
1353
- formats: dateFormats,
1354
- defaultWidth: 'full'
1355
- }),
1356
- time: buildFormatLongFn({
1357
- formats: timeFormats,
1358
- defaultWidth: 'full'
1359
- }),
1360
- dateTime: buildFormatLongFn({
1361
- formats: dateTimeFormats,
1362
- defaultWidth: 'full'
1363
- })
1364
- };
1365
-
1366
- var formatRelativeLocale = {
1367
- lastWeek: "'last' eeee 'at' p",
1368
- yesterday: "'yesterday at' p",
1369
- today: "'today at' p",
1370
- tomorrow: "'tomorrow at' p",
1371
- nextWeek: "eeee 'at' p",
1372
- other: 'P'
1373
- };
1374
-
1375
- var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
1376
- return formatRelativeLocale[token];
1377
- };
1378
-
1379
- function buildLocalizeFn(args) {
1380
- return function (dirtyIndex, options) {
1381
- var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
1382
- var valuesArray;
1383
-
1384
- if (context === 'formatting' && args.formattingValues) {
1385
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1386
- var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
1387
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1388
- } else {
1389
- var _defaultWidth = args.defaultWidth;
1390
-
1391
- var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
1392
-
1393
- valuesArray = args.values[_width] || args.values[_defaultWidth];
1394
- }
1395
-
1396
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
1397
-
1398
- return valuesArray[index];
1399
- };
1400
- }
1401
-
1402
- var eraValues = {
1403
- narrow: ['B', 'A'],
1404
- abbreviated: ['BC', 'AD'],
1405
- wide: ['Before Christ', 'Anno Domini']
1406
- };
1407
- var quarterValues = {
1408
- narrow: ['1', '2', '3', '4'],
1409
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
1410
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
1411
- }; // Note: in English, the names of days of the week and months are capitalized.
1412
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
1413
- // Generally, formatted dates should look like they are in the middle of a sentence,
1414
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
1415
-
1416
- var monthValues = {
1417
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
1418
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
1419
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
1420
- };
1421
- var dayValues = {
1422
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
1423
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
1424
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
1425
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
1426
- };
1427
- var dayPeriodValues = {
1428
- narrow: {
1429
- am: 'a',
1430
- pm: 'p',
1431
- midnight: 'mi',
1432
- noon: 'n',
1433
- morning: 'morning',
1434
- afternoon: 'afternoon',
1435
- evening: 'evening',
1436
- night: 'night'
1437
- },
1438
- abbreviated: {
1439
- am: 'AM',
1440
- pm: 'PM',
1441
- midnight: 'midnight',
1442
- noon: 'noon',
1443
- morning: 'morning',
1444
- afternoon: 'afternoon',
1445
- evening: 'evening',
1446
- night: 'night'
1447
- },
1448
- wide: {
1449
- am: 'a.m.',
1450
- pm: 'p.m.',
1451
- midnight: 'midnight',
1452
- noon: 'noon',
1453
- morning: 'morning',
1454
- afternoon: 'afternoon',
1455
- evening: 'evening',
1456
- night: 'night'
1457
- }
1458
- };
1459
- var formattingDayPeriodValues = {
1460
- narrow: {
1461
- am: 'a',
1462
- pm: 'p',
1463
- midnight: 'mi',
1464
- noon: 'n',
1465
- morning: 'in the morning',
1466
- afternoon: 'in the afternoon',
1467
- evening: 'in the evening',
1468
- night: 'at night'
1469
- },
1470
- abbreviated: {
1471
- am: 'AM',
1472
- pm: 'PM',
1473
- midnight: 'midnight',
1474
- noon: 'noon',
1475
- morning: 'in the morning',
1476
- afternoon: 'in the afternoon',
1477
- evening: 'in the evening',
1478
- night: 'at night'
1479
- },
1480
- wide: {
1481
- am: 'a.m.',
1482
- pm: 'p.m.',
1483
- midnight: 'midnight',
1484
- noon: 'noon',
1485
- morning: 'in the morning',
1486
- afternoon: 'in the afternoon',
1487
- evening: 'in the evening',
1488
- night: 'at night'
1489
- }
1490
- };
1491
-
1492
- var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1493
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
1494
- // if they are different for different grammatical genders,
1495
- // use `options.unit`.
1496
- //
1497
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
1498
- // 'day', 'hour', 'minute', 'second'.
1499
-
1500
- var rem100 = number % 100;
1501
-
1502
- if (rem100 > 20 || rem100 < 10) {
1503
- switch (rem100 % 10) {
1504
- case 1:
1505
- return number + 'st';
1506
-
1507
- case 2:
1508
- return number + 'nd';
1509
-
1510
- case 3:
1511
- return number + 'rd';
1512
- }
1513
- }
1514
-
1515
- return number + 'th';
1516
- };
1517
-
1518
- var localize = {
1519
- ordinalNumber: ordinalNumber,
1520
- era: buildLocalizeFn({
1521
- values: eraValues,
1522
- defaultWidth: 'wide'
1523
- }),
1524
- quarter: buildLocalizeFn({
1525
- values: quarterValues,
1526
- defaultWidth: 'wide',
1527
- argumentCallback: function argumentCallback(quarter) {
1528
- return quarter - 1;
1529
- }
1530
- }),
1531
- month: buildLocalizeFn({
1532
- values: monthValues,
1533
- defaultWidth: 'wide'
1534
- }),
1535
- day: buildLocalizeFn({
1536
- values: dayValues,
1537
- defaultWidth: 'wide'
1538
- }),
1539
- dayPeriod: buildLocalizeFn({
1540
- values: dayPeriodValues,
1541
- defaultWidth: 'wide',
1542
- formattingValues: formattingDayPeriodValues,
1543
- defaultFormattingWidth: 'wide'
1544
- })
1545
- };
1546
-
1547
- function buildMatchFn(args) {
1548
- return function (string) {
1549
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1550
- var width = options.width;
1551
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1552
- var matchResult = string.match(matchPattern);
1553
-
1554
- if (!matchResult) {
1555
- return null;
1556
- }
1557
-
1558
- var matchedString = matchResult[0];
1559
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1560
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
1561
- return pattern.test(matchedString);
1562
- }) : findKey(parsePatterns, function (pattern) {
1563
- return pattern.test(matchedString);
1564
- });
1565
- var value;
1566
- value = args.valueCallback ? args.valueCallback(key) : key;
1567
- value = options.valueCallback ? options.valueCallback(value) : value;
1568
- var rest = string.slice(matchedString.length);
1569
- return {
1570
- value: value,
1571
- rest: rest
1572
- };
1573
- };
1574
- }
1575
-
1576
- function findKey(object, predicate) {
1577
- for (var key in object) {
1578
- if (object.hasOwnProperty(key) && predicate(object[key])) {
1579
- return key;
1580
- }
1581
- }
1582
-
1583
- return undefined;
1584
- }
1585
-
1586
- function findIndex(array, predicate) {
1587
- for (var key = 0; key < array.length; key++) {
1588
- if (predicate(array[key])) {
1589
- return key;
1590
- }
1591
- }
1592
-
1593
- return undefined;
1594
- }
1595
-
1596
- function buildMatchPatternFn(args) {
1597
- return function (string) {
1598
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1599
- var matchResult = string.match(args.matchPattern);
1600
- if (!matchResult) return null;
1601
- var matchedString = matchResult[0];
1602
- var parseResult = string.match(args.parsePattern);
1603
- if (!parseResult) return null;
1604
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
1605
- value = options.valueCallback ? options.valueCallback(value) : value;
1606
- var rest = string.slice(matchedString.length);
1607
- return {
1608
- value: value,
1609
- rest: rest
1610
- };
1611
- };
1612
- }
1613
-
1614
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
1615
- var parseOrdinalNumberPattern = /\d+/i;
1616
- var matchEraPatterns = {
1617
- narrow: /^(b|a)/i,
1618
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1619
- wide: /^(before christ|before common era|anno domini|common era)/i
1620
- };
1621
- var parseEraPatterns = {
1622
- any: [/^b/i, /^(a|c)/i]
1623
- };
1624
- var matchQuarterPatterns = {
1625
- narrow: /^[1234]/i,
1626
- abbreviated: /^q[1234]/i,
1627
- wide: /^[1234](th|st|nd|rd)? quarter/i
1628
- };
1629
- var parseQuarterPatterns = {
1630
- any: [/1/i, /2/i, /3/i, /4/i]
1631
- };
1632
- var matchMonthPatterns = {
1633
- narrow: /^[jfmasond]/i,
1634
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1635
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1636
- };
1637
- var parseMonthPatterns = {
1638
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1639
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1640
- };
1641
- var matchDayPatterns = {
1642
- narrow: /^[smtwf]/i,
1643
- short: /^(su|mo|tu|we|th|fr|sa)/i,
1644
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1645
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1646
- };
1647
- var parseDayPatterns = {
1648
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1649
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1650
- };
1651
- var matchDayPeriodPatterns = {
1652
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1653
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1654
- };
1655
- var parseDayPeriodPatterns = {
1656
- any: {
1657
- am: /^a/i,
1658
- pm: /^p/i,
1659
- midnight: /^mi/i,
1660
- noon: /^no/i,
1661
- morning: /morning/i,
1662
- afternoon: /afternoon/i,
1663
- evening: /evening/i,
1664
- night: /night/i
1665
- }
1666
- };
1667
- var match = {
1668
- ordinalNumber: buildMatchPatternFn({
1669
- matchPattern: matchOrdinalNumberPattern,
1670
- parsePattern: parseOrdinalNumberPattern,
1671
- valueCallback: function valueCallback(value) {
1672
- return parseInt(value, 10);
1673
- }
1674
- }),
1675
- era: buildMatchFn({
1676
- matchPatterns: matchEraPatterns,
1677
- defaultMatchWidth: 'wide',
1678
- parsePatterns: parseEraPatterns,
1679
- defaultParseWidth: 'any'
1680
- }),
1681
- quarter: buildMatchFn({
1682
- matchPatterns: matchQuarterPatterns,
1683
- defaultMatchWidth: 'wide',
1684
- parsePatterns: parseQuarterPatterns,
1685
- defaultParseWidth: 'any',
1686
- valueCallback: function valueCallback(index) {
1687
- return index + 1;
1688
- }
1689
- }),
1690
- month: buildMatchFn({
1691
- matchPatterns: matchMonthPatterns,
1692
- defaultMatchWidth: 'wide',
1693
- parsePatterns: parseMonthPatterns,
1694
- defaultParseWidth: 'any'
1695
- }),
1696
- day: buildMatchFn({
1697
- matchPatterns: matchDayPatterns,
1698
- defaultMatchWidth: 'wide',
1699
- parsePatterns: parseDayPatterns,
1700
- defaultParseWidth: 'any'
1701
- }),
1702
- dayPeriod: buildMatchFn({
1703
- matchPatterns: matchDayPeriodPatterns,
1704
- defaultMatchWidth: 'any',
1705
- parsePatterns: parseDayPeriodPatterns,
1706
- defaultParseWidth: 'any'
1707
- })
1708
- };
1709
-
1710
- /**
1711
- * @type {Locale}
1712
- * @category Locales
1713
- * @summary English locale (United States).
1714
- * @language English
1715
- * @iso-639-2 eng
1716
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
1717
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
1718
- */
1719
- var locale = {
1720
- code: 'en-US',
1721
- formatDistance: formatDistance,
1722
- formatLong: formatLong,
1723
- formatRelative: formatRelative,
1724
- localize: localize,
1725
- match: match,
1726
- options: {
1727
- weekStartsOn: 0
1728
- /* Sunday */
1729
- ,
1730
- firstWeekContainsDate: 1
1731
- }
1732
- };
1733
-
1734
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1735
- // (one of the certain letters followed by `o`)
1736
- // - (\w)\1* matches any sequences of the same letter
1737
- // - '' matches two quote characters in a row
1738
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1739
- // except a single quote symbol, which ends the sequence.
1740
- // Two quote characters do not end the sequence.
1741
- // If there is no matching single quote
1742
- // then the sequence will continue until the end of the string.
1743
- // - . matches any single character unmatched by previous parts of the RegExps
1744
-
1745
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1746
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1747
-
1748
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1749
- var escapedStringRegExp = /^'([^]*?)'?$/;
1750
- var doubleQuoteRegExp = /''/g;
1751
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1752
- /**
1753
- * @name format
1754
- * @category Common Helpers
1755
- * @summary Format the date.
1756
- *
1757
- * @description
1758
- * Return the formatted date string in the given format. The result may vary by locale.
1759
- *
1760
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1761
- * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
1762
- *
1763
- * The characters wrapped between two single quotes characters (') are escaped.
1764
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1765
- * (see the last example)
1766
- *
1767
- * Format of the string is based on Unicode Technical Standard #35:
1768
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1769
- * with a few additions (see note 7 below the table).
1770
- *
1771
- * Accepted patterns:
1772
- * | Unit | Pattern | Result examples | Notes |
1773
- * |---------------------------------|---------|-----------------------------------|-------|
1774
- * | Era | G..GGG | AD, BC | |
1775
- * | | GGGG | Anno Domini, Before Christ | 2 |
1776
- * | | GGGGG | A, B | |
1777
- * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
1778
- * | | yo | 44th, 1st, 0th, 17th | 5,7 |
1779
- * | | yy | 44, 01, 00, 17 | 5 |
1780
- * | | yyy | 044, 001, 1900, 2017 | 5 |
1781
- * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
1782
- * | | yyyyy | ... | 3,5 |
1783
- * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
1784
- * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
1785
- * | | YY | 44, 01, 00, 17 | 5,8 |
1786
- * | | YYY | 044, 001, 1900, 2017 | 5 |
1787
- * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
1788
- * | | YYYYY | ... | 3,5 |
1789
- * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
1790
- * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
1791
- * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
1792
- * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
1793
- * | | RRRRR | ... | 3,5,7 |
1794
- * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
1795
- * | | uu | -43, 01, 1900, 2017 | 5 |
1796
- * | | uuu | -043, 001, 1900, 2017 | 5 |
1797
- * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
1798
- * | | uuuuu | ... | 3,5 |
1799
- * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
1800
- * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
1801
- * | | QQ | 01, 02, 03, 04 | |
1802
- * | | QQQ | Q1, Q2, Q3, Q4 | |
1803
- * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1804
- * | | QQQQQ | 1, 2, 3, 4 | 4 |
1805
- * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
1806
- * | | qo | 1st, 2nd, 3rd, 4th | 7 |
1807
- * | | qq | 01, 02, 03, 04 | |
1808
- * | | qqq | Q1, Q2, Q3, Q4 | |
1809
- * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1810
- * | | qqqqq | 1, 2, 3, 4 | 4 |
1811
- * | Month (formatting) | M | 1, 2, ..., 12 | |
1812
- * | | Mo | 1st, 2nd, ..., 12th | 7 |
1813
- * | | MM | 01, 02, ..., 12 | |
1814
- * | | MMM | Jan, Feb, ..., Dec | |
1815
- * | | MMMM | January, February, ..., December | 2 |
1816
- * | | MMMMM | J, F, ..., D | |
1817
- * | Month (stand-alone) | L | 1, 2, ..., 12 | |
1818
- * | | Lo | 1st, 2nd, ..., 12th | 7 |
1819
- * | | LL | 01, 02, ..., 12 | |
1820
- * | | LLL | Jan, Feb, ..., Dec | |
1821
- * | | LLLL | January, February, ..., December | 2 |
1822
- * | | LLLLL | J, F, ..., D | |
1823
- * | Local week of year | w | 1, 2, ..., 53 | |
1824
- * | | wo | 1st, 2nd, ..., 53th | 7 |
1825
- * | | ww | 01, 02, ..., 53 | |
1826
- * | ISO week of year | I | 1, 2, ..., 53 | 7 |
1827
- * | | Io | 1st, 2nd, ..., 53th | 7 |
1828
- * | | II | 01, 02, ..., 53 | 7 |
1829
- * | Day of month | d | 1, 2, ..., 31 | |
1830
- * | | do | 1st, 2nd, ..., 31st | 7 |
1831
- * | | dd | 01, 02, ..., 31 | |
1832
- * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
1833
- * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
1834
- * | | DD | 01, 02, ..., 365, 366 | 9 |
1835
- * | | DDD | 001, 002, ..., 365, 366 | |
1836
- * | | DDDD | ... | 3 |
1837
- * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
1838
- * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1839
- * | | EEEEE | M, T, W, T, F, S, S | |
1840
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1841
- * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
1842
- * | | io | 1st, 2nd, ..., 7th | 7 |
1843
- * | | ii | 01, 02, ..., 07 | 7 |
1844
- * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
1845
- * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
1846
- * | | iiiii | M, T, W, T, F, S, S | 7 |
1847
- * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
1848
- * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
1849
- * | | eo | 2nd, 3rd, ..., 1st | 7 |
1850
- * | | ee | 02, 03, ..., 01 | |
1851
- * | | eee | Mon, Tue, Wed, ..., Sun | |
1852
- * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1853
- * | | eeeee | M, T, W, T, F, S, S | |
1854
- * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1855
- * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
1856
- * | | co | 2nd, 3rd, ..., 1st | 7 |
1857
- * | | cc | 02, 03, ..., 01 | |
1858
- * | | ccc | Mon, Tue, Wed, ..., Sun | |
1859
- * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1860
- * | | ccccc | M, T, W, T, F, S, S | |
1861
- * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1862
- * | AM, PM | a..aa | AM, PM | |
1863
- * | | aaa | am, pm | |
1864
- * | | aaaa | a.m., p.m. | 2 |
1865
- * | | aaaaa | a, p | |
1866
- * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
1867
- * | | bbb | am, pm, noon, midnight | |
1868
- * | | bbbb | a.m., p.m., noon, midnight | 2 |
1869
- * | | bbbbb | a, p, n, mi | |
1870
- * | Flexible day period | B..BBB | at night, in the morning, ... | |
1871
- * | | BBBB | at night, in the morning, ... | 2 |
1872
- * | | BBBBB | at night, in the morning, ... | |
1873
- * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
1874
- * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
1875
- * | | hh | 01, 02, ..., 11, 12 | |
1876
- * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
1877
- * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
1878
- * | | HH | 00, 01, 02, ..., 23 | |
1879
- * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
1880
- * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
1881
- * | | KK | 01, 02, ..., 11, 00 | |
1882
- * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
1883
- * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
1884
- * | | kk | 24, 01, 02, ..., 23 | |
1885
- * | Minute | m | 0, 1, ..., 59 | |
1886
- * | | mo | 0th, 1st, ..., 59th | 7 |
1887
- * | | mm | 00, 01, ..., 59 | |
1888
- * | Second | s | 0, 1, ..., 59 | |
1889
- * | | so | 0th, 1st, ..., 59th | 7 |
1890
- * | | ss | 00, 01, ..., 59 | |
1891
- * | Fraction of second | S | 0, 1, ..., 9 | |
1892
- * | | SS | 00, 01, ..., 99 | |
1893
- * | | SSS | 000, 001, ..., 999 | |
1894
- * | | SSSS | ... | 3 |
1895
- * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
1896
- * | | XX | -0800, +0530, Z | |
1897
- * | | XXX | -08:00, +05:30, Z | |
1898
- * | | XXXX | -0800, +0530, Z, +123456 | 2 |
1899
- * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1900
- * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
1901
- * | | xx | -0800, +0530, +0000 | |
1902
- * | | xxx | -08:00, +05:30, +00:00 | 2 |
1903
- * | | xxxx | -0800, +0530, +0000, +123456 | |
1904
- * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1905
- * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
1906
- * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
1907
- * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
1908
- * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
1909
- * | Seconds timestamp | t | 512969520 | 7 |
1910
- * | | tt | ... | 3,7 |
1911
- * | Milliseconds timestamp | T | 512969520900 | 7 |
1912
- * | | TT | ... | 3,7 |
1913
- * | Long localized date | P | 04/29/1453 | 7 |
1914
- * | | PP | Apr 29, 1453 | 7 |
1915
- * | | PPP | April 29th, 1453 | 7 |
1916
- * | | PPPP | Friday, April 29th, 1453 | 2,7 |
1917
- * | Long localized time | p | 12:00 AM | 7 |
1918
- * | | pp | 12:00:00 AM | 7 |
1919
- * | | ppp | 12:00:00 AM GMT+2 | 7 |
1920
- * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
1921
- * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
1922
- * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
1923
- * | | PPPppp | April 29th, 1453 at ... | 7 |
1924
- * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
1925
- * Notes:
1926
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
1927
- * are the same as "stand-alone" units, but are different in some languages.
1928
- * "Formatting" units are declined according to the rules of the language
1929
- * in the context of a date. "Stand-alone" units are always nominative singular:
1930
- *
1931
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
1932
- *
1933
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
1934
- *
1935
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
1936
- * the single quote characters (see below).
1937
- * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
1938
- * the output will be the same as default pattern for this unit, usually
1939
- * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
1940
- * are marked with "2" in the last column of the table.
1941
- *
1942
- * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
1943
- *
1944
- * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
1945
- *
1946
- * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
1947
- *
1948
- * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
1949
- *
1950
- * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
1951
- *
1952
- * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
1953
- * The output will be padded with zeros to match the length of the pattern.
1954
- *
1955
- * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
1956
- *
1957
- * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
1958
- * These tokens represent the shortest form of the quarter.
1959
- *
1960
- * 5. The main difference between `y` and `u` patterns are B.C. years:
1961
- *
1962
- * | Year | `y` | `u` |
1963
- * |------|-----|-----|
1964
- * | AC 1 | 1 | 1 |
1965
- * | BC 1 | 1 | 0 |
1966
- * | BC 2 | 2 | -1 |
1967
- *
1968
- * Also `yy` always returns the last two digits of a year,
1969
- * while `uu` pads single digit years to 2 characters and returns other years unchanged:
1970
- *
1971
- * | Year | `yy` | `uu` |
1972
- * |------|------|------|
1973
- * | 1 | 01 | 01 |
1974
- * | 14 | 14 | 14 |
1975
- * | 376 | 76 | 376 |
1976
- * | 1453 | 53 | 1453 |
1977
- *
1978
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
1979
- * except local week-numbering years are dependent on `options.weekStartsOn`
1980
- * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
1981
- * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
1982
- *
1983
- * 6. Specific non-location timezones are currently unavailable in `date-fns`,
1984
- * so right now these tokens fall back to GMT timezones.
1985
- *
1986
- * 7. These patterns are not in the Unicode Technical Standard #35:
1987
- * - `i`: ISO day of week
1988
- * - `I`: ISO week of year
1989
- * - `R`: ISO week-numbering year
1990
- * - `t`: seconds timestamp
1991
- * - `T`: milliseconds timestamp
1992
- * - `o`: ordinal number modifier
1993
- * - `P`: long localized date
1994
- * - `p`: long localized time
1995
- *
1996
- * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
1997
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
1998
- *
1999
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
2000
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2001
- *
2002
- * @param {Date|Number} date - the original date
2003
- * @param {String} format - the string of tokens
2004
- * @param {Object} [options] - an object with options.
2005
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2006
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2007
- * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
2008
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2009
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2010
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2011
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2012
- * @returns {String} the formatted date string
2013
- * @throws {TypeError} 2 arguments required
2014
- * @throws {RangeError} `date` must not be Invalid Date
2015
- * @throws {RangeError} `options.locale` must contain `localize` property
2016
- * @throws {RangeError} `options.locale` must contain `formatLong` property
2017
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2018
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2019
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2020
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2021
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2022
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2023
- * @throws {RangeError} format string contains an unescaped latin alphabet character
2024
- *
2025
- * @example
2026
- * // Represent 11 February 2014 in middle-endian format:
2027
- * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
2028
- * //=> '02/11/2014'
2029
- *
2030
- * @example
2031
- * // Represent 2 July 2014 in Esperanto:
2032
- * import { eoLocale } from 'date-fns/locale/eo'
2033
- * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
2034
- * locale: eoLocale
2035
- * })
2036
- * //=> '2-a de julio 2014'
2037
- *
2038
- * @example
2039
- * // Escape string by single quote characters:
2040
- * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
2041
- * //=> "3 o'clock"
2042
- */
2043
-
2044
- function format(dirtyDate, dirtyFormatStr, options) {
2045
- var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
2046
-
2047
- index.requiredArgs(2, arguments);
2048
- var formatStr = String(dirtyFormatStr);
2049
- var defaultOptions = index.getDefaultOptions();
2050
- var locale$1 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale;
2051
- var firstWeekContainsDate = index.toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2052
-
2053
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2054
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2055
- }
2056
-
2057
- var weekStartsOn = index.toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2058
-
2059
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2060
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2061
- }
2062
-
2063
- if (!locale$1.localize) {
2064
- throw new RangeError('locale must contain localize property');
2065
- }
2066
-
2067
- if (!locale$1.formatLong) {
2068
- throw new RangeError('locale must contain formatLong property');
2069
- }
2070
-
2071
- var originalDate = index.toDate(dirtyDate);
2072
-
2073
- if (!isValid(originalDate)) {
2074
- throw new RangeError('Invalid time value');
2075
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2076
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2077
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
2078
-
2079
-
2080
- var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
2081
- var utcDate = subMilliseconds(originalDate, timezoneOffset);
2082
- var formatterOptions = {
2083
- firstWeekContainsDate: firstWeekContainsDate,
2084
- weekStartsOn: weekStartsOn,
2085
- locale: locale$1,
2086
- _originalDate: originalDate
2087
- };
2088
- var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
2089
- var firstCharacter = substring[0];
2090
-
2091
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2092
- var longFormatter = longFormatters[firstCharacter];
2093
- return longFormatter(substring, locale$1.formatLong);
2094
- }
2095
-
2096
- return substring;
2097
- }).join('').match(formattingTokensRegExp).map(function (substring) {
2098
- // Replace two single quote characters with one single quote character
2099
- if (substring === "''") {
2100
- return "'";
2101
- }
2102
-
2103
- var firstCharacter = substring[0];
2104
-
2105
- if (firstCharacter === "'") {
2106
- return cleanEscapedString(substring);
2107
- }
2108
-
2109
- var formatter = formatters[firstCharacter];
2110
-
2111
- if (formatter) {
2112
- if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
2113
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2114
- }
2115
-
2116
- if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
2117
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2118
- }
2119
-
2120
- return formatter(utcDate, substring, locale$1.localize, formatterOptions);
2121
- }
2122
-
2123
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2124
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2125
- }
2126
-
2127
- return substring;
2128
- }).join('');
2129
- return result;
2130
- }
2131
-
2132
- function cleanEscapedString(input) {
2133
- var matched = input.match(escapedStringRegExp);
2134
-
2135
- if (!matched) {
2136
- return input;
2137
- }
2138
-
2139
- return matched[1].replace(doubleQuoteRegExp, "'");
2140
- }
2141
-
2142
- const getImageFromImage = (image) => {
2143
- var _a;
2144
- if (typeof image === "string")
2145
- return image;
2146
- return (_a = image.id) != null ? _a : "";
2147
- };
2148
- const getNameFromProfile = (profile) => {
2149
- var _a;
2150
- if (typeof profile === "string")
2151
- return profile;
2152
- return (_a = profile.name) != null ? _a : "";
2153
- };
2154
- const getImageFromProfile = (profile) => {
2155
- var _a;
2156
- if (typeof profile === "string")
2157
- return "";
2158
- return getImageFromImage((_a = profile.image) != null ? _a : "");
2159
- };
2160
- const getInfoFromCredential = (credential, dateFormat = "dd MMM yyyy") => {
2161
- var _a, _b;
2162
- const { issuer, issuanceDate } = credential;
2163
- const credentialSubject = Array.isArray(credential.credentialSubject) ? credential.credentialSubject[0] : credential.credentialSubject;
2164
- const title = (_a = credentialSubject.achievement) == null ? void 0 : _a.name;
2165
- const createdAt = format(new Date(issuanceDate), dateFormat).toUpperCase();
2166
- const issuee = credentialSubject.id;
2167
- const imageUrl = (_b = credentialSubject.achievement) == null ? void 0 : _b.image;
2168
- return { title, createdAt, issuer, issuee, credentialSubject, imageUrl };
2169
- };
2170
- const getColorForVerificationStatus = (status) => {
2171
- switch (status) {
2172
- case types_esm.VerificationStatusEnum.Success:
2173
- return "#39B54A";
2174
- case types_esm.VerificationStatusEnum.Failed:
2175
- return "#D01012";
2176
- case types_esm.VerificationStatusEnum.Error:
2177
- return "#FFBD06";
2178
- default:
2179
- return "#000000";
2180
- }
2181
- };
2182
-
2183
- exports.format = format;
2184
- exports.getColorForVerificationStatus = getColorForVerificationStatus;
2185
- exports.getImageFromProfile = getImageFromProfile;
2186
- exports.getInfoFromCredential = getInfoFromCredential;
2187
- exports.getNameFromProfile = getNameFromProfile;
2188
- //# sourceMappingURL=credential.helpers-86774cc9.js.map