@justifi/webcomponents 4.2.1-rc.4 → 4.4.0

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 (380) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Api-11362403.js → Api-7303478d.js} +3 -2
  3. package/dist/cjs/Api-7303478d.js.map +1 -0
  4. package/dist/cjs/business-form-schema-63b311b2.js +132 -0
  5. package/dist/cjs/business-form-schema-63b311b2.js.map +1 -0
  6. package/dist/cjs/form-control-select_2.cjs.entry.js +61 -0
  7. package/dist/cjs/form-control-select_2.cjs.entry.js.map +1 -0
  8. package/dist/cjs/{index-34312a38.js → index-83b2ec02.js} +136 -20
  9. package/dist/cjs/index-83b2ec02.js.map +1 -0
  10. package/dist/cjs/{index.esm-bcf90c56.js → index.esm-7e12ce07.js} +301 -14
  11. package/dist/cjs/index.esm-7e12ce07.js.map +1 -0
  12. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
  13. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
  14. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
  15. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
  16. package/dist/cjs/justifi-business-address-form.cjs.entry.js +37 -0
  17. package/dist/cjs/justifi-business-address-form.cjs.entry.js.map +1 -0
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +751 -0
  19. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
  20. package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js +148 -0
  21. package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js.map +1 -0
  22. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
  23. package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
  24. package/dist/cjs/justifi-payment-form.cjs.entry.js +24 -7
  25. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  26. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +22 -17
  27. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  28. package/dist/cjs/justifi-payments-list.cjs.entry.js +75 -4038
  29. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  30. package/dist/cjs/justifi-payouts-list.cjs.entry.js +113 -0
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
  32. package/dist/cjs/loader.cjs.js +3 -12
  33. package/dist/cjs/loader.cjs.js.map +1 -1
  34. package/dist/cjs/select-input_2.cjs.entry.js +6 -6
  35. package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
  36. package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
  37. package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
  38. package/dist/cjs/utils-4ee7e080.js +3979 -0
  39. package/dist/cjs/utils-4ee7e080.js.map +1 -0
  40. package/dist/cjs/webcomponents.cjs.js +3 -6
  41. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  42. package/dist/collection/api/Api.js +3 -2
  43. package/dist/collection/api/Api.js.map +1 -1
  44. package/dist/collection/api/Payout.js +33 -0
  45. package/dist/collection/api/Payout.js.map +1 -0
  46. package/dist/collection/api/index.js +1 -0
  47. package/dist/collection/api/index.js.map +1 -1
  48. package/dist/collection/api/mockData/MockPayments.js +1 -1
  49. package/dist/collection/collection-manifest.json +18 -12
  50. package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
  51. package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
  52. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
  53. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  54. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
  55. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
  56. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  57. package/dist/collection/components/billing-form/billing-form.css +212 -39
  58. package/dist/collection/components/billing-form/billing-form.js +16 -10
  59. package/dist/collection/components/billing-form/billing-form.js.map +1 -1
  60. package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
  61. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
  62. package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
  63. package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
  64. package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
  65. package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
  66. package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
  67. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
  68. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
  69. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +72 -0
  70. package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
  71. package/dist/collection/components/business-form/business-form-schema.js +149 -0
  72. package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
  73. package/dist/collection/components/business-form/business-form.css +2532 -0
  74. package/dist/collection/components/business-form/business-form.js +76 -0
  75. package/dist/collection/components/business-form/business-form.js.map +1 -0
  76. package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
  77. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +79 -0
  78. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
  79. package/dist/collection/components/business-form/business-owners/business-owners.css +2489 -0
  80. package/dist/collection/components/business-form/business-owners/business-owners.js +120 -0
  81. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
  82. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
  83. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
  84. package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
  85. package/dist/collection/components/business-form/business-representative/business-representative.js +76 -0
  86. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
  87. package/dist/collection/components/business-form/businessForm.stories.js +115 -0
  88. package/dist/collection/components/business-form/businessForm.stories.js.map +1 -0
  89. package/dist/collection/components/card-form/card-form.js +38 -10
  90. package/dist/collection/components/card-form/card-form.js.map +1 -1
  91. package/dist/collection/components/card-form/card-form.stories.js +5 -2
  92. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  93. package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
  94. package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
  95. package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +344 -1212
  96. package/dist/collection/components/form/form-control-select.js +168 -0
  97. package/dist/collection/components/form/form-control-select.js.map +1 -0
  98. package/dist/collection/components/form/form-control-text.css +1794 -0
  99. package/dist/collection/components/form/form-control-text.js +152 -0
  100. package/dist/collection/components/form/form-control-text.js.map +1 -0
  101. package/dist/collection/components/form/form.js +85 -0
  102. package/dist/collection/components/form/form.js.map +1 -0
  103. package/dist/collection/components/payment-form/payment-form.css +220 -45
  104. package/dist/collection/components/payment-form/payment-form.js +47 -7
  105. package/dist/collection/components/payment-form/payment-form.js.map +1 -1
  106. package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
  107. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  108. package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
  109. package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
  110. package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
  111. package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
  112. package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
  113. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
  114. package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
  115. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
  116. package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
  117. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  118. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
  119. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
  120. package/dist/collection/components/payment-method-form/theme.js.map +1 -1
  121. package/dist/collection/components/payments-list/example.js +12 -0
  122. package/dist/collection/components/payments-list/payments-list.css +7954 -1
  123. package/dist/collection/components/payments-list/payments-list.js +104 -27
  124. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  125. package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
  126. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
  127. package/dist/collection/components/payments-list/test/payments-list.spec.js +82 -18
  128. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
  129. package/dist/collection/components/payouts-list/payouts-list.css +7983 -0
  130. package/dist/collection/components/payouts-list/payouts-list.js +181 -0
  131. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
  132. package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
  133. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
  134. package/dist/collection/components/select-input/select-input.css +344 -141
  135. package/dist/collection/components/select-input/select-input.js +5 -4
  136. package/dist/collection/components/select-input/select-input.js.map +1 -1
  137. package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
  138. package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
  139. package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
  140. package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
  141. package/dist/collection/components/text-input/text-input.css +344 -141
  142. package/dist/collection/components/text-input/text-input.js +2 -2
  143. package/dist/collection/components/text-input/text-input.js.map +1 -1
  144. package/dist/collection/utils/utils.js +7 -2
  145. package/dist/collection/utils/utils.js.map +1 -1
  146. package/dist/components/Api.js +2 -1
  147. package/dist/components/Api.js.map +1 -1
  148. package/dist/components/billing-form.js +2 -2
  149. package/dist/components/billing-form.js.map +1 -1
  150. package/dist/components/business-address-form.js +65 -0
  151. package/dist/components/business-address-form.js.map +1 -0
  152. package/dist/components/business-generic-info.js +190 -0
  153. package/dist/components/business-generic-info.js.map +1 -0
  154. package/dist/components/business-owners.js +102 -0
  155. package/dist/components/business-owners.js.map +1 -0
  156. package/dist/components/business-representative.js +75 -0
  157. package/dist/components/business-representative.js.map +1 -0
  158. package/dist/components/{justifi-business-info.d.ts → form-control-select.d.ts} +4 -4
  159. package/dist/components/form-control-select.js +8 -0
  160. package/dist/components/form-control-select.js.map +1 -0
  161. package/dist/components/form-control-select2.js +53 -0
  162. package/dist/components/form-control-select2.js.map +1 -0
  163. package/dist/components/form-control-text.d.ts +11 -0
  164. package/dist/components/form-control-text.js +8 -0
  165. package/dist/components/form-control-text.js.map +1 -0
  166. package/dist/components/form-control-text2.js +51 -0
  167. package/dist/components/form-control-text2.js.map +1 -0
  168. package/dist/components/index.esm.js +298 -14
  169. package/dist/components/index.esm.js.map +1 -1
  170. package/dist/components/justifi-bank-account-form.js +7 -2
  171. package/dist/components/justifi-bank-account-form.js.map +1 -1
  172. package/dist/components/justifi-business-address-form.d.ts +11 -0
  173. package/dist/components/justifi-business-address-form.js +8 -0
  174. package/dist/components/justifi-business-address-form.js.map +1 -0
  175. package/dist/components/justifi-business-form.d.ts +11 -0
  176. package/dist/components/justifi-business-form.js +802 -0
  177. package/dist/components/justifi-business-form.js.map +1 -0
  178. package/dist/components/justifi-business-generic-info.d.ts +11 -0
  179. package/dist/components/justifi-business-generic-info.js +8 -0
  180. package/dist/components/justifi-business-generic-info.js.map +1 -0
  181. package/dist/components/justifi-business-owners.d.ts +11 -0
  182. package/dist/components/justifi-business-owners.js +8 -0
  183. package/dist/components/justifi-business-owners.js.map +1 -0
  184. package/dist/components/justifi-business-representative.d.ts +11 -0
  185. package/dist/components/justifi-business-representative.js +8 -0
  186. package/dist/components/justifi-business-representative.js.map +1 -0
  187. package/dist/components/justifi-card-form.js +7 -2
  188. package/dist/components/justifi-card-form.js.map +1 -1
  189. package/dist/components/justifi-payment-form.js +23 -4
  190. package/dist/components/justifi-payment-form.js.map +1 -1
  191. package/dist/components/justifi-payments-list.js +78 -4038
  192. package/dist/components/justifi-payments-list.js.map +1 -1
  193. package/dist/components/justifi-payouts-list.d.ts +11 -0
  194. package/dist/components/justifi-payouts-list.js +134 -0
  195. package/dist/components/justifi-payouts-list.js.map +1 -0
  196. package/dist/components/payment-method-form.js +21 -16
  197. package/dist/components/payment-method-form.js.map +1 -1
  198. package/dist/components/payment-method-selector.js +1 -1
  199. package/dist/components/payment-method-selector.js.map +1 -1
  200. package/dist/components/select-input2.js +3 -3
  201. package/dist/components/select-input2.js.map +1 -1
  202. package/dist/components/state-options.js.map +1 -1
  203. package/dist/components/text-input2.js +2 -2
  204. package/dist/components/text-input2.js.map +1 -1
  205. package/dist/components/utils.js +3972 -0
  206. package/dist/components/utils.js.map +1 -0
  207. package/dist/esm/{Api-a07f0057.js → Api-436dfa09.js} +3 -2
  208. package/dist/esm/Api-436dfa09.js.map +1 -0
  209. package/dist/esm/business-form-schema-30c48693.js +128 -0
  210. package/dist/esm/business-form-schema-30c48693.js.map +1 -0
  211. package/dist/esm/form-control-select_2.entry.js +56 -0
  212. package/dist/esm/form-control-select_2.entry.js.map +1 -0
  213. package/dist/esm/{index-044f93fc.js → index-c8f391de.js} +136 -20
  214. package/dist/esm/index-c8f391de.js.map +1 -0
  215. package/dist/esm/{index.esm-5624a5ed.js → index.esm-be2cd327.js} +299 -15
  216. package/dist/esm/index.esm-be2cd327.js.map +1 -0
  217. package/dist/esm/justifi-bank-account-form.entry.js +8 -3
  218. package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
  219. package/dist/esm/justifi-billing-form_2.entry.js +5 -5
  220. package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
  221. package/dist/esm/justifi-business-address-form.entry.js +33 -0
  222. package/dist/esm/justifi-business-address-form.entry.js.map +1 -0
  223. package/dist/esm/justifi-business-form.entry.js +747 -0
  224. package/dist/esm/justifi-business-form.entry.js.map +1 -0
  225. package/dist/esm/justifi-business-generic-info_3.entry.js +142 -0
  226. package/dist/esm/justifi-business-generic-info_3.entry.js.map +1 -0
  227. package/dist/esm/justifi-card-form.entry.js +8 -3
  228. package/dist/esm/justifi-card-form.entry.js.map +1 -1
  229. package/dist/esm/justifi-payment-form.entry.js +21 -4
  230. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  231. package/dist/esm/justifi-payment-method-form.entry.js +22 -17
  232. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  233. package/dist/esm/justifi-payments-list.entry.js +75 -4038
  234. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  235. package/dist/esm/justifi-payouts-list.entry.js +109 -0
  236. package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
  237. package/dist/esm/loader.js +4 -13
  238. package/dist/esm/loader.js.map +1 -1
  239. package/dist/esm/select-input_2.entry.js +6 -6
  240. package/dist/esm/select-input_2.entry.js.map +1 -1
  241. package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
  242. package/dist/esm/state-options-ece00aa2.js.map +1 -0
  243. package/dist/esm/utils-e7782126.js +3972 -0
  244. package/dist/esm/utils-e7782126.js.map +1 -0
  245. package/dist/esm/webcomponents.js +4 -7
  246. package/dist/esm/webcomponents.js.map +1 -1
  247. package/dist/types/api/Payout.d.ts +62 -0
  248. package/dist/types/api/index.d.ts +1 -0
  249. package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
  250. package/dist/types/components/{business-info/business-info-schema.d.ts → business-form/business-form-schema.d.ts} +55 -4
  251. package/dist/types/components/business-form/business-form.d.ts +14 -0
  252. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +16 -0
  253. package/dist/types/components/business-form/business-owners/business-owners.d.ts +32 -0
  254. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
  255. package/dist/types/components/business-form/business-representative/business-representative.d.ts +12 -0
  256. package/dist/types/components/business-form/businessForm.stories.d.ts +21 -0
  257. package/dist/types/components/form/form-control-select.d.ts +16 -0
  258. package/dist/types/components/form/form-control-text.d.ts +12 -0
  259. package/dist/types/components/form/form.d.ts +21 -0
  260. package/dist/types/components/payment-form/payment-form.d.ts +2 -0
  261. package/dist/types/components/payment-method-form/theme.d.ts +2 -0
  262. package/dist/types/components/payments-list/payments-list.d.ts +38 -5
  263. package/dist/types/components/payments-list/payments-list.stories.d.ts +17 -0
  264. package/dist/types/components/payouts-list/payouts-list.d.ts +45 -0
  265. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +16 -0
  266. package/dist/types/components.d.ts +339 -26
  267. package/dist/types/stencil-public-runtime.d.ts +14 -2
  268. package/dist/types/utils/utils.d.ts +1 -0
  269. package/dist/webcomponents/p-0fd4aae2.js +2 -0
  270. package/dist/webcomponents/p-0fd4aae2.js.map +1 -0
  271. package/dist/webcomponents/p-1953797f.entry.js +2 -0
  272. package/dist/webcomponents/p-1953797f.entry.js.map +1 -0
  273. package/dist/webcomponents/p-1a1f2196.js +2 -0
  274. package/dist/webcomponents/p-1a1f2196.js.map +1 -0
  275. package/dist/webcomponents/p-23e9c7d4.entry.js +2 -0
  276. package/dist/webcomponents/p-23e9c7d4.entry.js.map +1 -0
  277. package/dist/webcomponents/p-309a886f.entry.js +2 -0
  278. package/dist/webcomponents/p-309a886f.entry.js.map +1 -0
  279. package/dist/webcomponents/p-33d69eb5.entry.js +2 -0
  280. package/dist/webcomponents/p-33d69eb5.entry.js.map +1 -0
  281. package/dist/webcomponents/p-3a80a2ec.entry.js +2 -0
  282. package/dist/webcomponents/p-3a80a2ec.entry.js.map +1 -0
  283. package/dist/webcomponents/p-45fea6a8.entry.js +2 -0
  284. package/dist/webcomponents/p-45fea6a8.entry.js.map +1 -0
  285. package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
  286. package/dist/webcomponents/p-47bc59b5.js.map +1 -0
  287. package/dist/webcomponents/p-7041a637.entry.js +2 -0
  288. package/dist/webcomponents/p-7041a637.entry.js.map +1 -0
  289. package/dist/webcomponents/p-79456add.js +2 -0
  290. package/dist/webcomponents/p-79456add.js.map +1 -0
  291. package/dist/webcomponents/{p-1f151d49.js → p-af080b21.js} +2 -2
  292. package/dist/webcomponents/p-af080b21.js.map +1 -0
  293. package/dist/webcomponents/p-bc969904.js +3 -0
  294. package/dist/webcomponents/p-bc969904.js.map +1 -0
  295. package/dist/webcomponents/p-cd097ce9.entry.js +2 -0
  296. package/dist/webcomponents/p-cd097ce9.entry.js.map +1 -0
  297. package/dist/webcomponents/p-d5bc9f22.entry.js +2 -0
  298. package/dist/webcomponents/p-d5bc9f22.entry.js.map +1 -0
  299. package/dist/webcomponents/p-d5cadc78.entry.js +2 -0
  300. package/dist/webcomponents/p-d5cadc78.entry.js.map +1 -0
  301. package/dist/webcomponents/p-dd1ebc0b.entry.js +2 -0
  302. package/dist/webcomponents/p-dd1ebc0b.entry.js.map +1 -0
  303. package/dist/webcomponents/p-e05e0c6b.entry.js +2 -0
  304. package/dist/webcomponents/p-e05e0c6b.entry.js.map +1 -0
  305. package/dist/webcomponents/webcomponents.css +1 -1
  306. package/dist/webcomponents/webcomponents.esm.js +1 -1
  307. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  308. package/loader/index.d.ts +1 -1
  309. package/package.json +12 -14
  310. package/CHANGELOG.md +0 -196
  311. package/changelog-template.hbs +0 -10
  312. package/dist/cjs/Api-11362403.js.map +0 -1
  313. package/dist/cjs/Payment-ac4dea02.js +0 -73
  314. package/dist/cjs/Payment-ac4dea02.js.map +0 -1
  315. package/dist/cjs/index-34312a38.js.map +0 -1
  316. package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
  317. package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
  318. package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
  319. package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
  320. package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
  321. package/dist/cjs/state-options-efeaa587.js.map +0 -1
  322. package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
  323. package/dist/collection/components/business-address/business-address.js +0 -100
  324. package/dist/collection/components/business-address/business-address.js.map +0 -1
  325. package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
  326. package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
  327. package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
  328. package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
  329. package/dist/collection/components/business-info/business-info-schema.js +0 -94
  330. package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
  331. package/dist/collection/components/business-info/business-info.js +0 -168
  332. package/dist/collection/components/business-info/business-info.js.map +0 -1
  333. package/dist/components/Payment.js +0 -71
  334. package/dist/components/Payment.js.map +0 -1
  335. package/dist/components/justifi-business-address.d.ts +0 -11
  336. package/dist/components/justifi-business-address.js +0 -99
  337. package/dist/components/justifi-business-address.js.map +0 -1
  338. package/dist/components/justifi-business-info.js +0 -207
  339. package/dist/components/justifi-business-info.js.map +0 -1
  340. package/dist/esm/Api-a07f0057.js.map +0 -1
  341. package/dist/esm/Payment-c86e1e84.js +0 -71
  342. package/dist/esm/Payment-c86e1e84.js.map +0 -1
  343. package/dist/esm/index-044f93fc.js.map +0 -1
  344. package/dist/esm/index.esm-5624a5ed.js.map +0 -1
  345. package/dist/esm/justifi-business-address.entry.js +0 -65
  346. package/dist/esm/justifi-business-address.entry.js.map +0 -1
  347. package/dist/esm/justifi-business-info.entry.js +0 -170
  348. package/dist/esm/justifi-business-info.entry.js.map +0 -1
  349. package/dist/esm/polyfills/css-shim.js +0 -1
  350. package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
  351. package/dist/types/components/business-address/business-address.d.ts +0 -11
  352. package/dist/types/components/business-info/business-info.d.ts +0 -20
  353. package/dist/types/components/card-form/card-form.d.ts +0 -62
  354. package/dist/webcomponents/p-0969db8f.entry.js +0 -2
  355. package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
  356. package/dist/webcomponents/p-0ea23153.js.map +0 -1
  357. package/dist/webcomponents/p-1ca0646b.js +0 -2
  358. package/dist/webcomponents/p-1ca0646b.js.map +0 -1
  359. package/dist/webcomponents/p-1f151d49.js.map +0 -1
  360. package/dist/webcomponents/p-255b1284.entry.js +0 -2
  361. package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
  362. package/dist/webcomponents/p-2b8c281e.entry.js +0 -2
  363. package/dist/webcomponents/p-2b8c281e.entry.js.map +0 -1
  364. package/dist/webcomponents/p-3aa91155.js +0 -3
  365. package/dist/webcomponents/p-3aa91155.js.map +0 -1
  366. package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
  367. package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
  368. package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
  369. package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
  370. package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
  371. package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
  372. package/dist/webcomponents/p-d87b0711.entry.js +0 -2
  373. package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
  374. package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
  375. package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
  376. package/dist/webcomponents/p-e0054bc3.js +0 -2
  377. package/dist/webcomponents/p-e0054bc3.js.map +0 -1
  378. package/dist/webcomponents/p-f30d1567.entry.js +0 -2
  379. package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
  380. /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
@@ -1,4065 +1,105 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { A as Api } from './Api.js';
3
- import { a as Payment } from './Payment.js';
3
+ import { a as Payment, f as formatDate, b as formatTime, c as formatCurrency } from './utils.js';
4
4
 
5
- function toInteger(dirtyNumber) {
6
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
7
- return NaN;
8
- }
9
-
10
- var number = Number(dirtyNumber);
11
-
12
- if (isNaN(number)) {
13
- return number;
14
- }
15
-
16
- return number < 0 ? Math.ceil(number) : Math.floor(number);
17
- }
18
-
19
- function requiredArgs(required, args) {
20
- if (args.length < required) {
21
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
22
- }
23
- }
24
-
25
- function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
26
- /**
27
- * @name toDate
28
- * @category Common Helpers
29
- * @summary Convert the given argument to an instance of Date.
30
- *
31
- * @description
32
- * Convert the given argument to an instance of Date.
33
- *
34
- * If the argument is an instance of Date, the function returns its clone.
35
- *
36
- * If the argument is a number, it is treated as a timestamp.
37
- *
38
- * If the argument is none of the above, the function returns Invalid Date.
39
- *
40
- * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
41
- *
42
- * @param {Date|Number} argument - the value to convert
43
- * @returns {Date} the parsed date in the local time zone
44
- * @throws {TypeError} 1 argument required
45
- *
46
- * @example
47
- * // Clone the date:
48
- * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
49
- * //=> Tue Feb 11 2014 11:30:30
50
- *
51
- * @example
52
- * // Convert the timestamp to date:
53
- * const result = toDate(1392098430000)
54
- * //=> Tue Feb 11 2014 11:30:30
55
- */
56
-
57
- function toDate(argument) {
58
- requiredArgs(1, arguments);
59
- var argStr = Object.prototype.toString.call(argument); // Clone the date
60
-
61
- if (argument instanceof Date || _typeof$2(argument) === 'object' && argStr === '[object Date]') {
62
- // Prevent the date to lose the milliseconds when passed to new Date() in IE10
63
- return new Date(argument.getTime());
64
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
65
- return new Date(argument);
66
- } else {
67
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
68
- // eslint-disable-next-line no-console
69
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
70
-
71
- console.warn(new Error().stack);
72
- }
73
-
74
- return new Date(NaN);
75
- }
76
- }
77
-
78
- /**
79
- * @name addMilliseconds
80
- * @category Millisecond Helpers
81
- * @summary Add the specified number of milliseconds to the given date.
82
- *
83
- * @description
84
- * Add the specified number of milliseconds to the given date.
85
- *
86
- * @param {Date|Number} date - the date to be changed
87
- * @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`.
88
- * @returns {Date} the new date with the milliseconds added
89
- * @throws {TypeError} 2 arguments required
90
- *
91
- * @example
92
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
93
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
94
- * //=> Thu Jul 10 2014 12:45:30.750
95
- */
96
-
97
- function addMilliseconds(dirtyDate, dirtyAmount) {
98
- requiredArgs(2, arguments);
99
- var timestamp = toDate(dirtyDate).getTime();
100
- var amount = toInteger(dirtyAmount);
101
- return new Date(timestamp + amount);
102
- }
103
-
104
- var defaultOptions = {};
105
- function getDefaultOptions() {
106
- return defaultOptions;
107
- }
108
-
109
- /**
110
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
111
- * They usually appear for dates that denote time before the timezones were introduced
112
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
113
- * and GMT+01:00:00 after that date)
114
- *
115
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
116
- * which would lead to incorrect calculations.
117
- *
118
- * This function returns the timezone offset in milliseconds that takes seconds in account.
119
- */
120
- function getTimezoneOffsetInMilliseconds(date) {
121
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
122
- utcDate.setUTCFullYear(date.getFullYear());
123
- return date.getTime() - utcDate.getTime();
124
- }
125
-
126
- function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
127
- /**
128
- * @name isDate
129
- * @category Common Helpers
130
- * @summary Is the given value a date?
131
- *
132
- * @description
133
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
134
- *
135
- * @param {*} value - the value to check
136
- * @returns {boolean} true if the given value is a date
137
- * @throws {TypeError} 1 arguments required
138
- *
139
- * @example
140
- * // For a valid date:
141
- * const result = isDate(new Date())
142
- * //=> true
143
- *
144
- * @example
145
- * // For an invalid date:
146
- * const result = isDate(new Date(NaN))
147
- * //=> true
148
- *
149
- * @example
150
- * // For some value:
151
- * const result = isDate('2014-02-31')
152
- * //=> false
153
- *
154
- * @example
155
- * // For an object:
156
- * const result = isDate({})
157
- * //=> false
158
- */
159
-
160
- function isDate(value) {
161
- requiredArgs(1, arguments);
162
- return value instanceof Date || _typeof$1(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
163
- }
164
-
165
- /**
166
- * @name isValid
167
- * @category Common Helpers
168
- * @summary Is the given date valid?
169
- *
170
- * @description
171
- * Returns false if argument is Invalid Date and true otherwise.
172
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
173
- * Invalid Date is a Date, whose time value is NaN.
174
- *
175
- * Time value of Date: http://es5.github.io/#x15.9.1.1
176
- *
177
- * @param {*} date - the date to check
178
- * @returns {Boolean} the date is valid
179
- * @throws {TypeError} 1 argument required
180
- *
181
- * @example
182
- * // For the valid date:
183
- * const result = isValid(new Date(2014, 1, 31))
184
- * //=> true
185
- *
186
- * @example
187
- * // For the value, convertable into a date:
188
- * const result = isValid(1393804800000)
189
- * //=> true
190
- *
191
- * @example
192
- * // For the invalid date:
193
- * const result = isValid(new Date(''))
194
- * //=> false
195
- */
196
-
197
- function isValid(dirtyDate) {
198
- requiredArgs(1, arguments);
199
-
200
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
201
- return false;
202
- }
203
-
204
- var date = toDate(dirtyDate);
205
- return !isNaN(Number(date));
206
- }
207
-
208
- /**
209
- * @name subMilliseconds
210
- * @category Millisecond Helpers
211
- * @summary Subtract the specified number of milliseconds from the given date.
212
- *
213
- * @description
214
- * Subtract the specified number of milliseconds from the given date.
215
- *
216
- * @param {Date|Number} date - the date to be changed
217
- * @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`.
218
- * @returns {Date} the new date with the milliseconds subtracted
219
- * @throws {TypeError} 2 arguments required
220
- *
221
- * @example
222
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
223
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
224
- * //=> Thu Jul 10 2014 12:45:29.250
225
- */
226
-
227
- function subMilliseconds(dirtyDate, dirtyAmount) {
228
- requiredArgs(2, arguments);
229
- var amount = toInteger(dirtyAmount);
230
- return addMilliseconds(dirtyDate, -amount);
231
- }
232
-
233
- var MILLISECONDS_IN_DAY = 86400000;
234
- function getUTCDayOfYear(dirtyDate) {
235
- requiredArgs(1, arguments);
236
- var date = toDate(dirtyDate);
237
- var timestamp = date.getTime();
238
- date.setUTCMonth(0, 1);
239
- date.setUTCHours(0, 0, 0, 0);
240
- var startOfYearTimestamp = date.getTime();
241
- var difference = timestamp - startOfYearTimestamp;
242
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
243
- }
244
-
245
- function startOfUTCISOWeek(dirtyDate) {
246
- requiredArgs(1, arguments);
247
- var weekStartsOn = 1;
248
- var date = toDate(dirtyDate);
249
- var day = date.getUTCDay();
250
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
251
- date.setUTCDate(date.getUTCDate() - diff);
252
- date.setUTCHours(0, 0, 0, 0);
253
- return date;
254
- }
255
-
256
- function getUTCISOWeekYear(dirtyDate) {
257
- requiredArgs(1, arguments);
258
- var date = toDate(dirtyDate);
259
- var year = date.getUTCFullYear();
260
- var fourthOfJanuaryOfNextYear = new Date(0);
261
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
262
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
263
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
264
- var fourthOfJanuaryOfThisYear = new Date(0);
265
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
266
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
267
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
268
-
269
- if (date.getTime() >= startOfNextYear.getTime()) {
270
- return year + 1;
271
- } else if (date.getTime() >= startOfThisYear.getTime()) {
272
- return year;
273
- } else {
274
- return year - 1;
275
- }
276
- }
277
-
278
- function startOfUTCISOWeekYear(dirtyDate) {
279
- requiredArgs(1, arguments);
280
- var year = getUTCISOWeekYear(dirtyDate);
281
- var fourthOfJanuary = new Date(0);
282
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
283
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
284
- var date = startOfUTCISOWeek(fourthOfJanuary);
285
- return date;
286
- }
287
-
288
- var MILLISECONDS_IN_WEEK$1 = 604800000;
289
- function getUTCISOWeek(dirtyDate) {
290
- requiredArgs(1, arguments);
291
- var date = toDate(dirtyDate);
292
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
293
- // because the number of milliseconds in a week is not constant
294
- // (e.g. it's different in the week of the daylight saving time clock shift)
295
-
296
- return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
297
- }
298
-
299
- function startOfUTCWeek(dirtyDate, options) {
300
- var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
301
-
302
- requiredArgs(1, arguments);
303
- var defaultOptions = getDefaultOptions();
304
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_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$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_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.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
305
-
306
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
307
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
308
- }
309
-
310
- var date = toDate(dirtyDate);
311
- var day = date.getUTCDay();
312
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
313
- date.setUTCDate(date.getUTCDate() - diff);
314
- date.setUTCHours(0, 0, 0, 0);
315
- return date;
316
- }
317
-
318
- function getUTCWeekYear(dirtyDate, options) {
319
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
320
-
321
- requiredArgs(1, arguments);
322
- var date = toDate(dirtyDate);
323
- var year = date.getUTCFullYear();
324
- var defaultOptions = getDefaultOptions();
325
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_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$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_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 && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
326
-
327
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
328
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
329
- }
330
-
331
- var firstWeekOfNextYear = new Date(0);
332
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
333
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
334
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
335
- var firstWeekOfThisYear = new Date(0);
336
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
337
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
338
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
339
-
340
- if (date.getTime() >= startOfNextYear.getTime()) {
341
- return year + 1;
342
- } else if (date.getTime() >= startOfThisYear.getTime()) {
343
- return year;
344
- } else {
345
- return year - 1;
346
- }
347
- }
348
-
349
- function startOfUTCWeekYear(dirtyDate, options) {
350
- var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
351
-
352
- requiredArgs(1, arguments);
353
- var defaultOptions = getDefaultOptions();
354
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_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$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_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 && _ref !== void 0 ? _ref : 1);
355
- var year = getUTCWeekYear(dirtyDate, options);
356
- var firstWeek = new Date(0);
357
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
358
- firstWeek.setUTCHours(0, 0, 0, 0);
359
- var date = startOfUTCWeek(firstWeek, options);
360
- return date;
361
- }
362
-
363
- var MILLISECONDS_IN_WEEK = 604800000;
364
- function getUTCWeek(dirtyDate, options) {
365
- requiredArgs(1, arguments);
366
- var date = toDate(dirtyDate);
367
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
368
- // because the number of milliseconds in a week is not constant
369
- // (e.g. it's different in the week of the daylight saving time clock shift)
370
-
371
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
372
- }
373
-
374
- function addLeadingZeros(number, targetLength) {
375
- var sign = number < 0 ? '-' : '';
376
- var output = Math.abs(number).toString();
377
-
378
- while (output.length < targetLength) {
379
- output = '0' + output;
380
- }
381
-
382
- return sign + output;
383
- }
384
-
385
- /*
386
- * | | Unit | | Unit |
387
- * |-----|--------------------------------|-----|--------------------------------|
388
- * | a | AM, PM | A* | |
389
- * | d | Day of month | D | |
390
- * | h | Hour [1-12] | H | Hour [0-23] |
391
- * | m | Minute | M | Month |
392
- * | s | Second | S | Fraction of second |
393
- * | y | Year (abs) | Y | |
394
- *
395
- * Letters marked by * are not implemented but reserved by Unicode standard.
396
- */
397
-
398
- var formatters$1 = {
399
- // Year
400
- y: function y(date, token) {
401
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
402
- // | Year | y | yy | yyy | yyyy | yyyyy |
403
- // |----------|-------|----|-------|-------|-------|
404
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
405
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
406
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
407
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
408
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
409
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
410
-
411
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
412
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
413
- },
414
- // Month
415
- M: function M(date, token) {
416
- var month = date.getUTCMonth();
417
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
418
- },
419
- // Day of the month
420
- d: function d(date, token) {
421
- return addLeadingZeros(date.getUTCDate(), token.length);
422
- },
423
- // AM or PM
424
- a: function a(date, token) {
425
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
426
-
427
- switch (token) {
428
- case 'a':
429
- case 'aa':
430
- return dayPeriodEnumValue.toUpperCase();
431
-
432
- case 'aaa':
433
- return dayPeriodEnumValue;
434
-
435
- case 'aaaaa':
436
- return dayPeriodEnumValue[0];
437
-
438
- case 'aaaa':
439
- default:
440
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
441
- }
442
- },
443
- // Hour [1-12]
444
- h: function h(date, token) {
445
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
446
- },
447
- // Hour [0-23]
448
- H: function H(date, token) {
449
- return addLeadingZeros(date.getUTCHours(), token.length);
450
- },
451
- // Minute
452
- m: function m(date, token) {
453
- return addLeadingZeros(date.getUTCMinutes(), token.length);
454
- },
455
- // Second
456
- s: function s(date, token) {
457
- return addLeadingZeros(date.getUTCSeconds(), token.length);
458
- },
459
- // Fraction of second
460
- S: function S(date, token) {
461
- var numberOfDigits = token.length;
462
- var milliseconds = date.getUTCMilliseconds();
463
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
464
- return addLeadingZeros(fractionalSeconds, token.length);
465
- }
466
- };
467
-
468
- var dayPeriodEnum = {
469
- am: 'am',
470
- pm: 'pm',
471
- midnight: 'midnight',
472
- noon: 'noon',
473
- morning: 'morning',
474
- afternoon: 'afternoon',
475
- evening: 'evening',
476
- night: 'night'
477
- };
478
-
479
- /*
480
- * | | Unit | | Unit |
481
- * |-----|--------------------------------|-----|--------------------------------|
482
- * | a | AM, PM | A* | Milliseconds in day |
483
- * | b | AM, PM, noon, midnight | B | Flexible day period |
484
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
485
- * | d | Day of month | D | Day of year |
486
- * | e | Local day of week | E | Day of week |
487
- * | f | | F* | Day of week in month |
488
- * | g* | Modified Julian day | G | Era |
489
- * | h | Hour [1-12] | H | Hour [0-23] |
490
- * | i! | ISO day of week | I! | ISO week of year |
491
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
492
- * | k | Hour [1-24] | K | Hour [0-11] |
493
- * | l* | (deprecated) | L | Stand-alone month |
494
- * | m | Minute | M | Month |
495
- * | n | | N | |
496
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
497
- * | p! | Long localized time | P! | Long localized date |
498
- * | q | Stand-alone quarter | Q | Quarter |
499
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
500
- * | s | Second | S | Fraction of second |
501
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
502
- * | u | Extended year | U* | Cyclic year |
503
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
504
- * | w | Local week of year | W* | Week of month |
505
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
506
- * | y | Year (abs) | Y | Local week-numbering year |
507
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
508
- *
509
- * Letters marked by * are not implemented but reserved by Unicode standard.
510
- *
511
- * Letters marked by ! are non-standard, but implemented by date-fns:
512
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
513
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
514
- * i.e. 7 for Sunday, 1 for Monday, etc.
515
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
516
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
517
- * `R` is supposed to be used in conjunction with `I` and `i`
518
- * for universal ISO week-numbering date, whereas
519
- * `Y` is supposed to be used in conjunction with `w` and `e`
520
- * for week-numbering date specific to the locale.
521
- * - `P` is long localized date format
522
- * - `p` is long localized time format
523
- */
524
- var formatters = {
525
- // Era
526
- G: function G(date, token, localize) {
527
- var era = date.getUTCFullYear() > 0 ? 1 : 0;
528
-
529
- switch (token) {
530
- // AD, BC
531
- case 'G':
532
- case 'GG':
533
- case 'GGG':
534
- return localize.era(era, {
535
- width: 'abbreviated'
536
- });
537
- // A, B
538
-
539
- case 'GGGGG':
540
- return localize.era(era, {
541
- width: 'narrow'
542
- });
543
- // Anno Domini, Before Christ
544
-
545
- case 'GGGG':
546
- default:
547
- return localize.era(era, {
548
- width: 'wide'
549
- });
550
- }
551
- },
552
- // Year
553
- y: function y(date, token, localize) {
554
- // Ordinal number
555
- if (token === 'yo') {
556
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
557
-
558
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
559
- return localize.ordinalNumber(year, {
560
- unit: 'year'
561
- });
562
- }
563
-
564
- return formatters$1.y(date, token);
565
- },
566
- // Local week-numbering year
567
- Y: function Y(date, token, localize, options) {
568
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
569
-
570
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
571
-
572
- if (token === 'YY') {
573
- var twoDigitYear = weekYear % 100;
574
- return addLeadingZeros(twoDigitYear, 2);
575
- } // Ordinal number
576
-
577
-
578
- if (token === 'Yo') {
579
- return localize.ordinalNumber(weekYear, {
580
- unit: 'year'
581
- });
582
- } // Padding
583
-
584
-
585
- return addLeadingZeros(weekYear, token.length);
586
- },
587
- // ISO week-numbering year
588
- R: function R(date, token) {
589
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
590
-
591
- return addLeadingZeros(isoWeekYear, token.length);
592
- },
593
- // Extended year. This is a single number designating the year of this calendar system.
594
- // The main difference between `y` and `u` localizers are B.C. years:
595
- // | Year | `y` | `u` |
596
- // |------|-----|-----|
597
- // | AC 1 | 1 | 1 |
598
- // | BC 1 | 1 | 0 |
599
- // | BC 2 | 2 | -1 |
600
- // Also `yy` always returns the last two digits of a year,
601
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
602
- u: function u(date, token) {
603
- var year = date.getUTCFullYear();
604
- return addLeadingZeros(year, token.length);
605
- },
606
- // Quarter
607
- Q: function Q(date, token, localize) {
608
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
609
-
610
- switch (token) {
611
- // 1, 2, 3, 4
612
- case 'Q':
613
- return String(quarter);
614
- // 01, 02, 03, 04
615
-
616
- case 'QQ':
617
- return addLeadingZeros(quarter, 2);
618
- // 1st, 2nd, 3rd, 4th
619
-
620
- case 'Qo':
621
- return localize.ordinalNumber(quarter, {
622
- unit: 'quarter'
623
- });
624
- // Q1, Q2, Q3, Q4
625
-
626
- case 'QQQ':
627
- return localize.quarter(quarter, {
628
- width: 'abbreviated',
629
- context: 'formatting'
630
- });
631
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
632
-
633
- case 'QQQQQ':
634
- return localize.quarter(quarter, {
635
- width: 'narrow',
636
- context: 'formatting'
637
- });
638
- // 1st quarter, 2nd quarter, ...
639
-
640
- case 'QQQQ':
641
- default:
642
- return localize.quarter(quarter, {
643
- width: 'wide',
644
- context: 'formatting'
645
- });
646
- }
647
- },
648
- // Stand-alone quarter
649
- q: function q(date, token, localize) {
650
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
651
-
652
- switch (token) {
653
- // 1, 2, 3, 4
654
- case 'q':
655
- return String(quarter);
656
- // 01, 02, 03, 04
657
-
658
- case 'qq':
659
- return addLeadingZeros(quarter, 2);
660
- // 1st, 2nd, 3rd, 4th
661
-
662
- case 'qo':
663
- return localize.ordinalNumber(quarter, {
664
- unit: 'quarter'
665
- });
666
- // Q1, Q2, Q3, Q4
667
-
668
- case 'qqq':
669
- return localize.quarter(quarter, {
670
- width: 'abbreviated',
671
- context: 'standalone'
672
- });
673
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
674
-
675
- case 'qqqqq':
676
- return localize.quarter(quarter, {
677
- width: 'narrow',
678
- context: 'standalone'
679
- });
680
- // 1st quarter, 2nd quarter, ...
681
-
682
- case 'qqqq':
683
- default:
684
- return localize.quarter(quarter, {
685
- width: 'wide',
686
- context: 'standalone'
687
- });
688
- }
689
- },
690
- // Month
691
- M: function M(date, token, localize) {
692
- var month = date.getUTCMonth();
693
-
694
- switch (token) {
695
- case 'M':
696
- case 'MM':
697
- return formatters$1.M(date, token);
698
- // 1st, 2nd, ..., 12th
699
-
700
- case 'Mo':
701
- return localize.ordinalNumber(month + 1, {
702
- unit: 'month'
703
- });
704
- // Jan, Feb, ..., Dec
705
-
706
- case 'MMM':
707
- return localize.month(month, {
708
- width: 'abbreviated',
709
- context: 'formatting'
710
- });
711
- // J, F, ..., D
712
-
713
- case 'MMMMM':
714
- return localize.month(month, {
715
- width: 'narrow',
716
- context: 'formatting'
717
- });
718
- // January, February, ..., December
719
-
720
- case 'MMMM':
721
- default:
722
- return localize.month(month, {
723
- width: 'wide',
724
- context: 'formatting'
725
- });
726
- }
727
- },
728
- // Stand-alone month
729
- L: function L(date, token, localize) {
730
- var month = date.getUTCMonth();
731
-
732
- switch (token) {
733
- // 1, 2, ..., 12
734
- case 'L':
735
- return String(month + 1);
736
- // 01, 02, ..., 12
737
-
738
- case 'LL':
739
- return addLeadingZeros(month + 1, 2);
740
- // 1st, 2nd, ..., 12th
741
-
742
- case 'Lo':
743
- return localize.ordinalNumber(month + 1, {
744
- unit: 'month'
745
- });
746
- // Jan, Feb, ..., Dec
747
-
748
- case 'LLL':
749
- return localize.month(month, {
750
- width: 'abbreviated',
751
- context: 'standalone'
752
- });
753
- // J, F, ..., D
754
-
755
- case 'LLLLL':
756
- return localize.month(month, {
757
- width: 'narrow',
758
- context: 'standalone'
759
- });
760
- // January, February, ..., December
761
-
762
- case 'LLLL':
763
- default:
764
- return localize.month(month, {
765
- width: 'wide',
766
- context: 'standalone'
767
- });
768
- }
769
- },
770
- // Local week of year
771
- w: function w(date, token, localize, options) {
772
- var week = getUTCWeek(date, options);
773
-
774
- if (token === 'wo') {
775
- return localize.ordinalNumber(week, {
776
- unit: 'week'
777
- });
778
- }
779
-
780
- return addLeadingZeros(week, token.length);
781
- },
782
- // ISO week of year
783
- I: function I(date, token, localize) {
784
- var isoWeek = getUTCISOWeek(date);
785
-
786
- if (token === 'Io') {
787
- return localize.ordinalNumber(isoWeek, {
788
- unit: 'week'
789
- });
790
- }
791
-
792
- return addLeadingZeros(isoWeek, token.length);
793
- },
794
- // Day of the month
795
- d: function d(date, token, localize) {
796
- if (token === 'do') {
797
- return localize.ordinalNumber(date.getUTCDate(), {
798
- unit: 'date'
799
- });
800
- }
801
-
802
- return formatters$1.d(date, token);
803
- },
804
- // Day of year
805
- D: function D(date, token, localize) {
806
- var dayOfYear = getUTCDayOfYear(date);
807
-
808
- if (token === 'Do') {
809
- return localize.ordinalNumber(dayOfYear, {
810
- unit: 'dayOfYear'
811
- });
812
- }
813
-
814
- return addLeadingZeros(dayOfYear, token.length);
815
- },
816
- // Day of week
817
- E: function E(date, token, localize) {
818
- var dayOfWeek = date.getUTCDay();
819
-
820
- switch (token) {
821
- // Tue
822
- case 'E':
823
- case 'EE':
824
- case 'EEE':
825
- return localize.day(dayOfWeek, {
826
- width: 'abbreviated',
827
- context: 'formatting'
828
- });
829
- // T
830
-
831
- case 'EEEEE':
832
- return localize.day(dayOfWeek, {
833
- width: 'narrow',
834
- context: 'formatting'
835
- });
836
- // Tu
837
-
838
- case 'EEEEEE':
839
- return localize.day(dayOfWeek, {
840
- width: 'short',
841
- context: 'formatting'
842
- });
843
- // Tuesday
844
-
845
- case 'EEEE':
846
- default:
847
- return localize.day(dayOfWeek, {
848
- width: 'wide',
849
- context: 'formatting'
850
- });
851
- }
852
- },
853
- // Local day of week
854
- e: function e(date, token, localize, options) {
855
- var dayOfWeek = date.getUTCDay();
856
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
857
-
858
- switch (token) {
859
- // Numerical value (Nth day of week with current locale or weekStartsOn)
860
- case 'e':
861
- return String(localDayOfWeek);
862
- // Padded numerical value
863
-
864
- case 'ee':
865
- return addLeadingZeros(localDayOfWeek, 2);
866
- // 1st, 2nd, ..., 7th
867
-
868
- case 'eo':
869
- return localize.ordinalNumber(localDayOfWeek, {
870
- unit: 'day'
871
- });
872
-
873
- case 'eee':
874
- return localize.day(dayOfWeek, {
875
- width: 'abbreviated',
876
- context: 'formatting'
877
- });
878
- // T
879
-
880
- case 'eeeee':
881
- return localize.day(dayOfWeek, {
882
- width: 'narrow',
883
- context: 'formatting'
884
- });
885
- // Tu
886
-
887
- case 'eeeeee':
888
- return localize.day(dayOfWeek, {
889
- width: 'short',
890
- context: 'formatting'
891
- });
892
- // Tuesday
893
-
894
- case 'eeee':
895
- default:
896
- return localize.day(dayOfWeek, {
897
- width: 'wide',
898
- context: 'formatting'
899
- });
900
- }
901
- },
902
- // Stand-alone local day of week
903
- c: function c(date, token, localize, options) {
904
- var dayOfWeek = date.getUTCDay();
905
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
906
-
907
- switch (token) {
908
- // Numerical value (same as in `e`)
909
- case 'c':
910
- return String(localDayOfWeek);
911
- // Padded numerical value
912
-
913
- case 'cc':
914
- return addLeadingZeros(localDayOfWeek, token.length);
915
- // 1st, 2nd, ..., 7th
916
-
917
- case 'co':
918
- return localize.ordinalNumber(localDayOfWeek, {
919
- unit: 'day'
920
- });
921
-
922
- case 'ccc':
923
- return localize.day(dayOfWeek, {
924
- width: 'abbreviated',
925
- context: 'standalone'
926
- });
927
- // T
928
-
929
- case 'ccccc':
930
- return localize.day(dayOfWeek, {
931
- width: 'narrow',
932
- context: 'standalone'
933
- });
934
- // Tu
935
-
936
- case 'cccccc':
937
- return localize.day(dayOfWeek, {
938
- width: 'short',
939
- context: 'standalone'
940
- });
941
- // Tuesday
942
-
943
- case 'cccc':
944
- default:
945
- return localize.day(dayOfWeek, {
946
- width: 'wide',
947
- context: 'standalone'
948
- });
949
- }
950
- },
951
- // ISO day of week
952
- i: function i(date, token, localize) {
953
- var dayOfWeek = date.getUTCDay();
954
- var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
955
-
956
- switch (token) {
957
- // 2
958
- case 'i':
959
- return String(isoDayOfWeek);
960
- // 02
961
-
962
- case 'ii':
963
- return addLeadingZeros(isoDayOfWeek, token.length);
964
- // 2nd
965
-
966
- case 'io':
967
- return localize.ordinalNumber(isoDayOfWeek, {
968
- unit: 'day'
969
- });
970
- // Tue
971
-
972
- case 'iii':
973
- return localize.day(dayOfWeek, {
974
- width: 'abbreviated',
975
- context: 'formatting'
976
- });
977
- // T
978
-
979
- case 'iiiii':
980
- return localize.day(dayOfWeek, {
981
- width: 'narrow',
982
- context: 'formatting'
983
- });
984
- // Tu
985
-
986
- case 'iiiiii':
987
- return localize.day(dayOfWeek, {
988
- width: 'short',
989
- context: 'formatting'
990
- });
991
- // Tuesday
992
-
993
- case 'iiii':
994
- default:
995
- return localize.day(dayOfWeek, {
996
- width: 'wide',
997
- context: 'formatting'
998
- });
999
- }
1000
- },
1001
- // AM or PM
1002
- a: function a(date, token, localize) {
1003
- var hours = date.getUTCHours();
1004
- var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1005
-
1006
- switch (token) {
1007
- case 'a':
1008
- case 'aa':
1009
- return localize.dayPeriod(dayPeriodEnumValue, {
1010
- width: 'abbreviated',
1011
- context: 'formatting'
1012
- });
1013
-
1014
- case 'aaa':
1015
- return localize.dayPeriod(dayPeriodEnumValue, {
1016
- width: 'abbreviated',
1017
- context: 'formatting'
1018
- }).toLowerCase();
1019
-
1020
- case 'aaaaa':
1021
- return localize.dayPeriod(dayPeriodEnumValue, {
1022
- width: 'narrow',
1023
- context: 'formatting'
1024
- });
1025
-
1026
- case 'aaaa':
1027
- default:
1028
- return localize.dayPeriod(dayPeriodEnumValue, {
1029
- width: 'wide',
1030
- context: 'formatting'
1031
- });
1032
- }
1033
- },
1034
- // AM, PM, midnight, noon
1035
- b: function b(date, token, localize) {
1036
- var hours = date.getUTCHours();
1037
- var dayPeriodEnumValue;
1038
-
1039
- if (hours === 12) {
1040
- dayPeriodEnumValue = dayPeriodEnum.noon;
1041
- } else if (hours === 0) {
1042
- dayPeriodEnumValue = dayPeriodEnum.midnight;
1043
- } else {
1044
- dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1045
- }
1046
-
1047
- switch (token) {
1048
- case 'b':
1049
- case 'bb':
1050
- return localize.dayPeriod(dayPeriodEnumValue, {
1051
- width: 'abbreviated',
1052
- context: 'formatting'
1053
- });
1054
-
1055
- case 'bbb':
1056
- return localize.dayPeriod(dayPeriodEnumValue, {
1057
- width: 'abbreviated',
1058
- context: 'formatting'
1059
- }).toLowerCase();
1060
-
1061
- case 'bbbbb':
1062
- return localize.dayPeriod(dayPeriodEnumValue, {
1063
- width: 'narrow',
1064
- context: 'formatting'
1065
- });
1066
-
1067
- case 'bbbb':
1068
- default:
1069
- return localize.dayPeriod(dayPeriodEnumValue, {
1070
- width: 'wide',
1071
- context: 'formatting'
1072
- });
1073
- }
1074
- },
1075
- // in the morning, in the afternoon, in the evening, at night
1076
- B: function B(date, token, localize) {
1077
- var hours = date.getUTCHours();
1078
- var dayPeriodEnumValue;
1079
-
1080
- if (hours >= 17) {
1081
- dayPeriodEnumValue = dayPeriodEnum.evening;
1082
- } else if (hours >= 12) {
1083
- dayPeriodEnumValue = dayPeriodEnum.afternoon;
1084
- } else if (hours >= 4) {
1085
- dayPeriodEnumValue = dayPeriodEnum.morning;
1086
- } else {
1087
- dayPeriodEnumValue = dayPeriodEnum.night;
1088
- }
1089
-
1090
- switch (token) {
1091
- case 'B':
1092
- case 'BB':
1093
- case 'BBB':
1094
- return localize.dayPeriod(dayPeriodEnumValue, {
1095
- width: 'abbreviated',
1096
- context: 'formatting'
1097
- });
1098
-
1099
- case 'BBBBB':
1100
- return localize.dayPeriod(dayPeriodEnumValue, {
1101
- width: 'narrow',
1102
- context: 'formatting'
1103
- });
1104
-
1105
- case 'BBBB':
1106
- default:
1107
- return localize.dayPeriod(dayPeriodEnumValue, {
1108
- width: 'wide',
1109
- context: 'formatting'
1110
- });
1111
- }
1112
- },
1113
- // Hour [1-12]
1114
- h: function h(date, token, localize) {
1115
- if (token === 'ho') {
1116
- var hours = date.getUTCHours() % 12;
1117
- if (hours === 0) hours = 12;
1118
- return localize.ordinalNumber(hours, {
1119
- unit: 'hour'
1120
- });
1121
- }
1122
-
1123
- return formatters$1.h(date, token);
1124
- },
1125
- // Hour [0-23]
1126
- H: function H(date, token, localize) {
1127
- if (token === 'Ho') {
1128
- return localize.ordinalNumber(date.getUTCHours(), {
1129
- unit: 'hour'
1130
- });
1131
- }
1132
-
1133
- return formatters$1.H(date, token);
1134
- },
1135
- // Hour [0-11]
1136
- K: function K(date, token, localize) {
1137
- var hours = date.getUTCHours() % 12;
1138
-
1139
- if (token === 'Ko') {
1140
- return localize.ordinalNumber(hours, {
1141
- unit: 'hour'
1142
- });
1143
- }
1144
-
1145
- return addLeadingZeros(hours, token.length);
1146
- },
1147
- // Hour [1-24]
1148
- k: function k(date, token, localize) {
1149
- var hours = date.getUTCHours();
1150
- if (hours === 0) hours = 24;
1151
-
1152
- if (token === 'ko') {
1153
- return localize.ordinalNumber(hours, {
1154
- unit: 'hour'
1155
- });
1156
- }
1157
-
1158
- return addLeadingZeros(hours, token.length);
1159
- },
1160
- // Minute
1161
- m: function m(date, token, localize) {
1162
- if (token === 'mo') {
1163
- return localize.ordinalNumber(date.getUTCMinutes(), {
1164
- unit: 'minute'
1165
- });
1166
- }
1167
-
1168
- return formatters$1.m(date, token);
1169
- },
1170
- // Second
1171
- s: function s(date, token, localize) {
1172
- if (token === 'so') {
1173
- return localize.ordinalNumber(date.getUTCSeconds(), {
1174
- unit: 'second'
1175
- });
1176
- }
1177
-
1178
- return formatters$1.s(date, token);
1179
- },
1180
- // Fraction of second
1181
- S: function S(date, token) {
1182
- return formatters$1.S(date, token);
1183
- },
1184
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1185
- X: function X(date, token, _localize, options) {
1186
- var originalDate = options._originalDate || date;
1187
- var timezoneOffset = originalDate.getTimezoneOffset();
1188
-
1189
- if (timezoneOffset === 0) {
1190
- return 'Z';
1191
- }
1192
-
1193
- switch (token) {
1194
- // Hours and optional minutes
1195
- case 'X':
1196
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
1197
- // Hours, minutes and optional seconds without `:` delimiter
1198
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1199
- // so this token always has the same output as `XX`
1200
-
1201
- case 'XXXX':
1202
- case 'XX':
1203
- // Hours and minutes without `:` delimiter
1204
- return formatTimezone(timezoneOffset);
1205
- // Hours, minutes and optional seconds with `:` delimiter
1206
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1207
- // so this token always has the same output as `XXX`
1208
-
1209
- case 'XXXXX':
1210
- case 'XXX': // Hours and minutes with `:` delimiter
1211
-
1212
- default:
1213
- return formatTimezone(timezoneOffset, ':');
1214
- }
1215
- },
1216
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1217
- x: function x(date, token, _localize, options) {
1218
- var originalDate = options._originalDate || date;
1219
- var timezoneOffset = originalDate.getTimezoneOffset();
1220
-
1221
- switch (token) {
1222
- // Hours and optional minutes
1223
- case 'x':
1224
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
1225
- // Hours, minutes and optional seconds without `:` delimiter
1226
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1227
- // so this token always has the same output as `xx`
1228
-
1229
- case 'xxxx':
1230
- case 'xx':
1231
- // Hours and minutes without `:` delimiter
1232
- return formatTimezone(timezoneOffset);
1233
- // Hours, minutes and optional seconds with `:` delimiter
1234
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1235
- // so this token always has the same output as `xxx`
1236
-
1237
- case 'xxxxx':
1238
- case 'xxx': // Hours and minutes with `:` delimiter
1239
-
1240
- default:
1241
- return formatTimezone(timezoneOffset, ':');
1242
- }
1243
- },
1244
- // Timezone (GMT)
1245
- O: function O(date, token, _localize, options) {
1246
- var originalDate = options._originalDate || date;
1247
- var timezoneOffset = originalDate.getTimezoneOffset();
1248
-
1249
- switch (token) {
1250
- // Short
1251
- case 'O':
1252
- case 'OO':
1253
- case 'OOO':
1254
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1255
- // Long
1256
-
1257
- case 'OOOO':
1258
- default:
1259
- return 'GMT' + formatTimezone(timezoneOffset, ':');
1260
- }
1261
- },
1262
- // Timezone (specific non-location)
1263
- z: function z(date, token, _localize, options) {
1264
- var originalDate = options._originalDate || date;
1265
- var timezoneOffset = originalDate.getTimezoneOffset();
1266
-
1267
- switch (token) {
1268
- // Short
1269
- case 'z':
1270
- case 'zz':
1271
- case 'zzz':
1272
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1273
- // Long
1274
-
1275
- case 'zzzz':
1276
- default:
1277
- return 'GMT' + formatTimezone(timezoneOffset, ':');
1278
- }
1279
- },
1280
- // Seconds timestamp
1281
- t: function t(date, token, _localize, options) {
1282
- var originalDate = options._originalDate || date;
1283
- var timestamp = Math.floor(originalDate.getTime() / 1000);
1284
- return addLeadingZeros(timestamp, token.length);
1285
- },
1286
- // Milliseconds timestamp
1287
- T: function T(date, token, _localize, options) {
1288
- var originalDate = options._originalDate || date;
1289
- var timestamp = originalDate.getTime();
1290
- return addLeadingZeros(timestamp, token.length);
1291
- }
1292
- };
1293
-
1294
- function formatTimezoneShort(offset, dirtyDelimiter) {
1295
- var sign = offset > 0 ? '-' : '+';
1296
- var absOffset = Math.abs(offset);
1297
- var hours = Math.floor(absOffset / 60);
1298
- var minutes = absOffset % 60;
1299
-
1300
- if (minutes === 0) {
1301
- return sign + String(hours);
1302
- }
1303
-
1304
- var delimiter = dirtyDelimiter || '';
1305
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
1306
- }
1307
-
1308
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
1309
- if (offset % 60 === 0) {
1310
- var sign = offset > 0 ? '-' : '+';
1311
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
1312
- }
1313
-
1314
- return formatTimezone(offset, dirtyDelimiter);
1315
- }
1316
-
1317
- function formatTimezone(offset, dirtyDelimiter) {
1318
- var delimiter = dirtyDelimiter || '';
1319
- var sign = offset > 0 ? '-' : '+';
1320
- var absOffset = Math.abs(offset);
1321
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
1322
- var minutes = addLeadingZeros(absOffset % 60, 2);
1323
- return sign + hours + delimiter + minutes;
1324
- }
1325
-
1326
- var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1327
- switch (pattern) {
1328
- case 'P':
1329
- return formatLong.date({
1330
- width: 'short'
1331
- });
1332
-
1333
- case 'PP':
1334
- return formatLong.date({
1335
- width: 'medium'
1336
- });
1337
-
1338
- case 'PPP':
1339
- return formatLong.date({
1340
- width: 'long'
1341
- });
1342
-
1343
- case 'PPPP':
1344
- default:
1345
- return formatLong.date({
1346
- width: 'full'
1347
- });
1348
- }
1349
- };
1350
-
1351
- var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1352
- switch (pattern) {
1353
- case 'p':
1354
- return formatLong.time({
1355
- width: 'short'
1356
- });
1357
-
1358
- case 'pp':
1359
- return formatLong.time({
1360
- width: 'medium'
1361
- });
1362
-
1363
- case 'ppp':
1364
- return formatLong.time({
1365
- width: 'long'
1366
- });
1367
-
1368
- case 'pppp':
1369
- default:
1370
- return formatLong.time({
1371
- width: 'full'
1372
- });
1373
- }
1374
- };
1375
-
1376
- var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
1377
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
1378
- var datePattern = matchResult[1];
1379
- var timePattern = matchResult[2];
1380
-
1381
- if (!timePattern) {
1382
- return dateLongFormatter(pattern, formatLong);
1383
- }
1384
-
1385
- var dateTimeFormat;
1386
-
1387
- switch (datePattern) {
1388
- case 'P':
1389
- dateTimeFormat = formatLong.dateTime({
1390
- width: 'short'
1391
- });
1392
- break;
1393
-
1394
- case 'PP':
1395
- dateTimeFormat = formatLong.dateTime({
1396
- width: 'medium'
1397
- });
1398
- break;
1399
-
1400
- case 'PPP':
1401
- dateTimeFormat = formatLong.dateTime({
1402
- width: 'long'
1403
- });
1404
- break;
1405
-
1406
- case 'PPPP':
1407
- default:
1408
- dateTimeFormat = formatLong.dateTime({
1409
- width: 'full'
1410
- });
1411
- break;
1412
- }
1413
-
1414
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
1415
- };
1416
-
1417
- var longFormatters = {
1418
- p: timeLongFormatter,
1419
- P: dateTimeLongFormatter
1420
- };
1421
-
1422
- var protectedDayOfYearTokens = ['D', 'DD'];
1423
- var protectedWeekYearTokens = ['YY', 'YYYY'];
1424
- function isProtectedDayOfYearToken(token) {
1425
- return protectedDayOfYearTokens.indexOf(token) !== -1;
1426
- }
1427
- function isProtectedWeekYearToken(token) {
1428
- return protectedWeekYearTokens.indexOf(token) !== -1;
1429
- }
1430
- function throwProtectedError(token, format, input) {
1431
- if (token === 'YYYY') {
1432
- 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"));
1433
- } else if (token === 'YY') {
1434
- 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"));
1435
- } else if (token === 'D') {
1436
- 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"));
1437
- } else if (token === 'DD') {
1438
- 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"));
1439
- }
1440
- }
1441
-
1442
- var formatDistanceLocale = {
1443
- lessThanXSeconds: {
1444
- one: 'less than a second',
1445
- other: 'less than {{count}} seconds'
1446
- },
1447
- xSeconds: {
1448
- one: '1 second',
1449
- other: '{{count}} seconds'
1450
- },
1451
- halfAMinute: 'half a minute',
1452
- lessThanXMinutes: {
1453
- one: 'less than a minute',
1454
- other: 'less than {{count}} minutes'
1455
- },
1456
- xMinutes: {
1457
- one: '1 minute',
1458
- other: '{{count}} minutes'
1459
- },
1460
- aboutXHours: {
1461
- one: 'about 1 hour',
1462
- other: 'about {{count}} hours'
1463
- },
1464
- xHours: {
1465
- one: '1 hour',
1466
- other: '{{count}} hours'
1467
- },
1468
- xDays: {
1469
- one: '1 day',
1470
- other: '{{count}} days'
1471
- },
1472
- aboutXWeeks: {
1473
- one: 'about 1 week',
1474
- other: 'about {{count}} weeks'
1475
- },
1476
- xWeeks: {
1477
- one: '1 week',
1478
- other: '{{count}} weeks'
1479
- },
1480
- aboutXMonths: {
1481
- one: 'about 1 month',
1482
- other: 'about {{count}} months'
1483
- },
1484
- xMonths: {
1485
- one: '1 month',
1486
- other: '{{count}} months'
1487
- },
1488
- aboutXYears: {
1489
- one: 'about 1 year',
1490
- other: 'about {{count}} years'
1491
- },
1492
- xYears: {
1493
- one: '1 year',
1494
- other: '{{count}} years'
1495
- },
1496
- overXYears: {
1497
- one: 'over 1 year',
1498
- other: 'over {{count}} years'
1499
- },
1500
- almostXYears: {
1501
- one: 'almost 1 year',
1502
- other: 'almost {{count}} years'
1503
- }
1504
- };
1505
-
1506
- var formatDistance = function formatDistance(token, count, options) {
1507
- var result;
1508
- var tokenValue = formatDistanceLocale[token];
1509
-
1510
- if (typeof tokenValue === 'string') {
1511
- result = tokenValue;
1512
- } else if (count === 1) {
1513
- result = tokenValue.one;
1514
- } else {
1515
- result = tokenValue.other.replace('{{count}}', count.toString());
1516
- }
1517
-
1518
- if (options !== null && options !== void 0 && options.addSuffix) {
1519
- if (options.comparison && options.comparison > 0) {
1520
- return 'in ' + result;
1521
- } else {
1522
- return result + ' ago';
1523
- }
1524
- }
1525
-
1526
- return result;
1527
- };
1528
-
1529
- function buildFormatLongFn(args) {
1530
- return function () {
1531
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1532
- // TODO: Remove String()
1533
- var width = options.width ? String(options.width) : args.defaultWidth;
1534
- var format = args.formats[width] || args.formats[args.defaultWidth];
1535
- return format;
1536
- };
1537
- }
1538
-
1539
- var dateFormats = {
1540
- full: 'EEEE, MMMM do, y',
1541
- long: 'MMMM do, y',
1542
- medium: 'MMM d, y',
1543
- short: 'MM/dd/yyyy'
1544
- };
1545
- var timeFormats = {
1546
- full: 'h:mm:ss a zzzz',
1547
- long: 'h:mm:ss a z',
1548
- medium: 'h:mm:ss a',
1549
- short: 'h:mm a'
1550
- };
1551
- var dateTimeFormats = {
1552
- full: "{{date}} 'at' {{time}}",
1553
- long: "{{date}} 'at' {{time}}",
1554
- medium: '{{date}}, {{time}}',
1555
- short: '{{date}}, {{time}}'
1556
- };
1557
- var formatLong = {
1558
- date: buildFormatLongFn({
1559
- formats: dateFormats,
1560
- defaultWidth: 'full'
1561
- }),
1562
- time: buildFormatLongFn({
1563
- formats: timeFormats,
1564
- defaultWidth: 'full'
1565
- }),
1566
- dateTime: buildFormatLongFn({
1567
- formats: dateTimeFormats,
1568
- defaultWidth: 'full'
1569
- })
1570
- };
1571
-
1572
- var formatRelativeLocale = {
1573
- lastWeek: "'last' eeee 'at' p",
1574
- yesterday: "'yesterday at' p",
1575
- today: "'today at' p",
1576
- tomorrow: "'tomorrow at' p",
1577
- nextWeek: "eeee 'at' p",
1578
- other: 'P'
1579
- };
1580
-
1581
- var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
1582
- return formatRelativeLocale[token];
1583
- };
1584
-
1585
- function buildLocalizeFn(args) {
1586
- return function (dirtyIndex, options) {
1587
- var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
1588
- var valuesArray;
1589
-
1590
- if (context === 'formatting' && args.formattingValues) {
1591
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1592
- var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
1593
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1594
- } else {
1595
- var _defaultWidth = args.defaultWidth;
1596
-
1597
- var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
1598
-
1599
- valuesArray = args.values[_width] || args.values[_defaultWidth];
1600
- }
1601
-
1602
- 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!
1603
-
1604
- return valuesArray[index];
1605
- };
1606
- }
1607
-
1608
- var eraValues = {
1609
- narrow: ['B', 'A'],
1610
- abbreviated: ['BC', 'AD'],
1611
- wide: ['Before Christ', 'Anno Domini']
1612
- };
1613
- var quarterValues = {
1614
- narrow: ['1', '2', '3', '4'],
1615
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
1616
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
1617
- }; // Note: in English, the names of days of the week and months are capitalized.
1618
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
1619
- // Generally, formatted dates should look like they are in the middle of a sentence,
1620
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
1621
-
1622
- var monthValues = {
1623
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
1624
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
1625
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
1626
- };
1627
- var dayValues = {
1628
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
1629
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
1630
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
1631
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
1632
- };
1633
- var dayPeriodValues = {
1634
- narrow: {
1635
- am: 'a',
1636
- pm: 'p',
1637
- midnight: 'mi',
1638
- noon: 'n',
1639
- morning: 'morning',
1640
- afternoon: 'afternoon',
1641
- evening: 'evening',
1642
- night: 'night'
1643
- },
1644
- abbreviated: {
1645
- am: 'AM',
1646
- pm: 'PM',
1647
- midnight: 'midnight',
1648
- noon: 'noon',
1649
- morning: 'morning',
1650
- afternoon: 'afternoon',
1651
- evening: 'evening',
1652
- night: 'night'
1653
- },
1654
- wide: {
1655
- am: 'a.m.',
1656
- pm: 'p.m.',
1657
- midnight: 'midnight',
1658
- noon: 'noon',
1659
- morning: 'morning',
1660
- afternoon: 'afternoon',
1661
- evening: 'evening',
1662
- night: 'night'
1663
- }
1664
- };
1665
- var formattingDayPeriodValues = {
1666
- narrow: {
1667
- am: 'a',
1668
- pm: 'p',
1669
- midnight: 'mi',
1670
- noon: 'n',
1671
- morning: 'in the morning',
1672
- afternoon: 'in the afternoon',
1673
- evening: 'in the evening',
1674
- night: 'at night'
1675
- },
1676
- abbreviated: {
1677
- am: 'AM',
1678
- pm: 'PM',
1679
- midnight: 'midnight',
1680
- noon: 'noon',
1681
- morning: 'in the morning',
1682
- afternoon: 'in the afternoon',
1683
- evening: 'in the evening',
1684
- night: 'at night'
1685
- },
1686
- wide: {
1687
- am: 'a.m.',
1688
- pm: 'p.m.',
1689
- midnight: 'midnight',
1690
- noon: 'noon',
1691
- morning: 'in the morning',
1692
- afternoon: 'in the afternoon',
1693
- evening: 'in the evening',
1694
- night: 'at night'
1695
- }
1696
- };
1697
-
1698
- var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1699
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
1700
- // if they are different for different grammatical genders,
1701
- // use `options.unit`.
1702
- //
1703
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
1704
- // 'day', 'hour', 'minute', 'second'.
1705
-
1706
- var rem100 = number % 100;
1707
-
1708
- if (rem100 > 20 || rem100 < 10) {
1709
- switch (rem100 % 10) {
1710
- case 1:
1711
- return number + 'st';
1712
-
1713
- case 2:
1714
- return number + 'nd';
1715
-
1716
- case 3:
1717
- return number + 'rd';
1718
- }
1719
- }
1720
-
1721
- return number + 'th';
1722
- };
1723
-
1724
- var localize = {
1725
- ordinalNumber: ordinalNumber,
1726
- era: buildLocalizeFn({
1727
- values: eraValues,
1728
- defaultWidth: 'wide'
1729
- }),
1730
- quarter: buildLocalizeFn({
1731
- values: quarterValues,
1732
- defaultWidth: 'wide',
1733
- argumentCallback: function argumentCallback(quarter) {
1734
- return quarter - 1;
1735
- }
1736
- }),
1737
- month: buildLocalizeFn({
1738
- values: monthValues,
1739
- defaultWidth: 'wide'
1740
- }),
1741
- day: buildLocalizeFn({
1742
- values: dayValues,
1743
- defaultWidth: 'wide'
1744
- }),
1745
- dayPeriod: buildLocalizeFn({
1746
- values: dayPeriodValues,
1747
- defaultWidth: 'wide',
1748
- formattingValues: formattingDayPeriodValues,
1749
- defaultFormattingWidth: 'wide'
1750
- })
1751
- };
1752
-
1753
- function buildMatchFn(args) {
1754
- return function (string) {
1755
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1756
- var width = options.width;
1757
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1758
- var matchResult = string.match(matchPattern);
1759
-
1760
- if (!matchResult) {
1761
- return null;
1762
- }
1763
-
1764
- var matchedString = matchResult[0];
1765
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1766
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
1767
- return pattern.test(matchedString);
1768
- }) : findKey(parsePatterns, function (pattern) {
1769
- return pattern.test(matchedString);
1770
- });
1771
- var value;
1772
- value = args.valueCallback ? args.valueCallback(key) : key;
1773
- value = options.valueCallback ? options.valueCallback(value) : value;
1774
- var rest = string.slice(matchedString.length);
1775
- return {
1776
- value: value,
1777
- rest: rest
1778
- };
1779
- };
1780
- }
1781
-
1782
- function findKey(object, predicate) {
1783
- for (var key in object) {
1784
- if (object.hasOwnProperty(key) && predicate(object[key])) {
1785
- return key;
1786
- }
1787
- }
1788
-
1789
- return undefined;
1790
- }
1791
-
1792
- function findIndex(array, predicate) {
1793
- for (var key = 0; key < array.length; key++) {
1794
- if (predicate(array[key])) {
1795
- return key;
1796
- }
1797
- }
1798
-
1799
- return undefined;
1800
- }
1801
-
1802
- function buildMatchPatternFn(args) {
1803
- return function (string) {
1804
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1805
- var matchResult = string.match(args.matchPattern);
1806
- if (!matchResult) return null;
1807
- var matchedString = matchResult[0];
1808
- var parseResult = string.match(args.parsePattern);
1809
- if (!parseResult) return null;
1810
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
1811
- value = options.valueCallback ? options.valueCallback(value) : value;
1812
- var rest = string.slice(matchedString.length);
1813
- return {
1814
- value: value,
1815
- rest: rest
1816
- };
1817
- };
1818
- }
1819
-
1820
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
1821
- var parseOrdinalNumberPattern = /\d+/i;
1822
- var matchEraPatterns = {
1823
- narrow: /^(b|a)/i,
1824
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1825
- wide: /^(before christ|before common era|anno domini|common era)/i
1826
- };
1827
- var parseEraPatterns = {
1828
- any: [/^b/i, /^(a|c)/i]
1829
- };
1830
- var matchQuarterPatterns = {
1831
- narrow: /^[1234]/i,
1832
- abbreviated: /^q[1234]/i,
1833
- wide: /^[1234](th|st|nd|rd)? quarter/i
1834
- };
1835
- var parseQuarterPatterns = {
1836
- any: [/1/i, /2/i, /3/i, /4/i]
1837
- };
1838
- var matchMonthPatterns = {
1839
- narrow: /^[jfmasond]/i,
1840
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1841
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1842
- };
1843
- var parseMonthPatterns = {
1844
- 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],
1845
- 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]
1846
- };
1847
- var matchDayPatterns = {
1848
- narrow: /^[smtwf]/i,
1849
- short: /^(su|mo|tu|we|th|fr|sa)/i,
1850
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1851
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1852
- };
1853
- var parseDayPatterns = {
1854
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1855
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1856
- };
1857
- var matchDayPeriodPatterns = {
1858
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1859
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1860
- };
1861
- var parseDayPeriodPatterns = {
1862
- any: {
1863
- am: /^a/i,
1864
- pm: /^p/i,
1865
- midnight: /^mi/i,
1866
- noon: /^no/i,
1867
- morning: /morning/i,
1868
- afternoon: /afternoon/i,
1869
- evening: /evening/i,
1870
- night: /night/i
1871
- }
1872
- };
1873
- var match = {
1874
- ordinalNumber: buildMatchPatternFn({
1875
- matchPattern: matchOrdinalNumberPattern,
1876
- parsePattern: parseOrdinalNumberPattern,
1877
- valueCallback: function valueCallback(value) {
1878
- return parseInt(value, 10);
1879
- }
1880
- }),
1881
- era: buildMatchFn({
1882
- matchPatterns: matchEraPatterns,
1883
- defaultMatchWidth: 'wide',
1884
- parsePatterns: parseEraPatterns,
1885
- defaultParseWidth: 'any'
1886
- }),
1887
- quarter: buildMatchFn({
1888
- matchPatterns: matchQuarterPatterns,
1889
- defaultMatchWidth: 'wide',
1890
- parsePatterns: parseQuarterPatterns,
1891
- defaultParseWidth: 'any',
1892
- valueCallback: function valueCallback(index) {
1893
- return index + 1;
1894
- }
1895
- }),
1896
- month: buildMatchFn({
1897
- matchPatterns: matchMonthPatterns,
1898
- defaultMatchWidth: 'wide',
1899
- parsePatterns: parseMonthPatterns,
1900
- defaultParseWidth: 'any'
1901
- }),
1902
- day: buildMatchFn({
1903
- matchPatterns: matchDayPatterns,
1904
- defaultMatchWidth: 'wide',
1905
- parsePatterns: parseDayPatterns,
1906
- defaultParseWidth: 'any'
1907
- }),
1908
- dayPeriod: buildMatchFn({
1909
- matchPatterns: matchDayPeriodPatterns,
1910
- defaultMatchWidth: 'any',
1911
- parsePatterns: parseDayPeriodPatterns,
1912
- defaultParseWidth: 'any'
1913
- })
1914
- };
1915
-
1916
- /**
1917
- * @type {Locale}
1918
- * @category Locales
1919
- * @summary English locale (United States).
1920
- * @language English
1921
- * @iso-639-2 eng
1922
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
1923
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
1924
- */
1925
- var locale = {
1926
- code: 'en-US',
1927
- formatDistance: formatDistance,
1928
- formatLong: formatLong,
1929
- formatRelative: formatRelative,
1930
- localize: localize,
1931
- match: match,
1932
- options: {
1933
- weekStartsOn: 0
1934
- /* Sunday */
1935
- ,
1936
- firstWeekContainsDate: 1
1937
- }
1938
- };
1939
-
1940
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1941
- // (one of the certain letters followed by `o`)
1942
- // - (\w)\1* matches any sequences of the same letter
1943
- // - '' matches two quote characters in a row
1944
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1945
- // except a single quote symbol, which ends the sequence.
1946
- // Two quote characters do not end the sequence.
1947
- // If there is no matching single quote
1948
- // then the sequence will continue until the end of the string.
1949
- // - . matches any single character unmatched by previous parts of the RegExps
1950
-
1951
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1952
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1953
-
1954
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1955
- var escapedStringRegExp = /^'([^]*?)'?$/;
1956
- var doubleQuoteRegExp = /''/g;
1957
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1958
- /**
1959
- * @name format
1960
- * @category Common Helpers
1961
- * @summary Format the date.
1962
- *
1963
- * @description
1964
- * Return the formatted date string in the given format. The result may vary by locale.
1965
- *
1966
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1967
- * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
1968
- *
1969
- * The characters wrapped between two single quotes characters (') are escaped.
1970
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1971
- * (see the last example)
1972
- *
1973
- * Format of the string is based on Unicode Technical Standard #35:
1974
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1975
- * with a few additions (see note 7 below the table).
1976
- *
1977
- * Accepted patterns:
1978
- * | Unit | Pattern | Result examples | Notes |
1979
- * |---------------------------------|---------|-----------------------------------|-------|
1980
- * | Era | G..GGG | AD, BC | |
1981
- * | | GGGG | Anno Domini, Before Christ | 2 |
1982
- * | | GGGGG | A, B | |
1983
- * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
1984
- * | | yo | 44th, 1st, 0th, 17th | 5,7 |
1985
- * | | yy | 44, 01, 00, 17 | 5 |
1986
- * | | yyy | 044, 001, 1900, 2017 | 5 |
1987
- * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
1988
- * | | yyyyy | ... | 3,5 |
1989
- * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
1990
- * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
1991
- * | | YY | 44, 01, 00, 17 | 5,8 |
1992
- * | | YYY | 044, 001, 1900, 2017 | 5 |
1993
- * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
1994
- * | | YYYYY | ... | 3,5 |
1995
- * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
1996
- * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
1997
- * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
1998
- * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
1999
- * | | RRRRR | ... | 3,5,7 |
2000
- * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
2001
- * | | uu | -43, 01, 1900, 2017 | 5 |
2002
- * | | uuu | -043, 001, 1900, 2017 | 5 |
2003
- * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
2004
- * | | uuuuu | ... | 3,5 |
2005
- * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
2006
- * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
2007
- * | | QQ | 01, 02, 03, 04 | |
2008
- * | | QQQ | Q1, Q2, Q3, Q4 | |
2009
- * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
2010
- * | | QQQQQ | 1, 2, 3, 4 | 4 |
2011
- * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
2012
- * | | qo | 1st, 2nd, 3rd, 4th | 7 |
2013
- * | | qq | 01, 02, 03, 04 | |
2014
- * | | qqq | Q1, Q2, Q3, Q4 | |
2015
- * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
2016
- * | | qqqqq | 1, 2, 3, 4 | 4 |
2017
- * | Month (formatting) | M | 1, 2, ..., 12 | |
2018
- * | | Mo | 1st, 2nd, ..., 12th | 7 |
2019
- * | | MM | 01, 02, ..., 12 | |
2020
- * | | MMM | Jan, Feb, ..., Dec | |
2021
- * | | MMMM | January, February, ..., December | 2 |
2022
- * | | MMMMM | J, F, ..., D | |
2023
- * | Month (stand-alone) | L | 1, 2, ..., 12 | |
2024
- * | | Lo | 1st, 2nd, ..., 12th | 7 |
2025
- * | | LL | 01, 02, ..., 12 | |
2026
- * | | LLL | Jan, Feb, ..., Dec | |
2027
- * | | LLLL | January, February, ..., December | 2 |
2028
- * | | LLLLL | J, F, ..., D | |
2029
- * | Local week of year | w | 1, 2, ..., 53 | |
2030
- * | | wo | 1st, 2nd, ..., 53th | 7 |
2031
- * | | ww | 01, 02, ..., 53 | |
2032
- * | ISO week of year | I | 1, 2, ..., 53 | 7 |
2033
- * | | Io | 1st, 2nd, ..., 53th | 7 |
2034
- * | | II | 01, 02, ..., 53 | 7 |
2035
- * | Day of month | d | 1, 2, ..., 31 | |
2036
- * | | do | 1st, 2nd, ..., 31st | 7 |
2037
- * | | dd | 01, 02, ..., 31 | |
2038
- * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
2039
- * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
2040
- * | | DD | 01, 02, ..., 365, 366 | 9 |
2041
- * | | DDD | 001, 002, ..., 365, 366 | |
2042
- * | | DDDD | ... | 3 |
2043
- * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
2044
- * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
2045
- * | | EEEEE | M, T, W, T, F, S, S | |
2046
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
2047
- * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
2048
- * | | io | 1st, 2nd, ..., 7th | 7 |
2049
- * | | ii | 01, 02, ..., 07 | 7 |
2050
- * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
2051
- * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
2052
- * | | iiiii | M, T, W, T, F, S, S | 7 |
2053
- * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
2054
- * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
2055
- * | | eo | 2nd, 3rd, ..., 1st | 7 |
2056
- * | | ee | 02, 03, ..., 01 | |
2057
- * | | eee | Mon, Tue, Wed, ..., Sun | |
2058
- * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
2059
- * | | eeeee | M, T, W, T, F, S, S | |
2060
- * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
2061
- * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
2062
- * | | co | 2nd, 3rd, ..., 1st | 7 |
2063
- * | | cc | 02, 03, ..., 01 | |
2064
- * | | ccc | Mon, Tue, Wed, ..., Sun | |
2065
- * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
2066
- * | | ccccc | M, T, W, T, F, S, S | |
2067
- * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
2068
- * | AM, PM | a..aa | AM, PM | |
2069
- * | | aaa | am, pm | |
2070
- * | | aaaa | a.m., p.m. | 2 |
2071
- * | | aaaaa | a, p | |
2072
- * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
2073
- * | | bbb | am, pm, noon, midnight | |
2074
- * | | bbbb | a.m., p.m., noon, midnight | 2 |
2075
- * | | bbbbb | a, p, n, mi | |
2076
- * | Flexible day period | B..BBB | at night, in the morning, ... | |
2077
- * | | BBBB | at night, in the morning, ... | 2 |
2078
- * | | BBBBB | at night, in the morning, ... | |
2079
- * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
2080
- * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
2081
- * | | hh | 01, 02, ..., 11, 12 | |
2082
- * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
2083
- * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
2084
- * | | HH | 00, 01, 02, ..., 23 | |
2085
- * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
2086
- * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
2087
- * | | KK | 01, 02, ..., 11, 00 | |
2088
- * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
2089
- * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
2090
- * | | kk | 24, 01, 02, ..., 23 | |
2091
- * | Minute | m | 0, 1, ..., 59 | |
2092
- * | | mo | 0th, 1st, ..., 59th | 7 |
2093
- * | | mm | 00, 01, ..., 59 | |
2094
- * | Second | s | 0, 1, ..., 59 | |
2095
- * | | so | 0th, 1st, ..., 59th | 7 |
2096
- * | | ss | 00, 01, ..., 59 | |
2097
- * | Fraction of second | S | 0, 1, ..., 9 | |
2098
- * | | SS | 00, 01, ..., 99 | |
2099
- * | | SSS | 000, 001, ..., 999 | |
2100
- * | | SSSS | ... | 3 |
2101
- * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
2102
- * | | XX | -0800, +0530, Z | |
2103
- * | | XXX | -08:00, +05:30, Z | |
2104
- * | | XXXX | -0800, +0530, Z, +123456 | 2 |
2105
- * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
2106
- * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
2107
- * | | xx | -0800, +0530, +0000 | |
2108
- * | | xxx | -08:00, +05:30, +00:00 | 2 |
2109
- * | | xxxx | -0800, +0530, +0000, +123456 | |
2110
- * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
2111
- * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
2112
- * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
2113
- * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
2114
- * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
2115
- * | Seconds timestamp | t | 512969520 | 7 |
2116
- * | | tt | ... | 3,7 |
2117
- * | Milliseconds timestamp | T | 512969520900 | 7 |
2118
- * | | TT | ... | 3,7 |
2119
- * | Long localized date | P | 04/29/1453 | 7 |
2120
- * | | PP | Apr 29, 1453 | 7 |
2121
- * | | PPP | April 29th, 1453 | 7 |
2122
- * | | PPPP | Friday, April 29th, 1453 | 2,7 |
2123
- * | Long localized time | p | 12:00 AM | 7 |
2124
- * | | pp | 12:00:00 AM | 7 |
2125
- * | | ppp | 12:00:00 AM GMT+2 | 7 |
2126
- * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
2127
- * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
2128
- * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
2129
- * | | PPPppp | April 29th, 1453 at ... | 7 |
2130
- * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
2131
- * Notes:
2132
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2133
- * are the same as "stand-alone" units, but are different in some languages.
2134
- * "Formatting" units are declined according to the rules of the language
2135
- * in the context of a date. "Stand-alone" units are always nominative singular:
2136
- *
2137
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2138
- *
2139
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2140
- *
2141
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2142
- * the single quote characters (see below).
2143
- * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
2144
- * the output will be the same as default pattern for this unit, usually
2145
- * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
2146
- * are marked with "2" in the last column of the table.
2147
- *
2148
- * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
2149
- *
2150
- * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
2151
- *
2152
- * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
2153
- *
2154
- * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
2155
- *
2156
- * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
2157
- *
2158
- * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
2159
- * The output will be padded with zeros to match the length of the pattern.
2160
- *
2161
- * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
2162
- *
2163
- * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2164
- * These tokens represent the shortest form of the quarter.
2165
- *
2166
- * 5. The main difference between `y` and `u` patterns are B.C. years:
2167
- *
2168
- * | Year | `y` | `u` |
2169
- * |------|-----|-----|
2170
- * | AC 1 | 1 | 1 |
2171
- * | BC 1 | 1 | 0 |
2172
- * | BC 2 | 2 | -1 |
2173
- *
2174
- * Also `yy` always returns the last two digits of a year,
2175
- * while `uu` pads single digit years to 2 characters and returns other years unchanged:
2176
- *
2177
- * | Year | `yy` | `uu` |
2178
- * |------|------|------|
2179
- * | 1 | 01 | 01 |
2180
- * | 14 | 14 | 14 |
2181
- * | 376 | 76 | 376 |
2182
- * | 1453 | 53 | 1453 |
2183
- *
2184
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2185
- * except local week-numbering years are dependent on `options.weekStartsOn`
2186
- * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
2187
- * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
2188
- *
2189
- * 6. Specific non-location timezones are currently unavailable in `date-fns`,
2190
- * so right now these tokens fall back to GMT timezones.
2191
- *
2192
- * 7. These patterns are not in the Unicode Technical Standard #35:
2193
- * - `i`: ISO day of week
2194
- * - `I`: ISO week of year
2195
- * - `R`: ISO week-numbering year
2196
- * - `t`: seconds timestamp
2197
- * - `T`: milliseconds timestamp
2198
- * - `o`: ordinal number modifier
2199
- * - `P`: long localized date
2200
- * - `p`: long localized time
2201
- *
2202
- * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2203
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2204
- *
2205
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
2206
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2207
- *
2208
- * @param {Date|Number} date - the original date
2209
- * @param {String} format - the string of tokens
2210
- * @param {Object} [options] - an object with options.
2211
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2212
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2213
- * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
2214
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2215
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2216
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2217
- * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2218
- * @returns {String} the formatted date string
2219
- * @throws {TypeError} 2 arguments required
2220
- * @throws {RangeError} `date` must not be Invalid Date
2221
- * @throws {RangeError} `options.locale` must contain `localize` property
2222
- * @throws {RangeError} `options.locale` must contain `formatLong` property
2223
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2224
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2225
- * @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
2226
- * @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
2227
- * @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
2228
- * @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
2229
- * @throws {RangeError} format string contains an unescaped latin alphabet character
2230
- *
2231
- * @example
2232
- * // Represent 11 February 2014 in middle-endian format:
2233
- * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
2234
- * //=> '02/11/2014'
2235
- *
2236
- * @example
2237
- * // Represent 2 July 2014 in Esperanto:
2238
- * import { eoLocale } from 'date-fns/locale/eo'
2239
- * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
2240
- * locale: eoLocale
2241
- * })
2242
- * //=> '2-a de julio 2014'
2243
- *
2244
- * @example
2245
- * // Escape string by single quote characters:
2246
- * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
2247
- * //=> "3 o'clock"
2248
- */
2249
-
2250
- function format(dirtyDate, dirtyFormatStr, options) {
2251
- 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;
2252
-
2253
- requiredArgs(2, arguments);
2254
- var formatStr = String(dirtyFormatStr);
2255
- var defaultOptions = getDefaultOptions();
2256
- 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;
2257
- var firstWeekContainsDate = 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
2258
-
2259
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2260
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2261
- }
2262
-
2263
- var weekStartsOn = 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
2264
-
2265
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2266
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2267
- }
2268
-
2269
- if (!locale$1.localize) {
2270
- throw new RangeError('locale must contain localize property');
2271
- }
2272
-
2273
- if (!locale$1.formatLong) {
2274
- throw new RangeError('locale must contain formatLong property');
2275
- }
2276
-
2277
- var originalDate = toDate(dirtyDate);
2278
-
2279
- if (!isValid(originalDate)) {
2280
- throw new RangeError('Invalid time value');
2281
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2282
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2283
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
2284
-
2285
-
2286
- var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
2287
- var utcDate = subMilliseconds(originalDate, timezoneOffset);
2288
- var formatterOptions = {
2289
- firstWeekContainsDate: firstWeekContainsDate,
2290
- weekStartsOn: weekStartsOn,
2291
- locale: locale$1,
2292
- _originalDate: originalDate
2293
- };
2294
- var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
2295
- var firstCharacter = substring[0];
2296
-
2297
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2298
- var longFormatter = longFormatters[firstCharacter];
2299
- return longFormatter(substring, locale$1.formatLong);
2300
- }
2301
-
2302
- return substring;
2303
- }).join('').match(formattingTokensRegExp).map(function (substring) {
2304
- // Replace two single quote characters with one single quote character
2305
- if (substring === "''") {
2306
- return "'";
2307
- }
2308
-
2309
- var firstCharacter = substring[0];
2310
-
2311
- if (firstCharacter === "'") {
2312
- return cleanEscapedString(substring);
2313
- }
2314
-
2315
- var formatter = formatters[firstCharacter];
2316
-
2317
- if (formatter) {
2318
- if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
2319
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2320
- }
2321
-
2322
- if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
2323
- throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2324
- }
2325
-
2326
- return formatter(utcDate, substring, locale$1.localize, formatterOptions);
2327
- }
2328
-
2329
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2330
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2331
- }
2332
-
2333
- return substring;
2334
- }).join('');
2335
- return result;
2336
- }
2337
-
2338
- function cleanEscapedString(input) {
2339
- var matched = input.match(escapedStringRegExp);
2340
-
2341
- if (!matched) {
2342
- return input;
2343
- }
2344
-
2345
- return matched[1].replace(doubleQuoteRegExp, "'");
2346
- }
2347
-
2348
- /**
2349
- * Default values for all Dinero objects.
2350
- *
2351
- * You can override default values for all subsequent Dinero objects by changing them directly on the global `Dinero` object.
2352
- * Existing instances won't be affected.
2353
- *
2354
- * @property {Number} defaultAmount - The default amount for new Dinero objects (see {@link module:Dinero Dinero} for format).
2355
- * @property {String} defaultCurrency - The default currency for new Dinero objects (see {@link module:Dinero Dinero} for format).
2356
- * @property {Number} defaultPrecision - The default precision for new Dinero objects (see {@link module:Dinero Dinero} for format).
2357
- *
2358
- * @example
2359
- * // Will set currency to 'EUR' for all Dinero objects.
2360
- * Dinero.defaultCurrency = 'EUR'
2361
- *
2362
- * @type {Object}
2363
- */
2364
- var Defaults = {
2365
- defaultAmount: 0,
2366
- defaultCurrency: 'USD',
2367
- defaultPrecision: 2
2368
- };
2369
- /**
2370
- * Global settings for all Dinero objects.
2371
- *
2372
- * You can override global values for all subsequent Dinero objects by changing them directly on the global `Dinero` object.
2373
- * Existing instances won't be affected.
2374
- *
2375
- * @property {String} globalLocale - The global locale for new Dinero objects (see {@link module:Dinero~setLocale setLocale} for format).
2376
- * @property {String} globalFormat - The global format for new Dinero objects (see {@link module:Dinero~toFormat toFormat} for format).
2377
- * @property {String} globalRoundingMode - The global rounding mode for new Dinero objects (see {@link module:Dinero~multiply multiply} or {@link module:Dinero~divide divide} for format).
2378
- * @property {String} globalFormatRoundingMode - The global rounding mode to format new Dinero objects (see {@link module:Dinero~toFormat toFormat} or {@link module:Dinero~toRoundedUnit toRoundedUnit} for format).
2379
- * @property {(String|Promise)} globalExchangeRatesApi.endpoint - The global exchange rate API endpoint for new Dinero objects, or the global promise that resolves to the exchanges rates (see {@link module:Dinero~convert convert} for format).
2380
- * @property {String} globalExchangeRatesApi.propertyPath - The global exchange rate API property path for new Dinero objects (see {@link module:Dinero~convert convert} for format).
2381
- * @property {Object} globalExchangeRatesApi.headers - The global exchange rate API headers for new Dinero objects (see {@link module:Dinero~convert convert} for format).
2382
- *
2383
- * @example
2384
- * // Will set locale to 'fr-FR' for all Dinero objects.
2385
- * Dinero.globalLocale = 'fr-FR'
2386
- * @example
2387
- * // Will set global exchange rate API parameters for all Dinero objects.
2388
- * Dinero.globalExchangeRatesApi = {
2389
- * endpoint: 'https://yourexchangerates.api/latest?base={{from}}',
2390
- * propertyPath: 'data.rates.{{to}}',
2391
- * headers: {
2392
- * 'user-key': 'xxxxxxxxx'
2393
- * }
2394
- * }
2395
- *
2396
- * @type {Object}
2397
- */
2398
-
2399
- var Globals = {
2400
- globalLocale: 'en-US',
2401
- globalFormat: '$0,0.00',
2402
- globalRoundingMode: 'HALF_EVEN',
2403
- globalFormatRoundingMode: 'HALF_AWAY_FROM_ZERO',
2404
- globalExchangeRatesApi: {
2405
- endpoint: undefined,
2406
- headers: undefined,
2407
- propertyPath: undefined
2408
- }
2409
- };
2410
-
2411
- function _typeof(obj) {
2412
- "@babel/helpers - typeof";
2413
-
2414
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2415
- _typeof = function (obj) {
2416
- return typeof obj;
2417
- };
2418
- } else {
2419
- _typeof = function (obj) {
2420
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2421
- };
2422
- }
2423
-
2424
- return _typeof(obj);
2425
- }
2426
-
2427
- function _toArray(arr) {
2428
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
2429
- }
2430
-
2431
- function _arrayWithHoles(arr) {
2432
- if (Array.isArray(arr)) return arr;
2433
- }
2434
-
2435
- function _iterableToArray(iter) {
2436
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
2437
- }
2438
-
2439
- function _unsupportedIterableToArray(o, minLen) {
2440
- if (!o) return;
2441
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2442
- var n = Object.prototype.toString.call(o).slice(8, -1);
2443
- if (n === "Object" && o.constructor) n = o.constructor.name;
2444
- if (n === "Map" || n === "Set") return Array.from(o);
2445
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2446
- }
2447
-
2448
- function _arrayLikeToArray(arr, len) {
2449
- if (len == null || len > arr.length) len = arr.length;
2450
-
2451
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2452
-
2453
- return arr2;
2454
- }
2455
-
2456
- function _nonIterableRest() {
2457
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2458
- }
2459
-
2460
- /**
2461
- * Static methods for Dinero.
2462
- * @ignore
2463
- *
2464
- * @type {Object}
2465
- */
2466
- var Static = {
2467
- /**
2468
- * Returns an array of Dinero objects, normalized to the same precision (the highest).
2469
- *
2470
- * @memberof module:Dinero
2471
- * @method
2472
- *
2473
- * @param {Dinero[]} objects - An array of Dinero objects
2474
- *
2475
- * @example
2476
- * // returns an array of Dinero objects
2477
- * // both with a precision of 3
2478
- * // and an amount of 1000
2479
- * Dinero.normalizePrecision([
2480
- * Dinero({ amount: 100, precision: 2 }),
2481
- * Dinero({ amount: 1000, precision: 3 })
2482
- * ])
2483
- *
2484
- * @return {Dinero[]}
2485
- */
2486
- normalizePrecision: function normalizePrecision(objects) {
2487
- var highestPrecision = objects.reduce(function (a, b) {
2488
- return Math.max(a.getPrecision(), b.getPrecision());
2489
- });
2490
- return objects.map(function (object) {
2491
- return object.getPrecision() !== highestPrecision ? object.convertPrecision(highestPrecision) : object;
2492
- });
2493
- },
2494
-
2495
- /**
2496
- * Returns the smallest Dinero object from an array of Dinero objects
2497
- *
2498
- * @memberof module:Dinero
2499
- * @method
2500
- *
2501
- * @param {Dinero[]} objects - An array of Dinero objects
2502
- *
2503
- * @example
2504
- * // returns the smallest Dinero object with amount of 500 from an array of Dinero objects with different precisions
2505
- * Dinero.minimum([
2506
- * Dinero({ amount: 500, precision: 3 }),
2507
- * Dinero({ amount: 100, precision: 2 })
2508
- * ])
2509
- * @example
2510
- * // returns the smallest Dinero object with amount of 50 from an array of Dinero objects
2511
- * Dinero.minimum([
2512
- * Dinero({ amount: 50 }),
2513
- * Dinero({ amount: 100 })
2514
- * ])
2515
- *
2516
- * @return {Dinero[]}
2517
- */
2518
- minimum: function minimum(objects) {
2519
- var _objects = _toArray(objects),
2520
- firstObject = _objects[0],
2521
- tailObjects = _objects.slice(1);
2522
-
2523
- var currentMinimum = firstObject;
2524
- tailObjects.forEach(function (obj) {
2525
- currentMinimum = currentMinimum.lessThan(obj) ? currentMinimum : obj;
2526
- });
2527
- return currentMinimum;
2528
- },
2529
-
2530
- /**
2531
- * Returns the biggest Dinero object from an array of Dinero objects
2532
- *
2533
- * @memberof module:Dinero
2534
- * @method
2535
- *
2536
- * @param {Dinero[]} objects - An array of Dinero objects
2537
- *
2538
- * @example
2539
- * // returns the biggest Dinero object with amount of 20, from an array of Dinero objects with different precisions
2540
- * Dinero.maximum([
2541
- * Dinero({ amount: 20, precision: 2 }),
2542
- * Dinero({ amount: 150, precision: 3 })
2543
- * ])
2544
- * @example
2545
- * // returns the biggest Dinero object with amount of 100, from an array of Dinero objects
2546
- * Dinero.maximum([
2547
- * Dinero({ amount: 100 }),
2548
- * Dinero({ amount: 50 })
2549
- * ])
2550
- *
2551
- * @return {Dinero[]}
2552
- */
2553
- maximum: function maximum(objects) {
2554
- var _objects2 = _toArray(objects),
2555
- firstObject = _objects2[0],
2556
- tailObjects = _objects2.slice(1);
2557
-
2558
- var currentMaximum = firstObject;
2559
- tailObjects.forEach(function (obj) {
2560
- currentMaximum = currentMaximum.greaterThan(obj) ? currentMaximum : obj;
2561
- });
2562
- return currentMaximum;
2563
- }
2564
- };
2565
-
2566
- /**
2567
- * Returns whether a value is numeric.
2568
- * @ignore
2569
- *
2570
- * @param {} value - The value to test.
2571
- *
2572
- * @return {Boolean}
2573
- */
2574
- function isNumeric(value) {
2575
- return !isNaN(parseInt(value)) && isFinite(value);
2576
- }
2577
- /**
2578
- * Returns whether a value is a percentage.
2579
- * @ignore
2580
- *
2581
- * @param {} percentage - The percentage to test.
2582
- *
2583
- * @return {Boolean}
2584
- */
2585
-
2586
- function isPercentage(percentage) {
2587
- return isNumeric(percentage) && percentage <= 100 && percentage >= 0;
2588
- }
2589
- /**
2590
- * Returns whether an array of ratios is valid.
2591
- * @ignore
2592
- *
2593
- * @param {} ratios - The ratios to test.
2594
- *
2595
- * @return {Boolean}
2596
- */
2597
-
2598
- function areValidRatios(ratios) {
2599
- return ratios.length > 0 && ratios.every(function (ratio) {
2600
- return ratio >= 0;
2601
- }) && ratios.some(function (ratio) {
2602
- return ratio > 0;
2603
- });
2604
- }
2605
- /**
2606
- * Returns whether a value is even.
2607
- * @ignore
2608
- *
2609
- * @param {Number} value - The value to test.
2610
- *
2611
- * @return {Boolean}
2612
- */
2613
-
2614
- function isEven(value) {
2615
- return value % 2 === 0;
2616
- }
2617
- /**
2618
- * Returns whether a value is a float.
2619
- * @ignore
2620
- *
2621
- * @param {} value - The value to test.
2622
- *
2623
- * @return {Boolean}
2624
- */
2625
-
2626
- function isFloat(value) {
2627
- return isNumeric(value) && !Number.isInteger(value);
2628
- }
2629
- /**
2630
- * Returns how many fraction digits a number has.
2631
- * @ignore
2632
- *
2633
- * @param {Number} [number=0] - The number to test.
2634
- *
2635
- * @return {Number}
2636
- */
2637
-
2638
- function countFractionDigits() {
2639
- var number = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2640
- var stringRepresentation = number.toString();
2641
-
2642
- if (stringRepresentation.indexOf('e-') > 0) {
2643
- // It's too small for a normal string representation, e.g. 1e-7 instead of 0.00000001
2644
- return parseInt(stringRepresentation.split('e-')[1]);
2645
- } else {
2646
- var fractionDigits = stringRepresentation.split('.')[1];
2647
- return fractionDigits ? fractionDigits.length : 0;
2648
- }
2649
- }
2650
- /**
2651
- * Returns whether a number is half.
2652
- * @ignore
2653
- *
2654
- * @param {Number} number - The number to test.
2655
- *
2656
- * @return {Number}
2657
- */
2658
-
2659
- function isHalf(number) {
2660
- return Math.abs(number) % 1 === 0.5;
2661
- }
2662
- /**
2663
- * Fetches a JSON resource.
2664
- * @ignore
2665
- *
2666
- * @param {String} url - The resource to fetch.
2667
- * @param {Object} [options.headers] - The headers to pass.
2668
- *
2669
- * @throws {Error} If `request.status` is lesser than 200 or greater or equal to 400.
2670
- * @throws {Error} If network fails.
2671
- *
2672
- * @return {JSON}
2673
- */
2674
-
2675
- function getJSON(url) {
2676
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2677
- return new Promise(function (resolve, reject) {
2678
- var request = Object.assign(new XMLHttpRequest(), {
2679
- onreadystatechange: function onreadystatechange() {
2680
- if (request.readyState === 4) {
2681
- if (request.status >= 200 && request.status < 400) resolve(JSON.parse(request.responseText));else reject(new Error(request.statusText));
2682
- }
2683
- },
2684
- onerror: function onerror() {
2685
- reject(new Error('Network error'));
2686
- }
2687
- });
2688
- request.open('GET', url, true);
2689
- setXHRHeaders(request, options.headers);
2690
- request.send();
2691
- });
2692
- }
2693
- /**
2694
- * Returns an XHR object with attached headers.
2695
- * @ignore
2696
- *
2697
- * @param {XMLHttpRequest} xhr - The XHR request to set headers to.
2698
- * @param {Object} headers - The headers to set.
2699
- *
2700
- * @return {XMLHttpRequest}
2701
- */
2702
-
2703
- function setXHRHeaders(xhr) {
2704
- var headers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2705
-
2706
- for (var header in headers) {
2707
- xhr.setRequestHeader(header, headers[header]);
2708
- }
2709
-
2710
- return xhr;
2711
- }
2712
- /**
2713
- * Returns whether a value is undefined.
2714
- * @ignore
2715
- *
2716
- * @param {} value - The value to test.
2717
- *
2718
- * @return {Boolean}
2719
- */
2720
-
2721
- function isUndefined(value) {
2722
- return typeof value === 'undefined';
2723
- }
2724
- /**
2725
- * Returns an object flattened to one level deep.
2726
- * @ignore
2727
- *
2728
- * @param {Object} object - The object to flatten.
2729
- * @param {String} separator - The separator to use between flattened nodes.
2730
- *
2731
- * @return {Object}
2732
- */
2733
-
2734
- function flattenObject(object) {
2735
- var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.';
2736
- var finalObject = {};
2737
- Object.entries(object).forEach(function (item) {
2738
- if (_typeof(item[1]) === 'object') {
2739
- var flatObject = flattenObject(item[1]);
2740
- Object.entries(flatObject).forEach(function (node) {
2741
- finalObject[item[0] + separator + node[0]] = node[1];
2742
- });
2743
- } else {
2744
- finalObject[item[0]] = item[1];
2745
- }
2746
- });
2747
- return finalObject;
2748
- }
2749
- /**
2750
- * Returns whether a value is thenable.
2751
- * @ignore
2752
- *
2753
- * @param {} value - The value to test.
2754
- *
2755
- * @return {Boolean}
2756
- */
2757
-
2758
- function isThenable(value) {
2759
- return Boolean(value) && (_typeof(value) === 'object' || typeof value === 'function') && typeof value.then === 'function';
2760
- }
2761
-
2762
- function Calculator() {
2763
- var floatMultiply = function floatMultiply(a, b) {
2764
- var getFactor = function getFactor(number) {
2765
- return Math.pow(10, countFractionDigits(number));
2766
- };
2767
-
2768
- var factor = Math.max(getFactor(a), getFactor(b));
2769
- return Math.round(a * factor) * Math.round(b * factor) / (factor * factor);
2770
- };
2771
-
2772
- var roundingModes = {
2773
- HALF_ODD: function HALF_ODD(number) {
2774
- var rounded = Math.round(number);
2775
- return isHalf(number) ? isEven(rounded) ? rounded - 1 : rounded : rounded;
2776
- },
2777
- HALF_EVEN: function HALF_EVEN(number) {
2778
- var rounded = Math.round(number);
2779
- return isHalf(number) ? isEven(rounded) ? rounded : rounded - 1 : rounded;
2780
- },
2781
- HALF_UP: function HALF_UP(number) {
2782
- return Math.round(number);
2783
- },
2784
- HALF_DOWN: function HALF_DOWN(number) {
2785
- return isHalf(number) ? Math.floor(number) : Math.round(number);
2786
- },
2787
- HALF_TOWARDS_ZERO: function HALF_TOWARDS_ZERO(number) {
2788
- return isHalf(number) ? Math.sign(number) * Math.floor(Math.abs(number)) : Math.round(number);
2789
- },
2790
- HALF_AWAY_FROM_ZERO: function HALF_AWAY_FROM_ZERO(number) {
2791
- return isHalf(number) ? Math.sign(number) * Math.ceil(Math.abs(number)) : Math.round(number);
2792
- },
2793
- DOWN: function DOWN(number) {
2794
- return Math.floor(number);
2795
- }
2796
- };
2797
- return {
2798
- /**
2799
- * Returns the sum of two numbers.
2800
- * @ignore
2801
- *
2802
- * @param {Number} a - The first number to add.
2803
- * @param {Number} b - The second number to add.
2804
- *
2805
- * @return {Number}
2806
- */
2807
- add: function add(a, b) {
2808
- return a + b;
2809
- },
2810
-
2811
- /**
2812
- * Returns the difference of two numbers.
2813
- * @ignore
2814
- *
2815
- * @param {Number} a - The first number to subtract.
2816
- * @param {Number} b - The second number to subtract.
2817
- *
2818
- * @return {Number}
2819
- */
2820
- subtract: function subtract(a, b) {
2821
- return a - b;
2822
- },
2823
-
2824
- /**
2825
- * Returns the product of two numbers.
2826
- * @ignore
2827
- *
2828
- * @param {Number} a - The first number to multiply.
2829
- * @param {Number} b - The second number to multiply.
2830
- *
2831
- * @return {Number}
2832
- */
2833
- multiply: function multiply(a, b) {
2834
- return isFloat(a) || isFloat(b) ? floatMultiply(a, b) : a * b;
2835
- },
2836
-
2837
- /**
2838
- * Returns the quotient of two numbers.
2839
- * @ignore
2840
- *
2841
- * @param {Number} a - The first number to divide.
2842
- * @param {Number} b - The second number to divide.
2843
- *
2844
- * @return {Number}
2845
- */
2846
- divide: function divide(a, b) {
2847
- return a / b;
2848
- },
2849
-
2850
- /**
2851
- * Returns the remainder of two numbers.
2852
- * @ignore
2853
- *
2854
- * @param {Number} a - The first number to divide.
2855
- * @param {Number} b - The second number to divide.
2856
- *
2857
- * @return {Number}
2858
- */
2859
- modulo: function modulo(a, b) {
2860
- return a % b;
2861
- },
2862
-
2863
- /**
2864
- * Returns a rounded number based off a specific rounding mode.
2865
- * @ignore
2866
- *
2867
- * @param {Number} number - The number to round.
2868
- * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use.
2869
- *
2870
- * @returns {Number}
2871
- */
2872
- round: function round(number) {
2873
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'HALF_EVEN';
2874
- return roundingModes[roundingMode](number);
2875
- }
2876
- };
2877
- }
2878
-
2879
- var calculator = Calculator();
2880
- function Format(format) {
2881
- var matches = /^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(format);
2882
- return {
2883
- /**
2884
- * Returns the matches.
2885
- * @ignore
2886
- *
2887
- * @return {Array}
2888
- */
2889
- getMatches: function getMatches() {
2890
- return matches !== null ? matches.slice(1).filter(function (match) {
2891
- return !isUndefined(match);
2892
- }) : [];
2893
- },
2894
-
2895
- /**
2896
- * Returns the amount of fraction digits to display.
2897
- * @ignore
2898
- *
2899
- * @return {Number}
2900
- */
2901
- getMinimumFractionDigits: function getMinimumFractionDigits() {
2902
- var decimalPosition = function decimalPosition(match) {
2903
- return match === '.';
2904
- };
2905
-
2906
- return !isUndefined(this.getMatches().find(decimalPosition)) ? this.getMatches()[calculator.add(this.getMatches().findIndex(decimalPosition), 1)].split('').length : 0;
2907
- },
2908
-
2909
- /**
2910
- * Returns the currency display mode.
2911
- * @ignore
2912
- *
2913
- * @return {String}
2914
- */
2915
- getCurrencyDisplay: function getCurrencyDisplay() {
2916
- var modes = {
2917
- USD: 'code',
2918
- dollar: 'name',
2919
- $: 'symbol'
2920
- };
2921
- return modes[this.getMatches().find(function (match) {
2922
- return match === 'USD' || match === 'dollar' || match === '$';
2923
- })];
2924
- },
2925
-
2926
- /**
2927
- * Returns the formatting style.
2928
- * @ignore
2929
- *
2930
- * @return {String}
2931
- */
2932
- getStyle: function getStyle() {
2933
- return !isUndefined(this.getCurrencyDisplay(this.getMatches())) ? 'currency' : 'decimal';
2934
- },
2935
-
2936
- /**
2937
- * Returns whether grouping should be used or not.
2938
- * @ignore
2939
- *
2940
- * @return {Boolean}
2941
- */
2942
- getUseGrouping: function getUseGrouping() {
2943
- return !isUndefined(this.getMatches().find(function (match) {
2944
- return match === ',';
2945
- }));
2946
- }
2947
- };
2948
- }
2949
-
2950
- function CurrencyConverter(options) {
2951
- /* istanbul ignore next */
2952
- var mergeTags = function mergeTags() {
2953
- var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2954
- var tags = arguments.length > 1 ? arguments[1] : undefined;
2955
-
2956
- for (var tag in tags) {
2957
- string = string.replace("{{".concat(tag, "}}"), tags[tag]);
2958
- }
2959
-
2960
- return string;
2961
- };
2962
- /* istanbul ignore next */
2963
-
2964
-
2965
- var getRatesFromRestApi = function getRatesFromRestApi(from, to) {
2966
- return getJSON(mergeTags(options.endpoint, {
2967
- from: from,
2968
- to: to
2969
- }), {
2970
- headers: options.headers
2971
- });
2972
- };
2973
-
2974
- return {
2975
- /**
2976
- * Returns the exchange rate.
2977
- * @ignore
2978
- *
2979
- * @param {String} from - The base currency.
2980
- * @param {String} to - The destination currency.
2981
- *
2982
- * @return {Promise}
2983
- */
2984
- getExchangeRate: function getExchangeRate(from, to) {
2985
- return (isThenable(options.endpoint) ? options.endpoint : getRatesFromRestApi(from, to)).then(function (data) {
2986
- return flattenObject(data)[mergeTags(options.propertyPath, {
2987
- from: from,
2988
- to: to
2989
- })];
2990
- });
2991
- }
2992
- };
2993
- }
2994
-
2995
- /**
2996
- * Performs an assertion.
2997
- * @ignore
2998
- *
2999
- * @param {Boolean} condition - The expression to assert.
3000
- * @param {String} errorMessage - The message to throw if the assertion fails
3001
- * @param {ErrorConstructor} [ErrorType=Error] - The error to throw if the assertion fails.
3002
- *
3003
- * @throws {Error} If `condition` returns `false`.
3004
- */
3005
-
3006
- function assert(condition, errorMessage) {
3007
- var ErrorType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Error;
3008
- if (!condition) throw new ErrorType(errorMessage);
3009
- }
3010
- /**
3011
- * Asserts a value is a percentage.
3012
- * @ignore
3013
- *
3014
- * @param {} percentage - The percentage to test.
3015
- *
3016
- * @throws {RangeError} If `percentage` is out of range.
3017
- */
3018
-
3019
- function assertPercentage(percentage) {
3020
- assert(isPercentage(percentage), 'You must provide a numeric value between 0 and 100.', RangeError);
3021
- }
3022
- /**
3023
- * Asserts an array of ratios is valid.
3024
- * @ignore
3025
- *
3026
- * @param {} ratios - The ratios to test.
3027
- *
3028
- * @throws {TypeError} If `ratios` are invalid.
3029
- */
5
+ const paymentsListCss = ":root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33, 37, 41;--bs-body-bg:#fff;--bs-body-bg-rgb:255, 255, 255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0, 0, 0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33, 37, 41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233, 236, 239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33, 37, 41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248, 249, 250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13, 110, 253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10, 88, 202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222, 226, 230;--bs-body-bg:#212529;--bs-body-bg-rgb:33, 37, 41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255, 255, 255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222, 226, 230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52, 58, 64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222, 226, 230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43, 48, 53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110, 168, 254;--bs-link-hover-color-rgb:139, 185, 254;--bs-code-color:#e685b5;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg) }}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.clearfix::after{display:block;clear:both;content:\"\"}.text-bg-primary{color:#fff !important;background-color:RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-secondary{color:#fff !important;background-color:RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-success{color:#fff !important;background-color:RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-info{color:#000 !important;background-color:RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-warning{color:#000 !important;background-color:RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-danger{color:#fff !important;background-color:RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-light{color:#000 !important;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-dark{color:#fff !important;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important}.link-primary{color:RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-primary:hover,.link-primary:focus{color:RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important}.link-secondary{color:RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important}.link-success{color:RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-success:hover,.link-success:focus{color:RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important}.link-info{color:RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-info:hover,.link-info:focus{color:RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important}.link-warning{color:RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-warning:hover,.link-warning:focus{color:RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important}.link-danger{color:RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-danger:hover,.link-danger:focus{color:RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important}.link-light{color:RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-light:hover,.link-light:focus{color:RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important}.link-dark{color:RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-dark:hover,.link-dark:focus{color:RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:0.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));text-underline-offset:0.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:0.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(0.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:\"\"}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute !important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:0.25}*,*::before,*::after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:0.25}h6,h5,h4,h3,h2,h1{margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + 0.9vw)}@media (min-width: 1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + 0.6vw)}@media (min-width: 1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + 0.3vw)}@media (min-width: 1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:0.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:0.875em}mark{padding:0.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:0.75em;line-height:0;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}a{color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:0.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:0.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:0.1875rem 0.375rem;font-size:0.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:0.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:0.5rem;padding-bottom:0.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none !important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:0.5rem;font-size:calc(1.275rem + 0.3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none !important}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-body-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-body-color);--bs-table-striped-bg:rgba(0, 0, 0, 0.05);--bs-table-active-color:var(--bs-body-color);--bs-table-active-bg:rgba(0, 0, 0, 0.1);--bs-table-hover-color:var(--bs-body-color);--bs-table-hover-bg:rgba(0, 0, 0, 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:0.5rem 0.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:0.25rem 0.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(even){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#bacbe6;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#cbccce;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#bcd0c7;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#badce3;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#e6dbb9;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#dfc2c4;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#dfe0e1;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49, 132, 253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130, 138, 145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60, 153, 110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11, 172, 204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217, 164, 6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225, 83, 97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211, 212, 213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66, 70, 73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13, 110, 253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108, 117, 125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25, 135, 84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13, 202, 240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255, 193, 7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220, 53, 69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248, 249, 250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33, 37, 41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49, 132, 253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}/*!\n * Bootstrap Utilities v5.3.1 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33, 37, 41;--bs-body-bg:#fff;--bs-body-bg-rgb:255, 255, 255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0, 0, 0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33, 37, 41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233, 236, 239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33, 37, 41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248, 249, 250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13, 110, 253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10, 88, 202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222, 226, 230;--bs-body-bg:#212529;--bs-body-bg-rgb:33, 37, 41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255, 255, 255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222, 226, 230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52, 58, 64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222, 226, 230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43, 48, 53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110, 168, 254;--bs-link-hover-color-rgb:139, 185, 254;--bs-code-color:#e685b5;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}.clearfix::after{display:block;clear:both;content:\"\"}.text-bg-primary{color:#fff !important;background-color:RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-secondary{color:#fff !important;background-color:RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-success{color:#fff !important;background-color:RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-info{color:#000 !important;background-color:RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-warning{color:#000 !important;background-color:RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-danger{color:#fff !important;background-color:RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-light{color:#000 !important;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-dark{color:#fff !important;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important}.link-primary{color:RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-primary:hover,.link-primary:focus{color:RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important}.link-secondary{color:RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important}.link-success{color:RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-success:hover,.link-success:focus{color:RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important}.link-info{color:RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-info:hover,.link-info:focus{color:RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important}.link-warning{color:RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-warning:hover,.link-warning:focus{color:RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important}.link-danger{color:RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-danger:hover,.link-danger:focus{color:RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important}.link-light{color:RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-light:hover,.link-light:focus{color:RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important}.link-dark{color:RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-dark:hover,.link-dark:focus{color:RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:0.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));text-underline-offset:0.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:0.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(0.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:\"\"}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute !important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:0.25}.align-baseline{vertical-align:baseline !important}.align-top{vertical-align:top !important}.align-middle{vertical-align:middle !important}.align-bottom{vertical-align:bottom !important}.align-text-bottom{vertical-align:text-bottom !important}.align-text-top{vertical-align:text-top !important}.float-start{float:left !important}.float-end{float:right !important}.float-none{float:none !important}.object-fit-contain{object-fit:contain !important}.object-fit-cover{object-fit:cover !important}.object-fit-fill{object-fit:fill !important}.object-fit-scale{object-fit:scale-down !important}.object-fit-none{object-fit:none !important}.opacity-0{opacity:0 !important}.opacity-25{opacity:0.25 !important}.opacity-50{opacity:0.5 !important}.opacity-75{opacity:0.75 !important}.opacity-100{opacity:1 !important}.overflow-auto{overflow:auto !important}.overflow-hidden{overflow:hidden !important}.overflow-visible{overflow:visible !important}.overflow-scroll{overflow:scroll !important}.overflow-x-auto{overflow-x:auto !important}.overflow-x-hidden{overflow-x:hidden !important}.overflow-x-visible{overflow-x:visible !important}.overflow-x-scroll{overflow-x:scroll !important}.overflow-y-auto{overflow-y:auto !important}.overflow-y-hidden{overflow-y:hidden !important}.overflow-y-visible{overflow-y:visible !important}.overflow-y-scroll{overflow-y:scroll !important}.d-inline{display:inline !important}.d-inline-block{display:inline-block !important}.d-block{display:block !important}.d-grid{display:grid !important}.d-inline-grid{display:inline-grid !important}.d-table{display:table !important}.d-table-row{display:table-row !important}.d-table-cell{display:table-cell !important}.d-flex{display:flex !important}.d-inline-flex{display:inline-flex !important}.d-none{display:none !important}.shadow{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important}.shadow-sm{box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0, 0, 0, 0.175) !important}.shadow-none{box-shadow:none !important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static !important}.position-relative{position:relative !important}.position-absolute{position:absolute !important}.position-fixed{position:fixed !important}.position-sticky{position:sticky !important}.top-0{top:0 !important}.top-50{top:50% !important}.top-100{top:100% !important}.bottom-0{bottom:0 !important}.bottom-50{bottom:50% !important}.bottom-100{bottom:100% !important}.start-0{left:0 !important}.start-50{left:50% !important}.start-100{left:100% !important}.end-0{right:0 !important}.end-50{right:50% !important}.end-100{right:100% !important}.translate-middle{transform:translate(-50%, -50%) !important}.translate-middle-x{transform:translateX(-50%) !important}.translate-middle-y{transform:translateY(-50%) !important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important}.border-0{border:0 !important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important}.border-top-0{border-top:0 !important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important}.border-end-0{border-right:0 !important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important}.border-bottom-0{border-bottom:0 !important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important}.border-start-0{border-left:0 !important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb), var(--bs-border-opacity)) !important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb), var(--bs-border-opacity)) !important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb), var(--bs-border-opacity)) !important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb), var(--bs-border-opacity)) !important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb), var(--bs-border-opacity)) !important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb), var(--bs-border-opacity)) !important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb), var(--bs-border-opacity)) !important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb), var(--bs-border-opacity)) !important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb), var(--bs-border-opacity)) !important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle) !important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle) !important}.border-success-subtle{border-color:var(--bs-success-border-subtle) !important}.border-info-subtle{border-color:var(--bs-info-border-subtle) !important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle) !important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle) !important}.border-light-subtle{border-color:var(--bs-light-border-subtle) !important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle) !important}.border-1{border-width:1px !important}.border-2{border-width:2px !important}.border-3{border-width:3px !important}.border-4{border-width:4px !important}.border-5{border-width:5px !important}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25% !important}.w-50{width:50% !important}.w-75{width:75% !important}.w-100{width:100% !important}.w-auto{width:auto !important}.mw-100{max-width:100% !important}.vw-100{width:100vw !important}.min-vw-100{min-width:100vw !important}.h-25{height:25% !important}.h-50{height:50% !important}.h-75{height:75% !important}.h-100{height:100% !important}.h-auto{height:auto !important}.mh-100{max-height:100% !important}.vh-100{height:100vh !important}.min-vh-100{min-height:100vh !important}.flex-fill{flex:1 1 auto !important}.flex-row{flex-direction:row !important}.flex-column{flex-direction:column !important}.flex-row-reverse{flex-direction:row-reverse !important}.flex-column-reverse{flex-direction:column-reverse !important}.flex-grow-0{flex-grow:0 !important}.flex-grow-1{flex-grow:1 !important}.flex-shrink-0{flex-shrink:0 !important}.flex-shrink-1{flex-shrink:1 !important}.flex-wrap{flex-wrap:wrap !important}.flex-nowrap{flex-wrap:nowrap !important}.flex-wrap-reverse{flex-wrap:wrap-reverse !important}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.justify-content-between{justify-content:space-between !important}.justify-content-around{justify-content:space-around !important}.justify-content-evenly{justify-content:space-evenly !important}.align-items-start{align-items:flex-start !important}.align-items-end{align-items:flex-end !important}.align-items-center{align-items:center !important}.align-items-baseline{align-items:baseline !important}.align-items-stretch{align-items:stretch !important}.align-content-start{align-content:flex-start !important}.align-content-end{align-content:flex-end !important}.align-content-center{align-content:center !important}.align-content-between{align-content:space-between !important}.align-content-around{align-content:space-around !important}.align-content-stretch{align-content:stretch !important}.align-self-auto{align-self:auto !important}.align-self-start{align-self:flex-start !important}.align-self-end{align-self:flex-end !important}.align-self-center{align-self:center !important}.align-self-baseline{align-self:baseline !important}.align-self-stretch{align-self:stretch !important}.order-first{order:-1 !important}.order-0{order:0 !important}.order-1{order:1 !important}.order-2{order:2 !important}.order-3{order:3 !important}.order-4{order:4 !important}.order-5{order:5 !important}.order-last{order:6 !important}.m-0{margin:0 !important}.m-1{margin:0.25rem !important}.m-2{margin:0.5rem !important}.m-3{margin:1rem !important}.m-4{margin:1.5rem !important}.m-5{margin:3rem !important}.m-auto{margin:auto !important}.mx-0{margin-right:0 !important;margin-left:0 !important}.mx-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-3{margin-right:1rem !important;margin-left:1rem !important}.mx-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-5{margin-right:3rem !important;margin-left:3rem !important}.mx-auto{margin-right:auto !important;margin-left:auto !important}.my-0{margin-top:0 !important;margin-bottom:0 !important}.my-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-0{margin-top:0 !important}.mt-1{margin-top:0.25rem !important}.mt-2{margin-top:0.5rem !important}.mt-3{margin-top:1rem !important}.mt-4{margin-top:1.5rem !important}.mt-5{margin-top:3rem !important}.mt-auto{margin-top:auto !important}.me-0{margin-right:0 !important}.me-1{margin-right:0.25rem !important}.me-2{margin-right:0.5rem !important}.me-3{margin-right:1rem !important}.me-4{margin-right:1.5rem !important}.me-5{margin-right:3rem !important}.me-auto{margin-right:auto !important}.mb-0{margin-bottom:0 !important}.mb-1{margin-bottom:0.25rem !important}.mb-2{margin-bottom:0.5rem !important}.mb-3{margin-bottom:1rem !important}.mb-4{margin-bottom:1.5rem !important}.mb-5{margin-bottom:3rem !important}.mb-auto{margin-bottom:auto !important}.ms-0{margin-left:0 !important}.ms-1{margin-left:0.25rem !important}.ms-2{margin-left:0.5rem !important}.ms-3{margin-left:1rem !important}.ms-4{margin-left:1.5rem !important}.ms-5{margin-left:3rem !important}.ms-auto{margin-left:auto !important}.p-0{padding:0 !important}.p-1{padding:0.25rem !important}.p-2{padding:0.5rem !important}.p-3{padding:1rem !important}.p-4{padding:1.5rem !important}.p-5{padding:3rem !important}.px-0{padding-right:0 !important;padding-left:0 !important}.px-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.px-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.px-3{padding-right:1rem !important;padding-left:1rem !important}.px-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.px-5{padding-right:3rem !important;padding-left:3rem !important}.py-0{padding-top:0 !important;padding-bottom:0 !important}.py-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.py-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.py-3{padding-top:1rem !important;padding-bottom:1rem !important}.py-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.py-5{padding-top:3rem !important;padding-bottom:3rem !important}.pt-0{padding-top:0 !important}.pt-1{padding-top:0.25rem !important}.pt-2{padding-top:0.5rem !important}.pt-3{padding-top:1rem !important}.pt-4{padding-top:1.5rem !important}.pt-5{padding-top:3rem !important}.pe-0{padding-right:0 !important}.pe-1{padding-right:0.25rem !important}.pe-2{padding-right:0.5rem !important}.pe-3{padding-right:1rem !important}.pe-4{padding-right:1.5rem !important}.pe-5{padding-right:3rem !important}.pb-0{padding-bottom:0 !important}.pb-1{padding-bottom:0.25rem !important}.pb-2{padding-bottom:0.5rem !important}.pb-3{padding-bottom:1rem !important}.pb-4{padding-bottom:1.5rem !important}.pb-5{padding-bottom:3rem !important}.ps-0{padding-left:0 !important}.ps-1{padding-left:0.25rem !important}.ps-2{padding-left:0.5rem !important}.ps-3{padding-left:1rem !important}.ps-4{padding-left:1.5rem !important}.ps-5{padding-left:3rem !important}.gap-0{gap:0 !important}.gap-1{gap:0.25rem !important}.gap-2{gap:0.5rem !important}.gap-3{gap:1rem !important}.gap-4{gap:1.5rem !important}.gap-5{gap:3rem !important}.row-gap-0{row-gap:0 !important}.row-gap-1{row-gap:0.25rem !important}.row-gap-2{row-gap:0.5rem !important}.row-gap-3{row-gap:1rem !important}.row-gap-4{row-gap:1.5rem !important}.row-gap-5{row-gap:3rem !important}.column-gap-0{column-gap:0 !important}.column-gap-1{column-gap:0.25rem !important}.column-gap-2{column-gap:0.5rem !important}.column-gap-3{column-gap:1rem !important}.column-gap-4{column-gap:1.5rem !important}.column-gap-5{column-gap:3rem !important}.font-monospace{font-family:var(--bs-font-monospace) !important}.fs-1{font-size:calc(1.375rem + 1.5vw) !important}.fs-2{font-size:calc(1.325rem + 0.9vw) !important}.fs-3{font-size:calc(1.3rem + 0.6vw) !important}.fs-4{font-size:calc(1.275rem + 0.3vw) !important}.fs-5{font-size:1.25rem !important}.fs-6{font-size:1rem !important}.fst-italic{font-style:italic !important}.fst-normal{font-style:normal !important}.fw-lighter{font-weight:lighter !important}.fw-light{font-weight:300 !important}.fw-normal{font-weight:400 !important}.fw-medium{font-weight:500 !important}.fw-semibold{font-weight:600 !important}.fw-bold{font-weight:700 !important}.fw-bolder{font-weight:bolder !important}.lh-1{line-height:1 !important}.lh-sm{line-height:1.25 !important}.lh-base{line-height:1.5 !important}.lh-lg{line-height:2 !important}.text-start{text-align:left !important}.text-end{text-align:right !important}.text-center{text-align:center !important}.text-decoration-none{text-decoration:none !important}.text-decoration-underline{text-decoration:underline !important}.text-decoration-line-through{text-decoration:line-through !important}.text-lowercase{text-transform:lowercase !important}.text-uppercase{text-transform:uppercase !important}.text-capitalize{text-transform:capitalize !important}.text-wrap{white-space:normal !important}.text-nowrap{white-space:nowrap !important}.text-break{word-wrap:break-word !important;word-break:break-word !important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb), var(--bs-text-opacity)) !important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb), var(--bs-text-opacity)) !important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb), var(--bs-text-opacity)) !important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb), var(--bs-text-opacity)) !important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)) !important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color) !important}.text-black-50{--bs-text-opacity:1;color:rgba(0, 0, 0, 0.5) !important}.text-white-50{--bs-text-opacity:1;color:rgba(255, 255, 255, 0.5) !important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color) !important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color) !important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color) !important}.text-reset{--bs-text-opacity:1;color:inherit !important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis) !important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis) !important}.text-success-emphasis{color:var(--bs-success-text-emphasis) !important}.text-info-emphasis{color:var(--bs-info-text-emphasis) !important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis) !important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis) !important}.text-light-emphasis{color:var(--bs-light-text-emphasis) !important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis) !important}.link-opacity-10{--bs-link-opacity:0.1}.link-opacity-10-hover:hover{--bs-link-opacity:0.1}.link-opacity-25{--bs-link-opacity:0.25}.link-opacity-25-hover:hover{--bs-link-opacity:0.25}.link-opacity-50{--bs-link-opacity:0.5}.link-opacity-50-hover:hover{--bs-link-opacity:0.5}.link-opacity-75{--bs-link-opacity:0.75}.link-opacity-75-hover:hover{--bs-link-opacity:0.75}.link-opacity-100{--bs-link-opacity:1}.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1{text-underline-offset:0.125em !important}.link-offset-1-hover:hover{text-underline-offset:0.125em !important}.link-offset-2{text-underline-offset:0.25em !important}.link-offset-2-hover:hover{text-underline-offset:0.25em !important}.link-offset-3{text-underline-offset:0.375em !important}.link-offset-3-hover:hover{text-underline-offset:0.375em !important}.link-underline-primary{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-primary-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-secondary{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-secondary-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-success{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-success-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-info{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-info-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-warning{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-warning-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-danger{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-danger-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-light{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-light-rgb), var(--bs-link-underline-opacity)) !important}.link-underline-dark{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-dark-rgb), var(--bs-link-underline-opacity)) !important}.link-underline{--bs-link-underline-opacity:1;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-underline-opacity-0{--bs-link-underline-opacity:0}.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10{--bs-link-underline-opacity:0.1}.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:0.1}.link-underline-opacity-25{--bs-link-underline-opacity:0.25}.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:0.25}.link-underline-opacity-50{--bs-link-underline-opacity:0.5}.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:0.5}.link-underline-opacity-75{--bs-link-underline-opacity:0.75}.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:0.75}.link-underline-opacity-100{--bs-link-underline-opacity:1}.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb), var(--bs-bg-opacity)) !important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent !important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity)) !important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity)) !important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle) !important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle) !important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle) !important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle) !important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle) !important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle) !important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle) !important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle) !important}.bg-gradient{background-image:var(--bs-gradient) !important}.user-select-all{user-select:all !important}.user-select-auto{user-select:auto !important}.user-select-none{user-select:none !important}.pe-none{pointer-events:none !important}.pe-auto{pointer-events:auto !important}.rounded{border-radius:var(--bs-border-radius) !important}.rounded-0{border-radius:0 !important}.rounded-1{border-radius:var(--bs-border-radius-sm) !important}.rounded-2{border-radius:var(--bs-border-radius) !important}.rounded-3{border-radius:var(--bs-border-radius-lg) !important}.rounded-4{border-radius:var(--bs-border-radius-xl) !important}.rounded-5{border-radius:var(--bs-border-radius-xxl) !important}.rounded-circle{border-radius:50% !important}.rounded-pill{border-radius:var(--bs-border-radius-pill) !important}.rounded-top{border-top-left-radius:var(--bs-border-radius) !important;border-top-right-radius:var(--bs-border-radius) !important}.rounded-top-0{border-top-left-radius:0 !important;border-top-right-radius:0 !important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm) !important;border-top-right-radius:var(--bs-border-radius-sm) !important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius) !important;border-top-right-radius:var(--bs-border-radius) !important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg) !important;border-top-right-radius:var(--bs-border-radius-lg) !important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl) !important;border-top-right-radius:var(--bs-border-radius-xl) !important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl) !important;border-top-right-radius:var(--bs-border-radius-xxl) !important}.rounded-top-circle{border-top-left-radius:50% !important;border-top-right-radius:50% !important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill) !important;border-top-right-radius:var(--bs-border-radius-pill) !important}.rounded-end{border-top-right-radius:var(--bs-border-radius) !important;border-bottom-right-radius:var(--bs-border-radius) !important}.rounded-end-0{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm) !important;border-bottom-right-radius:var(--bs-border-radius-sm) !important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius) !important;border-bottom-right-radius:var(--bs-border-radius) !important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg) !important;border-bottom-right-radius:var(--bs-border-radius-lg) !important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl) !important;border-bottom-right-radius:var(--bs-border-radius-xl) !important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl) !important;border-bottom-right-radius:var(--bs-border-radius-xxl) !important}.rounded-end-circle{border-top-right-radius:50% !important;border-bottom-right-radius:50% !important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill) !important;border-bottom-right-radius:var(--bs-border-radius-pill) !important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius) !important;border-bottom-left-radius:var(--bs-border-radius) !important}.rounded-bottom-0{border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm) !important;border-bottom-left-radius:var(--bs-border-radius-sm) !important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius) !important;border-bottom-left-radius:var(--bs-border-radius) !important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg) !important;border-bottom-left-radius:var(--bs-border-radius-lg) !important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl) !important;border-bottom-left-radius:var(--bs-border-radius-xl) !important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl) !important;border-bottom-left-radius:var(--bs-border-radius-xxl) !important}.rounded-bottom-circle{border-bottom-right-radius:50% !important;border-bottom-left-radius:50% !important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill) !important;border-bottom-left-radius:var(--bs-border-radius-pill) !important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius) !important;border-top-left-radius:var(--bs-border-radius) !important}.rounded-start-0{border-bottom-left-radius:0 !important;border-top-left-radius:0 !important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm) !important;border-top-left-radius:var(--bs-border-radius-sm) !important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius) !important;border-top-left-radius:var(--bs-border-radius) !important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg) !important;border-top-left-radius:var(--bs-border-radius-lg) !important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl) !important;border-top-left-radius:var(--bs-border-radius-xl) !important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl) !important;border-top-left-radius:var(--bs-border-radius-xxl) !important}.rounded-start-circle{border-bottom-left-radius:50% !important;border-top-left-radius:50% !important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill) !important;border-top-left-radius:var(--bs-border-radius-pill) !important}.visible{visibility:visible !important}.invisible{visibility:hidden !important}.z-n1{z-index:-1 !important}.z-0{z-index:0 !important}.z-1{z-index:1 !important}.z-2{z-index:2 !important}.z-3{z-index:3 !important}@media (min-width: 576px){.float-sm-start{float:left !important}.float-sm-end{float:right !important}.float-sm-none{float:none !important}.object-fit-sm-contain{object-fit:contain !important}.object-fit-sm-cover{object-fit:cover !important}.object-fit-sm-fill{object-fit:fill !important}.object-fit-sm-scale{object-fit:scale-down !important}.object-fit-sm-none{object-fit:none !important}.d-sm-inline{display:inline !important}.d-sm-inline-block{display:inline-block !important}.d-sm-block{display:block !important}.d-sm-grid{display:grid !important}.d-sm-inline-grid{display:inline-grid !important}.d-sm-table{display:table !important}.d-sm-table-row{display:table-row !important}.d-sm-table-cell{display:table-cell !important}.d-sm-flex{display:flex !important}.d-sm-inline-flex{display:inline-flex !important}.d-sm-none{display:none !important}.flex-sm-fill{flex:1 1 auto !important}.flex-sm-row{flex-direction:row !important}.flex-sm-column{flex-direction:column !important}.flex-sm-row-reverse{flex-direction:row-reverse !important}.flex-sm-column-reverse{flex-direction:column-reverse !important}.flex-sm-grow-0{flex-grow:0 !important}.flex-sm-grow-1{flex-grow:1 !important}.flex-sm-shrink-0{flex-shrink:0 !important}.flex-sm-shrink-1{flex-shrink:1 !important}.flex-sm-wrap{flex-wrap:wrap !important}.flex-sm-nowrap{flex-wrap:nowrap !important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse !important}.justify-content-sm-start{justify-content:flex-start !important}.justify-content-sm-end{justify-content:flex-end !important}.justify-content-sm-center{justify-content:center !important}.justify-content-sm-between{justify-content:space-between !important}.justify-content-sm-around{justify-content:space-around !important}.justify-content-sm-evenly{justify-content:space-evenly !important}.align-items-sm-start{align-items:flex-start !important}.align-items-sm-end{align-items:flex-end !important}.align-items-sm-center{align-items:center !important}.align-items-sm-baseline{align-items:baseline !important}.align-items-sm-stretch{align-items:stretch !important}.align-content-sm-start{align-content:flex-start !important}.align-content-sm-end{align-content:flex-end !important}.align-content-sm-center{align-content:center !important}.align-content-sm-between{align-content:space-between !important}.align-content-sm-around{align-content:space-around !important}.align-content-sm-stretch{align-content:stretch !important}.align-self-sm-auto{align-self:auto !important}.align-self-sm-start{align-self:flex-start !important}.align-self-sm-end{align-self:flex-end !important}.align-self-sm-center{align-self:center !important}.align-self-sm-baseline{align-self:baseline !important}.align-self-sm-stretch{align-self:stretch !important}.order-sm-first{order:-1 !important}.order-sm-0{order:0 !important}.order-sm-1{order:1 !important}.order-sm-2{order:2 !important}.order-sm-3{order:3 !important}.order-sm-4{order:4 !important}.order-sm-5{order:5 !important}.order-sm-last{order:6 !important}.m-sm-0{margin:0 !important}.m-sm-1{margin:0.25rem !important}.m-sm-2{margin:0.5rem !important}.m-sm-3{margin:1rem !important}.m-sm-4{margin:1.5rem !important}.m-sm-5{margin:3rem !important}.m-sm-auto{margin:auto !important}.mx-sm-0{margin-right:0 !important;margin-left:0 !important}.mx-sm-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-sm-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-sm-3{margin-right:1rem !important;margin-left:1rem !important}.mx-sm-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-sm-5{margin-right:3rem !important;margin-left:3rem !important}.mx-sm-auto{margin-right:auto !important;margin-left:auto !important}.my-sm-0{margin-top:0 !important;margin-bottom:0 !important}.my-sm-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-sm-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-sm-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-sm-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-sm-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-sm-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-sm-0{margin-top:0 !important}.mt-sm-1{margin-top:0.25rem !important}.mt-sm-2{margin-top:0.5rem !important}.mt-sm-3{margin-top:1rem !important}.mt-sm-4{margin-top:1.5rem !important}.mt-sm-5{margin-top:3rem !important}.mt-sm-auto{margin-top:auto !important}.me-sm-0{margin-right:0 !important}.me-sm-1{margin-right:0.25rem !important}.me-sm-2{margin-right:0.5rem !important}.me-sm-3{margin-right:1rem !important}.me-sm-4{margin-right:1.5rem !important}.me-sm-5{margin-right:3rem !important}.me-sm-auto{margin-right:auto !important}.mb-sm-0{margin-bottom:0 !important}.mb-sm-1{margin-bottom:0.25rem !important}.mb-sm-2{margin-bottom:0.5rem !important}.mb-sm-3{margin-bottom:1rem !important}.mb-sm-4{margin-bottom:1.5rem !important}.mb-sm-5{margin-bottom:3rem !important}.mb-sm-auto{margin-bottom:auto !important}.ms-sm-0{margin-left:0 !important}.ms-sm-1{margin-left:0.25rem !important}.ms-sm-2{margin-left:0.5rem !important}.ms-sm-3{margin-left:1rem !important}.ms-sm-4{margin-left:1.5rem !important}.ms-sm-5{margin-left:3rem !important}.ms-sm-auto{margin-left:auto !important}.p-sm-0{padding:0 !important}.p-sm-1{padding:0.25rem !important}.p-sm-2{padding:0.5rem !important}.p-sm-3{padding:1rem !important}.p-sm-4{padding:1.5rem !important}.p-sm-5{padding:3rem !important}.px-sm-0{padding-right:0 !important;padding-left:0 !important}.px-sm-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.px-sm-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.px-sm-3{padding-right:1rem !important;padding-left:1rem !important}.px-sm-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.px-sm-5{padding-right:3rem !important;padding-left:3rem !important}.py-sm-0{padding-top:0 !important;padding-bottom:0 !important}.py-sm-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.py-sm-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.py-sm-3{padding-top:1rem !important;padding-bottom:1rem !important}.py-sm-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.py-sm-5{padding-top:3rem !important;padding-bottom:3rem !important}.pt-sm-0{padding-top:0 !important}.pt-sm-1{padding-top:0.25rem !important}.pt-sm-2{padding-top:0.5rem !important}.pt-sm-3{padding-top:1rem !important}.pt-sm-4{padding-top:1.5rem !important}.pt-sm-5{padding-top:3rem !important}.pe-sm-0{padding-right:0 !important}.pe-sm-1{padding-right:0.25rem !important}.pe-sm-2{padding-right:0.5rem !important}.pe-sm-3{padding-right:1rem !important}.pe-sm-4{padding-right:1.5rem !important}.pe-sm-5{padding-right:3rem !important}.pb-sm-0{padding-bottom:0 !important}.pb-sm-1{padding-bottom:0.25rem !important}.pb-sm-2{padding-bottom:0.5rem !important}.pb-sm-3{padding-bottom:1rem !important}.pb-sm-4{padding-bottom:1.5rem !important}.pb-sm-5{padding-bottom:3rem !important}.ps-sm-0{padding-left:0 !important}.ps-sm-1{padding-left:0.25rem !important}.ps-sm-2{padding-left:0.5rem !important}.ps-sm-3{padding-left:1rem !important}.ps-sm-4{padding-left:1.5rem !important}.ps-sm-5{padding-left:3rem !important}.gap-sm-0{gap:0 !important}.gap-sm-1{gap:0.25rem !important}.gap-sm-2{gap:0.5rem !important}.gap-sm-3{gap:1rem !important}.gap-sm-4{gap:1.5rem !important}.gap-sm-5{gap:3rem !important}.row-gap-sm-0{row-gap:0 !important}.row-gap-sm-1{row-gap:0.25rem !important}.row-gap-sm-2{row-gap:0.5rem !important}.row-gap-sm-3{row-gap:1rem !important}.row-gap-sm-4{row-gap:1.5rem !important}.row-gap-sm-5{row-gap:3rem !important}.column-gap-sm-0{column-gap:0 !important}.column-gap-sm-1{column-gap:0.25rem !important}.column-gap-sm-2{column-gap:0.5rem !important}.column-gap-sm-3{column-gap:1rem !important}.column-gap-sm-4{column-gap:1.5rem !important}.column-gap-sm-5{column-gap:3rem !important}.text-sm-start{text-align:left !important}.text-sm-end{text-align:right !important}.text-sm-center{text-align:center !important}}@media (min-width: 768px){.float-md-start{float:left !important}.float-md-end{float:right !important}.float-md-none{float:none !important}.object-fit-md-contain{object-fit:contain !important}.object-fit-md-cover{object-fit:cover !important}.object-fit-md-fill{object-fit:fill !important}.object-fit-md-scale{object-fit:scale-down !important}.object-fit-md-none{object-fit:none !important}.d-md-inline{display:inline !important}.d-md-inline-block{display:inline-block !important}.d-md-block{display:block !important}.d-md-grid{display:grid !important}.d-md-inline-grid{display:inline-grid !important}.d-md-table{display:table !important}.d-md-table-row{display:table-row !important}.d-md-table-cell{display:table-cell !important}.d-md-flex{display:flex !important}.d-md-inline-flex{display:inline-flex !important}.d-md-none{display:none !important}.flex-md-fill{flex:1 1 auto !important}.flex-md-row{flex-direction:row !important}.flex-md-column{flex-direction:column !important}.flex-md-row-reverse{flex-direction:row-reverse !important}.flex-md-column-reverse{flex-direction:column-reverse !important}.flex-md-grow-0{flex-grow:0 !important}.flex-md-grow-1{flex-grow:1 !important}.flex-md-shrink-0{flex-shrink:0 !important}.flex-md-shrink-1{flex-shrink:1 !important}.flex-md-wrap{flex-wrap:wrap !important}.flex-md-nowrap{flex-wrap:nowrap !important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse !important}.justify-content-md-start{justify-content:flex-start !important}.justify-content-md-end{justify-content:flex-end !important}.justify-content-md-center{justify-content:center !important}.justify-content-md-between{justify-content:space-between !important}.justify-content-md-around{justify-content:space-around !important}.justify-content-md-evenly{justify-content:space-evenly !important}.align-items-md-start{align-items:flex-start !important}.align-items-md-end{align-items:flex-end !important}.align-items-md-center{align-items:center !important}.align-items-md-baseline{align-items:baseline !important}.align-items-md-stretch{align-items:stretch !important}.align-content-md-start{align-content:flex-start !important}.align-content-md-end{align-content:flex-end !important}.align-content-md-center{align-content:center !important}.align-content-md-between{align-content:space-between !important}.align-content-md-around{align-content:space-around !important}.align-content-md-stretch{align-content:stretch !important}.align-self-md-auto{align-self:auto !important}.align-self-md-start{align-self:flex-start !important}.align-self-md-end{align-self:flex-end !important}.align-self-md-center{align-self:center !important}.align-self-md-baseline{align-self:baseline !important}.align-self-md-stretch{align-self:stretch !important}.order-md-first{order:-1 !important}.order-md-0{order:0 !important}.order-md-1{order:1 !important}.order-md-2{order:2 !important}.order-md-3{order:3 !important}.order-md-4{order:4 !important}.order-md-5{order:5 !important}.order-md-last{order:6 !important}.m-md-0{margin:0 !important}.m-md-1{margin:0.25rem !important}.m-md-2{margin:0.5rem !important}.m-md-3{margin:1rem !important}.m-md-4{margin:1.5rem !important}.m-md-5{margin:3rem !important}.m-md-auto{margin:auto !important}.mx-md-0{margin-right:0 !important;margin-left:0 !important}.mx-md-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-md-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-md-3{margin-right:1rem !important;margin-left:1rem !important}.mx-md-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-md-5{margin-right:3rem !important;margin-left:3rem !important}.mx-md-auto{margin-right:auto !important;margin-left:auto !important}.my-md-0{margin-top:0 !important;margin-bottom:0 !important}.my-md-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-md-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-md-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-md-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-md-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-md-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-md-0{margin-top:0 !important}.mt-md-1{margin-top:0.25rem !important}.mt-md-2{margin-top:0.5rem !important}.mt-md-3{margin-top:1rem !important}.mt-md-4{margin-top:1.5rem !important}.mt-md-5{margin-top:3rem !important}.mt-md-auto{margin-top:auto !important}.me-md-0{margin-right:0 !important}.me-md-1{margin-right:0.25rem !important}.me-md-2{margin-right:0.5rem !important}.me-md-3{margin-right:1rem !important}.me-md-4{margin-right:1.5rem !important}.me-md-5{margin-right:3rem !important}.me-md-auto{margin-right:auto !important}.mb-md-0{margin-bottom:0 !important}.mb-md-1{margin-bottom:0.25rem !important}.mb-md-2{margin-bottom:0.5rem !important}.mb-md-3{margin-bottom:1rem !important}.mb-md-4{margin-bottom:1.5rem !important}.mb-md-5{margin-bottom:3rem !important}.mb-md-auto{margin-bottom:auto !important}.ms-md-0{margin-left:0 !important}.ms-md-1{margin-left:0.25rem !important}.ms-md-2{margin-left:0.5rem !important}.ms-md-3{margin-left:1rem !important}.ms-md-4{margin-left:1.5rem !important}.ms-md-5{margin-left:3rem !important}.ms-md-auto{margin-left:auto !important}.p-md-0{padding:0 !important}.p-md-1{padding:0.25rem !important}.p-md-2{padding:0.5rem !important}.p-md-3{padding:1rem !important}.p-md-4{padding:1.5rem !important}.p-md-5{padding:3rem !important}.px-md-0{padding-right:0 !important;padding-left:0 !important}.px-md-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.px-md-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.px-md-3{padding-right:1rem !important;padding-left:1rem !important}.px-md-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.px-md-5{padding-right:3rem !important;padding-left:3rem !important}.py-md-0{padding-top:0 !important;padding-bottom:0 !important}.py-md-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.py-md-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.py-md-3{padding-top:1rem !important;padding-bottom:1rem !important}.py-md-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.py-md-5{padding-top:3rem !important;padding-bottom:3rem !important}.pt-md-0{padding-top:0 !important}.pt-md-1{padding-top:0.25rem !important}.pt-md-2{padding-top:0.5rem !important}.pt-md-3{padding-top:1rem !important}.pt-md-4{padding-top:1.5rem !important}.pt-md-5{padding-top:3rem !important}.pe-md-0{padding-right:0 !important}.pe-md-1{padding-right:0.25rem !important}.pe-md-2{padding-right:0.5rem !important}.pe-md-3{padding-right:1rem !important}.pe-md-4{padding-right:1.5rem !important}.pe-md-5{padding-right:3rem !important}.pb-md-0{padding-bottom:0 !important}.pb-md-1{padding-bottom:0.25rem !important}.pb-md-2{padding-bottom:0.5rem !important}.pb-md-3{padding-bottom:1rem !important}.pb-md-4{padding-bottom:1.5rem !important}.pb-md-5{padding-bottom:3rem !important}.ps-md-0{padding-left:0 !important}.ps-md-1{padding-left:0.25rem !important}.ps-md-2{padding-left:0.5rem !important}.ps-md-3{padding-left:1rem !important}.ps-md-4{padding-left:1.5rem !important}.ps-md-5{padding-left:3rem !important}.gap-md-0{gap:0 !important}.gap-md-1{gap:0.25rem !important}.gap-md-2{gap:0.5rem !important}.gap-md-3{gap:1rem !important}.gap-md-4{gap:1.5rem !important}.gap-md-5{gap:3rem !important}.row-gap-md-0{row-gap:0 !important}.row-gap-md-1{row-gap:0.25rem !important}.row-gap-md-2{row-gap:0.5rem !important}.row-gap-md-3{row-gap:1rem !important}.row-gap-md-4{row-gap:1.5rem !important}.row-gap-md-5{row-gap:3rem !important}.column-gap-md-0{column-gap:0 !important}.column-gap-md-1{column-gap:0.25rem !important}.column-gap-md-2{column-gap:0.5rem !important}.column-gap-md-3{column-gap:1rem !important}.column-gap-md-4{column-gap:1.5rem !important}.column-gap-md-5{column-gap:3rem !important}.text-md-start{text-align:left !important}.text-md-end{text-align:right !important}.text-md-center{text-align:center !important}}@media (min-width: 992px){.float-lg-start{float:left !important}.float-lg-end{float:right !important}.float-lg-none{float:none !important}.object-fit-lg-contain{object-fit:contain !important}.object-fit-lg-cover{object-fit:cover !important}.object-fit-lg-fill{object-fit:fill !important}.object-fit-lg-scale{object-fit:scale-down !important}.object-fit-lg-none{object-fit:none !important}.d-lg-inline{display:inline !important}.d-lg-inline-block{display:inline-block !important}.d-lg-block{display:block !important}.d-lg-grid{display:grid !important}.d-lg-inline-grid{display:inline-grid !important}.d-lg-table{display:table !important}.d-lg-table-row{display:table-row !important}.d-lg-table-cell{display:table-cell !important}.d-lg-flex{display:flex !important}.d-lg-inline-flex{display:inline-flex !important}.d-lg-none{display:none !important}.flex-lg-fill{flex:1 1 auto !important}.flex-lg-row{flex-direction:row !important}.flex-lg-column{flex-direction:column !important}.flex-lg-row-reverse{flex-direction:row-reverse !important}.flex-lg-column-reverse{flex-direction:column-reverse !important}.flex-lg-grow-0{flex-grow:0 !important}.flex-lg-grow-1{flex-grow:1 !important}.flex-lg-shrink-0{flex-shrink:0 !important}.flex-lg-shrink-1{flex-shrink:1 !important}.flex-lg-wrap{flex-wrap:wrap !important}.flex-lg-nowrap{flex-wrap:nowrap !important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse !important}.justify-content-lg-start{justify-content:flex-start !important}.justify-content-lg-end{justify-content:flex-end !important}.justify-content-lg-center{justify-content:center !important}.justify-content-lg-between{justify-content:space-between !important}.justify-content-lg-around{justify-content:space-around !important}.justify-content-lg-evenly{justify-content:space-evenly !important}.align-items-lg-start{align-items:flex-start !important}.align-items-lg-end{align-items:flex-end !important}.align-items-lg-center{align-items:center !important}.align-items-lg-baseline{align-items:baseline !important}.align-items-lg-stretch{align-items:stretch !important}.align-content-lg-start{align-content:flex-start !important}.align-content-lg-end{align-content:flex-end !important}.align-content-lg-center{align-content:center !important}.align-content-lg-between{align-content:space-between !important}.align-content-lg-around{align-content:space-around !important}.align-content-lg-stretch{align-content:stretch !important}.align-self-lg-auto{align-self:auto !important}.align-self-lg-start{align-self:flex-start !important}.align-self-lg-end{align-self:flex-end !important}.align-self-lg-center{align-self:center !important}.align-self-lg-baseline{align-self:baseline !important}.align-self-lg-stretch{align-self:stretch !important}.order-lg-first{order:-1 !important}.order-lg-0{order:0 !important}.order-lg-1{order:1 !important}.order-lg-2{order:2 !important}.order-lg-3{order:3 !important}.order-lg-4{order:4 !important}.order-lg-5{order:5 !important}.order-lg-last{order:6 !important}.m-lg-0{margin:0 !important}.m-lg-1{margin:0.25rem !important}.m-lg-2{margin:0.5rem !important}.m-lg-3{margin:1rem !important}.m-lg-4{margin:1.5rem !important}.m-lg-5{margin:3rem !important}.m-lg-auto{margin:auto !important}.mx-lg-0{margin-right:0 !important;margin-left:0 !important}.mx-lg-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-lg-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-lg-3{margin-right:1rem !important;margin-left:1rem !important}.mx-lg-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-lg-5{margin-right:3rem !important;margin-left:3rem !important}.mx-lg-auto{margin-right:auto !important;margin-left:auto !important}.my-lg-0{margin-top:0 !important;margin-bottom:0 !important}.my-lg-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-lg-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-lg-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-lg-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-lg-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-lg-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-lg-0{margin-top:0 !important}.mt-lg-1{margin-top:0.25rem !important}.mt-lg-2{margin-top:0.5rem !important}.mt-lg-3{margin-top:1rem !important}.mt-lg-4{margin-top:1.5rem !important}.mt-lg-5{margin-top:3rem !important}.mt-lg-auto{margin-top:auto !important}.me-lg-0{margin-right:0 !important}.me-lg-1{margin-right:0.25rem !important}.me-lg-2{margin-right:0.5rem !important}.me-lg-3{margin-right:1rem !important}.me-lg-4{margin-right:1.5rem !important}.me-lg-5{margin-right:3rem !important}.me-lg-auto{margin-right:auto !important}.mb-lg-0{margin-bottom:0 !important}.mb-lg-1{margin-bottom:0.25rem !important}.mb-lg-2{margin-bottom:0.5rem !important}.mb-lg-3{margin-bottom:1rem !important}.mb-lg-4{margin-bottom:1.5rem !important}.mb-lg-5{margin-bottom:3rem !important}.mb-lg-auto{margin-bottom:auto !important}.ms-lg-0{margin-left:0 !important}.ms-lg-1{margin-left:0.25rem !important}.ms-lg-2{margin-left:0.5rem !important}.ms-lg-3{margin-left:1rem !important}.ms-lg-4{margin-left:1.5rem !important}.ms-lg-5{margin-left:3rem !important}.ms-lg-auto{margin-left:auto !important}.p-lg-0{padding:0 !important}.p-lg-1{padding:0.25rem !important}.p-lg-2{padding:0.5rem !important}.p-lg-3{padding:1rem !important}.p-lg-4{padding:1.5rem !important}.p-lg-5{padding:3rem !important}.px-lg-0{padding-right:0 !important;padding-left:0 !important}.px-lg-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.px-lg-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.px-lg-3{padding-right:1rem !important;padding-left:1rem !important}.px-lg-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.px-lg-5{padding-right:3rem !important;padding-left:3rem !important}.py-lg-0{padding-top:0 !important;padding-bottom:0 !important}.py-lg-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.py-lg-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.py-lg-3{padding-top:1rem !important;padding-bottom:1rem !important}.py-lg-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.py-lg-5{padding-top:3rem !important;padding-bottom:3rem !important}.pt-lg-0{padding-top:0 !important}.pt-lg-1{padding-top:0.25rem !important}.pt-lg-2{padding-top:0.5rem !important}.pt-lg-3{padding-top:1rem !important}.pt-lg-4{padding-top:1.5rem !important}.pt-lg-5{padding-top:3rem !important}.pe-lg-0{padding-right:0 !important}.pe-lg-1{padding-right:0.25rem !important}.pe-lg-2{padding-right:0.5rem !important}.pe-lg-3{padding-right:1rem !important}.pe-lg-4{padding-right:1.5rem !important}.pe-lg-5{padding-right:3rem !important}.pb-lg-0{padding-bottom:0 !important}.pb-lg-1{padding-bottom:0.25rem !important}.pb-lg-2{padding-bottom:0.5rem !important}.pb-lg-3{padding-bottom:1rem !important}.pb-lg-4{padding-bottom:1.5rem !important}.pb-lg-5{padding-bottom:3rem !important}.ps-lg-0{padding-left:0 !important}.ps-lg-1{padding-left:0.25rem !important}.ps-lg-2{padding-left:0.5rem !important}.ps-lg-3{padding-left:1rem !important}.ps-lg-4{padding-left:1.5rem !important}.ps-lg-5{padding-left:3rem !important}.gap-lg-0{gap:0 !important}.gap-lg-1{gap:0.25rem !important}.gap-lg-2{gap:0.5rem !important}.gap-lg-3{gap:1rem !important}.gap-lg-4{gap:1.5rem !important}.gap-lg-5{gap:3rem !important}.row-gap-lg-0{row-gap:0 !important}.row-gap-lg-1{row-gap:0.25rem !important}.row-gap-lg-2{row-gap:0.5rem !important}.row-gap-lg-3{row-gap:1rem !important}.row-gap-lg-4{row-gap:1.5rem !important}.row-gap-lg-5{row-gap:3rem !important}.column-gap-lg-0{column-gap:0 !important}.column-gap-lg-1{column-gap:0.25rem !important}.column-gap-lg-2{column-gap:0.5rem !important}.column-gap-lg-3{column-gap:1rem !important}.column-gap-lg-4{column-gap:1.5rem !important}.column-gap-lg-5{column-gap:3rem !important}.text-lg-start{text-align:left !important}.text-lg-end{text-align:right !important}.text-lg-center{text-align:center !important}}@media (min-width: 1200px){.float-xl-start{float:left !important}.float-xl-end{float:right !important}.float-xl-none{float:none !important}.object-fit-xl-contain{object-fit:contain !important}.object-fit-xl-cover{object-fit:cover !important}.object-fit-xl-fill{object-fit:fill !important}.object-fit-xl-scale{object-fit:scale-down !important}.object-fit-xl-none{object-fit:none !important}.d-xl-inline{display:inline !important}.d-xl-inline-block{display:inline-block !important}.d-xl-block{display:block !important}.d-xl-grid{display:grid !important}.d-xl-inline-grid{display:inline-grid !important}.d-xl-table{display:table !important}.d-xl-table-row{display:table-row !important}.d-xl-table-cell{display:table-cell !important}.d-xl-flex{display:flex !important}.d-xl-inline-flex{display:inline-flex !important}.d-xl-none{display:none !important}.flex-xl-fill{flex:1 1 auto !important}.flex-xl-row{flex-direction:row !important}.flex-xl-column{flex-direction:column !important}.flex-xl-row-reverse{flex-direction:row-reverse !important}.flex-xl-column-reverse{flex-direction:column-reverse !important}.flex-xl-grow-0{flex-grow:0 !important}.flex-xl-grow-1{flex-grow:1 !important}.flex-xl-shrink-0{flex-shrink:0 !important}.flex-xl-shrink-1{flex-shrink:1 !important}.flex-xl-wrap{flex-wrap:wrap !important}.flex-xl-nowrap{flex-wrap:nowrap !important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse !important}.justify-content-xl-start{justify-content:flex-start !important}.justify-content-xl-end{justify-content:flex-end !important}.justify-content-xl-center{justify-content:center !important}.justify-content-xl-between{justify-content:space-between !important}.justify-content-xl-around{justify-content:space-around !important}.justify-content-xl-evenly{justify-content:space-evenly !important}.align-items-xl-start{align-items:flex-start !important}.align-items-xl-end{align-items:flex-end !important}.align-items-xl-center{align-items:center !important}.align-items-xl-baseline{align-items:baseline !important}.align-items-xl-stretch{align-items:stretch !important}.align-content-xl-start{align-content:flex-start !important}.align-content-xl-end{align-content:flex-end !important}.align-content-xl-center{align-content:center !important}.align-content-xl-between{align-content:space-between !important}.align-content-xl-around{align-content:space-around !important}.align-content-xl-stretch{align-content:stretch !important}.align-self-xl-auto{align-self:auto !important}.align-self-xl-start{align-self:flex-start !important}.align-self-xl-end{align-self:flex-end !important}.align-self-xl-center{align-self:center !important}.align-self-xl-baseline{align-self:baseline !important}.align-self-xl-stretch{align-self:stretch !important}.order-xl-first{order:-1 !important}.order-xl-0{order:0 !important}.order-xl-1{order:1 !important}.order-xl-2{order:2 !important}.order-xl-3{order:3 !important}.order-xl-4{order:4 !important}.order-xl-5{order:5 !important}.order-xl-last{order:6 !important}.m-xl-0{margin:0 !important}.m-xl-1{margin:0.25rem !important}.m-xl-2{margin:0.5rem !important}.m-xl-3{margin:1rem !important}.m-xl-4{margin:1.5rem !important}.m-xl-5{margin:3rem !important}.m-xl-auto{margin:auto !important}.mx-xl-0{margin-right:0 !important;margin-left:0 !important}.mx-xl-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-xl-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-xl-3{margin-right:1rem !important;margin-left:1rem !important}.mx-xl-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-xl-5{margin-right:3rem !important;margin-left:3rem !important}.mx-xl-auto{margin-right:auto !important;margin-left:auto !important}.my-xl-0{margin-top:0 !important;margin-bottom:0 !important}.my-xl-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-xl-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-xl-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-xl-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-xl-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-xl-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-xl-0{margin-top:0 !important}.mt-xl-1{margin-top:0.25rem !important}.mt-xl-2{margin-top:0.5rem !important}.mt-xl-3{margin-top:1rem !important}.mt-xl-4{margin-top:1.5rem !important}.mt-xl-5{margin-top:3rem !important}.mt-xl-auto{margin-top:auto !important}.me-xl-0{margin-right:0 !important}.me-xl-1{margin-right:0.25rem !important}.me-xl-2{margin-right:0.5rem !important}.me-xl-3{margin-right:1rem !important}.me-xl-4{margin-right:1.5rem !important}.me-xl-5{margin-right:3rem !important}.me-xl-auto{margin-right:auto !important}.mb-xl-0{margin-bottom:0 !important}.mb-xl-1{margin-bottom:0.25rem !important}.mb-xl-2{margin-bottom:0.5rem !important}.mb-xl-3{margin-bottom:1rem !important}.mb-xl-4{margin-bottom:1.5rem !important}.mb-xl-5{margin-bottom:3rem !important}.mb-xl-auto{margin-bottom:auto !important}.ms-xl-0{margin-left:0 !important}.ms-xl-1{margin-left:0.25rem !important}.ms-xl-2{margin-left:0.5rem !important}.ms-xl-3{margin-left:1rem !important}.ms-xl-4{margin-left:1.5rem !important}.ms-xl-5{margin-left:3rem !important}.ms-xl-auto{margin-left:auto !important}.p-xl-0{padding:0 !important}.p-xl-1{padding:0.25rem !important}.p-xl-2{padding:0.5rem !important}.p-xl-3{padding:1rem !important}.p-xl-4{padding:1.5rem !important}.p-xl-5{padding:3rem !important}.px-xl-0{padding-right:0 !important;padding-left:0 !important}.px-xl-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.px-xl-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.px-xl-3{padding-right:1rem !important;padding-left:1rem !important}.px-xl-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.px-xl-5{padding-right:3rem !important;padding-left:3rem !important}.py-xl-0{padding-top:0 !important;padding-bottom:0 !important}.py-xl-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.py-xl-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.py-xl-3{padding-top:1rem !important;padding-bottom:1rem !important}.py-xl-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.py-xl-5{padding-top:3rem !important;padding-bottom:3rem !important}.pt-xl-0{padding-top:0 !important}.pt-xl-1{padding-top:0.25rem !important}.pt-xl-2{padding-top:0.5rem !important}.pt-xl-3{padding-top:1rem !important}.pt-xl-4{padding-top:1.5rem !important}.pt-xl-5{padding-top:3rem !important}.pe-xl-0{padding-right:0 !important}.pe-xl-1{padding-right:0.25rem !important}.pe-xl-2{padding-right:0.5rem !important}.pe-xl-3{padding-right:1rem !important}.pe-xl-4{padding-right:1.5rem !important}.pe-xl-5{padding-right:3rem !important}.pb-xl-0{padding-bottom:0 !important}.pb-xl-1{padding-bottom:0.25rem !important}.pb-xl-2{padding-bottom:0.5rem !important}.pb-xl-3{padding-bottom:1rem !important}.pb-xl-4{padding-bottom:1.5rem !important}.pb-xl-5{padding-bottom:3rem !important}.ps-xl-0{padding-left:0 !important}.ps-xl-1{padding-left:0.25rem !important}.ps-xl-2{padding-left:0.5rem !important}.ps-xl-3{padding-left:1rem !important}.ps-xl-4{padding-left:1.5rem !important}.ps-xl-5{padding-left:3rem !important}.gap-xl-0{gap:0 !important}.gap-xl-1{gap:0.25rem !important}.gap-xl-2{gap:0.5rem !important}.gap-xl-3{gap:1rem !important}.gap-xl-4{gap:1.5rem !important}.gap-xl-5{gap:3rem !important}.row-gap-xl-0{row-gap:0 !important}.row-gap-xl-1{row-gap:0.25rem !important}.row-gap-xl-2{row-gap:0.5rem !important}.row-gap-xl-3{row-gap:1rem !important}.row-gap-xl-4{row-gap:1.5rem !important}.row-gap-xl-5{row-gap:3rem !important}.column-gap-xl-0{column-gap:0 !important}.column-gap-xl-1{column-gap:0.25rem !important}.column-gap-xl-2{column-gap:0.5rem !important}.column-gap-xl-3{column-gap:1rem !important}.column-gap-xl-4{column-gap:1.5rem !important}.column-gap-xl-5{column-gap:3rem !important}.text-xl-start{text-align:left !important}.text-xl-end{text-align:right !important}.text-xl-center{text-align:center !important}}@media (min-width: 1400px){.float-xxl-start{float:left !important}.float-xxl-end{float:right !important}.float-xxl-none{float:none !important}.object-fit-xxl-contain{object-fit:contain !important}.object-fit-xxl-cover{object-fit:cover !important}.object-fit-xxl-fill{object-fit:fill !important}.object-fit-xxl-scale{object-fit:scale-down !important}.object-fit-xxl-none{object-fit:none !important}.d-xxl-inline{display:inline !important}.d-xxl-inline-block{display:inline-block !important}.d-xxl-block{display:block !important}.d-xxl-grid{display:grid !important}.d-xxl-inline-grid{display:inline-grid !important}.d-xxl-table{display:table !important}.d-xxl-table-row{display:table-row !important}.d-xxl-table-cell{display:table-cell !important}.d-xxl-flex{display:flex !important}.d-xxl-inline-flex{display:inline-flex !important}.d-xxl-none{display:none !important}.flex-xxl-fill{flex:1 1 auto !important}.flex-xxl-row{flex-direction:row !important}.flex-xxl-column{flex-direction:column !important}.flex-xxl-row-reverse{flex-direction:row-reverse !important}.flex-xxl-column-reverse{flex-direction:column-reverse !important}.flex-xxl-grow-0{flex-grow:0 !important}.flex-xxl-grow-1{flex-grow:1 !important}.flex-xxl-shrink-0{flex-shrink:0 !important}.flex-xxl-shrink-1{flex-shrink:1 !important}.flex-xxl-wrap{flex-wrap:wrap !important}.flex-xxl-nowrap{flex-wrap:nowrap !important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse !important}.justify-content-xxl-start{justify-content:flex-start !important}.justify-content-xxl-end{justify-content:flex-end !important}.justify-content-xxl-center{justify-content:center !important}.justify-content-xxl-between{justify-content:space-between !important}.justify-content-xxl-around{justify-content:space-around !important}.justify-content-xxl-evenly{justify-content:space-evenly !important}.align-items-xxl-start{align-items:flex-start !important}.align-items-xxl-end{align-items:flex-end !important}.align-items-xxl-center{align-items:center !important}.align-items-xxl-baseline{align-items:baseline !important}.align-items-xxl-stretch{align-items:stretch !important}.align-content-xxl-start{align-content:flex-start !important}.align-content-xxl-end{align-content:flex-end !important}.align-content-xxl-center{align-content:center !important}.align-content-xxl-between{align-content:space-between !important}.align-content-xxl-around{align-content:space-around !important}.align-content-xxl-stretch{align-content:stretch !important}.align-self-xxl-auto{align-self:auto !important}.align-self-xxl-start{align-self:flex-start !important}.align-self-xxl-end{align-self:flex-end !important}.align-self-xxl-center{align-self:center !important}.align-self-xxl-baseline{align-self:baseline !important}.align-self-xxl-stretch{align-self:stretch !important}.order-xxl-first{order:-1 !important}.order-xxl-0{order:0 !important}.order-xxl-1{order:1 !important}.order-xxl-2{order:2 !important}.order-xxl-3{order:3 !important}.order-xxl-4{order:4 !important}.order-xxl-5{order:5 !important}.order-xxl-last{order:6 !important}.m-xxl-0{margin:0 !important}.m-xxl-1{margin:0.25rem !important}.m-xxl-2{margin:0.5rem !important}.m-xxl-3{margin:1rem !important}.m-xxl-4{margin:1.5rem !important}.m-xxl-5{margin:3rem !important}.m-xxl-auto{margin:auto !important}.mx-xxl-0{margin-right:0 !important;margin-left:0 !important}.mx-xxl-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-xxl-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-xxl-3{margin-right:1rem !important;margin-left:1rem !important}.mx-xxl-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-xxl-5{margin-right:3rem !important;margin-left:3rem !important}.mx-xxl-auto{margin-right:auto !important;margin-left:auto !important}.my-xxl-0{margin-top:0 !important;margin-bottom:0 !important}.my-xxl-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-xxl-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-xxl-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-xxl-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-xxl-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-xxl-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-xxl-0{margin-top:0 !important}.mt-xxl-1{margin-top:0.25rem !important}.mt-xxl-2{margin-top:0.5rem !important}.mt-xxl-3{margin-top:1rem !important}.mt-xxl-4{margin-top:1.5rem !important}.mt-xxl-5{margin-top:3rem !important}.mt-xxl-auto{margin-top:auto !important}.me-xxl-0{margin-right:0 !important}.me-xxl-1{margin-right:0.25rem !important}.me-xxl-2{margin-right:0.5rem !important}.me-xxl-3{margin-right:1rem !important}.me-xxl-4{margin-right:1.5rem !important}.me-xxl-5{margin-right:3rem !important}.me-xxl-auto{margin-right:auto !important}.mb-xxl-0{margin-bottom:0 !important}.mb-xxl-1{margin-bottom:0.25rem !important}.mb-xxl-2{margin-bottom:0.5rem !important}.mb-xxl-3{margin-bottom:1rem !important}.mb-xxl-4{margin-bottom:1.5rem !important}.mb-xxl-5{margin-bottom:3rem !important}.mb-xxl-auto{margin-bottom:auto !important}.ms-xxl-0{margin-left:0 !important}.ms-xxl-1{margin-left:0.25rem !important}.ms-xxl-2{margin-left:0.5rem !important}.ms-xxl-3{margin-left:1rem !important}.ms-xxl-4{margin-left:1.5rem !important}.ms-xxl-5{margin-left:3rem !important}.ms-xxl-auto{margin-left:auto !important}.p-xxl-0{padding:0 !important}.p-xxl-1{padding:0.25rem !important}.p-xxl-2{padding:0.5rem !important}.p-xxl-3{padding:1rem !important}.p-xxl-4{padding:1.5rem !important}.p-xxl-5{padding:3rem !important}.px-xxl-0{padding-right:0 !important;padding-left:0 !important}.px-xxl-1{padding-right:0.25rem !important;padding-left:0.25rem !important}.px-xxl-2{padding-right:0.5rem !important;padding-left:0.5rem !important}.px-xxl-3{padding-right:1rem !important;padding-left:1rem !important}.px-xxl-4{padding-right:1.5rem !important;padding-left:1.5rem !important}.px-xxl-5{padding-right:3rem !important;padding-left:3rem !important}.py-xxl-0{padding-top:0 !important;padding-bottom:0 !important}.py-xxl-1{padding-top:0.25rem !important;padding-bottom:0.25rem !important}.py-xxl-2{padding-top:0.5rem !important;padding-bottom:0.5rem !important}.py-xxl-3{padding-top:1rem !important;padding-bottom:1rem !important}.py-xxl-4{padding-top:1.5rem !important;padding-bottom:1.5rem !important}.py-xxl-5{padding-top:3rem !important;padding-bottom:3rem !important}.pt-xxl-0{padding-top:0 !important}.pt-xxl-1{padding-top:0.25rem !important}.pt-xxl-2{padding-top:0.5rem !important}.pt-xxl-3{padding-top:1rem !important}.pt-xxl-4{padding-top:1.5rem !important}.pt-xxl-5{padding-top:3rem !important}.pe-xxl-0{padding-right:0 !important}.pe-xxl-1{padding-right:0.25rem !important}.pe-xxl-2{padding-right:0.5rem !important}.pe-xxl-3{padding-right:1rem !important}.pe-xxl-4{padding-right:1.5rem !important}.pe-xxl-5{padding-right:3rem !important}.pb-xxl-0{padding-bottom:0 !important}.pb-xxl-1{padding-bottom:0.25rem !important}.pb-xxl-2{padding-bottom:0.5rem !important}.pb-xxl-3{padding-bottom:1rem !important}.pb-xxl-4{padding-bottom:1.5rem !important}.pb-xxl-5{padding-bottom:3rem !important}.ps-xxl-0{padding-left:0 !important}.ps-xxl-1{padding-left:0.25rem !important}.ps-xxl-2{padding-left:0.5rem !important}.ps-xxl-3{padding-left:1rem !important}.ps-xxl-4{padding-left:1.5rem !important}.ps-xxl-5{padding-left:3rem !important}.gap-xxl-0{gap:0 !important}.gap-xxl-1{gap:0.25rem !important}.gap-xxl-2{gap:0.5rem !important}.gap-xxl-3{gap:1rem !important}.gap-xxl-4{gap:1.5rem !important}.gap-xxl-5{gap:3rem !important}.row-gap-xxl-0{row-gap:0 !important}.row-gap-xxl-1{row-gap:0.25rem !important}.row-gap-xxl-2{row-gap:0.5rem !important}.row-gap-xxl-3{row-gap:1rem !important}.row-gap-xxl-4{row-gap:1.5rem !important}.row-gap-xxl-5{row-gap:3rem !important}.column-gap-xxl-0{column-gap:0 !important}.column-gap-xxl-1{column-gap:0.25rem !important}.column-gap-xxl-2{column-gap:0.5rem !important}.column-gap-xxl-3{column-gap:1rem !important}.column-gap-xxl-4{column-gap:1.5rem !important}.column-gap-xxl-5{column-gap:3rem !important}.text-xxl-start{text-align:left !important}.text-xxl-end{text-align:right !important}.text-xxl-center{text-align:center !important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem !important}.fs-2{font-size:2rem !important}.fs-3{font-size:1.75rem !important}.fs-4{font-size:1.5rem !important}}@media print{.d-print-inline{display:inline !important}.d-print-inline-block{display:inline-block !important}.d-print-block{display:block !important}.d-print-grid{display:grid !important}.d-print-inline-grid{display:inline-grid !important}.d-print-table{display:table !important}.d-print-table-row{display:table-row !important}.d-print-table-cell{display:table-cell !important}.d-print-flex{display:flex !important}.d-print-inline-flex{display:inline-flex !important}.d-print-none{display:none !important}}:host{font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";font-size:1rem;font-weight:400;line-height:1.5;color:#212529}";
3030
6
 
3031
- function assertValidRatios(ratios) {
3032
- assert(areValidRatios(ratios), 'You must provide a non-empty array of numeric values greater than 0.', TypeError);
3033
- }
3034
- /**
3035
- * Asserts a value is an integer.
3036
- * @ignore
3037
- *
3038
- * @param {} number - The value to test.
3039
- *
3040
- * @throws {TypeError}
3041
- */
3042
-
3043
- function assertInteger(number) {
3044
- assert(Number.isInteger(number), 'You must provide an integer.', TypeError);
3045
- }
3046
-
3047
- var calculator$1 = Calculator();
3048
- /**
3049
- * A Dinero object is an immutable data structure representing a specific monetary value.
3050
- * It comes with methods for creating, parsing, manipulating, testing, transforming and formatting them.
3051
- *
3052
- * A Dinero object has:
3053
- *
3054
- * * An `amount`, expressed in minor currency units, as an integer.
3055
- * * A `currency`, expressed as an {@link https://en.wikipedia.org/wiki/ISO_4217#Active_codes ISO 4217 currency code}.
3056
- * * A `precision`, expressed as an integer, to represent the number of decimal places in the `amount`.
3057
- * This is helpful when you want to represent fractional minor currency units (e.g.: $10.4545).
3058
- * You can also use it to represent a currency with a different [exponent](https://en.wikipedia.org/wiki/ISO_4217#Treatment_of_minor_currency_units_.28the_.22exponent.22.29) than `2` (e.g.: Iraqi dinar with 1000 fils in 1 dinar (exponent of `3`), Japanese yen with no sub-units (exponent of `0`)).
3059
- * * An optional `locale` property that affects how output strings are formatted.
3060
- *
3061
- * Here's an overview of the public API:
3062
- *
3063
- * * **Access:** {@link module:Dinero~getAmount getAmount}, {@link module:Dinero~getCurrency getCurrency}, {@link module:Dinero~getLocale getLocale} and {@link module:Dinero~getPrecision getPrecision}.
3064
- * * **Manipulation:** {@link module:Dinero~add add}, {@link module:Dinero~subtract subtract}, {@link module:Dinero~multiply multiply}, {@link module:Dinero~divide divide}, {@link module:Dinero~percentage percentage}, {@link module:Dinero~allocate allocate} and {@link module:Dinero~convert convert}.
3065
- * * **Testing:** {@link module:Dinero~equalsTo equalsTo}, {@link module:Dinero~lessThan lessThan}, {@link module:Dinero~lessThanOrEqual lessThanOrEqual}, {@link module:Dinero~greaterThan greaterThan}, {@link module:Dinero~greaterThanOrEqual greaterThanOrEqual}, {@link module:Dinero~isZero isZero}, {@link module:Dinero~isPositive isPositive}, {@link module:Dinero~isNegative isNegative}, {@link module:Dinero~hasSubUnits hasSubUnits}, {@link module:Dinero~hasSameCurrency hasSameCurrency} and {@link module:Dinero~hasSameAmount hasSameAmount}.
3066
- * * **Configuration:** {@link module:Dinero~setLocale setLocale}.
3067
- * * **Conversion & formatting:** {@link module:Dinero~toFormat toFormat}, {@link module:Dinero~toUnit toUnit}, {@link module:Dinero~toRoundedUnit toRoundedUnit}, {@link module:Dinero~toObject toObject}, {@link module:Dinero~toJSON toJSON}, {@link module:Dinero~convertPrecision convertPrecision} and {@link module:Dinero.normalizePrecision normalizePrecision}.
3068
- *
3069
- * Dinero.js uses `number`s under the hood, so it's constrained by the [double-precision floating-point format](https://en.wikipedia.org/wiki/Double-precision_floating-point_format). Using values over [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MAX_SAFE_INTEGER) or below [`Number.MIN_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MIN_SAFE_INTEGER) will yield unpredictable results.
3070
- * Same goes with performing calculations: once the internal `amount` value exceeds those limits, precision is no longer guaranteed.
3071
- *
3072
- * @module Dinero
3073
- * @param {Number} [options.amount=0] - The amount in minor currency units (as an integer).
3074
- * @param {String} [options.currency='USD'] - An ISO 4217 currency code.
3075
- * @param {String} [options.precision=2] - The number of decimal places to represent.
3076
- *
3077
- * @throws {TypeError} If `amount` or `precision` is invalid. Integers over [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MAX_SAFE_INTEGER) or below [`Number.MIN_SAFE_INTEGER`](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Number/MIN_SAFE_INTEGER) are considered valid, even though they can lead to imprecise amounts.
3078
- *
3079
- * @return {Object}
3080
- */
3081
-
3082
- var Dinero = function Dinero(options) {
3083
- var _Object$assign = Object.assign({}, {
3084
- amount: Dinero.defaultAmount,
3085
- currency: Dinero.defaultCurrency,
3086
- precision: Dinero.defaultPrecision
3087
- }, options),
3088
- amount = _Object$assign.amount,
3089
- currency = _Object$assign.currency,
3090
- precision = _Object$assign.precision;
3091
-
3092
- assertInteger(amount);
3093
- assertInteger(precision);
3094
- var globalLocale = Dinero.globalLocale,
3095
- globalFormat = Dinero.globalFormat,
3096
- globalRoundingMode = Dinero.globalRoundingMode,
3097
- globalFormatRoundingMode = Dinero.globalFormatRoundingMode;
3098
- var globalExchangeRatesApi = Object.assign({}, Dinero.globalExchangeRatesApi);
3099
- /**
3100
- * Uses ES5 function notation so `this` can be passed through call, apply and bind
3101
- * @ignore
3102
- */
3103
-
3104
- var create = function create(options) {
3105
- var obj = Object.assign({}, Object.assign({}, {
3106
- amount: amount,
3107
- currency: currency,
3108
- precision: precision
3109
- }, options), Object.assign({}, {
3110
- locale: this.locale
3111
- }, options));
3112
- return Object.assign(Dinero({
3113
- amount: obj.amount,
3114
- currency: obj.currency,
3115
- precision: obj.precision
3116
- }), {
3117
- locale: obj.locale
3118
- });
3119
- };
3120
- /**
3121
- * Uses ES5 function notation so `this` can be passed through call, apply and bind
3122
- * @ignore
3123
- */
3124
-
3125
-
3126
- var assertSameCurrency = function assertSameCurrency(comparator) {
3127
- assert(this.hasSameCurrency(comparator), 'You must provide a Dinero instance with the same currency.', TypeError);
3128
- };
3129
-
3130
- return {
3131
- /**
3132
- * Returns the amount.
3133
- *
3134
- * @example
3135
- * // returns 500
3136
- * Dinero({ amount: 500 }).getAmount()
3137
- *
3138
- * @return {Number}
3139
- */
3140
- getAmount: function getAmount() {
3141
- return amount;
3142
- },
3143
-
3144
- /**
3145
- * Returns the currency.
3146
- *
3147
- * @example
3148
- * // returns 'EUR'
3149
- * Dinero({ currency: 'EUR' }).getCurrency()
3150
- *
3151
- * @return {String}
3152
- */
3153
- getCurrency: function getCurrency() {
3154
- return currency;
3155
- },
3156
-
3157
- /**
3158
- * Returns the locale.
3159
- *
3160
- * @example
3161
- * // returns 'fr-FR'
3162
- * Dinero().setLocale('fr-FR').getLocale()
3163
- *
3164
- * @return {String}
3165
- */
3166
- getLocale: function getLocale() {
3167
- return this.locale || globalLocale;
3168
- },
3169
-
3170
- /**
3171
- * Returns a new Dinero object with an embedded locale.
3172
- *
3173
- * @param {String} newLocale - The new locale as an {@link http://tools.ietf.org/html/rfc5646 BCP 47 language tag}.
3174
- *
3175
- * @example
3176
- * // Returns a Dinero object with locale 'ja-JP'
3177
- * Dinero().setLocale('ja-JP')
3178
- *
3179
- * @return {Dinero}
3180
- */
3181
- setLocale: function setLocale(newLocale) {
3182
- return create.call(this, {
3183
- locale: newLocale
3184
- });
3185
- },
3186
-
3187
- /**
3188
- * Returns the precision.
3189
- *
3190
- * @example
3191
- * // returns 3
3192
- * Dinero({ precision: 3 }).getPrecision()
3193
- *
3194
- * @return {Number}
3195
- */
3196
- getPrecision: function getPrecision() {
3197
- return precision;
3198
- },
3199
-
3200
- /**
3201
- * Returns a new Dinero object with a new precision and a converted amount.
3202
- *
3203
- * By default, fractional minor currency units are rounded using the **half to even** rule ([banker's rounding](http://wiki.c2.com/?BankersRounding)).
3204
- * This can be necessary when you need to convert objects to a smaller precision.
3205
- *
3206
- * Rounding *can* lead to accuracy issues as you chain many times. Consider a minimal amount of subsequent conversions for safer results.
3207
- * You can also specify a different `roundingMode` to better fit your needs.
3208
- *
3209
- * @param {Number} newPrecision - The new precision.
3210
- * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3211
- *
3212
- * @example
3213
- * // Returns a Dinero object with precision 3 and amount 1000
3214
- * Dinero({ amount: 100, precision: 2 }).convertPrecision(3)
3215
- *
3216
- * @throws {TypeError} If `newPrecision` is invalid.
3217
- *
3218
- * @return {Dinero}
3219
- */
3220
- convertPrecision: function convertPrecision(newPrecision) {
3221
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalFormatRoundingMode;
3222
- assertInteger(newPrecision);
3223
- var precision = this.getPrecision();
3224
- var isNewPrecisionLarger = newPrecision > precision;
3225
- var operation = isNewPrecisionLarger ? calculator$1.multiply : calculator$1.divide;
3226
- var terms = isNewPrecisionLarger ? [newPrecision, precision] : [precision, newPrecision];
3227
- var factor = Math.pow(10, calculator$1.subtract.apply(calculator$1, terms));
3228
- return create.call(this, {
3229
- amount: calculator$1.round(operation(this.getAmount(), factor), roundingMode),
3230
- precision: newPrecision
3231
- });
3232
- },
3233
-
3234
- /**
3235
- * Returns a new Dinero object that represents the sum of this and an other Dinero object.
3236
- *
3237
- * If Dinero objects have a different `precision`, they will be first converted to the highest.
3238
- *
3239
- * @param {Dinero} addend - The Dinero object to add.
3240
- *
3241
- * @example
3242
- * // returns a Dinero object with amount 600
3243
- * Dinero({ amount: 400 }).add(Dinero({ amount: 200 }))
3244
- * @example
3245
- * // returns a Dinero object with amount 144545 and precision 4
3246
- * Dinero({ amount: 400 }).add(Dinero({ amount: 104545, precision: 4 }))
3247
- *
3248
- * @throws {TypeError} If `addend` has a different currency.
3249
- *
3250
- * @return {Dinero}
3251
- */
3252
- add: function add(addend) {
3253
- assertSameCurrency.call(this, addend);
3254
- var addends = Dinero.normalizePrecision([this, addend]);
3255
- return create.call(this, {
3256
- amount: calculator$1.add(addends[0].getAmount(), addends[1].getAmount()),
3257
- precision: addends[0].getPrecision()
3258
- });
3259
- },
3260
-
3261
- /**
3262
- * Returns a new Dinero object that represents the difference of this and an other Dinero object.
3263
- *
3264
- * If Dinero objects have a different `precision`, they will be first converted to the highest.
3265
- *
3266
- * @param {Dinero} subtrahend - The Dinero object to subtract.
3267
- *
3268
- * @example
3269
- * // returns a Dinero object with amount 200
3270
- * Dinero({ amount: 400 }).subtract(Dinero({ amount: 200 }))
3271
- * @example
3272
- * // returns a Dinero object with amount 64545 and precision 4
3273
- * Dinero({ amount: 104545, precision: 4 }).subtract(Dinero({ amount: 400 }))
3274
- *
3275
- * @throws {TypeError} If `subtrahend` has a different currency.
3276
- *
3277
- * @return {Dinero}
3278
- */
3279
- subtract: function subtract(subtrahend) {
3280
- assertSameCurrency.call(this, subtrahend);
3281
- var subtrahends = Dinero.normalizePrecision([this, subtrahend]);
3282
- return create.call(this, {
3283
- amount: calculator$1.subtract(subtrahends[0].getAmount(), subtrahends[1].getAmount()),
3284
- precision: subtrahends[0].getPrecision()
3285
- });
3286
- },
3287
-
3288
- /**
3289
- * Returns a new Dinero object that represents the multiplied value by the given factor.
3290
- *
3291
- * By default, fractional minor currency units are rounded using the **half to even** rule ([banker's rounding](http://wiki.c2.com/?BankersRounding)).
3292
- *
3293
- * Rounding *can* lead to accuracy issues as you chain many times. Consider a minimal amount of subsequent calculations for safer results.
3294
- * You can also specify a different `roundingMode` to better fit your needs.
3295
- *
3296
- * @param {Number} multiplier - The factor to multiply by.
3297
- * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3298
- *
3299
- * @example
3300
- * // returns a Dinero object with amount 1600
3301
- * Dinero({ amount: 400 }).multiply(4)
3302
- * @example
3303
- * // returns a Dinero object with amount 800
3304
- * Dinero({ amount: 400 }).multiply(2.001)
3305
- * @example
3306
- * // returns a Dinero object with amount 801
3307
- * Dinero({ amount: 400 }).multiply(2.00125, 'HALF_UP')
3308
- *
3309
- * @return {Dinero}
3310
- */
3311
- multiply: function multiply(multiplier) {
3312
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalRoundingMode;
3313
- return create.call(this, {
3314
- amount: calculator$1.round(calculator$1.multiply(this.getAmount(), multiplier), roundingMode)
3315
- });
3316
- },
3317
-
3318
- /**
3319
- * Returns a new Dinero object that represents the divided value by the given factor.
3320
- *
3321
- * By default, fractional minor currency units are rounded using the **half to even** rule ([banker's rounding](http://wiki.c2.com/?BankersRounding)).
3322
- *
3323
- * Rounding *can* lead to accuracy issues as you chain many times. Consider a minimal amount of subsequent calculations for safer results.
3324
- * You can also specify a different `roundingMode` to better fit your needs.
3325
- *
3326
- * As rounding is applied, precision may be lost in the process. If you want to accurately split a Dinero object, use {@link module:Dinero~allocate allocate} instead.
3327
- *
3328
- * @param {Number} divisor - The factor to divide by.
3329
- * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3330
- *
3331
- * @example
3332
- * // returns a Dinero object with amount 100
3333
- * Dinero({ amount: 400 }).divide(4)
3334
- * @example
3335
- * // returns a Dinero object with amount 52
3336
- * Dinero({ amount: 105 }).divide(2)
3337
- * @example
3338
- * // returns a Dinero object with amount 53
3339
- * Dinero({ amount: 105 }).divide(2, 'HALF_UP')
3340
- *
3341
- * @return {Dinero}
3342
- */
3343
- divide: function divide(divisor) {
3344
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalRoundingMode;
3345
- return create.call(this, {
3346
- amount: calculator$1.round(calculator$1.divide(this.getAmount(), divisor), roundingMode)
3347
- });
3348
- },
3349
-
3350
- /**
3351
- * Returns a new Dinero object that represents a percentage of this.
3352
- *
3353
- * As rounding is applied, precision may be lost in the process. If you want to accurately split a Dinero object, use {@link module:Dinero~allocate allocate} instead.
3354
- *
3355
- * @param {Number} percentage - The percentage to extract (between 0 and 100).
3356
- * @param {String} [roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3357
- *
3358
- * @example
3359
- * // returns a Dinero object with amount 5000
3360
- * Dinero({ amount: 10000 }).percentage(50)
3361
- * @example
3362
- * // returns a Dinero object with amount 29
3363
- * Dinero({ amount: 57 }).percentage(50, "HALF_ODD")
3364
- *
3365
- * @throws {RangeError} If `percentage` is out of range.
3366
- *
3367
- * @return {Dinero}
3368
- */
3369
- percentage: function percentage(_percentage) {
3370
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalRoundingMode;
3371
- assertPercentage(_percentage);
3372
- return this.multiply(calculator$1.divide(_percentage, 100), roundingMode);
3373
- },
3374
-
3375
- /**
3376
- * Allocates the amount of a Dinero object according to a list of ratios.
3377
- *
3378
- * Sometimes you need to split monetary values but percentages can't cut it without adding or losing pennies.
3379
- * A good example is invoicing: let's say you need to bill $1,000.03 and you want a 50% downpayment.
3380
- * If you use {@link module:Dinero~percentage percentage}, you'll get an accurate Dinero object but the amount won't be billable: you can't split a penny.
3381
- * If you round it, you'll bill a penny extra.
3382
- * With {@link module:Dinero~allocate allocate}, you can split a monetary amount then distribute the remainder as evenly as possible.
3383
- *
3384
- * You can use percentage style or ratio style for `ratios`: `[25, 75]` and `[1, 3]` will do the same thing.
3385
- *
3386
- * Since v1.8.0, you can use zero ratios (such as [0, 50, 50]). If there's a remainder to distribute, zero ratios are skipped and return a Dinero object with amount zero.
3387
- *
3388
- * @param {Number[]} ratios - The ratios to allocate the money to.
3389
- *
3390
- * @example
3391
- * // returns an array of two Dinero objects
3392
- * // the first one with an amount of 502
3393
- * // the second one with an amount of 501
3394
- * Dinero({ amount: 1003 }).allocate([50, 50])
3395
- * @example
3396
- * // returns an array of two Dinero objects
3397
- * // the first one with an amount of 25
3398
- * // the second one with an amount of 75
3399
- * Dinero({ amount: 100 }).allocate([1, 3])
3400
- * @example
3401
- * // since version 1.8.0
3402
- * // returns an array of three Dinero objects
3403
- * // the first one with an amount of 0
3404
- * // the second one with an amount of 502
3405
- * // the third one with an amount of 501
3406
- * Dinero({ amount: 1003 }).allocate([0, 50, 50])
3407
- *
3408
- * @throws {TypeError} If ratios are invalid.
3409
- *
3410
- * @return {Dinero[]}
3411
- */
3412
- allocate: function allocate(ratios) {
3413
- var _this = this;
3414
-
3415
- assertValidRatios(ratios);
3416
- var total = ratios.reduce(function (a, b) {
3417
- return calculator$1.add(a, b);
3418
- });
3419
- var remainder = this.getAmount();
3420
- var shares = ratios.map(function (ratio) {
3421
- var share = Math.floor(calculator$1.divide(calculator$1.multiply(_this.getAmount(), ratio), total));
3422
- remainder = calculator$1.subtract(remainder, share);
3423
- return create.call(_this, {
3424
- amount: share
3425
- });
3426
- });
3427
- var i = 0;
3428
-
3429
- while (remainder > 0) {
3430
- if (ratios[i] > 0) {
3431
- shares[i] = shares[i].add(create.call(this, {
3432
- amount: 1
3433
- }));
3434
- remainder = calculator$1.subtract(remainder, 1);
3435
- }
3436
-
3437
- i += 1;
3438
- }
3439
-
3440
- return shares;
3441
- },
3442
-
3443
- /**
3444
- * Returns a Promise containing a new Dinero object converted to another currency.
3445
- *
3446
- * You have two options to provide the exchange rates:
3447
- *
3448
- * 1. **Use an exchange rate REST API, and let Dinero handle the fetching and conversion.**
3449
- * This is a simple option if you have access to an exchange rate REST API and want Dinero to do the rest.
3450
- * 2. **Fetch the exchange rates on your own and provide them directly.**
3451
- * This is useful if you're fetching your rates from somewhere else (a file, a database), use a different protocol or query language than REST (SOAP, GraphQL) or want to fetch rates once and cache them instead of making new requests every time.
3452
- *
3453
- * **If you want to use a REST API**, you must provide a third-party endpoint yourself. Dinero doesn't come bundled with an exchange rates endpoint.
3454
- *
3455
- * Here are some exchange rate APIs you can use:
3456
- *
3457
- * * [Fixer](https://fixer.io)
3458
- * * [Open Exchange Rates](https://openexchangerates.org)
3459
- * * [Coinbase](https://api.coinbase.com/v2/exchange-rates)
3460
- * * More [foreign](https://github.com/toddmotto/public-apis#currency-exchange) and [crypto](https://github.com/toddmotto/public-apis#cryptocurrency) exchange rate APIs.
3461
- *
3462
- * **If you want to fetch your own rates and provide them directly**, you need to pass a promise that resolves to the exchanges rates.
3463
- *
3464
- * In both cases, you need to specify at least:
3465
- *
3466
- * * a **destination currency**: the currency in which you want to convert your Dinero object. You can specify it with `currency`.
3467
- * * an **endpoint**: the API URL to query exchange rates, with parameters, or a promise that resolves to the exchange rates. You can specify it with `options.endpoint`.
3468
- * * a **property path**: the path to access the wanted rate in your API's JSON response (or the custom promise's payload). For example, with a response of:
3469
- * ```json
3470
- * {
3471
- * "data": {
3472
- * "base": "USD",
3473
- * "destination": "EUR",
3474
- * "rate": "0.827728919"
3475
- * }
3476
- * }
3477
- * ```
3478
- * Then the property path is `'data.rate'`. You can specify it with `options.propertyPath`.
3479
- *
3480
- * The base currency (the one of your Dinero object) and the destination currency can be used as "merge tags" with the mustache syntax, respectively `{{from}}` and `{{to}}`.
3481
- * You can use these tags to refer to these values in `options.endpoint` and `options.propertyPath`.
3482
- *
3483
- * For example, if you need to specify the base currency as a query parameter, you can do the following:
3484
- *
3485
- * ```js
3486
- * {
3487
- * endpoint: 'https://yourexchangerates.api/latest?base={{from}}'
3488
- * }
3489
- * ```
3490
- *
3491
- * @param {String} currency - The destination currency, expressed as an {@link https://en.wikipedia.org/wiki/ISO_4217#Active_codes ISO 4217 currency code}.
3492
- * @param {(String|Promise)} options.endpoint - The API endpoint to retrieve exchange rates. You can substitute this with a promise that resolves to the exchanges rates if you already have them.
3493
- * @param {String} [options.propertyPath='rates.{{to}}'] - The property path to the rate.
3494
- * @param {Object} [options.headers] - The HTTP headers to provide, if needed.
3495
- * @param {String} [options.roundingMode='HALF_EVEN'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3496
- *
3497
- * @example
3498
- * // your global API parameters
3499
- * Dinero.globalExchangeRatesApi = { ... }
3500
- *
3501
- * // returns a Promise containing a Dinero object with the destination currency
3502
- * // and the initial amount converted to the new currency.
3503
- * Dinero({ amount: 500 }).convert('EUR')
3504
- * @example
3505
- * // returns a Promise containing a Dinero object,
3506
- * // with specific API parameters and rounding mode for this specific instance.
3507
- * Dinero({ amount: 500 })
3508
- * .convert('XBT', {
3509
- * endpoint: 'https://yourexchangerates.api/latest?base={{from}}',
3510
- * propertyPath: 'data.rates.{{to}}',
3511
- * headers: {
3512
- * 'user-key': 'xxxxxxxxx'
3513
- * },
3514
- * roundingMode: 'HALF_UP'
3515
- * })
3516
- * @example
3517
- * // usage with exchange rates provided as a custom promise
3518
- * // using the default `propertyPath` format (so it doesn't have to be specified)
3519
- * const rates = {
3520
- * rates: {
3521
- * EUR: 0.81162
3522
- * }
3523
- * }
3524
- *
3525
- * Dinero({ amount: 500 })
3526
- * .convert('EUR', {
3527
- * endpoint: new Promise(resolve => resolve(rates))
3528
- * })
3529
- * @example
3530
- * // usage with Promise.prototype.then and Promise.prototype.catch
3531
- * Dinero({ amount: 500 })
3532
- * .convert('EUR')
3533
- * .then(dinero => {
3534
- * dinero.getCurrency() // returns 'EUR'
3535
- * })
3536
- * .catch(err => {
3537
- * // handle errors
3538
- * })
3539
- * @example
3540
- * // usage with async/await
3541
- * (async () => {
3542
- * const price = await Dinero({ amount: 500 }).convert('EUR')
3543
- * price.getCurrency() // returns 'EUR'
3544
- * })()
3545
- *
3546
- * @return {Promise}
3547
- */
3548
- convert: function convert(currency) {
3549
- var _this2 = this;
3550
-
3551
- var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
3552
- _ref$endpoint = _ref.endpoint,
3553
- endpoint = _ref$endpoint === void 0 ? globalExchangeRatesApi.endpoint : _ref$endpoint,
3554
- _ref$propertyPath = _ref.propertyPath,
3555
- propertyPath = _ref$propertyPath === void 0 ? globalExchangeRatesApi.propertyPath || 'rates.{{to}}' : _ref$propertyPath,
3556
- _ref$headers = _ref.headers,
3557
- headers = _ref$headers === void 0 ? globalExchangeRatesApi.headers : _ref$headers,
3558
- _ref$roundingMode = _ref.roundingMode,
3559
- roundingMode = _ref$roundingMode === void 0 ? globalRoundingMode : _ref$roundingMode;
3560
-
3561
- var options = Object.assign({}, {
3562
- endpoint: endpoint,
3563
- propertyPath: propertyPath,
3564
- headers: headers,
3565
- roundingMode: roundingMode
3566
- });
3567
- return CurrencyConverter(options).getExchangeRate(this.getCurrency(), currency).then(function (rate) {
3568
- assert(!isUndefined(rate), "No rate was found for the destination currency \"".concat(currency, "\"."), TypeError);
3569
- return create.call(_this2, {
3570
- amount: calculator$1.round(calculator$1.multiply(_this2.getAmount(), parseFloat(rate)), options.roundingMode),
3571
- currency: currency
3572
- });
3573
- });
3574
- },
3575
-
3576
- /**
3577
- * Checks whether the value represented by this object equals to the other.
3578
- *
3579
- * @param {Dinero} comparator - The Dinero object to compare to.
3580
- *
3581
- * @example
3582
- * // returns true
3583
- * Dinero({ amount: 500, currency: 'EUR' }).equalsTo(Dinero({ amount: 500, currency: 'EUR' }))
3584
- * @example
3585
- * // returns false
3586
- * Dinero({ amount: 500, currency: 'EUR' }).equalsTo(Dinero({ amount: 800, currency: 'EUR' }))
3587
- * @example
3588
- * // returns false
3589
- * Dinero({ amount: 500, currency: 'USD' }).equalsTo(Dinero({ amount: 500, currency: 'EUR' }))
3590
- * @example
3591
- * // returns false
3592
- * Dinero({ amount: 500, currency: 'USD' }).equalsTo(Dinero({ amount: 800, currency: 'EUR' }))
3593
- * @example
3594
- * // returns true
3595
- * Dinero({ amount: 1000, currency: 'EUR', precision: 2 }).equalsTo(Dinero({ amount: 10000, currency: 'EUR', precision: 3 }))
3596
- * @example
3597
- * // returns false
3598
- * Dinero({ amount: 10000, currency: 'EUR', precision: 2 }).equalsTo(Dinero({ amount: 10000, currency: 'EUR', precision: 3 }))
3599
- *
3600
- * @return {Boolean}
3601
- */
3602
- equalsTo: function equalsTo(comparator) {
3603
- return this.hasSameAmount(comparator) && this.hasSameCurrency(comparator);
3604
- },
3605
-
3606
- /**
3607
- * Checks whether the value represented by this object is less than the other.
3608
- *
3609
- * @param {Dinero} comparator - The Dinero object to compare to.
3610
- *
3611
- * @example
3612
- * // returns true
3613
- * Dinero({ amount: 500 }).lessThan(Dinero({ amount: 800 }))
3614
- * @example
3615
- * // returns false
3616
- * Dinero({ amount: 800 }).lessThan(Dinero({ amount: 500 }))
3617
- * @example
3618
- * // returns true
3619
- * Dinero({ amount: 5000, precision: 3 }).lessThan(Dinero({ amount: 800 }))
3620
- * @example
3621
- * // returns false
3622
- * Dinero({ amount: 800 }).lessThan(Dinero({ amount: 5000, precision: 3 }))
3623
- *
3624
- * @throws {TypeError} If `comparator` has a different currency.
3625
- *
3626
- * @return {Boolean}
3627
- */
3628
- lessThan: function lessThan(comparator) {
3629
- assertSameCurrency.call(this, comparator);
3630
- var comparators = Dinero.normalizePrecision([this, comparator]);
3631
- return comparators[0].getAmount() < comparators[1].getAmount();
3632
- },
3633
-
3634
- /**
3635
- * Checks whether the value represented by this object is less than or equal to the other.
3636
- *
3637
- * @param {Dinero} comparator - The Dinero object to compare to.
3638
- *
3639
- * @example
3640
- * // returns true
3641
- * Dinero({ amount: 500 }).lessThanOrEqual(Dinero({ amount: 800 }))
3642
- * @example
3643
- * // returns true
3644
- * Dinero({ amount: 500 }).lessThanOrEqual(Dinero({ amount: 500 }))
3645
- * @example
3646
- * // returns false
3647
- * Dinero({ amount: 500 }).lessThanOrEqual(Dinero({ amount: 300 }))
3648
- * @example
3649
- * // returns true
3650
- * Dinero({ amount: 5000, precision: 3 }).lessThanOrEqual(Dinero({ amount: 800 }))
3651
- * @example
3652
- * // returns true
3653
- * Dinero({ amount: 5000, precision: 3 }).lessThanOrEqual(Dinero({ amount: 500 }))
3654
- * @example
3655
- * // returns false
3656
- * Dinero({ amount: 800 }).lessThanOrEqual(Dinero({ amount: 5000, precision: 3 }))
3657
- *
3658
- * @throws {TypeError} If `comparator` has a different currency.
3659
- *
3660
- * @return {Boolean}
3661
- */
3662
- lessThanOrEqual: function lessThanOrEqual(comparator) {
3663
- assertSameCurrency.call(this, comparator);
3664
- var comparators = Dinero.normalizePrecision([this, comparator]);
3665
- return comparators[0].getAmount() <= comparators[1].getAmount();
3666
- },
3667
-
3668
- /**
3669
- * Checks whether the value represented by this object is greater than the other.
3670
- *
3671
- * @param {Dinero} comparator - The Dinero object to compare to.
3672
- *
3673
- * @example
3674
- * // returns false
3675
- * Dinero({ amount: 500 }).greaterThan(Dinero({ amount: 800 }))
3676
- * @example
3677
- * // returns true
3678
- * Dinero({ amount: 800 }).greaterThan(Dinero({ amount: 500 }))
3679
- * @example
3680
- * // returns true
3681
- * Dinero({ amount: 800 }).greaterThan(Dinero({ amount: 5000, precision: 3 }))
3682
- * @example
3683
- * // returns false
3684
- * Dinero({ amount: 5000, precision: 3 }).greaterThan(Dinero({ amount: 800 }))
3685
- *
3686
- * @throws {TypeError} If `comparator` has a different currency.
3687
- *
3688
- * @return {Boolean}
3689
- */
3690
- greaterThan: function greaterThan(comparator) {
3691
- assertSameCurrency.call(this, comparator);
3692
- var comparators = Dinero.normalizePrecision([this, comparator]);
3693
- return comparators[0].getAmount() > comparators[1].getAmount();
3694
- },
3695
-
3696
- /**
3697
- * Checks whether the value represented by this object is greater than or equal to the other.
3698
- *
3699
- * @param {Dinero} comparator - The Dinero object to compare to.
3700
- *
3701
- * @example
3702
- * // returns true
3703
- * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 300 }))
3704
- * @example
3705
- * // returns true
3706
- * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 500 }))
3707
- * @example
3708
- * // returns false
3709
- * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 800 }))
3710
- * @example
3711
- * // returns true
3712
- * Dinero({ amount: 800 }).greaterThanOrEqual(Dinero({ amount: 5000, precision: 3 }))
3713
- * @example
3714
- * // returns true
3715
- * Dinero({ amount: 500 }).greaterThanOrEqual(Dinero({ amount: 5000, precision: 3 }))
3716
- * @example
3717
- * // returns false
3718
- * Dinero({ amount: 5000, precision: 3 }).greaterThanOrEqual(Dinero({ amount: 800 }))
3719
- *
3720
- * @throws {TypeError} If `comparator` has a different currency.
3721
- *
3722
- * @return {Boolean}
3723
- */
3724
- greaterThanOrEqual: function greaterThanOrEqual(comparator) {
3725
- assertSameCurrency.call(this, comparator);
3726
- var comparators = Dinero.normalizePrecision([this, comparator]);
3727
- return comparators[0].getAmount() >= comparators[1].getAmount();
3728
- },
3729
-
3730
- /**
3731
- * Checks if the value represented by this object is zero.
3732
- *
3733
- * @example
3734
- * // returns true
3735
- * Dinero({ amount: 0 }).isZero()
3736
- * @example
3737
- * // returns false
3738
- * Dinero({ amount: 100 }).isZero()
3739
- *
3740
- * @return {Boolean}
3741
- */
3742
- isZero: function isZero() {
3743
- return this.getAmount() === 0;
3744
- },
3745
-
3746
- /**
3747
- * Checks if the value represented by this object is positive.
3748
- *
3749
- * @example
3750
- * // returns false
3751
- * Dinero({ amount: -10 }).isPositive()
3752
- * @example
3753
- * // returns true
3754
- * Dinero({ amount: 10 }).isPositive()
3755
- * @example
3756
- * // returns true
3757
- * Dinero({ amount: 0 }).isPositive()
3758
- *
3759
- * @return {Boolean}
3760
- */
3761
- isPositive: function isPositive() {
3762
- return this.getAmount() >= 0;
3763
- },
3764
-
3765
- /**
3766
- * Checks if the value represented by this object is negative.
3767
- *
3768
- * @example
3769
- * // returns true
3770
- * Dinero({ amount: -10 }).isNegative()
3771
- * @example
3772
- * // returns false
3773
- * Dinero({ amount: 10 }).isNegative()
3774
- * @example
3775
- * // returns false
3776
- * Dinero({ amount: 0 }).isNegative()
3777
- *
3778
- * @return {Boolean}
3779
- */
3780
- isNegative: function isNegative() {
3781
- return this.getAmount() < 0;
3782
- },
3783
-
3784
- /**
3785
- * Checks if this has minor currency units.
3786
- * Deprecates {@link module:Dinero~hasCents hasCents}.
3787
- *
3788
- * @example
3789
- * // returns false
3790
- * Dinero({ amount: 1100 }).hasSubUnits()
3791
- * @example
3792
- * // returns true
3793
- * Dinero({ amount: 1150 }).hasSubUnits()
3794
- *
3795
- * @return {Boolean}
3796
- */
3797
- hasSubUnits: function hasSubUnits() {
3798
- return calculator$1.modulo(this.getAmount(), Math.pow(10, precision)) !== 0;
3799
- },
3800
-
3801
- /**
3802
- * Checks if this has minor currency units.
3803
- *
3804
- * @deprecated since version 1.4.0, will be removed in 2.0.0
3805
- * Use {@link module:Dinero~hasSubUnits hasSubUnits} instead.
3806
- *
3807
- * @example
3808
- * // returns false
3809
- * Dinero({ amount: 1100 }).hasCents()
3810
- * @example
3811
- * // returns true
3812
- * Dinero({ amount: 1150 }).hasCents()
3813
- *
3814
- * @return {Boolean}
3815
- */
3816
- hasCents: function hasCents() {
3817
- return calculator$1.modulo(this.getAmount(), Math.pow(10, precision)) !== 0;
3818
- },
3819
-
3820
- /**
3821
- * Checks whether the currency represented by this object equals to the other.
3822
- *
3823
- * @param {Dinero} comparator - The Dinero object to compare to.
3824
- *
3825
- * @example
3826
- * // returns true
3827
- * Dinero({ amount: 2000, currency: 'EUR' }).hasSameCurrency(Dinero({ amount: 1000, currency: 'EUR' }))
3828
- * @example
3829
- * // returns false
3830
- * Dinero({ amount: 1000, currency: 'EUR' }).hasSameCurrency(Dinero({ amount: 1000, currency: 'USD' }))
3831
- *
3832
- * @return {Boolean}
3833
- */
3834
- hasSameCurrency: function hasSameCurrency(comparator) {
3835
- return this.getCurrency() === comparator.getCurrency();
3836
- },
3837
-
3838
- /**
3839
- * Checks whether the amount represented by this object equals to the other.
3840
- *
3841
- * @param {Dinero} comparator - The Dinero object to compare to.
3842
- *
3843
- * @example
3844
- * // returns true
3845
- * Dinero({ amount: 1000, currency: 'EUR' }).hasSameAmount(Dinero({ amount: 1000 }))
3846
- * @example
3847
- * // returns false
3848
- * Dinero({ amount: 2000, currency: 'EUR' }).hasSameAmount(Dinero({ amount: 1000, currency: 'EUR' }))
3849
- * @example
3850
- * // returns true
3851
- * Dinero({ amount: 1000, currency: 'EUR', precision: 2 }).hasSameAmount(Dinero({ amount: 10000, precision: 3 }))
3852
- * @example
3853
- * // returns false
3854
- * Dinero({ amount: 10000, currency: 'EUR', precision: 2 }).hasSameAmount(Dinero({ amount: 10000, precision: 3 }))
3855
- *
3856
- * @return {Boolean}
3857
- */
3858
- hasSameAmount: function hasSameAmount(comparator) {
3859
- var comparators = Dinero.normalizePrecision([this, comparator]);
3860
- return comparators[0].getAmount() === comparators[1].getAmount();
3861
- },
3862
-
3863
- /**
3864
- * Returns this object formatted as a string.
3865
- *
3866
- * The format is a mask which defines how the output string will be formatted.
3867
- * It defines whether to display a currency, in what format, how many fraction digits to display and whether to use grouping separators.
3868
- * The output is formatted according to the applying locale.
3869
- *
3870
- * Object | Format | String
3871
- * :--------------------------- | :---------------- | :---
3872
- * `Dinero({ amount: 500050 })` | `'$0,0.00'` | $5,000.50
3873
- * `Dinero({ amount: 500050 })` | `'$0,0'` | $5,001
3874
- * `Dinero({ amount: 500050 })` | `'$0'` | $5001
3875
- * `Dinero({ amount: 500050 })` | `'$0.0'` | $5000.5
3876
- * `Dinero({ amount: 500050 })` | `'USD0,0.0'` | USD5,000.5
3877
- * `Dinero({ amount: 500050 })` | `'0,0.0 dollar'` | 5,000.5 dollars
3878
- *
3879
- * Don't try to substitute the `$` sign or the `USD` code with your target currency, nor adapt the format string to the exact format you want.
3880
- * The format is a mask which defines a pattern and returns a valid, localized currency string.
3881
- * If you want to display the object in a custom way, either use {@link module:Dinero~getAmount getAmount}, {@link module:Dinero~toUnit toUnit} or {@link module:Dinero~toRoundedUnit toRoundedUnit} and manipulate the output string as you wish.
3882
- *
3883
- * {@link module:Dinero~toFormat toFormat} wraps around `Number.prototype.toLocaleString`. For that reason, **format will vary depending on how it's implemented in the end user's environment**.
3884
- *
3885
- * You can also use `toLocaleString` directly:
3886
- * `Dinero().toRoundedUnit(digits, roundingMode).toLocaleString(locale, options)`.
3887
- *
3888
- * By default, amounts are rounded using the **half away from zero** rule ([commercial rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero)).
3889
- * You can also specify a different `roundingMode` to better fit your needs.
3890
- *
3891
- * @param {String} [format='$0,0.00'] - The format mask to format to.
3892
- * @param {String} [roundingMode='HALF_AWAY_FROM_ZERO'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3893
- *
3894
- * @example
3895
- * // returns $2,000
3896
- * Dinero({ amount: 200000 }).toFormat('$0,0')
3897
- * @example
3898
- * // returns €50.5
3899
- * Dinero({ amount: 5050, currency: 'EUR' }).toFormat('$0,0.0')
3900
- * @example
3901
- * // returns 100 euros
3902
- * Dinero({ amount: 10000, currency: 'EUR' }).setLocale('fr-FR').toFormat('0,0 dollar')
3903
- * @example
3904
- * // returns 2000
3905
- * Dinero({ amount: 200000, currency: 'EUR' }).toFormat()
3906
- * @example
3907
- * // returns $10
3908
- * Dinero({ amount: 1050 }).toFormat('$0', 'HALF_EVEN')
3909
- *
3910
- * @return {String}
3911
- */
3912
- toFormat: function toFormat() {
3913
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : globalFormat;
3914
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalFormatRoundingMode;
3915
- var formatter = Format(format);
3916
- return this.toRoundedUnit(formatter.getMinimumFractionDigits(), roundingMode).toLocaleString(this.getLocale(), {
3917
- currencyDisplay: formatter.getCurrencyDisplay(),
3918
- useGrouping: formatter.getUseGrouping(),
3919
- minimumFractionDigits: formatter.getMinimumFractionDigits(),
3920
- style: formatter.getStyle(),
3921
- currency: this.getCurrency()
3922
- });
3923
- },
3924
-
3925
- /**
3926
- * Returns the amount represented by this object in units.
3927
- *
3928
- * @example
3929
- * // returns 10.5
3930
- * Dinero({ amount: 1050 }).toUnit()
3931
- * @example
3932
- * // returns 10.545
3933
- * Dinero({ amount: 10545, precision: 3 }).toUnit()
3934
- *
3935
- * @return {Number}
3936
- */
3937
- toUnit: function toUnit() {
3938
- return calculator$1.divide(this.getAmount(), Math.pow(10, precision));
3939
- },
3940
-
3941
- /**
3942
- * Returns the amount represented by this object in rounded units.
3943
- *
3944
- * By default, the method uses the **half away from zero** rule ([commercial rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero)).
3945
- * You can also specify a different `roundingMode` to better fit your needs.
3946
- *
3947
- * @example
3948
- * // returns 10.6
3949
- * Dinero({ amount: 1055 }).toRoundedUnit(1)
3950
- * @example
3951
- * // returns 10
3952
- * Dinero({ amount: 1050 }).toRoundedUnit(0, 'HALF_EVEN')
3953
- *
3954
- * @param {Number} digits - The number of fraction digits to round to.
3955
- * @param {String} [roundingMode='HALF_AWAY_FROM_ZERO'] - The rounding mode to use: `'HALF_ODD'`, `'HALF_EVEN'`, `'HALF_UP'`, `'HALF_DOWN'`, `'HALF_TOWARDS_ZERO'`, `'HALF_AWAY_FROM_ZERO'` or `'DOWN'`.
3956
- *
3957
- * @return {Number}
3958
- */
3959
- toRoundedUnit: function toRoundedUnit(digits) {
3960
- var roundingMode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalFormatRoundingMode;
3961
- var factor = Math.pow(10, digits);
3962
- return calculator$1.divide(calculator$1.round(calculator$1.multiply(this.toUnit(), factor), roundingMode), factor);
3963
- },
3964
-
3965
- /**
3966
- * Returns the object's data as an object literal.
3967
- *
3968
- * @example
3969
- * // returns { amount: 500, currency: 'EUR', precision: 2 }
3970
- * Dinero({ amount: 500, currency: 'EUR', precision: 2 }).toObject()
3971
- *
3972
- * @return {Object}
3973
- */
3974
- toObject: function toObject() {
3975
- return {
3976
- amount: amount,
3977
- currency: currency,
3978
- precision: precision
3979
- };
3980
- },
3981
-
3982
- /**
3983
- * Returns the object's data as an object literal.
3984
- *
3985
- * Alias of {@link module:Dinero~toObject toObject}.
3986
- * It is defined so that calling `JSON.stringify` on a Dinero object will automatically extract the relevant data.
3987
- *
3988
- * @example
3989
- * // returns '{"amount":500,"currency":"EUR","precision":2}'
3990
- * JSON.stringify(Dinero({ amount: 500, currency: 'EUR', precision: 2 }))
3991
- *
3992
- * @return {Object}
3993
- */
3994
- toJSON: function toJSON() {
3995
- return this.toObject();
3996
- }
3997
- };
7
+ const pagingDefaults = {
8
+ amount: 25,
9
+ start_cursor: '',
10
+ end_cursor: '',
11
+ has_previous: false,
12
+ has_next: false,
3998
13
  };
3999
-
4000
- var dinero = Object.assign(Dinero, Defaults, Globals, Static);
4001
-
4002
- function formatCurrency(amount, withSymbol = true) {
4003
- if (!amount)
4004
- amount = 0;
4005
- function format(amount) {
4006
- const formattedString = withSymbol ? '$0,0.00' : '0,0.00';
4007
- return dinero({ amount: amount, currency: 'USD' }).toFormat(formattedString);
4008
- }
4009
- return amount < 0 ? `(${format(-amount)})` : format(amount);
4010
- }
4011
- function formatDate(dateString) {
4012
- if (!dateString)
4013
- return '';
4014
- const date = new Date(dateString);
4015
- return format(date, 'MMM d, yyyy');
4016
- }
4017
- function formatTime(dateString) {
4018
- if (!dateString)
4019
- return '';
4020
- const date = new Date(dateString);
4021
- return format(date, 'h:mmaaa');
4022
- }
4023
-
4024
- const paymentsListCss = ":host{display:block}";
4025
-
4026
14
  const PaymentsList = /*@__PURE__*/ proxyCustomElement(class PaymentsList extends HTMLElement {
4027
15
  constructor() {
4028
16
  super();
4029
17
  this.__registerHost();
4030
18
  this.__attachShadow();
19
+ // onChangeAmount = (e) => {
20
+ // const newVal = e?.target?.value;
21
+ // if (newVal) {
22
+ // this.paging = pagingDefaults;
23
+ // this.paging.amount = newVal;
24
+ // this.fetchData();
25
+ // }
26
+ // }
27
+ this.onPageChange = (direction) => {
28
+ return () => {
29
+ this.fetchData(direction);
30
+ };
31
+ };
32
+ this.emptyState = (h("tr", null, h("td", { class: "empty-state", part: "empty-state", colSpan: 7, style: { textAlign: 'center' } }, "No payments to show")));
33
+ this.errorState = () => (h("tr", null, h("td", { class: "error-state", part: "error-state", colSpan: 7, style: { textAlign: 'center' } }, "An unexpected error occurred: ", this.errorMessage)));
34
+ this.loadingState = (h("tr", null, h("td", { class: "loading-state", part: "loading-state-cell", colSpan: 7, style: { textAlign: 'center' } }, h("div", { part: "loading-state-spinner", class: "spinner-border", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")))));
35
+ this.paginationBar = () => {
36
+ return (h("div", { class: "pagination-bar d-flex justify-content-center gap-3" }, h("button", { onClick: this.onPageChange('prev'), part: `arrow arrow-left${this.paging.has_previous ? '' : ' arrow-disabled'}`, disabled: !this.paging.has_previous, class: `btn btn-primary pagination-btn pagination-prev-btn${this.paging.has_previous ? '' : ' disabled'}` }, "\u2190"), h("button", { onClick: this.onPageChange('next'), part: `arrow arrow-right${this.paging.has_next ? '' : ' arrow-disabled'}`, disabled: !this.paging.has_next, class: `btn btn-primary pagination-btn pagination-next-btn${this.paging.has_next ? '' : ' disabled'}` }, "\u2192")));
37
+ };
4031
38
  this.accountId = undefined;
4032
- this.auth = {};
39
+ this.authToken = undefined;
4033
40
  this.payments = [];
41
+ this.loading = true;
42
+ this.errorMessage = undefined;
43
+ this.paging = pagingDefaults;
44
+ }
45
+ updateOnPropChange() {
46
+ this.fetchData();
4034
47
  }
4035
- requestPropsChanged() {
48
+ connectedCallback() {
4036
49
  this.fetchData();
4037
50
  }
4038
- fetchData() {
4039
- const accountId = this.accountId;
4040
- const endpoint = `account/${accountId}/payments`;
4041
- Api(this.auth.token)
4042
- .get(endpoint)
4043
- .then((response) => {
4044
- const data = response.data.map(dataItem => new Payment(dataItem));
51
+ async fetchData(direction) {
52
+ var _a;
53
+ if (!this.accountId || !this.authToken) {
54
+ this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
55
+ this.loading = false;
56
+ return;
57
+ }
58
+ this.loading = true;
59
+ const limit = this.paging.amount;
60
+ const cursor = `${direction === 'prev'
61
+ ? '&before_cursor=' + this.paging.start_cursor
62
+ : direction === 'next'
63
+ ? '&after_cursor=' + this.paging.end_cursor
64
+ : ''}`;
65
+ const endpoint = `account/${this.accountId}/payments?limit=${limit}${cursor ? cursor : ''}`;
66
+ const response = await Api(this.authToken).get(endpoint);
67
+ if (!response.error) {
68
+ this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
69
+ const data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.map(dataItem => new Payment(dataItem));
4045
70
  this.payments = data;
4046
- });
71
+ }
72
+ else {
73
+ this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
74
+ }
75
+ this.loading = false;
76
+ }
77
+ showEmptyState() {
78
+ return this.payments ? this.payments.length < 1 : true;
4047
79
  }
4048
80
  render() {
4049
- return (h(Host, null, h("table", { class: "justifi-table" }, h("thead", null, h("tr", null, h("th", { scope: "col", title: "The date and time each payment was made" }, "Made on"), h("th", { scope: "col", title: "The dollar amount of each payment" }, "Amount"), h("th", { scope: "col" }, "Account"), h("th", { scope: "col" }, "Description"), h("th", { scope: "col" }, "Payment ID"), h("th", { scope: "col" }, "Cardholder"), h("th", { scope: "col" }, "Payment Method"), h("th", { scope: "col" }, "Status"))), h("tbody", null, this.payments.map(payment => {
4050
- var _a, _b, _c, _d;
4051
- h("tr", null, h("td", null, h("div", null, formatDate(payment.created_at)), h("div", null, formatTime(payment.created_at))), h("td", null, formatCurrency(payment.amount)), h("td", null, payment.account_id), h("td", null, payment.description), h("td", null, payment.id), h("td", null, (_b = (_a = payment.payment_method) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.name), h("td", null, (_d = (_c = payment.payment_method) === null || _c === void 0 ? void 0 : _c.card) === null || _d === void 0 ? void 0 : _d.acct_last_four), h("td", null, payment.status));
4052
- })))));
81
+ var _a;
82
+ return (h(Host, { exportparts: "\n table-head,table-head-row,table-head-cell,table-body,table-row,table-cell,\n loading-state-cell,loading-state-spinner,error-state,empty-state,\n pagination-bar,arrow,arrow-left,arrow-right,arrow-disabled\n " }, h("table", { class: "table table-hover" }, h("thead", { class: "table-head sticky-top", part: "table-head" }, h("tr", { class: "table-light", part: 'table-head-row' }, h("th", { part: "table-head-cell", scope: "col", title: "The date and time each payment was made" }, "Made on"), h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each payment" }, "Amount"), h("th", { part: "table-head-cell", scope: "col" }, "Description"), h("th", { part: "table-head-cell", scope: "col" }, "Cardholder"), h("th", { part: "table-head-cell", scope: "col" }, "Payment Method"), h("th", { part: "table-head-cell", scope: "col" }, "Status"), h("th", { part: "table-head-cell", scope: "col" }, "Payment ID"))), h("tbody", { class: "table-body", part: 'table-body' }, this.loading ? this.loadingState :
83
+ this.errorMessage ? this.errorState() :
84
+ this.showEmptyState() ? this.emptyState :
85
+ (_a = this.payments) === null || _a === void 0 ? void 0 : _a.map((payment, index) => {
86
+ var _a, _b, _c, _d;
87
+ return h("tr", { part: `table-row${index % 2 ? ' table-row-even' : ' table-row-odd'}` }, h("th", { scope: "row", part: "table-cell" }, h("div", null, formatDate(payment.created_at)), h("div", null, formatTime(payment.created_at))), h("td", { part: "table-cell" }, formatCurrency(payment.amount)), h("td", { part: "table-cell" }, payment.description), h("td", { part: "table-cell" }, (_b = (_a = payment.payment_method) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.name), h("td", { part: "table-cell" }, (_d = (_c = payment.payment_method) === null || _c === void 0 ? void 0 : _c.card) === null || _d === void 0 ? void 0 : _d.acct_last_four), h("td", { part: "table-cell" }, payment.status), h("td", { part: "table-cell" }, payment.id));
88
+ })), this.paging &&
89
+ h("tfoot", { class: "sticky-bottom" }, h("tr", { class: "table-light align-middle" }, h("td", { part: "pagination-bar", colSpan: 7 }, this.paginationBar()))))));
4053
90
  }
4054
91
  static get watchers() { return {
4055
- "accountId": ["requestPropsChanged"],
4056
- "auth": ["requestPropsChanged"]
92
+ "accountId": ["updateOnPropChange"],
93
+ "authToken": ["updateOnPropChange"]
4057
94
  }; }
4058
95
  static get style() { return paymentsListCss; }
4059
96
  }, [1, "justifi-payments-list", {
4060
97
  "accountId": [1, "account-id"],
4061
- "auth": [16],
4062
- "payments": [32]
98
+ "authToken": [1, "auth-token"],
99
+ "payments": [32],
100
+ "loading": [32],
101
+ "errorMessage": [32],
102
+ "paging": [32]
4063
103
  }]);
4064
104
  function defineCustomElement$1() {
4065
105
  if (typeof customElements === "undefined") {