@watermarkinsights/ripple 3.10.0-2 → 3.10.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 (305) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/{chartFunctions-62a62178.js → chartFunctions-829efa13.js} +420 -420
  3. package/dist/cjs/{functions-1a67b971.js → functions-3b1b7c26.js} +475 -471
  4. package/dist/cjs/{global-52581e0d.js → global-68b6a831.js} +60 -60
  5. package/dist/cjs/{http-service-494d81de.js → http-service-9e8c4dd5.js} +49 -49
  6. package/dist/cjs/{index-acad7ab3.js → index-df6a3611.js} +4 -1
  7. package/dist/cjs/{interfaces-a3338581.js → interfaces-30a74c1f.js} +29 -29
  8. package/dist/cjs/loader.cjs.js +3 -3
  9. package/dist/cjs/priv-chart-popover.cjs.entry.js +87 -87
  10. package/dist/cjs/priv-datepicker.cjs.entry.js +658 -658
  11. package/dist/cjs/priv-navigator-button.cjs.entry.js +19 -19
  12. package/dist/cjs/priv-navigator-item.cjs.entry.js +24 -24
  13. package/dist/cjs/ripple.cjs.js +3 -3
  14. package/dist/cjs/wm-action-menu_2.cjs.entry.js +342 -342
  15. package/dist/cjs/wm-button.cjs.entry.js +227 -227
  16. package/dist/cjs/wm-chart-slice.cjs.entry.js +14 -14
  17. package/dist/cjs/wm-chart.cjs.entry.js +117 -117
  18. package/dist/cjs/wm-datepicker.cjs.entry.js +266 -266
  19. package/dist/cjs/wm-input.cjs.entry.js +135 -135
  20. package/dist/cjs/wm-modal-footer.cjs.entry.js +32 -32
  21. package/dist/cjs/wm-modal-header.cjs.entry.js +35 -35
  22. package/dist/cjs/wm-modal.cjs.entry.js +164 -164
  23. package/dist/cjs/wm-navigation_3.cjs.entry.js +228 -228
  24. package/dist/cjs/wm-navigator.cjs.entry.js +269 -269
  25. package/dist/cjs/wm-network-uploader.cjs.entry.js +453 -453
  26. package/dist/cjs/wm-option_2.cjs.entry.js +485 -485
  27. package/dist/cjs/wm-pagination.cjs.entry.js +168 -168
  28. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +136 -136
  29. package/dist/cjs/wm-search.cjs.entry.js +233 -233
  30. package/dist/cjs/wm-snackbar.cjs.entry.js +171 -171
  31. package/dist/cjs/wm-tab-item_3.cjs.entry.js +297 -297
  32. package/dist/cjs/wm-tag-input.cjs.entry.js +580 -580
  33. package/dist/cjs/wm-timepicker.cjs.entry.js +384 -384
  34. package/dist/cjs/wm-toggletip.cjs.entry.js +125 -125
  35. package/dist/cjs/wm-uploader.cjs.entry.js +379 -379
  36. package/dist/cjs/wm-wrapper.cjs.entry.js +13 -13
  37. package/dist/collection/collection-manifest.json +1 -1
  38. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +258 -258
  39. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +115 -115
  40. package/dist/collection/components/charts/wm-chart/wm-chart.js +334 -334
  41. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +201 -201
  42. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +88 -88
  43. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +111 -111
  44. package/dist/collection/components/wm-action-menu/wm-action-menu.js +460 -460
  45. package/dist/collection/components/wm-button/wm-button.js +491 -491
  46. package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1024 -1024
  47. package/dist/collection/components/wm-datepicker/wm-datepicker.js +471 -471
  48. package/dist/collection/components/wm-input/wm-input.js +423 -423
  49. package/dist/collection/components/wm-menuitem/wm-menuitem.js +444 -444
  50. package/dist/collection/components/wm-modal/wm-modal-footer.js +141 -141
  51. package/dist/collection/components/wm-modal/wm-modal-header.js +92 -92
  52. package/dist/collection/components/wm-modal/wm-modal.js +461 -461
  53. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +162 -162
  54. package/dist/collection/components/wm-navigation/wm-navigation-item.js +121 -121
  55. package/dist/collection/components/wm-navigation/wm-navigation.js +218 -218
  56. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -97
  57. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -114
  58. package/dist/collection/components/wm-navigator/wm-navigator.js +468 -468
  59. package/dist/collection/components/wm-option/wm-option.js +414 -414
  60. package/dist/collection/components/wm-pagination/wm-pagination.js +368 -368
  61. package/dist/collection/components/wm-search/wm-search.js +480 -480
  62. package/dist/collection/components/wm-select/wm-select.js +718 -718
  63. package/dist/collection/components/wm-snackbar/wm-snackbar.js +297 -297
  64. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +216 -216
  65. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +330 -330
  66. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -104
  67. package/dist/collection/components/wm-tag-input/wm-tag-input.js +810 -810
  68. package/dist/collection/components/wm-timepicker/wm-timepicker.js +583 -583
  69. package/dist/collection/components/wm-toggletip/wm-toggletip.js +241 -241
  70. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +785 -785
  71. package/dist/collection/components/wm-uploader/wm-uploader.js +780 -780
  72. package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -27
  73. package/dist/collection/dev/scripts.js +20 -20
  74. package/dist/collection/global/__mocks__/functions.js +6 -6
  75. package/dist/collection/global/chartFunctions.js +421 -421
  76. package/dist/collection/global/functions.js +468 -468
  77. package/dist/collection/global/global.js +67 -67
  78. package/dist/collection/global/interfaces.js +49 -49
  79. package/dist/collection/global/services/__mocks__/http-service.js +130 -130
  80. package/dist/collection/global/services/http-service.js +50 -50
  81. package/dist/collection/lang/lang.js +5 -5
  82. package/dist/collection/lang/missing.js +43 -43
  83. package/dist/collection/lang/piglatin.js +93 -93
  84. package/dist/esm/{chartFunctions-f315c3e9.js → chartFunctions-1ea300b2.js} +420 -420
  85. package/dist/esm/{functions-61c7bb1f.js → functions-124ec8e6.js} +475 -471
  86. package/dist/esm/{global-db575fc5.js → global-482afd31.js} +60 -60
  87. package/dist/esm/{http-service-3dc3b3e7.js → http-service-5d037e16.js} +49 -49
  88. package/dist/esm/{index-7603f98e.js → index-17c79cc6.js} +4 -1
  89. package/dist/esm/{interfaces-2b97fab2.js → interfaces-61c6305b.js} +29 -29
  90. package/dist/esm/loader.js +3 -3
  91. package/dist/esm/polyfills/core-js.js +0 -0
  92. package/dist/esm/polyfills/css-shim.js +1 -1
  93. package/dist/esm/polyfills/dom.js +0 -0
  94. package/dist/esm/polyfills/es5-html-element.js +0 -0
  95. package/dist/esm/polyfills/index.js +0 -0
  96. package/dist/esm/polyfills/system.js +0 -0
  97. package/dist/esm/priv-chart-popover.entry.js +87 -87
  98. package/dist/esm/priv-datepicker.entry.js +658 -658
  99. package/dist/esm/priv-navigator-button.entry.js +19 -19
  100. package/dist/esm/priv-navigator-item.entry.js +24 -24
  101. package/dist/esm/ripple.js +3 -3
  102. package/dist/esm/wm-action-menu_2.entry.js +342 -342
  103. package/dist/esm/wm-button.entry.js +227 -227
  104. package/dist/esm/wm-chart-slice.entry.js +14 -14
  105. package/dist/esm/wm-chart.entry.js +117 -117
  106. package/dist/esm/wm-datepicker.entry.js +266 -266
  107. package/dist/esm/wm-input.entry.js +135 -135
  108. package/dist/esm/wm-modal-footer.entry.js +32 -32
  109. package/dist/esm/wm-modal-header.entry.js +35 -35
  110. package/dist/esm/wm-modal.entry.js +164 -164
  111. package/dist/esm/wm-navigation_3.entry.js +228 -228
  112. package/dist/esm/wm-navigator.entry.js +269 -269
  113. package/dist/esm/wm-network-uploader.entry.js +453 -453
  114. package/dist/esm/wm-option_2.entry.js +485 -485
  115. package/dist/esm/wm-pagination.entry.js +168 -168
  116. package/dist/esm/wm-progress-indicator_3.entry.js +136 -136
  117. package/dist/esm/wm-search.entry.js +233 -233
  118. package/dist/esm/wm-snackbar.entry.js +171 -171
  119. package/dist/esm/wm-tab-item_3.entry.js +297 -297
  120. package/dist/esm/wm-tag-input.entry.js +580 -580
  121. package/dist/esm/wm-timepicker.entry.js +384 -384
  122. package/dist/esm/wm-toggletip.entry.js +125 -125
  123. package/dist/esm/wm-uploader.entry.js +379 -379
  124. package/dist/esm/wm-wrapper.entry.js +13 -13
  125. package/dist/esm-es5/{chartFunctions-f315c3e9.js → chartFunctions-1ea300b2.js} +1 -1
  126. package/dist/esm-es5/{functions-61c7bb1f.js → functions-124ec8e6.js} +1 -1
  127. package/dist/esm-es5/global-482afd31.js +1 -0
  128. package/dist/esm-es5/{http-service-3dc3b3e7.js → http-service-5d037e16.js} +0 -0
  129. package/dist/esm-es5/{index-7603f98e.js → index-17c79cc6.js} +1 -1
  130. package/dist/esm-es5/{interfaces-2b97fab2.js → interfaces-61c6305b.js} +0 -0
  131. package/dist/esm-es5/loader.js +1 -1
  132. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  133. package/dist/esm-es5/priv-datepicker.entry.js +1 -1
  134. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  135. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  136. package/dist/esm-es5/ripple.js +1 -1
  137. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  138. package/dist/esm-es5/wm-button.entry.js +1 -1
  139. package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
  140. package/dist/esm-es5/wm-chart.entry.js +1 -1
  141. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  142. package/dist/esm-es5/wm-input.entry.js +1 -1
  143. package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
  144. package/dist/esm-es5/wm-modal-header.entry.js +1 -1
  145. package/dist/esm-es5/wm-modal.entry.js +1 -1
  146. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  147. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  148. package/dist/esm-es5/wm-network-uploader.entry.js +1 -1
  149. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  150. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  151. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  152. package/dist/esm-es5/wm-search.entry.js +1 -1
  153. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  154. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  155. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  156. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  157. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  158. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  159. package/dist/esm-es5/wm-wrapper.entry.js +1 -1
  160. package/dist/ripple/{p-f5df5903.system.js → p-08b7ec08.system.js} +0 -0
  161. package/dist/ripple/{p-787596f6.system.js → p-09f954eb.system.js} +1 -1
  162. package/dist/ripple/p-0c7c9b89.entry.js +1 -0
  163. package/dist/ripple/{p-b4efa7d1.system.entry.js → p-14eab45c.system.entry.js} +1 -1
  164. package/dist/ripple/{p-228a7210.system.entry.js → p-1acaa65d.system.entry.js} +1 -1
  165. package/dist/ripple/{p-5471864e.system.entry.js → p-1ace795c.system.entry.js} +1 -1
  166. package/dist/ripple/{p-72eb5064.system.entry.js → p-1edf9946.system.entry.js} +1 -1
  167. package/dist/ripple/{p-15b1c11b.js → p-1f35a8f1.js} +1 -1
  168. package/dist/ripple/p-1fe3ad2b.entry.js +1 -0
  169. package/dist/ripple/{p-ac2485a6.system.entry.js → p-259f7450.system.entry.js} +1 -1
  170. package/dist/ripple/p-262c75ff.entry.js +1 -0
  171. package/dist/ripple/{p-90ed3268.system.entry.js → p-27253ed2.system.entry.js} +1 -1
  172. package/dist/ripple/{p-d3ed8b65.system.entry.js → p-28b051a3.system.entry.js} +1 -1
  173. package/dist/ripple/p-2a66f447.entry.js +1 -0
  174. package/dist/ripple/{p-9d02957d.system.js → p-313b6073.system.js} +0 -0
  175. package/dist/ripple/p-37553d4e.entry.js +1 -0
  176. package/dist/ripple/p-3a940fd1.entry.js +1 -0
  177. package/dist/ripple/p-426b392a.entry.js +1 -0
  178. package/dist/ripple/{p-44035b02.system.entry.js → p-557dd7f5.system.entry.js} +1 -1
  179. package/dist/ripple/p-57c94258.entry.js +1 -0
  180. package/dist/ripple/{p-1df2adee.system.entry.js → p-59678b70.system.entry.js} +1 -1
  181. package/dist/ripple/p-5b213951.entry.js +1 -0
  182. package/dist/ripple/{p-76ca7498.system.js → p-5f4686a3.system.js} +2 -2
  183. package/dist/ripple/p-68361541.entry.js +1 -0
  184. package/dist/ripple/{p-c873b490.system.entry.js → p-6bf64cc9.system.entry.js} +1 -1
  185. package/dist/ripple/{p-a0c3ef16.system.js → p-726b9452.system.js} +1 -1
  186. package/dist/ripple/p-76e184fb.entry.js +1 -0
  187. package/dist/ripple/p-77415d3b.entry.js +1 -0
  188. package/dist/ripple/p-7c2a8479.entry.js +1 -0
  189. package/dist/ripple/p-7ec83929.entry.js +1 -0
  190. package/dist/ripple/p-84a3d723.entry.js +1 -0
  191. package/dist/ripple/{p-dbeefb58.system.entry.js → p-87a7ab75.system.entry.js} +1 -1
  192. package/dist/ripple/p-87c13bc7.js +1 -0
  193. package/dist/ripple/{p-43f1298b.js → p-888bec42.js} +0 -0
  194. package/dist/ripple/p-962f51ff.entry.js +1 -0
  195. package/dist/ripple/p-96898754.entry.js +1 -0
  196. package/dist/ripple/p-96b8d112.system.entry.js +1 -0
  197. package/dist/ripple/{p-25f039e4.system.entry.js → p-9a52566b.system.entry.js} +1 -1
  198. package/dist/ripple/{p-004e25bd.system.js → p-9a5281d9.system.js} +1 -1
  199. package/dist/ripple/p-9bbdf766.entry.js +1 -0
  200. package/dist/ripple/{p-d81a4e7c.system.entry.js → p-9d3b13d8.system.entry.js} +1 -1
  201. package/dist/ripple/{p-68155230.system.entry.js → p-9debb1cd.system.entry.js} +1 -1
  202. package/dist/ripple/p-a0635779.entry.js +1 -0
  203. package/dist/ripple/{p-eee347b4.system.entry.js → p-a37fe057.system.entry.js} +1 -1
  204. package/dist/ripple/{p-fd8070fb.js → p-a6d6eae7.js} +0 -0
  205. package/dist/ripple/p-aeda3309.entry.js +1 -0
  206. package/dist/ripple/p-b0536ddb.entry.js +1 -0
  207. package/dist/ripple/p-b5df33e3.entry.js +1 -0
  208. package/dist/ripple/p-bd5d5a76.entry.js +1 -0
  209. package/dist/ripple/{p-fdc4a599.system.entry.js → p-beb10404.system.entry.js} +1 -1
  210. package/dist/ripple/{p-867c6b99.system.entry.js → p-c02c7a93.system.entry.js} +1 -1
  211. package/dist/ripple/p-c2abdcba.js +1 -0
  212. package/dist/ripple/{p-1242752c.system.entry.js → p-c332f020.system.entry.js} +1 -1
  213. package/dist/ripple/p-caaae868.entry.js +1 -0
  214. package/dist/ripple/p-ccf1547c.entry.js +1 -0
  215. package/dist/ripple/p-d3438746.system.js +1 -0
  216. package/dist/ripple/{p-bceffab2.system.entry.js → p-d8544aaa.system.entry.js} +1 -1
  217. package/dist/ripple/{p-9f12284b.system.entry.js → p-daa4d5b2.system.entry.js} +1 -1
  218. package/dist/ripple/{p-ae6cfbca.system.entry.js → p-db44eb6f.system.entry.js} +1 -1
  219. package/dist/ripple/{p-75ef731b.system.entry.js → p-de192292.system.entry.js} +1 -1
  220. package/dist/ripple/{p-42aa51fe.system.entry.js → p-e8006085.system.entry.js} +1 -1
  221. package/dist/ripple/{p-3b3e847c.system.entry.js → p-f17076c4.system.entry.js} +1 -1
  222. package/dist/ripple/{p-398b2486.system.entry.js → p-f1a93fa1.system.entry.js} +1 -1
  223. package/dist/ripple/p-fc7bf66e.entry.js +1 -0
  224. package/dist/ripple/p-fd8883a5.entry.js +1 -0
  225. package/dist/ripple/{p-212aac05.system.entry.js → p-fd9b3760.system.entry.js} +1 -1
  226. package/dist/ripple/{p-e95a56f5.js → p-fe281d40.js} +1 -1
  227. package/dist/ripple/ripple.esm.js +1 -1
  228. package/dist/ripple/ripple.js +1 -1
  229. package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +27 -27
  230. package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +11 -11
  231. package/dist/types/components/charts/wm-chart/wm-chart.d.ts +36 -36
  232. package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +27 -27
  233. package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +17 -17
  234. package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +10 -10
  235. package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +48 -48
  236. package/dist/types/components/wm-button/wm-button.d.ts +43 -43
  237. package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +80 -80
  238. package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +41 -41
  239. package/dist/types/components/wm-input/wm-input.d.ts +46 -46
  240. package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +34 -34
  241. package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -15
  242. package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -12
  243. package/dist/types/components/wm-modal/wm-modal.d.ts +41 -41
  244. package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +21 -21
  245. package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +13 -13
  246. package/dist/types/components/wm-navigation/wm-navigation.d.ts +28 -28
  247. package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -10
  248. package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -13
  249. package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -61
  250. package/dist/types/components/wm-option/wm-option.d.ts +32 -32
  251. package/dist/types/components/wm-pagination/wm-pagination.d.ts +32 -32
  252. package/dist/types/components/wm-search/wm-search.d.ts +86 -86
  253. package/dist/types/components/wm-select/wm-select.d.ts +66 -66
  254. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +35 -35
  255. package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +38 -38
  256. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +53 -53
  257. package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -20
  258. package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +92 -92
  259. package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +61 -61
  260. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +27 -27
  261. package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -85
  262. package/dist/types/components/wm-uploader/wm-uploader.d.ts +80 -80
  263. package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -7
  264. package/dist/types/components.d.ts +24 -24
  265. package/dist/types/global/__mocks__/functions.d.ts +6 -6
  266. package/dist/types/global/chartFunctions.d.ts +29 -29
  267. package/dist/types/global/functions.d.ts +42 -42
  268. package/dist/types/global/global.d.ts +1 -1
  269. package/dist/types/global/interfaces.d.ts +44 -44
  270. package/dist/types/global/services/__mocks__/http-service.d.ts +6 -6
  271. package/dist/types/global/services/http-service.d.ts +4 -4
  272. package/dist/types/lang/lang.d.ts +5 -5
  273. package/package.json +47 -47
  274. package/dist/esm-es5/global-db575fc5.js +0 -1
  275. package/dist/ripple/p-02fff0fe.entry.js +0 -1
  276. package/dist/ripple/p-0b6bcbcf.entry.js +0 -1
  277. package/dist/ripple/p-0d2017ae.entry.js +0 -1
  278. package/dist/ripple/p-1f511ad7.system.entry.js +0 -1
  279. package/dist/ripple/p-30745db6.entry.js +0 -1
  280. package/dist/ripple/p-319bb5dc.entry.js +0 -1
  281. package/dist/ripple/p-358bde27.entry.js +0 -1
  282. package/dist/ripple/p-35cfcf9f.entry.js +0 -1
  283. package/dist/ripple/p-379b125b.entry.js +0 -1
  284. package/dist/ripple/p-461f08d4.entry.js +0 -1
  285. package/dist/ripple/p-4d59fe86.entry.js +0 -1
  286. package/dist/ripple/p-520b0f54.entry.js +0 -1
  287. package/dist/ripple/p-5882af5a.js +0 -1
  288. package/dist/ripple/p-5e041c35.entry.js +0 -1
  289. package/dist/ripple/p-7fae0cc2.entry.js +0 -1
  290. package/dist/ripple/p-84b356a5.entry.js +0 -1
  291. package/dist/ripple/p-8d347cd5.entry.js +0 -1
  292. package/dist/ripple/p-92226595.entry.js +0 -1
  293. package/dist/ripple/p-9fe64cec.entry.js +0 -1
  294. package/dist/ripple/p-a82d37d8.entry.js +0 -1
  295. package/dist/ripple/p-a9e0ce88.entry.js +0 -1
  296. package/dist/ripple/p-b3c71506.js +0 -1
  297. package/dist/ripple/p-ba168596.entry.js +0 -1
  298. package/dist/ripple/p-be33888f.entry.js +0 -1
  299. package/dist/ripple/p-cd4fda75.entry.js +0 -1
  300. package/dist/ripple/p-d3603def.entry.js +0 -1
  301. package/dist/ripple/p-e49b9a96.entry.js +0 -1
  302. package/dist/ripple/p-e748e22b.entry.js +0 -1
  303. package/dist/ripple/p-ec8b1317.system.js +0 -1
  304. package/dist/ripple/p-f0656464.entry.js +0 -1
  305. package/dist/ripple/p-f12a510f.entry.js +0 -1
@@ -1,17 +1,17 @@
1
- import { r as registerInstance, c as createEvent, g as getElement } from './index-7603f98e.js';
1
+ import { r as registerInstance, c as createEvent, g as getElement } from './index-17c79cc6.js';
2
2
 
3
- let Wrapper = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.wmWrapperLoaded = createEvent(this, "wmWrapperLoaded", 7);
7
- }
8
- componentDidLoad() {
9
- this.wmWrapperLoaded.emit();
10
- }
11
- render() {
12
- return;
13
- }
14
- get el() { return getElement(this); }
3
+ const Wrapper = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.wmWrapperLoaded = createEvent(this, "wmWrapperLoaded", 7);
7
+ }
8
+ componentDidLoad() {
9
+ this.wmWrapperLoaded.emit();
10
+ }
11
+ render() {
12
+ return;
13
+ }
14
+ get el() { return getElement(this); }
15
15
  };
16
16
 
17
17
  export { Wrapper as wm_wrapper };
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,r){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function i(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?a(e.value):o(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,o&&(n=i[0]&2?o["return"]:i[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;if(o=0,n)i=[i[0]&2,n.value];switch(i[0]){case 0:case 1:n=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;o=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(i[0]===6&&a.label<n[1]){a.label=n[1];n=i;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(i);break}if(n[2])a.ops.pop();a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e];o=0}finally{r=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{h}from"./index-7603f98e.js";import{c as checkForActiveElInShadow,i as intl,b as getPosition,f as findParentWithScrollbar,d as debounce}from"./functions-61c7bb1f.js";var colors={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",sleet:"#7f97ad",midnight:"#2e1b46",lavender:"#8b86ca"};var types={doughnut:{size:155,colors:[colors.forest,"#bfbfbf"],thickness:.73,padding:25,isBar:false},doughnut0:{size:155,colors:[colors.forest,"#bfbfbf"],thickness:.73,padding:25,isBar:false},doughnut1:{size:130,colors:[colors.lavender,colors.midnight,"#d4d4d4"],thickness:.5,padding:90,isBar:false},doughnut2:{size:130,colors:[colors.cyan,colors.salmon,"#d4d4d4"],thickness:.5,padding:90,isBar:false},doughnut3:{size:130,colors:[colors.lavender,colors.midnight,"#919834","#c177cf","#c16e00","#029af2","#2a6993"],thickness:.5,padding:90,isBar:false},bar:{size:350,colors:[colors.forest,"#bfbfbf"],padding:0,isBar:true},bar1:{size:350,colors:[colors.forest,"#bfbfbf"],padding:0,isBar:true},bar2:{size:400,colors:["#d4d4d4",colors.sleet,colors.cyan,colors.salmon],padding:0,isBar:true},bar3:{size:300,colors:["#0d696e",colors.cyan,"#8e4129",colors.salmon],padding:0,isBar:true},bar4:{size:400,colors:["#d4d4d4",colors.sleet,"#33a919"],padding:0,isBar:true},bar5:{size:400,colors:["#d4d4d4",colors.lavender,colors.midnight,"#919834","#c177cf","#c16e00","#029af2","#2a6993"],padding:0,isBar:true}};function amountToPercent(e,t,a){return a?Math.round(e*100/t):Math.round(e*1e4/t)/100}function amountToDegree(e,t){return e*360/t}function toFixed(e){return parseFloat((Math.floor(e*100)/100).toFixed(2))}function polarToCartesian(e,t,a,r){var o=toFixed(e+e*t*Math.cos(Math.PI*a/180));var n=toFixed(e+e*t*Math.sin(Math.PI*a/180));if(r!==undefined){var i=toFixed(e+e*t*Math.cos(Math.PI*r/180));var s=toFixed(e+e*t*Math.sin(Math.PI*r/180));return{x1:o,y1:n,x2:i,y2:s}}return{x:o,y:n}}function getArc(e,t,a,r,o){var n=toFixed(o/2*e);return"A ".concat(n,", ").concat(n," 0 ").concat(t," ").concat(toFixed(a),", ").concat(toFixed(r))}function handleSliceKeyDown(e){if(this.popoverEl&&this.popoverEl.open&&e.key==="Enter"){var t=this.popoverEl.querySelector("button");t&&t.click()}}function handleSliceClick(e,t){if(this.popoverEl&&!this.isTabbing){t.coords={x:e.clientX,y:e.clientY};openPopover.call(this,t)}}function handleSliceFocus(e,t){if(this.popoverEl&&this.isTabbing){t.coords=getPosition(e.target);openPopover.call(this,t)}}function handleChartKeydown(e){switch(e.key){case"ArrowUp":case"ArrowLeft":e.preventDefault();this.isTabbing=true;focusPrevious.call(this);break;case"ArrowRight":case"ArrowDown":e.preventDefault();this.isTabbing=true;focusNext.call(this);break;case"Tab":exitChart.call(this);break;case"Escape":this.popoverEl.open=false;this.userIsNavigating=false;break}}function openPopover(e){var t=this;if(!!this.popoverEl&&!!e.title&&!!e.text){this.popoverEl.popoverTitle=e.title;this.popoverEl.popoverText=e.text;this.popoverEl.buttonText=e.buttonText;this.popoverEl.coords=e.coords;this.popoverEl.sliceRef=e.sliceRef;window.setTimeout((function(){if(t.popoverEl){t.popoverEl.open=true}}),30);var a=debounce((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){this.popoverEl.open=false;return[2]}))}))}),10);document.addEventListener("scroll",(function(){a()}));var r=findParentWithScrollbar(this.el);if(!!r){r.addEventListener("scroll",(function(){a()}))}}}function focusNext(){var e=checkForActiveElInShadow(document.activeElement);var t=(this.sliceEls.indexOf(e)+1)%this.sliceEls.length;focusSlice.call(this,t)}function focusPrevious(){if(this.sliceEls){var e=checkForActiveElInShadow(document.activeElement);var t=this.sliceEls.indexOf(e);if(t===-1){t=0}else if(t===0){t=this.sliceEls.length-1}else{t-=1}focusSlice.call(this,t)}}function focusSlice(e){var t=this;if(this.sliceEls&&this.el){this.userIsNavigating=true;if(this.popoverEl){this.popoverEl.open=false}this.el.tabIndex=-1;this.el.focusable=false;this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.sliceEls[e].tabIndex=0;this.sliceEls[e].focusable=true;this.sliceEls[e].focus();window.setTimeout((function(){if(t.popoverEl){t.popoverEl.open=true}}),10)}}function exitChart(){var e=this;this.sliceEls&&this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.userIsNavigating=false;window.setTimeout((function(){if(e.el){e.el.tabIndex=0;e.el.focusable=true;if(e.popoverEl){e.popoverEl.open=false}}}),100)}function getData(e){return __awaiter(this,void 0,void 0,(function(){var t,a;var r=this;return __generator(this,(function(o){this.slicesData=[];t=0;a=Array.from(this.el.children);this.total=a.reduce((function(e,t){return e+=parseInt(t.getAttribute("amount")||"0")}),0);a.forEach((function(o,n){var i=parseInt(o.getAttribute("amount")||"0");var s=amountToPercent(i,r.total,true);var l=a[n===0?a.length-1:n-1];var c=amountToPercent(parseInt(l.getAttribute("amount")||"0"),r.total,true);var u=a[n===a.length-1?0:n+1];var h=amountToPercent(parseInt(u.getAttribute("amount")||"0"),r.total,true);var d=s<4;var f=c<5;var p=h<5;var v=d&&(f||p);var g=s===0&&i>0;if(g&&(h<8||c<8)){v=true}var b=e==="bar5"?r.notStartedColor?n:n+1:n;var m=types[e].colors[b];var x={amount:i,perc:s,legend:o.getAttribute("legend"),color:m||"#d4d4d4",offset:t,id:"".concat(r.uid,"-").concat(n+1),title:o.getAttribute("popover-title"),text:o.getAttribute("popover-text"),buttonText:o.getAttribute("popover-button-text"),sliceRef:o,inSmallCluster:v};t+=i;r.slicesData.push(x)}));return[2]}))}))}function getPathData(e,t,a){var r=amountToDegree(t,this.total)-90;var o=e/this.total*360;var n=r+o;var i=o>180?"1 1":"0 1";var s=o>180?"1 0":"0 0";var l=this.chartData.size/2;var c=this.chartData.thickness;var u=1;var h=a==="doughnut0"||a==="doughnut";var d=1.5;var f=h?2.25:3;if(o===360){n-=.01}var p=polarToCartesian(l,u,r+d,n);var v=polarToCartesian(l,c,r+f,n);var g="M ".concat(p.x1,", ").concat(p.y1," ");var b=getArc(u,i,p.x2,p.y2,this.chartData.size);var m=" L ".concat(v.x2,", ").concat(v.y2," ");var x=getArc(c,s,v.x1,v.y1,this.chartData.size);return g+b+m+x+" z"}function renderFilter(){return h("defs",null,h("filter",{id:"wmHoverDropShadow"},h("feGaussianBlur",{stdDeviation:"3"}),h("feOffset",{result:"offsetblur"}),h("feFlood",{"flood-color":"#333"}),h("feComposite",{operator:"in",in2:"offsetblur"}),h("feMerge",null,h("feMergeNode",null),h("feMergeNode",{in:"SourceGraphic"}))))}function renderDoughnut(e){var t=this;var a=this.chartData.size+this.chartData.padding;var r=e==="doughnut0"||e==="doughnut";return h("div",{class:"chart-wrapper doughnut-wrapper"},h("svg",{width:a+"px",height:a+"px",id:"graphic-".concat(this.uid),class:"doughnut-svg"},renderFilter(),this.slicesData.map((function(a){return renderPath.call(t,a,e)})),r?h("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},amountToPercent(this.slicesData[0].amount,this.total,true)+"%"):h("g",{transform:"translate(".concat(this.chartData.padding/2,", ").concat(this.chartData.padding/2,")"),"text-anchor":"middle","dominant-baseline":"middle"},this.slicesData.map((function(e){return e.amount>0?renderDoughnutText.call(t,e):""})))))}function renderPath(e,t){var a=this;return h("g",{transform:"translate(".concat(this.chartData.padding/2,", ").concat(this.chartData.padding/2,")")},h("path",{id:e.id,class:"doughnut-segment",fill:e.amount?e.color:"transparent",d:getPathData.call(this,e.amount,e.offset,t),onClick:function(t){return handleSliceClick.call(a,t,e)},onFocus:function(t){return handleSliceFocus.call(a,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(a,e)},role:"img","aria-label":e.legend}))}function renderDoughnutText(e){if(!e.inSmallCluster){var t=amountToDegree(e.offset+e.amount/2,this.total);var a=polarToCartesian(this.chartData.size/2,1.4,t-90),r=a.x,o=a.y;return h("text",{class:"value",x:r+"px",y:o+"px"},"".concat(e.perc>0?e.perc:"<1","%"))}}function renderBar(e){var t=this;var a=e==="bar1"||e==="bar";return h("div",{class:"chart-wrapper bar-wrapper"},a?h("div",{class:"single-perc"},amountToPercent(this.slicesData[0].amount,this.total,true)+"%"):"",this.chartType==="bar3"&&this.drawAxis(),h("div",{class:{"inner-bar-wrapper":true,"show-values":this.tempValueFormat==="percentage"||this.tempValueFormat==="amount"}},!a?h("div",{class:"values"},this.slicesData.map((function(e,a){return e.perc>0?t.renderBarText(e,a):""}))):"",h("div",{class:"bar-segments-wrapper"},this.slicesData.map((function(e,a){return renderBarSegment.call(t,e,a)}))),a?renderCompletionMessage.call(this):""))}function renderBarSegment(e,t){var a=this;var r=t!==this.slicesData.length-1;var o="calc(".concat(amountToPercent(e.amount,this.total,false),"%").concat(r?" - 2px":"",")");return h("div",{class:"bar-segment ".concat(amountToPercent(e.amount,this.total,false)===0?"zero":""),style:{backgroundColor:e.color,width:o},onClick:function(t){return handleSliceClick.call(a,t,e)},onFocus:function(t){return handleSliceFocus.call(a,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(a,e)}},h("span",{class:"sr-only"},e.legend))}function renderLegend(){if(this.showLegend){var e=this.slicesData.reduce((function(e,t){return e=t.inSmallCluster?true:e}),false);return h("div",{class:"legend-wrapper"},h("div",{class:"legend ".concat(this.mode==="bar"?"--top":"--bottom"),"aria-hidden":"true"},this.total>0?this.slicesData.map((function(e){if(!!e.amount||!!e.legend){return h("div",{class:"legend-item"},h("div",{class:"legend-color",style:{"background-color":e.color}}),h("div",{class:"legend-text"},e.legend))}})):""),!this.chartData.isBar&&e?h("div",{class:"cluster-warning"},intl.formatMessage({id:"chart.hiddenPercentages",defaultMessage:"Percentages smaller than 5% are not shown when too close to each other."}),h("br",null),intl.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details."})):"")}}function renderCompletionMessage(){if(this.completionMessage){return h("div",{class:"completion-message"},this.completionMessage)}}export{renderBar as a,renderDoughnut as b,renderCompletionMessage as c,amountToPercent as d,exitChart as e,getData as g,handleChartKeydown as h,renderLegend as r,types as t};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,a,r){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function i(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?a(e.value):o(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,o&&(n=i[0]&2?o["return"]:i[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;if(o=0,n)i=[i[0]&2,n.value];switch(i[0]){case 0:case 1:n=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;o=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(i[0]===6&&a.label<n[1]){a.label=n[1];n=i;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(i);break}if(n[2])a.ops.pop();a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e];o=0}finally{r=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{h}from"./index-17c79cc6.js";import{c as checkForActiveElInShadow,i as intl,b as getPosition,f as findParentWithScrollbar,d as debounce}from"./functions-124ec8e6.js";var colors={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",sleet:"#7f97ad",midnight:"#2e1b46",lavender:"#8b86ca"};var types={doughnut:{size:155,colors:[colors.forest,"#bfbfbf"],thickness:.73,padding:25,isBar:false},doughnut0:{size:155,colors:[colors.forest,"#bfbfbf"],thickness:.73,padding:25,isBar:false},doughnut1:{size:130,colors:[colors.lavender,colors.midnight,"#d4d4d4"],thickness:.5,padding:90,isBar:false},doughnut2:{size:130,colors:[colors.cyan,colors.salmon,"#d4d4d4"],thickness:.5,padding:90,isBar:false},doughnut3:{size:130,colors:[colors.lavender,colors.midnight,"#919834","#c177cf","#c16e00","#029af2","#2a6993"],thickness:.5,padding:90,isBar:false},bar:{size:350,colors:[colors.forest,"#bfbfbf"],padding:0,isBar:true},bar1:{size:350,colors:[colors.forest,"#bfbfbf"],padding:0,isBar:true},bar2:{size:400,colors:["#d4d4d4",colors.sleet,colors.cyan,colors.salmon],padding:0,isBar:true},bar3:{size:300,colors:["#0d696e",colors.cyan,"#8e4129",colors.salmon],padding:0,isBar:true},bar4:{size:400,colors:["#d4d4d4",colors.sleet,"#33a919"],padding:0,isBar:true},bar5:{size:400,colors:["#d4d4d4",colors.lavender,colors.midnight,"#919834","#c177cf","#c16e00","#029af2","#2a6993"],padding:0,isBar:true}};function amountToPercent(e,t,a){return a?Math.round(e*100/t):Math.round(e*1e4/t)/100}function amountToDegree(e,t){return e*360/t}function toFixed(e){return parseFloat((Math.floor(e*100)/100).toFixed(2))}function polarToCartesian(e,t,a,r){var o=toFixed(e+e*t*Math.cos(Math.PI*a/180));var n=toFixed(e+e*t*Math.sin(Math.PI*a/180));if(r!==undefined){var i=toFixed(e+e*t*Math.cos(Math.PI*r/180));var s=toFixed(e+e*t*Math.sin(Math.PI*r/180));return{x1:o,y1:n,x2:i,y2:s}}return{x:o,y:n}}function getArc(e,t,a,r,o){var n=toFixed(o/2*e);return"A ".concat(n,", ").concat(n," 0 ").concat(t," ").concat(toFixed(a),", ").concat(toFixed(r))}function handleSliceKeyDown(e){if(this.popoverEl&&this.popoverEl.open&&e.key==="Enter"){var t=this.popoverEl.querySelector("button");t&&t.click()}}function handleSliceClick(e,t){if(this.popoverEl&&!this.isTabbing){t.coords={x:e.clientX,y:e.clientY};openPopover.call(this,t)}}function handleSliceFocus(e,t){if(this.popoverEl&&this.isTabbing){t.coords=getPosition(e.target);openPopover.call(this,t)}}function handleChartKeydown(e){switch(e.key){case"ArrowUp":case"ArrowLeft":e.preventDefault();this.isTabbing=true;focusPrevious.call(this);break;case"ArrowRight":case"ArrowDown":e.preventDefault();this.isTabbing=true;focusNext.call(this);break;case"Tab":exitChart.call(this);break;case"Escape":this.popoverEl.open=false;this.userIsNavigating=false;break}}function openPopover(e){var t=this;if(!!this.popoverEl&&!!e.title&&!!e.text){this.popoverEl.popoverTitle=e.title;this.popoverEl.popoverText=e.text;this.popoverEl.buttonText=e.buttonText;this.popoverEl.coords=e.coords;this.popoverEl.sliceRef=e.sliceRef;window.setTimeout((function(){if(t.popoverEl){t.popoverEl.open=true}}),30);var a=debounce((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){this.popoverEl.open=false;return[2]}))}))}),10);document.addEventListener("scroll",(function(){a()}));var r=findParentWithScrollbar(this.el);if(!!r){r.addEventListener("scroll",(function(){a()}))}}}function focusNext(){var e=checkForActiveElInShadow(document.activeElement);var t=(this.sliceEls.indexOf(e)+1)%this.sliceEls.length;focusSlice.call(this,t)}function focusPrevious(){if(this.sliceEls){var e=checkForActiveElInShadow(document.activeElement);var t=this.sliceEls.indexOf(e);if(t===-1){t=0}else if(t===0){t=this.sliceEls.length-1}else{t-=1}focusSlice.call(this,t)}}function focusSlice(e){var t=this;if(this.sliceEls&&this.el){this.userIsNavigating=true;if(this.popoverEl){this.popoverEl.open=false}this.el.tabIndex=-1;this.el.focusable=false;this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.sliceEls[e].tabIndex=0;this.sliceEls[e].focusable=true;this.sliceEls[e].focus();window.setTimeout((function(){if(t.popoverEl){t.popoverEl.open=true}}),10)}}function exitChart(){var e=this;this.sliceEls&&this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.userIsNavigating=false;window.setTimeout((function(){if(e.el){e.el.tabIndex=0;e.el.focusable=true;if(e.popoverEl){e.popoverEl.open=false}}}),100)}function getData(e){return __awaiter(this,void 0,void 0,(function(){var t,a;var r=this;return __generator(this,(function(o){this.slicesData=[];t=0;a=Array.from(this.el.children);this.total=a.reduce((function(e,t){return e+=parseInt(t.getAttribute("amount")||"0")}),0);a.forEach((function(o,n){var i=parseInt(o.getAttribute("amount")||"0");var s=amountToPercent(i,r.total,true);var l=a[n===0?a.length-1:n-1];var c=amountToPercent(parseInt(l.getAttribute("amount")||"0"),r.total,true);var u=a[n===a.length-1?0:n+1];var h=amountToPercent(parseInt(u.getAttribute("amount")||"0"),r.total,true);var d=s<4;var f=c<5;var p=h<5;var v=d&&(f||p);var g=s===0&&i>0;if(g&&(h<8||c<8)){v=true}var m=e==="bar5"?r.notStartedColor?n:n+1:n;var b=types[e].colors[m];var x={amount:i,perc:s,legend:o.getAttribute("legend"),color:b||"#d4d4d4",offset:t,id:"".concat(r.uid,"-").concat(n+1),title:o.getAttribute("popover-title"),text:o.getAttribute("popover-text"),buttonText:o.getAttribute("popover-button-text"),sliceRef:o,inSmallCluster:v};t+=i;r.slicesData.push(x)}));return[2]}))}))}function getPathData(e,t,a){var r=amountToDegree(t,this.total)-90;var o=e/this.total*360;var n=r+o;var i=o>180?"1 1":"0 1";var s=o>180?"1 0":"0 0";var l=this.chartData.size/2;var c=this.chartData.thickness;var u=1;var h=a==="doughnut0"||a==="doughnut";var d=1.5;var f=h?2.25:3;if(o===360){n-=.01}var p=polarToCartesian(l,u,r+d,n);var v=polarToCartesian(l,c,r+f,n);var g="M ".concat(p.x1,", ").concat(p.y1," ");var m=getArc(u,i,p.x2,p.y2,this.chartData.size);var b=" L ".concat(v.x2,", ").concat(v.y2," ");var x=getArc(c,s,v.x1,v.y1,this.chartData.size);return g+m+b+x+" z"}function renderFilter(){return h("defs",null,h("filter",{id:"wmHoverDropShadow"},h("feGaussianBlur",{stdDeviation:"3"}),h("feOffset",{result:"offsetblur"}),h("feFlood",{"flood-color":"#333"}),h("feComposite",{operator:"in",in2:"offsetblur"}),h("feMerge",null,h("feMergeNode",null),h("feMergeNode",{in:"SourceGraphic"}))))}function renderDoughnut(e){var t=this;var a=this.chartData.size+this.chartData.padding;var r=e==="doughnut0"||e==="doughnut";return h("div",{class:"chart-wrapper doughnut-wrapper"},h("svg",{width:a+"px",height:a+"px",id:"graphic-".concat(this.uid),class:"doughnut-svg"},renderFilter(),this.slicesData.map((function(a){return renderPath.call(t,a,e)})),r?h("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},amountToPercent(this.slicesData[0].amount,this.total,true)+"%"):h("g",{transform:"translate(".concat(this.chartData.padding/2,", ").concat(this.chartData.padding/2,")"),"text-anchor":"middle","dominant-baseline":"middle"},this.slicesData.map((function(e){return e.amount>0?renderDoughnutText.call(t,e):""})))))}function renderPath(e,t){var a=this;return h("g",{transform:"translate(".concat(this.chartData.padding/2,", ").concat(this.chartData.padding/2,")")},h("path",{id:e.id,class:"doughnut-segment",fill:e.amount?e.color:"transparent",d:getPathData.call(this,e.amount,e.offset,t),onClick:function(t){return handleSliceClick.call(a,t,e)},onFocus:function(t){return handleSliceFocus.call(a,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(a,e)},role:"img","aria-label":e.legend}))}function renderDoughnutText(e){if(!e.inSmallCluster){var t=amountToDegree(e.offset+e.amount/2,this.total);var a=polarToCartesian(this.chartData.size/2,1.4,t-90),r=a.x,o=a.y;return h("text",{class:"value",x:r+"px",y:o+"px"},"".concat(e.perc>0?e.perc:"<1","%"))}}function renderBar(e){var t=this;var a=e==="bar1"||e==="bar";return h("div",{class:"chart-wrapper bar-wrapper"},a?h("div",{class:"single-perc"},amountToPercent(this.slicesData[0].amount,this.total,true)+"%"):"",this.chartType==="bar3"&&this.drawAxis(),h("div",{class:{"inner-bar-wrapper":true,"show-values":this.tempValueFormat==="percentage"||this.tempValueFormat==="amount"}},!a?h("div",{class:"values"},this.slicesData.map((function(e,a){return e.perc>0?t.renderBarText(e,a):""}))):"",h("div",{class:"bar-segments-wrapper"},this.slicesData.map((function(e,a){return renderBarSegment.call(t,e,a)}))),a?renderCompletionMessage.call(this):""))}function renderBarSegment(e,t){var a=this;var r=t!==this.slicesData.length-1;var o="calc(".concat(amountToPercent(e.amount,this.total,false),"%").concat(r?" - 2px":"",")");return h("div",{class:"bar-segment ".concat(amountToPercent(e.amount,this.total,false)===0?"zero":""),style:{backgroundColor:e.color,width:o},onClick:function(t){return handleSliceClick.call(a,t,e)},onFocus:function(t){return handleSliceFocus.call(a,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(a,e)}},h("span",{class:"sr-only"},e.legend))}function renderLegend(){if(this.showLegend){var e=this.slicesData.reduce((function(e,t){return e=t.inSmallCluster?true:e}),false);return h("div",{class:"legend-wrapper"},h("div",{class:"legend ".concat(this.mode==="bar"?"--top":"--bottom"),"aria-hidden":"true"},this.total>0?this.slicesData.map((function(e){if(!!e.amount||!!e.legend){return h("div",{class:"legend-item"},h("div",{class:"legend-color",style:{"background-color":e.color}}),h("div",{class:"legend-text"},e.legend))}})):""),!this.chartData.isBar&&e?h("div",{class:"cluster-warning"},intl.formatMessage({id:"chart.hiddenPercentages",defaultMessage:"Percentages smaller than 5% are not shown when too close to each other."}),h("br",null),intl.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details."})):"")}}function renderCompletionMessage(){if(this.completionMessage){return h("div",{class:"completion-message"},this.completionMessage)}}export{renderBar as a,renderDoughnut as b,renderCompletionMessage as c,amountToPercent as d,exitChart as e,getData as g,handleChartKeydown as h,renderLegend as r,types as t};
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]};return extendStatics(e,t)};function __extends(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var __assign=function(){__assign=Object.assign||function e(t){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n))t[n]=a[n]}return t};return __assign.apply(this,arguments)};function __spreadArray(e,t,a){if(a||arguments.length===2)for(var r=0,i=t.length,n;r<i;r++){if(n||!(r in t)){if(!n)n=Array.prototype.slice.call(t,0,r);n[r]=t[r]}}return e.concat(n||Array.prototype.slice.call(t))}var ErrorKind;(function(e){e[e["EXPECT_ARGUMENT_CLOSING_BRACE"]=1]="EXPECT_ARGUMENT_CLOSING_BRACE";e[e["EMPTY_ARGUMENT"]=2]="EMPTY_ARGUMENT";e[e["MALFORMED_ARGUMENT"]=3]="MALFORMED_ARGUMENT";e[e["EXPECT_ARGUMENT_TYPE"]=4]="EXPECT_ARGUMENT_TYPE";e[e["INVALID_ARGUMENT_TYPE"]=5]="INVALID_ARGUMENT_TYPE";e[e["EXPECT_ARGUMENT_STYLE"]=6]="EXPECT_ARGUMENT_STYLE";e[e["INVALID_NUMBER_SKELETON"]=7]="INVALID_NUMBER_SKELETON";e[e["INVALID_DATE_TIME_SKELETON"]=8]="INVALID_DATE_TIME_SKELETON";e[e["EXPECT_NUMBER_SKELETON"]=9]="EXPECT_NUMBER_SKELETON";e[e["EXPECT_DATE_TIME_SKELETON"]=10]="EXPECT_DATE_TIME_SKELETON";e[e["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"]=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";e[e["EXPECT_SELECT_ARGUMENT_OPTIONS"]=12]="EXPECT_SELECT_ARGUMENT_OPTIONS";e[e["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"]=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";e[e["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"]=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";e[e["EXPECT_SELECT_ARGUMENT_SELECTOR"]=15]="EXPECT_SELECT_ARGUMENT_SELECTOR";e[e["EXPECT_PLURAL_ARGUMENT_SELECTOR"]=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR";e[e["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"]=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";e[e["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"]=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";e[e["INVALID_PLURAL_ARGUMENT_SELECTOR"]=19]="INVALID_PLURAL_ARGUMENT_SELECTOR";e[e["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"]=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR";e[e["DUPLICATE_SELECT_ARGUMENT_SELECTOR"]=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR";e[e["MISSING_OTHER_CLAUSE"]=22]="MISSING_OTHER_CLAUSE";e[e["INVALID_TAG"]=23]="INVALID_TAG";e[e["INVALID_TAG_NAME"]=25]="INVALID_TAG_NAME";e[e["UNMATCHED_CLOSING_TAG"]=26]="UNMATCHED_CLOSING_TAG";e[e["UNCLOSED_TAG"]=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(e){e[e["literal"]=0]="literal";e[e["argument"]=1]="argument";e[e["number"]=2]="number";e[e["date"]=3]="date";e[e["time"]=4]="time";e[e["select"]=5]="select";e[e["plural"]=6]="plural";e[e["pound"]=7]="pound";e[e["tag"]=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(e){e[e["number"]=0]="number";e[e["dateTime"]=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(e){return e.type===TYPE.literal}function isArgumentElement(e){return e.type===TYPE.argument}function isNumberElement(e){return e.type===TYPE.number}function isDateElement(e){return e.type===TYPE.date}function isTimeElement(e){return e.type===TYPE.time}function isSelectElement(e){return e.type===TYPE.select}function isPluralElement(e){return e.type===TYPE.plural}function isPoundElement(e){return e.type===TYPE.pound}function isTagElement(e){return e.type===TYPE.tag}function isNumberSkeleton(e){return!!(e&&typeof e==="object"&&e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(e){return!!(e&&typeof e==="object"&&e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(e){var t={};e.replace(DATE_TIME_REGEX,(function(e){var a=e.length;switch(e[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"short":a===5?"narrow":"short";break;case"e":if(a<4){throw new RangeError("`e..eee` (weekday) patterns are not supported")}t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4){throw new RangeError("`c..ccc` (weekday) patterns are not supported")}t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=true;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12";t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23";t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11";t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24";t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}));return t}var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(e){if(e.length===0){throw new Error("Number skeleton cannot be empty")}var t=e.split(WHITE_SPACE_REGEX).filter((function(e){return e.length>0}));var a=[];for(var r=0,i=t;r<i.length;r++){var n=i[r];var o=n.split("/");if(o.length===0){throw new Error("Invalid number skeleton")}var l=o[0],s=o.slice(1);for(var u=0,c=s;u<c.length;u++){var p=c[u];if(p.length===0){throw new Error("Invalid number skeleton")}}a.push({stem:l,options:s})}return a}function icuUnitToEcma(e){return e.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;var SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g;var INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g;var CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(e){var t={};if(e[e.length-1]==="r"){t.roundingPriority="morePrecision"}else if(e[e.length-1]==="s"){t.roundingPriority="lessPrecision"}e.replace(SIGNIFICANT_PRECISION_REGEX,(function(e,a,r){if(typeof r!=="string"){t.minimumSignificantDigits=a.length;t.maximumSignificantDigits=a.length}else if(r==="+"){t.minimumSignificantDigits=a.length}else if(a[0]==="#"){t.maximumSignificantDigits=a.length}else{t.minimumSignificantDigits=a.length;t.maximumSignificantDigits=a.length+(typeof r==="string"?r.length:0)}return""}));return t}function parseSign(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(e){var t;if(e[0]==="E"&&e[1]==="E"){t={notation:"engineering"};e=e.slice(2)}else if(e[0]==="E"){t={notation:"scientific"};e=e.slice(1)}if(t){var a=e.slice(0,2);if(a==="+!"){t.signDisplay="always";e=e.slice(2)}else if(a==="+?"){t.signDisplay="exceptZero";e=e.slice(2)}if(!CONCISE_INTEGER_WIDTH_REGEX.test(e)){throw new Error("Malformed concise eng/scientific notation")}t.minimumIntegerDigits=e.length}return t}function parseNotationOptions(e){var t={};var a=parseSign(e);if(a){return a}return t}function parseNumberSkeleton(e){var t={};for(var a=0,r=e;a<r.length;a++){var i=r[a];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent";t.scale=100;continue;case"currency":t.style="currency";t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=false;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit";t.unit=icuUnitToEcma(i.options[0]);continue;case"compact-short":case"K":t.notation="compact";t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact";t.compactDisplay="long";continue;case"scientific":t=__assign(__assign(__assign({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return __assign(__assign({},e),parseNotationOptions(t))}),{}));continue;case"engineering":t=__assign(__assign(__assign({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return __assign(__assign({},e),parseNotationOptions(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol";t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code";t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name";t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1){throw new RangeError("integer-width stems only accept a single optional option")}i.options[0].replace(INTEGER_WIDTH_REGEX,(function(e,a,r,i,n,o){if(a){t.minimumIntegerDigits=r.length}else if(i&&n){throw new Error("We currently do not support maximum integer digits")}else if(o){throw new Error("We currently do not support exact integer digits")}return""}));continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(i.stem)){if(i.options.length>1){throw new RangeError("Fraction-precision stems only accept a single optional option")}i.stem.replace(FRACTION_PRECISION_REGEX,(function(e,a,r,i,n,o){if(r==="*"){t.minimumFractionDigits=a.length}else if(i&&i[0]==="#"){t.maximumFractionDigits=i.length}else if(n&&o){t.minimumFractionDigits=n.length;t.maximumFractionDigits=n.length+o.length}else{t.minimumFractionDigits=a.length;t.maximumFractionDigits=a.length}return""}));var n=i.options[0];if(n==="w"){t=__assign(__assign({},t),{trailingZeroDisplay:"stripIfInteger"})}else if(n){t=__assign(__assign({},t),parseSignificantPrecision(n))}continue}if(SIGNIFICANT_PRECISION_REGEX.test(i.stem)){t=__assign(__assign({},t),parseSignificantPrecision(i.stem));continue}var o=parseSign(i.stem);if(o){t=__assign(__assign({},t),o)}var l=parseConciseScientificAndEngineeringStem(i.stem);if(l){t=__assign(__assign({},t),l)}}return t}var _a;var SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*"));var SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(e,t){return{start:e,end:t}}var hasNativeStartsWith=!!String.prototype.startsWith;var hasNativeFromCodePoint=!!String.fromCodePoint;var hasNativeFromEntries=!!Object.fromEntries;var hasNativeCodePointAt=!!String.prototype.codePointAt;var hasTrimStart=!!String.prototype.trimStart;var hasTrimEnd=!!String.prototype.trimEnd;var hasNativeIsSafeInteger=!!Number.isSafeInteger;var isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991};var REGEX_SUPPORTS_U_AND_Y=true;try{var re=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a=re.exec("a"))===null||_a===void 0?void 0:_a[0])==="a"}catch(e){REGEX_SUPPORTS_U_AND_Y=false}var startsWith=hasNativeStartsWith?function e(t,a,r){return t.startsWith(a,r)}:function e(t,a,r){return t.slice(r,r+a.length)===a};var fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function e(){var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}var r="";var i=t.length;var n=0;var o;while(i>n){o=t[n++];if(o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r};var fromEntries=hasNativeFromEntries?Object.fromEntries:function e(t){var a={};for(var r=0,i=t;r<i.length;r++){var n=i[r],o=n[0],l=n[1];a[o]=l}return a};var codePointAt=hasNativeCodePointAt?function e(t,a){return t.codePointAt(a)}:function e(t,a){var r=t.length;if(a<0||a>=r){return undefined}var i=t.charCodeAt(a);var n;return i<55296||i>56319||a+1===r||(n=t.charCodeAt(a+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536};var trimStart=hasTrimStart?function e(t){return t.trimStart()}:function e(t){return t.replace(SPACE_SEPARATOR_START_REGEX,"")};var trimEnd=hasTrimEnd?function e(t){return t.trimEnd()}:function e(t){return t.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(e,t){return new RegExp(e,t)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function e(t,a){var r;IDENTIFIER_PREFIX_RE_1.lastIndex=a;var i=IDENTIFIER_PREFIX_RE_1.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else{matchIdentifierAtIndex=function e(t,a){var r=[];while(true){var i=codePointAt(t,a);if(i===undefined||_isWhiteSpace(i)||_isPatternSyntax(i)){break}r.push(i);a+=i>=65536?2:1}return fromCodePoint.apply(void 0,r)}}var Parser=function(){function e(e,t){if(t===void 0){t={}}this.message=e;this.position={offset:0,line:1,column:1};this.ignoreTag=!!t.ignoreTag;this.requiresOtherClause=!!t.requiresOtherClause;this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(this.offset()!==0){throw Error("parser can only be used once")}return this.parseMessage(0,"",false)};e.prototype.parseMessage=function(e,t,a){var r=[];while(!this.isEOF()){var i=this.char();if(i===123){var n=this.parseArgument(e,a);if(n.err){return n}r.push(n.val)}else if(i===125&&e>0){break}else if(i===35&&(t==="plural"||t==="selectordinal")){var o=this.clonePosition();this.bump();r.push({type:TYPE.pound,location:createLocation(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(a){break}else{return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}}else if(i===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var n=this.parseTag(e,t);if(n.err){return n}r.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err){return n}r.push(n.val)}}return{val:r,err:null}};e.prototype.parseTag=function(e,t){var a=this.clonePosition();this.bump();var r=this.parseTagName();this.bumpSpace();if(this.bumpIf("/>")){return{val:{type:TYPE.literal,value:"<".concat(r,"/>"),location:createLocation(a,this.clonePosition())},err:null}}else if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,true);if(i.err){return i}var n=i.val;var o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char())){return this.error(ErrorKind.INVALID_TAG,createLocation(o,this.clonePosition()))}var l=this.clonePosition();var s=this.parseTagName();if(r!==s){return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(l,this.clonePosition()))}this.bumpSpace();if(!this.bumpIf(">")){return this.error(ErrorKind.INVALID_TAG,createLocation(o,this.clonePosition()))}return{val:{type:TYPE.tag,value:r,children:n,location:createLocation(a,this.clonePosition())},err:null}}else{return this.error(ErrorKind.UNCLOSED_TAG,createLocation(a,this.clonePosition()))}}else{return this.error(ErrorKind.INVALID_TAG,createLocation(a,this.clonePosition()))}};e.prototype.parseTagName=function(){var e=this.offset();this.bump();while(!this.isEOF()&&_isPotentialElementNameChar(this.char())){this.bump()}return this.message.slice(e,this.offset())};e.prototype.parseLiteral=function(e,t){var a=this.clonePosition();var r="";while(true){var i=this.tryParseQuote(t);if(i){r+=i;continue}var n=this.tryParseUnquoted(e,t);if(n){r+=n;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var l=createLocation(a,this.clonePosition());return{val:{type:TYPE.literal,value:r,location:l},err:null}};e.prototype.tryParseLeftAngleBracket=function(){if(!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))){this.bump();return"<"}return null};e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39){return null}switch(this.peek()){case 39:this.bump();this.bump();return"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal"){break}return null;default:return null}this.bump();var t=[this.char()];this.bump();while(!this.isEOF()){var a=this.char();if(a===39){if(this.peek()===39){t.push(39);this.bump()}else{this.bump();break}}else{t.push(a)}this.bump()}return fromCodePoint.apply(void 0,t)};e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF()){return null}var a=this.char();if(a===60||a===123||a===35&&(t==="plural"||t==="selectordinal")||a===125&&e>0){return null}else{this.bump();return fromCodePoint(a)}};e.prototype.parseArgument=function(e,t){var a=this.clonePosition();this.bump();this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}if(this.char()===125){this.bump();return this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(a,this.clonePosition()))}var r=this.parseIdentifierIfPossible().value;if(!r){return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(a,this.clonePosition()))}this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}switch(this.char()){case 125:{this.bump();return{val:{type:TYPE.argument,value:r,location:createLocation(a,this.clonePosition())},err:null}}case 44:{this.bump();this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}return this.parseArgumentOptions(e,t,r,a)}default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(a,this.clonePosition()))}};e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition();var t=this.offset();var a=matchIdentifierAtIndex(this.message,t);var r=t+a.length;this.bumpTo(r);var i=this.clonePosition();var n=createLocation(e,i);return{value:a,location:n}};e.prototype.parseArgumentOptions=function(e,t,a,r){var i;var n=this.clonePosition();var o=this.parseIdentifierIfPossible().value;var l=this.clonePosition();switch(o){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(n,l));case"number":case"date":case"time":{this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();var c=this.parseSimpleArgStyleIfPossible();if(c.err){return c}var p=trimEnd(c.val);if(p.length===0){return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()))}var y=createLocation(u,this.clonePosition());s={style:p,styleLocation:y}}var d=this.tryParseArgumentClose(r);if(d.err){return d}var v=createLocation(r,this.clonePosition());if(s&&startsWith(s===null||s===void 0?void 0:s.style,"::",0)){var m=trimStart(s.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(m,s.styleLocation);if(c.err){return c}return{val:{type:TYPE.number,value:a,location:v,style:c.val},err:null}}else{if(m.length===0){return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,v)}var p={type:SKELETON_TYPE.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(m):{}};var f=o==="date"?TYPE.date:TYPE.time;return{val:{type:f,value:a,location:v,style:p},err:null}}}return{val:{type:o==="number"?TYPE.number:o==="date"?TYPE.date:TYPE.time,value:a,location:v,style:(i=s===null||s===void 0?void 0:s.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var h=this.clonePosition();this.bumpSpace();if(!this.bumpIf(",")){return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(h,__assign({},h)))}this.bumpSpace();var g=this.parseIdentifierIfPossible();var E=0;if(o!=="select"&&g.value==="offset"){if(!this.bumpIf(":")){return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()))}this.bumpSpace();var c=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err){return c}this.bumpSpace();g=this.parseIdentifierIfPossible();E=c.val}var T=this.tryParsePluralOrSelectOptions(e,o,t,g);if(T.err){return T}var d=this.tryParseArgumentClose(r);if(d.err){return d}var _=createLocation(r,this.clonePosition());if(o==="select"){return{val:{type:TYPE.select,value:a,options:fromEntries(T.val),location:_},err:null}}else{return{val:{type:TYPE.plural,value:a,options:fromEntries(T.val),offset:E,pluralType:o==="plural"?"cardinal":"ordinal",location:_},err:null}}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(n,l))}};e.prototype.tryParseArgumentClose=function(e){if(this.isEOF()||this.char()!==125){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(e,this.clonePosition()))}this.bump();return{val:true,err:null}};e.prototype.parseSimpleArgStyleIfPossible=function(){var e=0;var t=this.clonePosition();while(!this.isEOF()){var a=this.char();switch(a){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'")){return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(r,this.clonePosition()))}this.bump();break}case 123:{e+=1;this.bump();break}case 125:{if(e>0){e-=1}else{return{val:this.message.slice(t.offset,this.offset()),err:null}}break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}};e.prototype.parseNumberSkeletonFromString=function(e,t){var a=[];try{a=parseNumberSkeletonFromString(e)}catch(e){return this.error(ErrorKind.INVALID_NUMBER_SKELETON,t)}return{val:{type:SKELETON_TYPE.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(a):{}},err:null}};e.prototype.tryParsePluralOrSelectOptions=function(e,t,a,r){var i;var n=false;var o=[];var l=new Set;var s=r.value,u=r.location;while(true){if(s.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err){return p}u=createLocation(c,this.clonePosition());s=this.message.slice(c.offset,this.offset())}else{break}}if(l.has(s)){return this.error(t==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u)}if(s==="other"){n=true}this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{")){return this.error(t==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()))}var d=this.parseMessage(e+1,t,a);if(d.err){return d}var v=this.tryParseArgumentClose(y);if(v.err){return v}o.push([s,{value:d.val,location:createLocation(y,this.clonePosition())}]);l.add(s);this.bumpSpace();i=this.parseIdentifierIfPossible(),s=i.value,u=i.location}if(o.length===0){return this.error(t==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition()))}if(this.requiresOtherClause&&!n){return this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition()))}return{val:o,err:null}};e.prototype.tryParseDecimalInteger=function(e,t){var a=1;var r=this.clonePosition();if(this.bumpIf("+"));else if(this.bumpIf("-")){a=-1}var i=false;var n=0;while(!this.isEOF()){var o=this.char();if(o>=48&&o<=57){i=true;n=n*10+(o-48);this.bump()}else{break}}var l=createLocation(r,this.clonePosition());if(!i){return this.error(e,l)}n*=a;if(!isSafeInteger(n)){return this.error(t,l)}return{val:n,err:null}};e.prototype.offset=function(){return this.position.offset};e.prototype.isEOF=function(){return this.offset()===this.message.length};e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}};e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length){throw Error("out of bound")}var t=codePointAt(this.message,e);if(t===undefined){throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"))}return t};e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}};e.prototype.bump=function(){if(this.isEOF()){return}var e=this.char();if(e===10){this.position.line+=1;this.position.column=1;this.position.offset+=1}else{this.position.column+=1;this.position.offset+=e<65536?1:2}};e.prototype.bumpIf=function(e){if(startsWith(this.message,e,this.offset())){for(var t=0;t<e.length;t++){this.bump()}return true}return false};e.prototype.bumpUntil=function(e){var t=this.offset();var a=this.message.indexOf(e,t);if(a>=0){this.bumpTo(a);return true}else{this.bumpTo(this.message.length);return false}};e.prototype.bumpTo=function(e){if(this.offset()>e){throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()))}e=Math.min(e,this.message.length);while(true){var t=this.offset();if(t===e){break}if(t>e){throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"))}this.bump();if(this.isEOF()){break}}};e.prototype.bumpSpace=function(){while(!this.isEOF()&&_isWhiteSpace(this.char())){this.bump()}};e.prototype.peek=function(){if(this.isEOF()){return null}var e=this.char();var t=this.offset();var a=this.message.charCodeAt(t+(e>=65536?2:1));return a!==null&&a!==void 0?a:null};return e}();function _isAlpha(e){return e>=97&&e<=122||e>=65&&e<=90}function _isAlphaOrSlash(e){return _isAlpha(e)||e===47}function _isPotentialElementNameChar(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function _isWhiteSpace(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function _isPatternSyntax(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pruneLocation(e){e.forEach((function(e){delete e.location;if(isSelectElement(e)||isPluralElement(e)){for(var t in e.options){delete e.options[t].location;pruneLocation(e.options[t].value)}}else if(isNumberElement(e)&&isNumberSkeleton(e.style)){delete e.style.location}else if((isDateElement(e)||isTimeElement(e))&&isDateTimeSkeleton(e.style)){delete e.style.location}else if(isTagElement(e)){pruneLocation(e.children)}}))}function parse(e,t){if(t===void 0){t={}}t=__assign({shouldParseSkeletons:true,requiresOtherClause:true},t);var a=new Parser(e,t).parse();if(a.err){var r=SyntaxError(ErrorKind[a.err.kind]);r.location=a.err.location;r.originalMessage=a.err.message;throw r}if(!(t===null||t===void 0?void 0:t.captureLocation)){pruneLocation(a.val)}return a.val}function memoize(e,t){var a=t&&t.cache?t.cache:cacheDefault;var r=t&&t.serializer?t.serializer:serializerDefault;var i=t&&t.strategy?t.strategy:strategyDefault;return i(e,{cache:a,serializer:r})}function isPrimitive(e){return e==null||typeof e==="number"||typeof e==="boolean"}function monadic(e,t,a,r){var i=isPrimitive(r)?r:a(r);var n=t.get(i);if(typeof n==="undefined"){n=e.call(this,r);t.set(i,n)}return n}function variadic(e,t,a){var r=Array.prototype.slice.call(arguments,3);var i=a(r);var n=t.get(i);if(typeof n==="undefined"){n=e.apply(this,r);t.set(i,n)}return n}function assemble(e,t,a,r,i){return a.bind(t,e,r,i)}function strategyDefault(e,t){var a=e.length===1?monadic:variadic;return assemble(e,this,a,t.cache.create(),t.serializer)}function strategyVariadic(e,t){return assemble(e,this,variadic,t.cache.create(),t.serializer)}function strategyMonadic(e,t){return assemble(e,this,monadic,t.cache.create(),t.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(e){return this.cache[e]};ObjectWithoutPrototypeCache.prototype.set=function(e,t){this.cache[e]=t};var cacheDefault={create:function e(){return new ObjectWithoutPrototypeCache}};var strategies={variadic:strategyVariadic,monadic:strategyMonadic};var ErrorCode;(function(e){e["MISSING_VALUE"]="MISSING_VALUE";e["INVALID_VALUE"]="INVALID_VALUE";e["MISSING_INTL_API"]="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=function(e){__extends(t,e);function t(t,a,r){var i=e.call(this,t)||this;i.code=a;i.originalMessage=r;return i}t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};return t}(Error);var InvalidValueError=function(e){__extends(t,e);function t(t,a,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(a,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ErrorCode.INVALID_VALUE,i)||this}return t}(FormatError);var InvalidValueTypeError=function(e){__extends(t,e);function t(t,a,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(a),ErrorCode.INVALID_VALUE,r)||this}return t}(FormatError);var MissingValueError=function(e){__extends(t,e);function t(t,a){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(a,'"'),ErrorCode.MISSING_VALUE,a)||this}return t}(FormatError);var PART_TYPE;(function(e){e[e["literal"]=0]="literal";e[e["object"]=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(e){if(e.length<2){return e}return e.reduce((function(e,t){var a=e[e.length-1];if(!a||a.type!==PART_TYPE.literal||t.type!==PART_TYPE.literal){e.push(t)}else{a.value+=t.value}return e}),[])}function isFormatXMLElementFn(e){return typeof e==="function"}function formatToParts(e,t,a,r,i,n,o){if(e.length===1&&isLiteralElement(e[0])){return[{type:PART_TYPE.literal,value:e[0].value}]}var l=[];for(var s=0,u=e;s<u.length;s++){var c=u[s];if(isLiteralElement(c)){l.push({type:PART_TYPE.literal,value:c.value});continue}if(isPoundElement(c)){if(typeof n==="number"){l.push({type:PART_TYPE.literal,value:a.getNumberFormat(t).format(n)})}continue}var p=c.value;if(!(i&&p in i)){throw new MissingValueError(p,o)}var y=i[p];if(isArgumentElement(c)){if(!y||typeof y==="string"||typeof y==="number"){y=typeof y==="string"||typeof y==="number"?String(y):""}l.push({type:typeof y==="string"?PART_TYPE.literal:PART_TYPE.object,value:y});continue}if(isDateElement(c)){var d=typeof c.style==="string"?r.date[c.style]:isDateTimeSkeleton(c.style)?c.style.parsedOptions:undefined;l.push({type:PART_TYPE.literal,value:a.getDateTimeFormat(t,d).format(y)});continue}if(isTimeElement(c)){var d=typeof c.style==="string"?r.time[c.style]:isDateTimeSkeleton(c.style)?c.style.parsedOptions:undefined;l.push({type:PART_TYPE.literal,value:a.getDateTimeFormat(t,d).format(y)});continue}if(isNumberElement(c)){var d=typeof c.style==="string"?r.number[c.style]:isNumberSkeleton(c.style)?c.style.parsedOptions:undefined;if(d&&d.scale){y=y*(d.scale||1)}l.push({type:PART_TYPE.literal,value:a.getNumberFormat(t,d).format(y)});continue}if(isTagElement(c)){var v=c.children,m=c.value;var f=i[m];if(!isFormatXMLElementFn(f)){throw new InvalidValueTypeError(m,"function",o)}var h=formatToParts(v,t,a,r,i,n);var g=f(h.map((function(e){return e.value})));if(!Array.isArray(g)){g=[g]}l.push.apply(l,g.map((function(e){return{type:typeof e==="string"?PART_TYPE.literal:PART_TYPE.object,value:e}})))}if(isSelectElement(c)){var E=c.options[y]||c.options.other;if(!E){throw new InvalidValueError(c.value,y,Object.keys(c.options),o)}l.push.apply(l,formatToParts(E.value,t,a,r,i));continue}if(isPluralElement(c)){var E=c.options["=".concat(y)];if(!E){if(!Intl.PluralRules){throw new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ErrorCode.MISSING_INTL_API,o)}var T=a.getPluralRules(t,{type:c.pluralType}).select(y-(c.offset||0));E=c.options[T]||c.options.other}if(!E){throw new InvalidValueError(c.value,y,Object.keys(c.options),o)}l.push.apply(l,formatToParts(E.value,t,a,r,i,y-(c.offset||0)));continue}}return mergeLiteral(l)}function mergeConfig(e,t){if(!t){return e}return __assign(__assign(__assign({},e||{}),t||{}),Object.keys(e).reduce((function(a,r){a[r]=__assign(__assign({},e[r]),t[r]||{});return a}),{}))}function mergeConfigs(e,t){if(!t){return e}return Object.keys(e).reduce((function(a,r){a[r]=mergeConfig(e[r],t[r]);return a}),__assign({},e))}function createFastMemoizeCache$1(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}function createDefaultFormatters(e){if(e===void 0){e={number:{},dateTime:{},pluralRules:{}}}return{getNumberFormat:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.NumberFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.number),strategy:strategies.variadic}),getDateTimeFormat:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.DateTimeFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.dateTime),strategy:strategies.variadic}),getPluralRules:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.PluralRules).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.pluralRules),strategy:strategies.variadic})}}var IntlMessageFormat=function(){function e(t,a,r,i){var n=this;if(a===void 0){a=e.defaultLocale}this.formatterCache={number:{},dateTime:{},pluralRules:{}};this.format=function(e){var t=n.formatToParts(e);if(t.length===1){return t[0].value}var a=t.reduce((function(e,t){if(!e.length||t.type!==PART_TYPE.literal||typeof e[e.length-1]!=="string"){e.push(t.value)}else{e[e.length-1]+=t.value}return e}),[]);if(a.length<=1){return a[0]||""}return a};this.formatToParts=function(e){return formatToParts(n.ast,n.locales,n.formatters,n.formats,e,undefined,n.message)};this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}};this.getAst=function(){return n.ast};if(typeof t==="string"){this.message=t;if(!e.__parse){throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`")}this.ast=e.__parse(t,{ignoreTag:i===null||i===void 0?void 0:i.ignoreTag})}else{this.ast=t}if(!Array.isArray(this.ast)){throw new TypeError("A message must be provided as a String or AST.")}this.formats=mergeConfigs(e.formats,r);this.locales=a;this.formatters=i&&i.formatters||createDefaultFormatters(this.formatterCache)}Object.defineProperty(e,"defaultLocale",{get:function(){if(!e.memoizedDefaultLocale){e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale}return e.memoizedDefaultLocale},enumerable:false,configurable:true});e.memoizedDefaultLocale=null;e.__parse=parse;e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};return e}();var IntlErrorCode;(function(e){e["FORMAT_ERROR"]="FORMAT_ERROR";e["UNSUPPORTED_FORMATTER"]="UNSUPPORTED_FORMATTER";e["INVALID_CONFIG"]="INVALID_CONFIG";e["MISSING_DATA"]="MISSING_DATA";e["MISSING_TRANSLATION"]="MISSING_TRANSLATION"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=function(e){__extends(t,e);function t(a,r,i){var n=this;var o=i?i instanceof Error?i:new Error(String(i)):undefined;n=e.call(this,"[@formatjs/intl Error ".concat(a,"] ").concat(r," \n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this;n.code=a;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(n,t)}return n}return t}(Error);var UnsupportedFormatterError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.UNSUPPORTED_FORMATTER,t,a)||this}return t}(IntlError);var InvalidConfigError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.INVALID_CONFIG,t,a)||this}return t}(IntlError);var MissingDataError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.MISSING_DATA,t,a)||this}return t}(IntlError);var IntlFormatError=function(e){__extends(t,e);function t(t,a,r){return e.call(this,IntlErrorCode.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(a,"\n"),r)||this}return t}(IntlError);var MessageFormatError=function(e){__extends(t,e);function t(t,a,r,i){var n=e.call(this,"".concat(t," \nMessageID: ").concat(r===null||r===void 0?void 0:r.id,"\nDefault Message: ").concat(r===null||r===void 0?void 0:r.defaultMessage,"\nDescription: ").concat(r===null||r===void 0?void 0:r.description," \n"),a,i)||this;n.descriptor=r;return n}return t}(IntlFormatError);var MissingTranslationError=function(e){__extends(t,e);function t(t,a){var r=e.call(this,IntlErrorCode.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(a,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;r.descriptor=t;return r}return t}(IntlError);function filterProps(e,t,a){if(a===void 0){a={}}return t.reduce((function(t,r){if(r in e){t[r]=e[r]}else if(r in a){t[r]=a[r]}return t}),{})}var defaultErrorHandler=function(e){};var DEFAULT_INTL_CONFIG={formats:{},messages:{},timeZone:undefined,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:true,onError:defaultErrorHandler};function createIntlCache(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function createFastMemoizeCache(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}function createFormatters(e){if(e===void 0){e=createIntlCache()}var t=Intl.RelativeTimeFormat;var a=Intl.ListFormat;var r=Intl.DisplayNames;var i=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.DateTimeFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.dateTime),strategy:strategies.variadic});var n=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.NumberFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.number),strategy:strategies.variadic});var o=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.PluralRules).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.pluralRules),strategy:strategies.variadic});return{getDateTimeFormat:i,getNumberFormat:n,getMessageFormat:memoize((function(e,t,a,r){return new IntlMessageFormat(e,t,a,__assign({formatters:{getNumberFormat:n,getDateTimeFormat:i,getPluralRules:o}},r||{}))}),{cache:createFastMemoizeCache(e.message),strategy:strategies.variadic}),getRelativeTimeFormat:memoize((function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}return new(t.bind.apply(t,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.relativeTime),strategy:strategies.variadic}),getPluralRules:o,getListFormat:memoize((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(a.bind.apply(a,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.list),strategy:strategies.variadic}),getDisplayNames:memoize((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(r.bind.apply(r,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.displayNames),strategy:strategies.variadic})}}function getNamedFormat(e,t,a,r){var i=e&&e[t];var n;if(i){n=i[a]}if(n){return n}r(new UnsupportedFormatterError("No ".concat(t," format named: ").concat(a)))}function invariant(e,t,a){if(a===void 0){a=Error}if(!e){throw new a(t)}}function setTimeZoneInOptions(e,t){return Object.keys(e).reduce((function(a,r){a[r]=__assign({timeZone:t},e[r]);return a}),{})}function deepMergeOptions(e,t){var a=Object.keys(__assign(__assign({},e),t));return a.reduce((function(a,r){a[r]=__assign(__assign({},e[r]||{}),t[r]||{});return a}),{})}function deepMergeFormatsAndSetTimeZone(e,t){if(!t){return e}var a=IntlMessageFormat.formats;return __assign(__assign(__assign({},a),e),{date:deepMergeOptions(setTimeZoneInOptions(a.date,t),setTimeZoneInOptions(e.date||{},t)),time:deepMergeOptions(setTimeZoneInOptions(a.time,t),setTimeZoneInOptions(e.time||{},t))})}function formatMessage(e,t,a,r,i){var n=e.locale,o=e.formats,l=e.messages,s=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,p=e.onError,y=e.timeZone,d=e.defaultRichTextElements;if(a===void 0){a={id:""}}var v=a.id,m=a.defaultMessage;invariant(!!v,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var f=String(v);var h=l&&Object.prototype.hasOwnProperty.call(l,f)&&l[f];if(Array.isArray(h)&&h.length===1&&h[0].type===TYPE.literal){return h[0].value}if(!r&&h&&typeof h==="string"&&!d){return h.replace(/'\{(.*?)\}'/gi,"{$1}")}r=__assign(__assign({},d),r||{});o=deepMergeFormatsAndSetTimeZone(o,y);u=deepMergeFormatsAndSetTimeZone(u,y);if(!h){if(c===false&&h===""){return h}if(!m||n&&n.toLowerCase()!==s.toLowerCase()){p(new MissingTranslationError(a,n))}if(m){try{var g=t.getMessageFormat(m,s,u,i);return g.format(r)}catch(e){p(new MessageFormatError('Error formatting default message for: "'.concat(f,'", rendering default message verbatim'),n,a,e));return typeof m==="string"?m:f}}return f}try{var g=t.getMessageFormat(h,n,o,__assign({formatters:t},i||{}));return g.format(r)}catch(e){p(new MessageFormatError('Error formatting message: "'.concat(f,'", using ').concat(m?"default message":"id"," as fallback."),n,a,e))}if(m){try{var g=t.getMessageFormat(m,s,u,i);return g.format(r)}catch(e){p(new MessageFormatError('Error formatting the default message for: "'.concat(f,'", rendering message verbatim'),n,a,e))}}if(typeof h==="string"){return h}if(typeof m==="string"){return m}return f}var DATE_TIME_FORMAT_OPTIONS=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function getFormatter$2(e,t,a,r){var i=e.locale,n=e.formats,o=e.onError,l=e.timeZone;if(r===void 0){r={}}var s=r.format;var u=__assign(__assign({},l&&{timeZone:l}),s&&getNamedFormat(n,t,s,o));var c=filterProps(r,DATE_TIME_FORMAT_OPTIONS,u);if(t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle){c=__assign(__assign({},c),{hour:"numeric",minute:"numeric"})}return a(i,c)}function formatDate(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"date",t,o).format(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting date.",t))}return String(l)}function formatTime(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"time",t,o).format(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting time.",t))}return String(l)}function formatDateTimeRange(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=a[2],l=o===void 0?{}:o;var s=e.timeZone,u=e.locale,c=e.onError;var p=filterProps(l,DATE_TIME_FORMAT_OPTIONS,s?{timeZone:s}:{});try{return t(u,p).formatRange(i,n)}catch(e){c(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function formatDateToParts(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"date",t,o).formatToParts(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting date.",t))}return[]}function formatTimeToParts(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"time",t,o).formatToParts(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting time.",t))}return[]}var DISPLAY_NAMES_OPTONS=["localeMatcher","style","type","fallback"];function formatDisplayName(e,t,a,r){var i=e.locale,n=e.onError;var o=Intl.DisplayNames;if(!o){n(new FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ErrorCode.MISSING_INTL_API))}var l=filterProps(r,DISPLAY_NAMES_OPTONS);try{return t(i,l).of(a)}catch(e){n(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting display name.",e))}}var LIST_FORMAT_OPTIONS=["localeMatcher","type","style"];var now=Date.now();function generateToken(e){return"".concat(now,"_").concat(e,"_").concat(now)}function formatList(e,t,a,r){if(r===void 0){r={}}var i=formatListToParts(e,t,a,r).reduce((function(e,t){var a=t.value;if(typeof a!=="string"){e.push(a)}else if(typeof e[e.length-1]==="string"){e[e.length-1]+=a}else{e.push(a)}return e}),[]);return i.length===1?i[0]:i}function formatListToParts(e,t,a,r){var i=e.locale,n=e.onError;if(r===void 0){r={}}var o=Intl.ListFormat;if(!o){n(new FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ErrorCode.MISSING_INTL_API))}var l=filterProps(r,LIST_FORMAT_OPTIONS);try{var s={};var u=a.map((function(e,t){if(typeof e==="object"){var a=generateToken(t);s[a]=e;return a}return String(e)}));return t(i,l).formatToParts(u).map((function(e){return e.type==="literal"?e:__assign(__assign({},e),{value:s[e.value]||e.value})}))}catch(e){n(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting list.",e))}return a}var PLURAL_FORMAT_OPTIONS=["localeMatcher","type"];function formatPlural(e,t,a,r){var i=e.locale,n=e.onError;if(r===void 0){r={}}if(!Intl.PluralRules){n(new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ErrorCode.MISSING_INTL_API))}var o=filterProps(r,PLURAL_FORMAT_OPTIONS);try{return t(i,o).select(a)}catch(e){n(new IntlFormatError("Error formatting plural.",i,e))}return"other"}var RELATIVE_TIME_FORMAT_OPTIONS=["numeric","style"];function getFormatter$1(e,t,a){var r=e.locale,i=e.formats,n=e.onError;if(a===void 0){a={}}var o=a.format;var l=!!o&&getNamedFormat(i,"relative",o,n)||{};var s=filterProps(a,RELATIVE_TIME_FORMAT_OPTIONS,l);return t(r,s)}function formatRelativeTime(e,t,a,r,i){if(i===void 0){i={}}if(!r){r="second"}var n=Intl.RelativeTimeFormat;if(!n){e.onError(new FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ErrorCode.MISSING_INTL_API))}try{return getFormatter$1(e,t,i).format(a,r)}catch(t){e.onError(new IntlFormatError("Error formatting relative time.",e.locale,t))}return String(a)}var NUMBER_FORMAT_OPTIONS=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function getFormatter(e,t,a){var r=e.locale,i=e.formats,n=e.onError;if(a===void 0){a={}}var o=a.format;var l=o&&getNamedFormat(i,"number",o,n)||{};var s=filterProps(a,NUMBER_FORMAT_OPTIONS,l);return t(r,s)}function formatNumber(e,t,a,r){if(r===void 0){r={}}try{return getFormatter(e,t,r).format(a)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting number.",t))}return String(a)}function formatNumberToParts(e,t,a,r){if(r===void 0){r={}}try{return getFormatter(e,t,r).formatToParts(a)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting number.",t))}return[]}function messagesContainString(e){var t=e?e[Object.keys(e)[0]]:undefined;return typeof t==="string"}function verifyConfigMessages(e){if(e.defaultRichTextElements&&messagesContainString(e.messages||{})){console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}}function createIntl(e,t){var a=createFormatters(t);var r=__assign(__assign({},DEFAULT_INTL_CONFIG),e);var i=r.locale,n=r.defaultLocale,o=r.onError;if(!i){if(o){o(new InvalidConfigError('"locale" was not configured, using "'.concat(n,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')))}r.locale=r.defaultLocale||"en"}else if(!Intl.NumberFormat.supportedLocalesOf(i).length&&o){o(new MissingDataError('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(n,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')))}else if(!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o){o(new MissingDataError('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(n,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')))}verifyConfigMessages(r);return __assign(__assign({},r),{formatters:a,formatNumber:formatNumber.bind(null,r,a.getNumberFormat),formatNumberToParts:formatNumberToParts.bind(null,r,a.getNumberFormat),formatRelativeTime:formatRelativeTime.bind(null,r,a.getRelativeTimeFormat),formatDate:formatDate.bind(null,r,a.getDateTimeFormat),formatDateToParts:formatDateToParts.bind(null,r,a.getDateTimeFormat),formatTime:formatTime.bind(null,r,a.getDateTimeFormat),formatDateTimeRange:formatDateTimeRange.bind(null,r,a.getDateTimeFormat),formatTimeToParts:formatTimeToParts.bind(null,r,a.getDateTimeFormat),formatPlural:formatPlural.bind(null,r,a.getPluralRules),formatMessage:formatMessage.bind(null,r,a),formatList:formatList.bind(null,r,a.getListFormat),formatListToParts:formatListToParts.bind(null,r,a.getListFormat),formatDisplayName:formatDisplayName.bind(null,r,a.getDisplayNames)})}var DEFAULT_LANGUAGE="en";function getBrowserLang(){var e=document.documentElement.getAttribute("lang");if(!!e){return e}else if(window.navigator&&window.navigator.language){var t=window.navigator.languages?window.navigator.languages[0]:window.navigator.language;return t.slice(0,2)}else{return DEFAULT_LANGUAGE}}var cache=createIntlCache();var locale=getBrowserLang();var intl=createIntl({locale:locale,defaultLocale:"en",messages:lang[locale]||en},cache);function generateId(){return"wmcl-"+Math.random().toString(36).substr(2,10)}function throttle(e,t){var a;var r=false;return function(){var i=this;if(!r){e.apply(i,arguments);r=true;clearTimeout(a);a=setTimeout((function(){r=false}),t)}}}function debounce(e,t){var a;return function(){var r=this;var i=function(){return e.apply(r,arguments)};clearTimeout(a);a=setTimeout(i,t)}}function getTextDir(){var e=document.querySelector("html").getAttribute("dir");return e?e.toLowerCase():""}function getPosition(e){var t=e.getBoundingClientRect();var a=t.x;var r=t.y;if(!a){if(getTextDir()==="rtl"){a=t.right}else{a=t.left}r=t.top}return{x:a,y:r}}function findParentWithScrollbar(e){while(!!e){if(e.scrollHeight>e.clientHeight&&["scroll","auto"].includes(window.getComputedStyle(e).overflowY)){return e}e=e.parentElement}}function findParentWithHiddenOverflow(e){while(!!e){if(window.getComputedStyle(e).overflowY!=="visible"){return e}e=e.parentElement}}function getClosableElementMeasurements(e,t){var a=findParentWithHiddenOverflow(e);return{closableElHeight:t.clientHeight,closableElWidth:t.clientWidth,spaceAbove:a?e.getBoundingClientRect().top-a.getBoundingClientRect().top:e.getBoundingClientRect().top,spaceBelow:a?a.getBoundingClientRect().bottom-e.getBoundingClientRect().bottom:document.documentElement.clientHeight-e.getBoundingClientRect().bottom,spaceLeft:a?e.getBoundingClientRect().left-a.getBoundingClientRect().left:e.getBoundingClientRect().left,spaceRight:a?a.getBoundingClientRect().right-e.getBoundingClientRect().right:document.documentElement.clientWidth-e.getBoundingClientRect().right}}function shouldOpenUp(e,t,a,r){if(a===void 0){a=0}if(r===void 0){r=0}var i=getClosableElementMeasurements(e,t),n=i.closableElHeight,o=i.spaceAbove,l=i.spaceBelow;var s=n>l+r&&n<=o+a;return s}function shouldOpenDown(e,t,a,r){if(a===void 0){a=0}if(r===void 0){r=0}var i=getClosableElementMeasurements(e,t),n=i.closableElHeight,o=i.spaceAbove,l=i.spaceBelow;var s=n>o+a&&n<=l+r;return s}function shouldShiftRight(e,t){var a=getClosableElementMeasurements(e,t),r=a.closableElWidth,i=a.spaceLeft,n=a.spaceRight;var o=r>i&&n>i;return o}function shouldShiftLeft(e,t){var a=getClosableElementMeasurements(e,t),r=a.closableElWidth,i=a.spaceLeft,n=a.spaceRight;var o=r>n&&i>n;return o}function adjustTooltipPosition(e,t,a){a.style.top="";a.style.left="";var r=getClosableElementMeasurements(t,a),i=r.spaceLeft,n=r.spaceRight,o=r.spaceBelow,l=r.spaceAbove;var s=a.getBoundingClientRect().width;var u=a.getBoundingClientRect().height;var c=l>u;var p=o>u;var y=i-24>s;var d=n-24>s;var v=function(e){return!c?e.replace("top","bottom"):e};var m=function(e){return!p&&c?e.replace("bottom","top"):e};var f=function(e,t){if(!y&&d){e=e.replace("left","right")}else if(!y&&!d){e=t}return e};var h=function(e,t){if(!d&&y){e=e.replace("right","left")}else if(!d&&!y){e=t}return e};switch(e){case"left":e=f(e,"bottom");case"right":e=h(e,"bottom");case"top-left":e=f(e,"top");e=v(e);case"top-right":e=h(e,"top");e=v(e);case"bottom-left":e=f(e,"bottom");e=m(e);case"bottom-right":e=h(e,"bottom");e=m(e);case"top":e=v(e);case"bottom":e=m(e)}return e}function hasRoomRight(e,t){var a=0;if(e.type==="click"){a=e.clientX}else if(e.type==="focus"){a=0}else{var r=e;while(r){if(r.tagName=="BODY"){var i=r.scrollLeft||document.documentElement.scrollLeft;a+=r.offsetLeft-i+r.clientLeft}else{a+=r.offsetLeft-r.scrollLeft+r.clientLeft}r=r.offsetParent}}return window.innerWidth-a>=t}function checkForActiveElInShadow(e){while(e&&e.shadowRoot){e=e.shadowRoot.activeElement}return e}function checkForFocusableElInShadow(e){var t=["button","a","input","select","textarea","wm-button","wm-search","wm-select","wm-action-menu","wm-tab-item","wm-datepicker"];var a=e;t.forEach((function(e){if(a&&a.shadowRoot){var t=a.shadowRoot.querySelector(e);if(t){if(e.startsWith("wm-")){a=checkForFocusableElInShadow(t)}else{a=t}}}}));return a}function isFocusable(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null){return true}if(e.disabled){return false}switch(e.nodeName){case"A":return!!e.href&&e.rel!="ignore";case"INPUT":return e.type!="hidden"&&e.type!="file";case"BUTTON":case"SELECT":case"TEXTAREA":case"WM-BUTTON":case"WM-SELECT":case"WM-ACTION-MENU":case"WM-DATEPICKER":case"WM-TIMEPICKER":case"WM-INPUT":case"WM-TAG-INPUT":case"WM-TAB-ITEM":case"WM-SEARCH":return true;default:return false}}function getFirstFocusableDescendant(e){if(isFocusable(e)){return checkForFocusableElInShadow(e)}else if(e.childNodes.length>0){e.childNodes.forEach((function(e){var t=getFirstFocusableDescendant(e);return t&&checkForFocusableElInShadow(t)}))}}function hasValidType(e,t){var a=t.split(" ");var r=e.name&&e.name.split(".");var i=r&&r.length>1&&r[r.length-1];return i?a.includes(i.toLowerCase()):!!e.type?getAcceptedMimeTypesList(a).includes(e.type):true}function getAcceptedMimeTypesList(e){var t={aac:["audio/aac"],abw:["application/x-abiword"],arc:["application/x-freearc"],avi:["video/x-msvideo"],azw:["application/vnd.amazon.ebook"],bin:["application/octet-stream"],bmp:["image/bmp"],bz:["application/x-bzip"],bz2:["application/x-bzip2"],csh:["application/x-csh"],css:["text/css"],csv:["text/csv"],doc:["application/msword"],docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],eot:["application/vnd.ms-fontobject"],epub:["application/epub+zip"],gz:["application/gzip"],gif:["image/gif"],htm:["text/html"],html:["text/html"],ico:["image/vnd.microsoft.icon"],ics:["text/calendar"],jar:["application/java-archive"],jpeg:["image/jpeg"],jpg:["image/jpeg"],js:["text/javascript"],json:["application/json"],jsonld:["application/ld+json"],log:["text/plain"],mid:["audio/x-midi"],midi:["audio/x-midi"],mjs:["text/javascript"],mp3:["audio/mpeg"],mpeg:["video/mpeg"],mpkg:["application/vnd.apple.installer+xml"],odp:["application/vnd.oasis.opendocument.presentation"],ods:["application/vnd.oasis.opendocument.spreadsheet"],odt:["application/vnd.oasis.opendocument.text"],oga:["audio/ogg"],ogv:["video/ogg"],ogx:["application/ogg"],opus:["audio/opus"],otf:["font/otf"],png:["image/png"],pdf:["application/pdf"],php:["application/php"],ppt:["application/vnd.ms-powerpoint"],pptx:["application/vnd.openxmlformats-officedocument.presentationml.presentation"],rar:["application/vnd.rar","application/x-rar","application/x-rar-compressed"],rtf:["application/rtf"],sh:["application/x-sh"],svg:["image/svg+xml"],swf:["application/x-shockwave-flash"],tar:["application/x-tar"],tif:["image/tiff"],tiff:["image/tiff"],ts:["video/mp2t"],ttf:["font/ttf"],txt:["text/plain"],vsd:["application/vnd.visio"],wav:["audio/wav"],weba:["audio/webm"],webm:["video/webm"],webp:["image/webp"],woff:["font/woff"],woff2:["font/woff2"],xhtml:["application/xhtml+xml"],xls:["application/vnd.ms-excel"],xlsx:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],xml:["application/xml","text/xml"],xul:["application/vnd.mozilla.xul+xml"],zip:["application/zip","application/x-zip-compressed","multipart/x-zip"],"3gp":["video/3gpp","audio/3gpp"],"3g2":["video/3gpp2","audio/3gpp2"],"7z":["application/x-7z-compressed"]};return e.reduce((function(e,a){return e.concat(t[a])}),[])}function snakeCaseToCamelCase(e){var t=/^([a-z0-9]*)(_[a-z0-9]*)*$/g;if(t.test(e)){var a="";var r=e.split("_");r.forEach((function(e,t){a+=t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1)}));return a}else{return e}}function getNewIndexToFocus(e,t,a){var r=e;if(t==="ArrowDown"){r=(e+1)%a}if(t==="ArrowUp"){r=e===0?a-1:e-1}return r}function isRelatedTarget(e,t){var a=t.split(" ");return e.relatedTarget&&a.includes(e.relatedTarget.id)}function toBool(e){return e=="false"?false:!!e}export{adjustTooltipPosition as a,getPosition as b,checkForActiveElInShadow as c,debounce as d,isRelatedTarget as e,findParentWithScrollbar as f,generateId as g,checkForFocusableElInShadow as h,intl as i,getFirstFocusableDescendant as j,getNewIndexToFocus as k,shouldOpenUp as l,shouldOpenDown as m,shouldShiftRight as n,shouldShiftLeft as o,hasValidType as p,getTextDir as q,throttle as r,snakeCaseToCamelCase as s,toBool as t,hasRoomRight as u};
15
+ ***************************************************************************** */var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]};return extendStatics(e,t)};function __extends(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var __assign=function(){__assign=Object.assign||function e(t){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n))t[n]=a[n]}return t};return __assign.apply(this,arguments)};function __spreadArray(e,t,a){if(a||arguments.length===2)for(var r=0,i=t.length,n;r<i;r++){if(n||!(r in t)){if(!n)n=Array.prototype.slice.call(t,0,r);n[r]=t[r]}}return e.concat(n||Array.prototype.slice.call(t))}var ErrorKind;(function(e){e[e["EXPECT_ARGUMENT_CLOSING_BRACE"]=1]="EXPECT_ARGUMENT_CLOSING_BRACE";e[e["EMPTY_ARGUMENT"]=2]="EMPTY_ARGUMENT";e[e["MALFORMED_ARGUMENT"]=3]="MALFORMED_ARGUMENT";e[e["EXPECT_ARGUMENT_TYPE"]=4]="EXPECT_ARGUMENT_TYPE";e[e["INVALID_ARGUMENT_TYPE"]=5]="INVALID_ARGUMENT_TYPE";e[e["EXPECT_ARGUMENT_STYLE"]=6]="EXPECT_ARGUMENT_STYLE";e[e["INVALID_NUMBER_SKELETON"]=7]="INVALID_NUMBER_SKELETON";e[e["INVALID_DATE_TIME_SKELETON"]=8]="INVALID_DATE_TIME_SKELETON";e[e["EXPECT_NUMBER_SKELETON"]=9]="EXPECT_NUMBER_SKELETON";e[e["EXPECT_DATE_TIME_SKELETON"]=10]="EXPECT_DATE_TIME_SKELETON";e[e["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"]=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";e[e["EXPECT_SELECT_ARGUMENT_OPTIONS"]=12]="EXPECT_SELECT_ARGUMENT_OPTIONS";e[e["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"]=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";e[e["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"]=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";e[e["EXPECT_SELECT_ARGUMENT_SELECTOR"]=15]="EXPECT_SELECT_ARGUMENT_SELECTOR";e[e["EXPECT_PLURAL_ARGUMENT_SELECTOR"]=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR";e[e["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"]=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";e[e["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"]=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";e[e["INVALID_PLURAL_ARGUMENT_SELECTOR"]=19]="INVALID_PLURAL_ARGUMENT_SELECTOR";e[e["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"]=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR";e[e["DUPLICATE_SELECT_ARGUMENT_SELECTOR"]=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR";e[e["MISSING_OTHER_CLAUSE"]=22]="MISSING_OTHER_CLAUSE";e[e["INVALID_TAG"]=23]="INVALID_TAG";e[e["INVALID_TAG_NAME"]=25]="INVALID_TAG_NAME";e[e["UNMATCHED_CLOSING_TAG"]=26]="UNMATCHED_CLOSING_TAG";e[e["UNCLOSED_TAG"]=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(e){e[e["literal"]=0]="literal";e[e["argument"]=1]="argument";e[e["number"]=2]="number";e[e["date"]=3]="date";e[e["time"]=4]="time";e[e["select"]=5]="select";e[e["plural"]=6]="plural";e[e["pound"]=7]="pound";e[e["tag"]=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(e){e[e["number"]=0]="number";e[e["dateTime"]=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(e){return e.type===TYPE.literal}function isArgumentElement(e){return e.type===TYPE.argument}function isNumberElement(e){return e.type===TYPE.number}function isDateElement(e){return e.type===TYPE.date}function isTimeElement(e){return e.type===TYPE.time}function isSelectElement(e){return e.type===TYPE.select}function isPluralElement(e){return e.type===TYPE.plural}function isPoundElement(e){return e.type===TYPE.pound}function isTagElement(e){return e.type===TYPE.tag}function isNumberSkeleton(e){return!!(e&&typeof e==="object"&&e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(e){return!!(e&&typeof e==="object"&&e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(e){var t={};e.replace(DATE_TIME_REGEX,(function(e){var a=e.length;switch(e[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"short":a===5?"narrow":"short";break;case"e":if(a<4){throw new RangeError("`e..eee` (weekday) patterns are not supported")}t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4){throw new RangeError("`c..ccc` (weekday) patterns are not supported")}t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=true;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12";t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23";t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11";t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24";t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}));return t}var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(e){if(e.length===0){throw new Error("Number skeleton cannot be empty")}var t=e.split(WHITE_SPACE_REGEX).filter((function(e){return e.length>0}));var a=[];for(var r=0,i=t;r<i.length;r++){var n=i[r];var o=n.split("/");if(o.length===0){throw new Error("Invalid number skeleton")}var l=o[0],s=o.slice(1);for(var u=0,c=s;u<c.length;u++){var p=c[u];if(p.length===0){throw new Error("Invalid number skeleton")}}a.push({stem:l,options:s})}return a}function icuUnitToEcma(e){return e.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;var SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g;var INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g;var CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(e){var t={};if(e[e.length-1]==="r"){t.roundingPriority="morePrecision"}else if(e[e.length-1]==="s"){t.roundingPriority="lessPrecision"}e.replace(SIGNIFICANT_PRECISION_REGEX,(function(e,a,r){if(typeof r!=="string"){t.minimumSignificantDigits=a.length;t.maximumSignificantDigits=a.length}else if(r==="+"){t.minimumSignificantDigits=a.length}else if(a[0]==="#"){t.maximumSignificantDigits=a.length}else{t.minimumSignificantDigits=a.length;t.maximumSignificantDigits=a.length+(typeof r==="string"?r.length:0)}return""}));return t}function parseSign(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(e){var t;if(e[0]==="E"&&e[1]==="E"){t={notation:"engineering"};e=e.slice(2)}else if(e[0]==="E"){t={notation:"scientific"};e=e.slice(1)}if(t){var a=e.slice(0,2);if(a==="+!"){t.signDisplay="always";e=e.slice(2)}else if(a==="+?"){t.signDisplay="exceptZero";e=e.slice(2)}if(!CONCISE_INTEGER_WIDTH_REGEX.test(e)){throw new Error("Malformed concise eng/scientific notation")}t.minimumIntegerDigits=e.length}return t}function parseNotationOptions(e){var t={};var a=parseSign(e);if(a){return a}return t}function parseNumberSkeleton(e){var t={};for(var a=0,r=e;a<r.length;a++){var i=r[a];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent";t.scale=100;continue;case"currency":t.style="currency";t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=false;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit";t.unit=icuUnitToEcma(i.options[0]);continue;case"compact-short":case"K":t.notation="compact";t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact";t.compactDisplay="long";continue;case"scientific":t=__assign(__assign(__assign({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return __assign(__assign({},e),parseNotationOptions(t))}),{}));continue;case"engineering":t=__assign(__assign(__assign({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return __assign(__assign({},e),parseNotationOptions(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol";t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code";t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name";t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1){throw new RangeError("integer-width stems only accept a single optional option")}i.options[0].replace(INTEGER_WIDTH_REGEX,(function(e,a,r,i,n,o){if(a){t.minimumIntegerDigits=r.length}else if(i&&n){throw new Error("We currently do not support maximum integer digits")}else if(o){throw new Error("We currently do not support exact integer digits")}return""}));continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(i.stem)){if(i.options.length>1){throw new RangeError("Fraction-precision stems only accept a single optional option")}i.stem.replace(FRACTION_PRECISION_REGEX,(function(e,a,r,i,n,o){if(r==="*"){t.minimumFractionDigits=a.length}else if(i&&i[0]==="#"){t.maximumFractionDigits=i.length}else if(n&&o){t.minimumFractionDigits=n.length;t.maximumFractionDigits=n.length+o.length}else{t.minimumFractionDigits=a.length;t.maximumFractionDigits=a.length}return""}));var n=i.options[0];if(n==="w"){t=__assign(__assign({},t),{trailingZeroDisplay:"stripIfInteger"})}else if(n){t=__assign(__assign({},t),parseSignificantPrecision(n))}continue}if(SIGNIFICANT_PRECISION_REGEX.test(i.stem)){t=__assign(__assign({},t),parseSignificantPrecision(i.stem));continue}var o=parseSign(i.stem);if(o){t=__assign(__assign({},t),o)}var l=parseConciseScientificAndEngineeringStem(i.stem);if(l){t=__assign(__assign({},t),l)}}return t}var _a;var SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*"));var SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(e,t){return{start:e,end:t}}var hasNativeStartsWith=!!String.prototype.startsWith;var hasNativeFromCodePoint=!!String.fromCodePoint;var hasNativeFromEntries=!!Object.fromEntries;var hasNativeCodePointAt=!!String.prototype.codePointAt;var hasTrimStart=!!String.prototype.trimStart;var hasTrimEnd=!!String.prototype.trimEnd;var hasNativeIsSafeInteger=!!Number.isSafeInteger;var isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991};var REGEX_SUPPORTS_U_AND_Y=true;try{var re=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a=re.exec("a"))===null||_a===void 0?void 0:_a[0])==="a"}catch(e){REGEX_SUPPORTS_U_AND_Y=false}var startsWith=hasNativeStartsWith?function e(t,a,r){return t.startsWith(a,r)}:function e(t,a,r){return t.slice(r,r+a.length)===a};var fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function e(){var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}var r="";var i=t.length;var n=0;var o;while(i>n){o=t[n++];if(o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r};var fromEntries=hasNativeFromEntries?Object.fromEntries:function e(t){var a={};for(var r=0,i=t;r<i.length;r++){var n=i[r],o=n[0],l=n[1];a[o]=l}return a};var codePointAt=hasNativeCodePointAt?function e(t,a){return t.codePointAt(a)}:function e(t,a){var r=t.length;if(a<0||a>=r){return undefined}var i=t.charCodeAt(a);var n;return i<55296||i>56319||a+1===r||(n=t.charCodeAt(a+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536};var trimStart=hasTrimStart?function e(t){return t.trimStart()}:function e(t){return t.replace(SPACE_SEPARATOR_START_REGEX,"")};var trimEnd=hasTrimEnd?function e(t){return t.trimEnd()}:function e(t){return t.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(e,t){return new RegExp(e,t)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function e(t,a){var r;IDENTIFIER_PREFIX_RE_1.lastIndex=a;var i=IDENTIFIER_PREFIX_RE_1.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else{matchIdentifierAtIndex=function e(t,a){var r=[];while(true){var i=codePointAt(t,a);if(i===undefined||_isWhiteSpace(i)||_isPatternSyntax(i)){break}r.push(i);a+=i>=65536?2:1}return fromCodePoint.apply(void 0,r)}}var Parser=function(){function e(e,t){if(t===void 0){t={}}this.message=e;this.position={offset:0,line:1,column:1};this.ignoreTag=!!t.ignoreTag;this.requiresOtherClause=!!t.requiresOtherClause;this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(this.offset()!==0){throw Error("parser can only be used once")}return this.parseMessage(0,"",false)};e.prototype.parseMessage=function(e,t,a){var r=[];while(!this.isEOF()){var i=this.char();if(i===123){var n=this.parseArgument(e,a);if(n.err){return n}r.push(n.val)}else if(i===125&&e>0){break}else if(i===35&&(t==="plural"||t==="selectordinal")){var o=this.clonePosition();this.bump();r.push({type:TYPE.pound,location:createLocation(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(a){break}else{return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}}else if(i===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var n=this.parseTag(e,t);if(n.err){return n}r.push(n.val)}else{var n=this.parseLiteral(e,t);if(n.err){return n}r.push(n.val)}}return{val:r,err:null}};e.prototype.parseTag=function(e,t){var a=this.clonePosition();this.bump();var r=this.parseTagName();this.bumpSpace();if(this.bumpIf("/>")){return{val:{type:TYPE.literal,value:"<".concat(r,"/>"),location:createLocation(a,this.clonePosition())},err:null}}else if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,true);if(i.err){return i}var n=i.val;var o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char())){return this.error(ErrorKind.INVALID_TAG,createLocation(o,this.clonePosition()))}var l=this.clonePosition();var s=this.parseTagName();if(r!==s){return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(l,this.clonePosition()))}this.bumpSpace();if(!this.bumpIf(">")){return this.error(ErrorKind.INVALID_TAG,createLocation(o,this.clonePosition()))}return{val:{type:TYPE.tag,value:r,children:n,location:createLocation(a,this.clonePosition())},err:null}}else{return this.error(ErrorKind.UNCLOSED_TAG,createLocation(a,this.clonePosition()))}}else{return this.error(ErrorKind.INVALID_TAG,createLocation(a,this.clonePosition()))}};e.prototype.parseTagName=function(){var e=this.offset();this.bump();while(!this.isEOF()&&_isPotentialElementNameChar(this.char())){this.bump()}return this.message.slice(e,this.offset())};e.prototype.parseLiteral=function(e,t){var a=this.clonePosition();var r="";while(true){var i=this.tryParseQuote(t);if(i){r+=i;continue}var n=this.tryParseUnquoted(e,t);if(n){r+=n;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var l=createLocation(a,this.clonePosition());return{val:{type:TYPE.literal,value:r,location:l},err:null}};e.prototype.tryParseLeftAngleBracket=function(){if(!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))){this.bump();return"<"}return null};e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39){return null}switch(this.peek()){case 39:this.bump();this.bump();return"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal"){break}return null;default:return null}this.bump();var t=[this.char()];this.bump();while(!this.isEOF()){var a=this.char();if(a===39){if(this.peek()===39){t.push(39);this.bump()}else{this.bump();break}}else{t.push(a)}this.bump()}return fromCodePoint.apply(void 0,t)};e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF()){return null}var a=this.char();if(a===60||a===123||a===35&&(t==="plural"||t==="selectordinal")||a===125&&e>0){return null}else{this.bump();return fromCodePoint(a)}};e.prototype.parseArgument=function(e,t){var a=this.clonePosition();this.bump();this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}if(this.char()===125){this.bump();return this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(a,this.clonePosition()))}var r=this.parseIdentifierIfPossible().value;if(!r){return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(a,this.clonePosition()))}this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}switch(this.char()){case 125:{this.bump();return{val:{type:TYPE.argument,value:r,location:createLocation(a,this.clonePosition())},err:null}}case 44:{this.bump();this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}return this.parseArgumentOptions(e,t,r,a)}default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(a,this.clonePosition()))}};e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition();var t=this.offset();var a=matchIdentifierAtIndex(this.message,t);var r=t+a.length;this.bumpTo(r);var i=this.clonePosition();var n=createLocation(e,i);return{value:a,location:n}};e.prototype.parseArgumentOptions=function(e,t,a,r){var i;var n=this.clonePosition();var o=this.parseIdentifierIfPossible().value;var l=this.clonePosition();switch(o){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(n,l));case"number":case"date":case"time":{this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();var c=this.parseSimpleArgStyleIfPossible();if(c.err){return c}var p=trimEnd(c.val);if(p.length===0){return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()))}var y=createLocation(u,this.clonePosition());s={style:p,styleLocation:y}}var d=this.tryParseArgumentClose(r);if(d.err){return d}var v=createLocation(r,this.clonePosition());if(s&&startsWith(s===null||s===void 0?void 0:s.style,"::",0)){var m=trimStart(s.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(m,s.styleLocation);if(c.err){return c}return{val:{type:TYPE.number,value:a,location:v,style:c.val},err:null}}else{if(m.length===0){return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,v)}var p={type:SKELETON_TYPE.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(m):{}};var f=o==="date"?TYPE.date:TYPE.time;return{val:{type:f,value:a,location:v,style:p},err:null}}}return{val:{type:o==="number"?TYPE.number:o==="date"?TYPE.date:TYPE.time,value:a,location:v,style:(i=s===null||s===void 0?void 0:s.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var h=this.clonePosition();this.bumpSpace();if(!this.bumpIf(",")){return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(h,__assign({},h)))}this.bumpSpace();var g=this.parseIdentifierIfPossible();var E=0;if(o!=="select"&&g.value==="offset"){if(!this.bumpIf(":")){return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()))}this.bumpSpace();var c=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err){return c}this.bumpSpace();g=this.parseIdentifierIfPossible();E=c.val}var T=this.tryParsePluralOrSelectOptions(e,o,t,g);if(T.err){return T}var d=this.tryParseArgumentClose(r);if(d.err){return d}var _=createLocation(r,this.clonePosition());if(o==="select"){return{val:{type:TYPE.select,value:a,options:fromEntries(T.val),location:_},err:null}}else{return{val:{type:TYPE.plural,value:a,options:fromEntries(T.val),offset:E,pluralType:o==="plural"?"cardinal":"ordinal",location:_},err:null}}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(n,l))}};e.prototype.tryParseArgumentClose=function(e){if(this.isEOF()||this.char()!==125){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(e,this.clonePosition()))}this.bump();return{val:true,err:null}};e.prototype.parseSimpleArgStyleIfPossible=function(){var e=0;var t=this.clonePosition();while(!this.isEOF()){var a=this.char();switch(a){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'")){return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(r,this.clonePosition()))}this.bump();break}case 123:{e+=1;this.bump();break}case 125:{if(e>0){e-=1}else{return{val:this.message.slice(t.offset,this.offset()),err:null}}break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}};e.prototype.parseNumberSkeletonFromString=function(e,t){var a=[];try{a=parseNumberSkeletonFromString(e)}catch(e){return this.error(ErrorKind.INVALID_NUMBER_SKELETON,t)}return{val:{type:SKELETON_TYPE.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(a):{}},err:null}};e.prototype.tryParsePluralOrSelectOptions=function(e,t,a,r){var i;var n=false;var o=[];var l=new Set;var s=r.value,u=r.location;while(true){if(s.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err){return p}u=createLocation(c,this.clonePosition());s=this.message.slice(c.offset,this.offset())}else{break}}if(l.has(s)){return this.error(t==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u)}if(s==="other"){n=true}this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{")){return this.error(t==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()))}var d=this.parseMessage(e+1,t,a);if(d.err){return d}var v=this.tryParseArgumentClose(y);if(v.err){return v}o.push([s,{value:d.val,location:createLocation(y,this.clonePosition())}]);l.add(s);this.bumpSpace();i=this.parseIdentifierIfPossible(),s=i.value,u=i.location}if(o.length===0){return this.error(t==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition()))}if(this.requiresOtherClause&&!n){return this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition()))}return{val:o,err:null}};e.prototype.tryParseDecimalInteger=function(e,t){var a=1;var r=this.clonePosition();if(this.bumpIf("+"));else if(this.bumpIf("-")){a=-1}var i=false;var n=0;while(!this.isEOF()){var o=this.char();if(o>=48&&o<=57){i=true;n=n*10+(o-48);this.bump()}else{break}}var l=createLocation(r,this.clonePosition());if(!i){return this.error(e,l)}n*=a;if(!isSafeInteger(n)){return this.error(t,l)}return{val:n,err:null}};e.prototype.offset=function(){return this.position.offset};e.prototype.isEOF=function(){return this.offset()===this.message.length};e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}};e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length){throw Error("out of bound")}var t=codePointAt(this.message,e);if(t===undefined){throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"))}return t};e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}};e.prototype.bump=function(){if(this.isEOF()){return}var e=this.char();if(e===10){this.position.line+=1;this.position.column=1;this.position.offset+=1}else{this.position.column+=1;this.position.offset+=e<65536?1:2}};e.prototype.bumpIf=function(e){if(startsWith(this.message,e,this.offset())){for(var t=0;t<e.length;t++){this.bump()}return true}return false};e.prototype.bumpUntil=function(e){var t=this.offset();var a=this.message.indexOf(e,t);if(a>=0){this.bumpTo(a);return true}else{this.bumpTo(this.message.length);return false}};e.prototype.bumpTo=function(e){if(this.offset()>e){throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()))}e=Math.min(e,this.message.length);while(true){var t=this.offset();if(t===e){break}if(t>e){throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"))}this.bump();if(this.isEOF()){break}}};e.prototype.bumpSpace=function(){while(!this.isEOF()&&_isWhiteSpace(this.char())){this.bump()}};e.prototype.peek=function(){if(this.isEOF()){return null}var e=this.char();var t=this.offset();var a=this.message.charCodeAt(t+(e>=65536?2:1));return a!==null&&a!==void 0?a:null};return e}();function _isAlpha(e){return e>=97&&e<=122||e>=65&&e<=90}function _isAlphaOrSlash(e){return _isAlpha(e)||e===47}function _isPotentialElementNameChar(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function _isWhiteSpace(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function _isPatternSyntax(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pruneLocation(e){e.forEach((function(e){delete e.location;if(isSelectElement(e)||isPluralElement(e)){for(var t in e.options){delete e.options[t].location;pruneLocation(e.options[t].value)}}else if(isNumberElement(e)&&isNumberSkeleton(e.style)){delete e.style.location}else if((isDateElement(e)||isTimeElement(e))&&isDateTimeSkeleton(e.style)){delete e.style.location}else if(isTagElement(e)){pruneLocation(e.children)}}))}function parse(e,t){if(t===void 0){t={}}t=__assign({shouldParseSkeletons:true,requiresOtherClause:true},t);var a=new Parser(e,t).parse();if(a.err){var r=SyntaxError(ErrorKind[a.err.kind]);r.location=a.err.location;r.originalMessage=a.err.message;throw r}if(!(t===null||t===void 0?void 0:t.captureLocation)){pruneLocation(a.val)}return a.val}function memoize(e,t){var a=t&&t.cache?t.cache:cacheDefault;var r=t&&t.serializer?t.serializer:serializerDefault;var i=t&&t.strategy?t.strategy:strategyDefault;return i(e,{cache:a,serializer:r})}function isPrimitive(e){return e==null||typeof e==="number"||typeof e==="boolean"}function monadic(e,t,a,r){var i=isPrimitive(r)?r:a(r);var n=t.get(i);if(typeof n==="undefined"){n=e.call(this,r);t.set(i,n)}return n}function variadic(e,t,a){var r=Array.prototype.slice.call(arguments,3);var i=a(r);var n=t.get(i);if(typeof n==="undefined"){n=e.apply(this,r);t.set(i,n)}return n}function assemble(e,t,a,r,i){return a.bind(t,e,r,i)}function strategyDefault(e,t){var a=e.length===1?monadic:variadic;return assemble(e,this,a,t.cache.create(),t.serializer)}function strategyVariadic(e,t){return assemble(e,this,variadic,t.cache.create(),t.serializer)}function strategyMonadic(e,t){return assemble(e,this,monadic,t.cache.create(),t.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(e){return this.cache[e]};ObjectWithoutPrototypeCache.prototype.set=function(e,t){this.cache[e]=t};var cacheDefault={create:function e(){return new ObjectWithoutPrototypeCache}};var strategies={variadic:strategyVariadic,monadic:strategyMonadic};var ErrorCode;(function(e){e["MISSING_VALUE"]="MISSING_VALUE";e["INVALID_VALUE"]="INVALID_VALUE";e["MISSING_INTL_API"]="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=function(e){__extends(t,e);function t(t,a,r){var i=e.call(this,t)||this;i.code=a;i.originalMessage=r;return i}t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};return t}(Error);var InvalidValueError=function(e){__extends(t,e);function t(t,a,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(a,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ErrorCode.INVALID_VALUE,i)||this}return t}(FormatError);var InvalidValueTypeError=function(e){__extends(t,e);function t(t,a,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(a),ErrorCode.INVALID_VALUE,r)||this}return t}(FormatError);var MissingValueError=function(e){__extends(t,e);function t(t,a){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(a,'"'),ErrorCode.MISSING_VALUE,a)||this}return t}(FormatError);var PART_TYPE;(function(e){e[e["literal"]=0]="literal";e[e["object"]=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(e){if(e.length<2){return e}return e.reduce((function(e,t){var a=e[e.length-1];if(!a||a.type!==PART_TYPE.literal||t.type!==PART_TYPE.literal){e.push(t)}else{a.value+=t.value}return e}),[])}function isFormatXMLElementFn(e){return typeof e==="function"}function formatToParts(e,t,a,r,i,n,o){if(e.length===1&&isLiteralElement(e[0])){return[{type:PART_TYPE.literal,value:e[0].value}]}var l=[];for(var s=0,u=e;s<u.length;s++){var c=u[s];if(isLiteralElement(c)){l.push({type:PART_TYPE.literal,value:c.value});continue}if(isPoundElement(c)){if(typeof n==="number"){l.push({type:PART_TYPE.literal,value:a.getNumberFormat(t).format(n)})}continue}var p=c.value;if(!(i&&p in i)){throw new MissingValueError(p,o)}var y=i[p];if(isArgumentElement(c)){if(!y||typeof y==="string"||typeof y==="number"){y=typeof y==="string"||typeof y==="number"?String(y):""}l.push({type:typeof y==="string"?PART_TYPE.literal:PART_TYPE.object,value:y});continue}if(isDateElement(c)){var d=typeof c.style==="string"?r.date[c.style]:isDateTimeSkeleton(c.style)?c.style.parsedOptions:undefined;l.push({type:PART_TYPE.literal,value:a.getDateTimeFormat(t,d).format(y)});continue}if(isTimeElement(c)){var d=typeof c.style==="string"?r.time[c.style]:isDateTimeSkeleton(c.style)?c.style.parsedOptions:r.time.medium;l.push({type:PART_TYPE.literal,value:a.getDateTimeFormat(t,d).format(y)});continue}if(isNumberElement(c)){var d=typeof c.style==="string"?r.number[c.style]:isNumberSkeleton(c.style)?c.style.parsedOptions:undefined;if(d&&d.scale){y=y*(d.scale||1)}l.push({type:PART_TYPE.literal,value:a.getNumberFormat(t,d).format(y)});continue}if(isTagElement(c)){var v=c.children,m=c.value;var f=i[m];if(!isFormatXMLElementFn(f)){throw new InvalidValueTypeError(m,"function",o)}var h=formatToParts(v,t,a,r,i,n);var g=f(h.map((function(e){return e.value})));if(!Array.isArray(g)){g=[g]}l.push.apply(l,g.map((function(e){return{type:typeof e==="string"?PART_TYPE.literal:PART_TYPE.object,value:e}})))}if(isSelectElement(c)){var E=c.options[y]||c.options.other;if(!E){throw new InvalidValueError(c.value,y,Object.keys(c.options),o)}l.push.apply(l,formatToParts(E.value,t,a,r,i));continue}if(isPluralElement(c)){var E=c.options["=".concat(y)];if(!E){if(!Intl.PluralRules){throw new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ErrorCode.MISSING_INTL_API,o)}var T=a.getPluralRules(t,{type:c.pluralType}).select(y-(c.offset||0));E=c.options[T]||c.options.other}if(!E){throw new InvalidValueError(c.value,y,Object.keys(c.options),o)}l.push.apply(l,formatToParts(E.value,t,a,r,i,y-(c.offset||0)));continue}}return mergeLiteral(l)}function mergeConfig(e,t){if(!t){return e}return __assign(__assign(__assign({},e||{}),t||{}),Object.keys(e).reduce((function(a,r){a[r]=__assign(__assign({},e[r]),t[r]||{});return a}),{}))}function mergeConfigs(e,t){if(!t){return e}return Object.keys(e).reduce((function(a,r){a[r]=mergeConfig(e[r],t[r]);return a}),__assign({},e))}function createFastMemoizeCache$1(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}function createDefaultFormatters(e){if(e===void 0){e={number:{},dateTime:{},pluralRules:{}}}return{getNumberFormat:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.NumberFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.number),strategy:strategies.variadic}),getDateTimeFormat:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.DateTimeFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.dateTime),strategy:strategies.variadic}),getPluralRules:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.PluralRules).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.pluralRules),strategy:strategies.variadic})}}var IntlMessageFormat=function(){function e(t,a,r,i){var n=this;if(a===void 0){a=e.defaultLocale}this.formatterCache={number:{},dateTime:{},pluralRules:{}};this.format=function(e){var t=n.formatToParts(e);if(t.length===1){return t[0].value}var a=t.reduce((function(e,t){if(!e.length||t.type!==PART_TYPE.literal||typeof e[e.length-1]!=="string"){e.push(t.value)}else{e[e.length-1]+=t.value}return e}),[]);if(a.length<=1){return a[0]||""}return a};this.formatToParts=function(e){return formatToParts(n.ast,n.locales,n.formatters,n.formats,e,undefined,n.message)};this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}};this.getAst=function(){return n.ast};if(typeof t==="string"){this.message=t;if(!e.__parse){throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`")}this.ast=e.__parse(t,{ignoreTag:i===null||i===void 0?void 0:i.ignoreTag})}else{this.ast=t}if(!Array.isArray(this.ast)){throw new TypeError("A message must be provided as a String or AST.")}this.formats=mergeConfigs(e.formats,r);this.locales=a;this.formatters=i&&i.formatters||createDefaultFormatters(this.formatterCache)}Object.defineProperty(e,"defaultLocale",{get:function(){if(!e.memoizedDefaultLocale){e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale}return e.memoizedDefaultLocale},enumerable:false,configurable:true});e.memoizedDefaultLocale=null;e.__parse=parse;e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};return e}();var IntlErrorCode;(function(e){e["FORMAT_ERROR"]="FORMAT_ERROR";e["UNSUPPORTED_FORMATTER"]="UNSUPPORTED_FORMATTER";e["INVALID_CONFIG"]="INVALID_CONFIG";e["MISSING_DATA"]="MISSING_DATA";e["MISSING_TRANSLATION"]="MISSING_TRANSLATION"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=function(e){__extends(t,e);function t(a,r,i){var n=this;var o=i?i instanceof Error?i:new Error(String(i)):undefined;n=e.call(this,"[@formatjs/intl Error ".concat(a,"] ").concat(r," \n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this;n.code=a;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(n,t)}return n}return t}(Error);var UnsupportedFormatterError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.UNSUPPORTED_FORMATTER,t,a)||this}return t}(IntlError);var InvalidConfigError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.INVALID_CONFIG,t,a)||this}return t}(IntlError);var MissingDataError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.MISSING_DATA,t,a)||this}return t}(IntlError);var IntlFormatError=function(e){__extends(t,e);function t(t,a,r){return e.call(this,IntlErrorCode.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(a,"\n"),r)||this}return t}(IntlError);var MessageFormatError=function(e){__extends(t,e);function t(t,a,r,i){var n=e.call(this,"".concat(t," \nMessageID: ").concat(r===null||r===void 0?void 0:r.id,"\nDefault Message: ").concat(r===null||r===void 0?void 0:r.defaultMessage,"\nDescription: ").concat(r===null||r===void 0?void 0:r.description," \n"),a,i)||this;n.descriptor=r;return n}return t}(IntlFormatError);var MissingTranslationError=function(e){__extends(t,e);function t(t,a){var r=e.call(this,IntlErrorCode.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(a,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;r.descriptor=t;return r}return t}(IntlError);function filterProps(e,t,a){if(a===void 0){a={}}return t.reduce((function(t,r){if(r in e){t[r]=e[r]}else if(r in a){t[r]=a[r]}return t}),{})}var defaultErrorHandler=function(e){};var defaultWarnHandler=function(e){};var DEFAULT_INTL_CONFIG={formats:{},messages:{},timeZone:undefined,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:true,onError:defaultErrorHandler,onWarn:defaultWarnHandler};function createIntlCache(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function createFastMemoizeCache(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}function createFormatters(e){if(e===void 0){e=createIntlCache()}var t=Intl.RelativeTimeFormat;var a=Intl.ListFormat;var r=Intl.DisplayNames;var i=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.DateTimeFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.dateTime),strategy:strategies.variadic});var n=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.NumberFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.number),strategy:strategies.variadic});var o=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.PluralRules).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.pluralRules),strategy:strategies.variadic});return{getDateTimeFormat:i,getNumberFormat:n,getMessageFormat:memoize((function(e,t,a,r){return new IntlMessageFormat(e,t,a,__assign({formatters:{getNumberFormat:n,getDateTimeFormat:i,getPluralRules:o}},r||{}))}),{cache:createFastMemoizeCache(e.message),strategy:strategies.variadic}),getRelativeTimeFormat:memoize((function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}return new(t.bind.apply(t,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.relativeTime),strategy:strategies.variadic}),getPluralRules:o,getListFormat:memoize((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(a.bind.apply(a,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.list),strategy:strategies.variadic}),getDisplayNames:memoize((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(r.bind.apply(r,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.displayNames),strategy:strategies.variadic})}}function getNamedFormat(e,t,a,r){var i=e&&e[t];var n;if(i){n=i[a]}if(n){return n}r(new UnsupportedFormatterError("No ".concat(t," format named: ").concat(a)))}function invariant(e,t,a){if(a===void 0){a=Error}if(!e){throw new a(t)}}function setTimeZoneInOptions(e,t){return Object.keys(e).reduce((function(a,r){a[r]=__assign({timeZone:t},e[r]);return a}),{})}function deepMergeOptions(e,t){var a=Object.keys(__assign(__assign({},e),t));return a.reduce((function(a,r){a[r]=__assign(__assign({},e[r]||{}),t[r]||{});return a}),{})}function deepMergeFormatsAndSetTimeZone(e,t){if(!t){return e}var a=IntlMessageFormat.formats;return __assign(__assign(__assign({},a),e),{date:deepMergeOptions(setTimeZoneInOptions(a.date,t),setTimeZoneInOptions(e.date||{},t)),time:deepMergeOptions(setTimeZoneInOptions(a.time,t),setTimeZoneInOptions(e.time||{},t))})}function formatMessage(e,t,a,r,i){var n=e.locale,o=e.formats,l=e.messages,s=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,p=e.onError,y=e.timeZone,d=e.defaultRichTextElements;if(a===void 0){a={id:""}}var v=a.id,m=a.defaultMessage;invariant(!!v,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var f=String(v);var h=l&&Object.prototype.hasOwnProperty.call(l,f)&&l[f];if(Array.isArray(h)&&h.length===1&&h[0].type===TYPE.literal){return h[0].value}if(!r&&h&&typeof h==="string"&&!d){return h.replace(/'\{(.*?)\}'/gi,"{$1}")}r=__assign(__assign({},d),r||{});o=deepMergeFormatsAndSetTimeZone(o,y);u=deepMergeFormatsAndSetTimeZone(u,y);if(!h){if(c===false&&h===""){return h}if(!m||n&&n.toLowerCase()!==s.toLowerCase()){p(new MissingTranslationError(a,n))}if(m){try{var g=t.getMessageFormat(m,s,u,i);return g.format(r)}catch(e){p(new MessageFormatError('Error formatting default message for: "'.concat(f,'", rendering default message verbatim'),n,a,e));return typeof m==="string"?m:f}}return f}try{var g=t.getMessageFormat(h,n,o,__assign({formatters:t},i||{}));return g.format(r)}catch(e){p(new MessageFormatError('Error formatting message: "'.concat(f,'", using ').concat(m?"default message":"id"," as fallback."),n,a,e))}if(m){try{var g=t.getMessageFormat(m,s,u,i);return g.format(r)}catch(e){p(new MessageFormatError('Error formatting the default message for: "'.concat(f,'", rendering message verbatim'),n,a,e))}}if(typeof h==="string"){return h}if(typeof m==="string"){return m}return f}var DATE_TIME_FORMAT_OPTIONS=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function getFormatter$2(e,t,a,r){var i=e.locale,n=e.formats,o=e.onError,l=e.timeZone;if(r===void 0){r={}}var s=r.format;var u=__assign(__assign({},l&&{timeZone:l}),s&&getNamedFormat(n,t,s,o));var c=filterProps(r,DATE_TIME_FORMAT_OPTIONS,u);if(t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle){c=__assign(__assign({},c),{hour:"numeric",minute:"numeric"})}return a(i,c)}function formatDate(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"date",t,o).format(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting date.",t))}return String(l)}function formatTime(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"time",t,o).format(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting time.",t))}return String(l)}function formatDateTimeRange(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=a[2],l=o===void 0?{}:o;var s=e.timeZone,u=e.locale,c=e.onError;var p=filterProps(l,DATE_TIME_FORMAT_OPTIONS,s?{timeZone:s}:{});try{return t(u,p).formatRange(i,n)}catch(e){c(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function formatDateToParts(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"date",t,o).formatToParts(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting date.",t))}return[]}function formatTimeToParts(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var i=a[0],n=a[1],o=n===void 0?{}:n;var l=typeof i==="string"?new Date(i||0):i;try{return getFormatter$2(e,"time",t,o).formatToParts(l)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting time.",t))}return[]}var DISPLAY_NAMES_OPTONS=["localeMatcher","style","type","fallback"];function formatDisplayName(e,t,a,r){var i=e.locale,n=e.onError;var o=Intl.DisplayNames;if(!o){n(new FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ErrorCode.MISSING_INTL_API))}var l=filterProps(r,DISPLAY_NAMES_OPTONS);try{return t(i,l).of(a)}catch(e){n(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting display name.",e))}}var LIST_FORMAT_OPTIONS=["localeMatcher","type","style"];var now=Date.now();function generateToken(e){return"".concat(now,"_").concat(e,"_").concat(now)}function formatList(e,t,a,r){if(r===void 0){r={}}var i=formatListToParts(e,t,a,r).reduce((function(e,t){var a=t.value;if(typeof a!=="string"){e.push(a)}else if(typeof e[e.length-1]==="string"){e[e.length-1]+=a}else{e.push(a)}return e}),[]);return i.length===1?i[0]:i}function formatListToParts(e,t,a,r){var i=e.locale,n=e.onError;if(r===void 0){r={}}var o=Intl.ListFormat;if(!o){n(new FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ErrorCode.MISSING_INTL_API))}var l=filterProps(r,LIST_FORMAT_OPTIONS);try{var s={};var u=a.map((function(e,t){if(typeof e==="object"){var a=generateToken(t);s[a]=e;return a}return String(e)}));return t(i,l).formatToParts(u).map((function(e){return e.type==="literal"?e:__assign(__assign({},e),{value:s[e.value]||e.value})}))}catch(e){n(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting list.",e))}return a}var PLURAL_FORMAT_OPTIONS=["localeMatcher","type"];function formatPlural(e,t,a,r){var i=e.locale,n=e.onError;if(r===void 0){r={}}if(!Intl.PluralRules){n(new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ErrorCode.MISSING_INTL_API))}var o=filterProps(r,PLURAL_FORMAT_OPTIONS);try{return t(i,o).select(a)}catch(e){n(new IntlFormatError("Error formatting plural.",i,e))}return"other"}var RELATIVE_TIME_FORMAT_OPTIONS=["numeric","style"];function getFormatter$1(e,t,a){var r=e.locale,i=e.formats,n=e.onError;if(a===void 0){a={}}var o=a.format;var l=!!o&&getNamedFormat(i,"relative",o,n)||{};var s=filterProps(a,RELATIVE_TIME_FORMAT_OPTIONS,l);return t(r,s)}function formatRelativeTime(e,t,a,r,i){if(i===void 0){i={}}if(!r){r="second"}var n=Intl.RelativeTimeFormat;if(!n){e.onError(new FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ErrorCode.MISSING_INTL_API))}try{return getFormatter$1(e,t,i).format(a,r)}catch(t){e.onError(new IntlFormatError("Error formatting relative time.",e.locale,t))}return String(a)}var NUMBER_FORMAT_OPTIONS=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function getFormatter(e,t,a){var r=e.locale,i=e.formats,n=e.onError;if(a===void 0){a={}}var o=a.format;var l=o&&getNamedFormat(i,"number",o,n)||{};var s=filterProps(a,NUMBER_FORMAT_OPTIONS,l);return t(r,s)}function formatNumber(e,t,a,r){if(r===void 0){r={}}try{return getFormatter(e,t,r).format(a)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting number.",t))}return String(a)}function formatNumberToParts(e,t,a,r){if(r===void 0){r={}}try{return getFormatter(e,t,r).formatToParts(a)}catch(t){e.onError(new IntlError(IntlErrorCode.FORMAT_ERROR,"Error formatting number.",t))}return[]}function messagesContainString(e){var t=e?e[Object.keys(e)[0]]:undefined;return typeof t==="string"}function verifyConfigMessages(e){if(e.onWarn&&e.defaultRichTextElements&&messagesContainString(e.messages||{})){e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}}function createIntl(e,t){var a=createFormatters(t);var r=__assign(__assign({},DEFAULT_INTL_CONFIG),e);var i=r.locale,n=r.defaultLocale,o=r.onError;if(!i){if(o){o(new InvalidConfigError('"locale" was not configured, using "'.concat(n,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')))}r.locale=r.defaultLocale||"en"}else if(!Intl.NumberFormat.supportedLocalesOf(i).length&&o){o(new MissingDataError('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(n,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')))}else if(!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o){o(new MissingDataError('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(n,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')))}verifyConfigMessages(r);return __assign(__assign({},r),{formatters:a,formatNumber:formatNumber.bind(null,r,a.getNumberFormat),formatNumberToParts:formatNumberToParts.bind(null,r,a.getNumberFormat),formatRelativeTime:formatRelativeTime.bind(null,r,a.getRelativeTimeFormat),formatDate:formatDate.bind(null,r,a.getDateTimeFormat),formatDateToParts:formatDateToParts.bind(null,r,a.getDateTimeFormat),formatTime:formatTime.bind(null,r,a.getDateTimeFormat),formatDateTimeRange:formatDateTimeRange.bind(null,r,a.getDateTimeFormat),formatTimeToParts:formatTimeToParts.bind(null,r,a.getDateTimeFormat),formatPlural:formatPlural.bind(null,r,a.getPluralRules),formatMessage:formatMessage.bind(null,r,a),$t:formatMessage.bind(null,r,a),formatList:formatList.bind(null,r,a.getListFormat),formatListToParts:formatListToParts.bind(null,r,a.getListFormat),formatDisplayName:formatDisplayName.bind(null,r,a.getDisplayNames)})}var DEFAULT_LANGUAGE="en";function getBrowserLang(){var e=document.documentElement.getAttribute("lang");if(!!e){return e}else if(window.navigator&&window.navigator.language){var t=window.navigator.languages?window.navigator.languages[0]:window.navigator.language;return t.slice(0,2)}else{return DEFAULT_LANGUAGE}}var cache=createIntlCache();var locale=getBrowserLang();var intl=createIntl({locale:locale,defaultLocale:"en",messages:lang[locale]||en},cache);function generateId(){return"wmcl-"+Math.random().toString(36).substr(2,10)}function throttle(e,t){var a;var r=false;return function(){var i=this;if(!r){e.apply(i,arguments);r=true;clearTimeout(a);a=setTimeout((function(){r=false}),t)}}}function debounce(e,t){var a;return function(){var r=this;var i=function(){return e.apply(r,arguments)};clearTimeout(a);a=setTimeout(i,t)}}function getTextDir(){var e=document.querySelector("html").getAttribute("dir");return e?e.toLowerCase():""}function getPosition(e){var t=e.getBoundingClientRect();var a=t.x;var r=t.y;if(!a){if(getTextDir()==="rtl"){a=t.right}else{a=t.left}r=t.top}return{x:a,y:r}}function findParentWithScrollbar(e){while(!!e){if(e.scrollHeight>e.clientHeight&&["scroll","auto"].includes(window.getComputedStyle(e).overflowY)){return e}e=e.parentElement}}function findParentWithHiddenOverflow(e){while(!!e){if(window.getComputedStyle(e).overflowY!=="visible"){return e}e=e.parentElement}}function getClosableElementMeasurements(e,t){var a=findParentWithHiddenOverflow(e);return{closableElHeight:t.clientHeight,closableElWidth:t.clientWidth,spaceAbove:a?e.getBoundingClientRect().top-a.getBoundingClientRect().top:e.getBoundingClientRect().top,spaceBelow:a?a.getBoundingClientRect().bottom-e.getBoundingClientRect().bottom:document.documentElement.clientHeight-e.getBoundingClientRect().bottom,spaceLeft:a?e.getBoundingClientRect().left-a.getBoundingClientRect().left:e.getBoundingClientRect().left,spaceRight:a?a.getBoundingClientRect().right-e.getBoundingClientRect().right:document.documentElement.clientWidth-e.getBoundingClientRect().right}}function shouldOpenUp(e,t,a,r){if(a===void 0){a=0}if(r===void 0){r=0}var i=getClosableElementMeasurements(e,t),n=i.closableElHeight,o=i.spaceAbove,l=i.spaceBelow;var s=n>l+r&&n<=o+a;return s}function shouldOpenDown(e,t,a,r){if(a===void 0){a=0}if(r===void 0){r=0}var i=getClosableElementMeasurements(e,t),n=i.closableElHeight,o=i.spaceAbove,l=i.spaceBelow;var s=n>o+a&&n<=l+r;return s}function shouldShiftRight(e,t){var a=getClosableElementMeasurements(e,t),r=a.closableElWidth,i=a.spaceLeft,n=a.spaceRight;var o=r>i&&n>i;return o}function shouldShiftLeft(e,t){var a=getClosableElementMeasurements(e,t),r=a.closableElWidth,i=a.spaceLeft,n=a.spaceRight;var o=r>n&&i>n;return o}function adjustTooltipPosition(e,t,a){a.style.top="";a.style.left="";var r=getClosableElementMeasurements(t,a),i=r.spaceLeft,n=r.spaceRight,o=r.spaceBelow,l=r.spaceAbove;var s=a.getBoundingClientRect().width;var u=a.getBoundingClientRect().height;var c=l>u;var p=o>u;var y=i-24>s;var d=n-24>s;var v=function(e){return!c?e.replace("top","bottom"):e};var m=function(e){return!p&&c?e.replace("bottom","top"):e};var f=function(e,t){if(!y&&d){e=e.replace("left","right")}else if(!y&&!d){e=t}return e};var h=function(e,t){if(!d&&y){e=e.replace("right","left")}else if(!d&&!y){e=t}return e};switch(e){case"left":e=f(e,"bottom");case"right":e=h(e,"bottom");case"top-left":e=f(e,"top");e=v(e);case"top-right":e=h(e,"top");e=v(e);case"bottom-left":e=f(e,"bottom");e=m(e);case"bottom-right":e=h(e,"bottom");e=m(e);case"top":e=v(e);case"bottom":e=m(e)}return e}function hasRoomRight(e,t){var a=0;if(e.type==="click"){a=e.clientX}else if(e.type==="focus"){a=0}else{var r=e;while(r){if(r.tagName=="BODY"){var i=r.scrollLeft||document.documentElement.scrollLeft;a+=r.offsetLeft-i+r.clientLeft}else{a+=r.offsetLeft-r.scrollLeft+r.clientLeft}r=r.offsetParent}}return window.innerWidth-a>=t}function checkForActiveElInShadow(e){while(e&&e.shadowRoot){e=e.shadowRoot.activeElement}return e}function checkForFocusableElInShadow(e){var t=["button","a","input","select","textarea","wm-button","wm-search","wm-select","wm-action-menu","wm-tab-item","wm-datepicker"];var a=e;t.forEach((function(e){if(a&&a.shadowRoot){var t=a.shadowRoot.querySelector(e);if(t){if(e.startsWith("wm-")){a=checkForFocusableElInShadow(t)}else{a=t}}}}));return a}function isFocusable(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null){return true}if(e.disabled){return false}switch(e.nodeName){case"A":return!!e.href&&e.rel!="ignore";case"INPUT":return e.type!="hidden"&&e.type!="file";case"BUTTON":case"SELECT":case"TEXTAREA":case"WM-BUTTON":case"WM-SELECT":case"WM-ACTION-MENU":case"WM-DATEPICKER":case"WM-TIMEPICKER":case"WM-INPUT":case"WM-TAG-INPUT":case"WM-TAB-ITEM":case"WM-SEARCH":return true;default:return false}}function getFirstFocusableDescendant(e){if(isFocusable(e)){return checkForFocusableElInShadow(e)}else if(e.childNodes.length>0){e.childNodes.forEach((function(e){var t=getFirstFocusableDescendant(e);return t&&checkForFocusableElInShadow(t)}))}}function hasValidType(e,t){var a=t.split(" ");var r=e.name&&e.name.split(".");var i=r&&r.length>1&&r[r.length-1];return i?a.includes(i.toLowerCase()):!!e.type?getAcceptedMimeTypesList(a).includes(e.type):true}function getAcceptedMimeTypesList(e){var t={aac:["audio/aac"],abw:["application/x-abiword"],arc:["application/x-freearc"],avi:["video/x-msvideo"],azw:["application/vnd.amazon.ebook"],bin:["application/octet-stream"],bmp:["image/bmp"],bz:["application/x-bzip"],bz2:["application/x-bzip2"],csh:["application/x-csh"],css:["text/css"],csv:["text/csv"],doc:["application/msword"],docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],eot:["application/vnd.ms-fontobject"],epub:["application/epub+zip"],gz:["application/gzip"],gif:["image/gif"],htm:["text/html"],html:["text/html"],ico:["image/vnd.microsoft.icon"],ics:["text/calendar"],jar:["application/java-archive"],jpeg:["image/jpeg"],jpg:["image/jpeg"],js:["text/javascript"],json:["application/json"],jsonld:["application/ld+json"],log:["text/plain"],mid:["audio/x-midi"],midi:["audio/x-midi"],mjs:["text/javascript"],mp3:["audio/mpeg"],mpeg:["video/mpeg"],mpkg:["application/vnd.apple.installer+xml"],odp:["application/vnd.oasis.opendocument.presentation"],ods:["application/vnd.oasis.opendocument.spreadsheet"],odt:["application/vnd.oasis.opendocument.text"],oga:["audio/ogg"],ogv:["video/ogg"],ogx:["application/ogg"],opus:["audio/opus"],otf:["font/otf"],png:["image/png"],pdf:["application/pdf"],php:["application/php"],ppt:["application/vnd.ms-powerpoint"],pptx:["application/vnd.openxmlformats-officedocument.presentationml.presentation"],rar:["application/vnd.rar","application/x-rar","application/x-rar-compressed"],rtf:["application/rtf"],sh:["application/x-sh"],svg:["image/svg+xml"],swf:["application/x-shockwave-flash"],tar:["application/x-tar"],tif:["image/tiff"],tiff:["image/tiff"],ts:["video/mp2t"],ttf:["font/ttf"],txt:["text/plain"],vsd:["application/vnd.visio"],wav:["audio/wav"],weba:["audio/webm"],webm:["video/webm"],webp:["image/webp"],woff:["font/woff"],woff2:["font/woff2"],xhtml:["application/xhtml+xml"],xls:["application/vnd.ms-excel"],xlsx:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],xml:["application/xml","text/xml"],xul:["application/vnd.mozilla.xul+xml"],zip:["application/zip","application/x-zip-compressed","multipart/x-zip"],"3gp":["video/3gpp","audio/3gpp"],"3g2":["video/3gpp2","audio/3gpp2"],"7z":["application/x-7z-compressed"]};return e.reduce((function(e,a){return e.concat(t[a])}),[])}function snakeCaseToCamelCase(e){var t=/^([a-z0-9]*)(_[a-z0-9]*)*$/g;if(t.test(e)){var a="";var r=e.split("_");r.forEach((function(e,t){a+=t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1)}));return a}else{return e}}function getNewIndexToFocus(e,t,a){var r=e;if(t==="ArrowDown"){r=(e+1)%a}if(t==="ArrowUp"){r=e===0?a-1:e-1}return r}function isRelatedTarget(e,t){var a=t.split(" ");return e.relatedTarget&&a.includes(e.relatedTarget.id)}function toBool(e){return e=="false"?false:!!e}export{adjustTooltipPosition as a,getPosition as b,checkForActiveElInShadow as c,debounce as d,isRelatedTarget as e,findParentWithScrollbar as f,generateId as g,checkForFocusableElInShadow as h,intl as i,getFirstFocusableDescendant as j,getNewIndexToFocus as k,shouldOpenUp as l,shouldOpenDown as m,shouldShiftRight as n,shouldShiftLeft as o,hasValidType as p,getTextDir as q,throttle as r,snakeCaseToCamelCase as s,toBool as t,hasRoomRight as u};
@@ -0,0 +1 @@
1
+ var version="3.10.0";if(window.navigator.plugins.length>0){console.log("Ripple component library",version)}function wmComponentKeys(t){if(t.key=="Tab"){var o=new Event("wmUserIsTabbing");window.dispatchEvent(o);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(t.key=="ArrowLeft"||t.key=="ArrowUp"||t.key=="ArrowRight"||t.key=="ArrowDown"){var o=new Event("wmUserIsKeying");window.dispatchEvent(o);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var t=new Event("wmUserIsNotTabbing");window.dispatchEvent(t);document.querySelector("body").classList.remove("wmcl-user-is-tabbing");document.querySelector("body").classList.remove("wmcl-user-is-keying")}window.addEventListener("keydown",wmComponentKeys);window.addEventListener("mousedown",wmComponentMouseDownOnce);var tooltipContainer=document.createElement("div");tooltipContainer.id="wm-tooltip-container";var tooltipEl=document.createElement("div");tooltipEl.id="wm-tooltip";tooltipEl.setAttribute("aria-hidden","true");tooltipEl.style.position="fixed";tooltipEl.style.overflow="hidden";tooltipEl.style.pointerEvents="none";tooltipEl.style.lineHeight="normal";tooltipEl.style.fontFamily="inherit";tooltipEl.style.fontSize="0.875rem";tooltipEl.style.textTransform="none";tooltipEl.style.fontWeight="normal";tooltipEl.style.background="black";tooltipEl.style.color="#fff";tooltipEl.style.zIndex="999999";tooltipEl.style.maxWidth="13.75rem";tooltipEl.style.marginRight="1.5rem";tooltipEl.style.padding="0.375rem";tooltipEl.style.transitionProperty="opacity";tooltipEl.style.transitionDelay="opacity";tooltipEl.style.opacity="0";tooltipContainer.appendChild(tooltipEl);var body=document.querySelector("body");body.appendChild(tooltipContainer);
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,s;n<a;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};var NAMESPACE="ripple";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],s=r[2];var o=getHostListenerTarget(e,n);var i=hostListenerProxy(t,s);var l=hostListenerOpts(n);plt.ael(o,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(o,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&4)return doc;if(t&8)return win;return e};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var XLINK_NS="http://www.w3.org/1999/xlink";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructibleStylesheets&&r){n=n||new CSSStyleSheet;n.replace(t)}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r,n){var a=getScopeId(t);var s=styles.get(a);e=e.nodeType===11?e:doc;if(s){if(typeof s==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var i=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{{i=doc.createElement("style");i.innerHTML=s}e.insertBefore(i,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[s],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var s=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=s;r.classList.add(s+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var s=null;var o=false;var i=false;var l=[];var u=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){u(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&i){l[l.length-1].$text$+=a}else{l.push(o?newVNode(null,a):a)}i=o}}};u(r);if(t){if(t.key){s=t.key}{var f=t.className||t.class;if(f){t.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.$attrs$=t;if(l.length>0){c.$children$=l}{c.$key$=s}return c};var newVNode=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}return r};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var setAccessor=function(e,t,r,n,a,s){if(r!==n){var o=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var u=parseClassList(r);var f=parseClassList(n);l.remove.apply(l,u.filter((function(e){return e&&!f.includes(e)})));l.add.apply(l,f.filter((function(e){return e&&!u.includes(e)})))}else if(t==="style"){{for(var c in r){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!r||n[c]!==r[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(r){plt.rel(e,t,r,false)}if(n){plt.ael(e,t,n,false)}}else{var $=isComplexType(n);if((o||$&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var d=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=d){e[t]=d}}else{e[t]=n}}catch(e){}}var v=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){t=i;v=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(v){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||a)&&!$){n=n===true?"":n;if(v){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var s=e&&e.$attrs$||EMPTY_OBJ;var o=t.$attrs$||EMPTY_OBJ;{for(n in s){if(!(n in o)){setAccessor(a,n,s[n],undefined,r,t.$flags$)}}}for(n in o){setAccessor(a,n,s[n],o[n],r,t.$flags$)}};var createElm=function(e,t,r,n){var a=t.$children$[r];var s=0;var o;var i;if(a.$text$!==null){o=a.$elm$=doc.createTextNode(a.$text$)}else{if(!isSvgMode){isSvgMode=a.$tag$==="svg"}o=a.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,a.$tag$);if(isSvgMode&&a.$tag$==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.$children$){for(s=0;s<a.$children$.length;++s){i=createElm(e,a,s);if(i){o.appendChild(i)}}}{if(a.$tag$==="svg"){isSvgMode=false}else if(o.tagName==="foreignObject"){isSvgMode=true}}}return o};var addVnodes=function(e,t,r,n,a,s){var o=e;var i;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=s;++a){if(n[a]){i=createElm(null,r,a);if(i){n[a].$elm$=i;o.insertBefore(i,t)}}}};var removeVnodes=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;callNodeRefs(n);a.remove()}}};var updateChildren=function(e,t,r,n){var a=0;var s=0;var o=0;var i=0;var l=t.length-1;var u=t[0];var f=t[l];var c=n.length-1;var $=n[0];var d=n[c];var v;var p;while(a<=l&&s<=c){if(u==null){u=t[++a]}else if(f==null){f=t[--l]}else if($==null){$=n[++s]}else if(d==null){d=n[--c]}else if(isSameVnode(u,$)){patch(u,$);u=t[++a];$=n[++s]}else if(isSameVnode(f,d)){patch(f,d);f=t[--l];d=n[--c]}else if(isSameVnode(u,d)){patch(u,d);e.insertBefore(u.$elm$,f.$elm$.nextSibling);u=t[++a];d=n[--c]}else if(isSameVnode(f,$)){patch(f,$);e.insertBefore(f.$elm$,u.$elm$);f=t[--l];$=n[++s]}else{o=-1;{for(i=a;i<=l;++i){if(t[i]&&t[i].$key$!==null&&t[i].$key$===$.$key$){o=i;break}}}if(o>=0){p=t[o];if(p.$tag$!==$.$tag$){v=createElm(t&&t[s],r,o)}else{patch(p,$);t[o]=undefined;v=p.$elm$}$=n[++s]}else{v=createElm(t&&t[s],r,s);$=n[++s]}if(v){{u.$elm$.parentNode.insertBefore(v,u.$elm$)}}}}if(a>l){addVnodes(e,n[c+1]==null?null:n[c+1].$elm$,r,n,s,c)}else if(s>c){removeVnodes(t,a,l)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){{return e.$key$===t.$key$}}return false};var patch=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var s=t.$tag$;var o=t.$text$;if(o===null){{isSvgMode=s==="svg"?true:s==="foreignObject"?false:isSvgMode}{if(s==="slot");else{updateElement(e,t,isSvgMode)}}if(n!==null&&a!==null){updateChildren(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}addVnodes(r,null,t,a,0,a.length-1)}else if(n!==null){removeVnodes(n,0,n.length-1)}if(isSvgMode&&s==="svg"){isSvgMode=false}}else if(e.$text$!==o){r.data=o}};var callNodeRefs=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(callNodeRefs)}};var renderVdom=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var s=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(n.$attrsToReflect$){s.$attrs$=s.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return s.$attrs$[n]=r[t]}))}s.$tag$=null;s.$flags$|=4;e.$vnode$=s;s.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(a,s)};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return safeCall(n,t,r)}));e.$queuedListeners$=null}}{a=safeCall(n,"componentWillLoad")}}else{{a=safeCall(n,"componentWillUpdate")}}r();return then(a,(function(){return updateComponent(e,n,t)}))};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,s,o,i,l;return __generator(this,(function(u){n=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);s=n["s-rc"];if(r){attachStyles(e)}o=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(s){s.map((function(e){return e()}));n["s-rc"]=undefined}o();a();{i=n["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,r){try{t=t.render&&t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.$lazyInstance$;var s=e.$ancestorComponent$;{safeCall(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!s){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{e.$onInstanceResolve$(r)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var forceUpdate=function(e){{var t=getHostRef(e);var r=t.$hostElement$.isConnected;if(r&&(t.$flags$&(2|16))===2){scheduleUpdate(t,false)}return r}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var s=a.$hostElement$;var o=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);if((!(i&8)||o===undefined)&&r!==o){a.$instanceValues$.set(t,r);if(l){if(n.$watchers$&&i&128){var u=n.$watchers$[t];if(u){u.map((function(e){try{l[e](r,o,t)}catch(e){consoleError(e,s)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],s=e[1][0];if(s&31||r&2&&s&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&s&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=getHostRef(this);return r.$onInstancePromise$.then((function(){var t;return(t=r.$lazyInstance$)[n].apply(t,e)}))}})}}));if(r&1){var s=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;plt.jmp((function(){var t=s.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;s.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var initializeComponent=function(e,t,r,n,a){return __awaiter(void 0,void 0,void 0,(function(){var e,n,s,o,i,l,u;return __generator(this,(function(f){switch(f.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(r);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=f.sent();e();f.label=2;case 2:if(!a.isProxied){{r.$watchers$=a.watchers}proxyComponent(a,r,2);a.isProxied=true}n=createTime("createInstance",r.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}{t.$flags$|=128}n();if(a.style){s=a.style;o=getScopeId(r);if(!styles.has(o)){i=createTime("registerStyles",r.$tagName$);registerStyle(o,s,!!(r.$flags$&1));i()}}f.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var r=t.$cmpMeta$;var n=createTime("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{addHostEventListeners(e,t,r.$listeners$)}n()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r=createTime();var n=[];var a=t.exclude||[];var s=win.customElements;var o=doc.head;var i=o.querySelector("meta[charset]");var l=doc.createElement("style");var u=[];var f;var c=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$attrsToReflect$=[]}{r.$watchers$={}}var o=r.$tagName$;var i=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(c){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(o)&&!s.get(o)){n.push(o);s.define(o,proxyComponent(i,r,1))}}))}));{l.innerHTML=n+HYDRATED_CSS;l.setAttribute("data-styles","");o.insertBefore(l,i?i.nextSibling:o.firstChild)}c=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}r()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onInstancePromise$=new Promise((function(e){return r.$onInstanceResolve$=e}))}{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,r,t.$listeners$);return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var s=cmpModules.get(a);if(s){return s[n]}return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,createEvent as c,forceUpdate as f,getElement as g,h,promiseResolve as p,registerInstance as r};
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,s;n<a;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};var NAMESPACE="ripple";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],s=r[2];var o=getHostListenerTarget(e,n);var i=hostListenerProxy(t,s);var l=hostListenerOpts(n);plt.ael(o,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(o,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&4)return doc;if(t&8)return win;return e};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var XLINK_NS="http://www.w3.org/1999/xlink";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructibleStylesheets&&r){n=n||new CSSStyleSheet;n.replace(t)}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r,n){var a=getScopeId(t);var s=styles.get(a);e=e.nodeType===11?e:doc;if(s){if(typeof s==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var i=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{{i=doc.createElement("style");i.innerHTML=s}e.insertBefore(i,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[s],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var s=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=s;r.classList.add(s+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var s=null;var o=false;var i=false;var l=[];var u=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){u(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&i){l[l.length-1].$text$+=a}else{l.push(o?newVNode(null,a):a)}i=o}}};u(r);if(t){if(t.key){s=t.key}{var f=t.className||t.class;if(f){t.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.$attrs$=t;if(l.length>0){c.$children$=l}{c.$key$=s}return c};var newVNode=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}return r};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var setAccessor=function(e,t,r,n,a,s){if(r!==n){var o=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var u=parseClassList(r);var f=parseClassList(n);l.remove.apply(l,u.filter((function(e){return e&&!f.includes(e)})));l.add.apply(l,f.filter((function(e){return e&&!u.includes(e)})))}else if(t==="style"){{for(var c in r){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!r||n[c]!==r[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(r){plt.rel(e,t,r,false)}if(n){plt.ael(e,t,n,false)}}else{var $=isComplexType(n);if((o||$&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var d=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=d){e[t]=d}}else{e[t]=n}}catch(e){}}var v=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){t=i;v=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(v){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||a)&&!$){n=n===true?"":n;if(v){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var s=e&&e.$attrs$||EMPTY_OBJ;var o=t.$attrs$||EMPTY_OBJ;{for(n in s){if(!(n in o)){setAccessor(a,n,s[n],undefined,r,t.$flags$)}}}for(n in o){setAccessor(a,n,s[n],o[n],r,t.$flags$)}};var createElm=function(e,t,r,n){var a=t.$children$[r];var s=0;var o;var i;if(a.$text$!==null){o=a.$elm$=doc.createTextNode(a.$text$)}else{if(!isSvgMode){isSvgMode=a.$tag$==="svg"}o=a.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,a.$tag$);if(isSvgMode&&a.$tag$==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.$children$){for(s=0;s<a.$children$.length;++s){i=createElm(e,a,s);if(i){o.appendChild(i)}}}{if(a.$tag$==="svg"){isSvgMode=false}else if(o.tagName==="foreignObject"){isSvgMode=true}}}return o};var addVnodes=function(e,t,r,n,a,s){var o=e;var i;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=s;++a){if(n[a]){i=createElm(null,r,a);if(i){n[a].$elm$=i;o.insertBefore(i,t)}}}};var removeVnodes=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;callNodeRefs(n);a.remove()}}};var updateChildren=function(e,t,r,n){var a=0;var s=0;var o=0;var i=0;var l=t.length-1;var u=t[0];var f=t[l];var c=n.length-1;var $=n[0];var d=n[c];var v;var p;while(a<=l&&s<=c){if(u==null){u=t[++a]}else if(f==null){f=t[--l]}else if($==null){$=n[++s]}else if(d==null){d=n[--c]}else if(isSameVnode(u,$)){patch(u,$);u=t[++a];$=n[++s]}else if(isSameVnode(f,d)){patch(f,d);f=t[--l];d=n[--c]}else if(isSameVnode(u,d)){patch(u,d);e.insertBefore(u.$elm$,f.$elm$.nextSibling);u=t[++a];d=n[--c]}else if(isSameVnode(f,$)){patch(f,$);e.insertBefore(f.$elm$,u.$elm$);f=t[--l];$=n[++s]}else{o=-1;{for(i=a;i<=l;++i){if(t[i]&&t[i].$key$!==null&&t[i].$key$===$.$key$){o=i;break}}}if(o>=0){p=t[o];if(p.$tag$!==$.$tag$){v=createElm(t&&t[s],r,o)}else{patch(p,$);t[o]=undefined;v=p.$elm$}$=n[++s]}else{v=createElm(t&&t[s],r,s);$=n[++s]}if(v){{u.$elm$.parentNode.insertBefore(v,u.$elm$)}}}}if(a>l){addVnodes(e,n[c+1]==null?null:n[c+1].$elm$,r,n,s,c)}else if(s>c){removeVnodes(t,a,l)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){{return e.$key$===t.$key$}}return false};var patch=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var s=t.$tag$;var o=t.$text$;if(o===null){{isSvgMode=s==="svg"?true:s==="foreignObject"?false:isSvgMode}{if(s==="slot");else{updateElement(e,t,isSvgMode)}}if(n!==null&&a!==null){updateChildren(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}addVnodes(r,null,t,a,0,a.length-1)}else if(n!==null){removeVnodes(n,0,n.length-1)}if(isSvgMode&&s==="svg"){isSvgMode=false}}else if(e.$text$!==o){r.data=o}};var callNodeRefs=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(callNodeRefs)}};var renderVdom=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var s=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(n.$attrsToReflect$){s.$attrs$=s.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return s.$attrs$[n]=r[t]}))}s.$tag$=null;s.$flags$|=4;e.$vnode$=s;s.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(a,s)};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return safeCall(n,t,r)}));e.$queuedListeners$=null}}{a=safeCall(n,"componentWillLoad")}}else{{a=safeCall(n,"componentWillUpdate")}}r();return then(a,(function(){return updateComponent(e,n,t)}))};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,s,o,i,l;return __generator(this,(function(u){n=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);s=n["s-rc"];if(r){attachStyles(e)}o=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(s){s.map((function(e){return e()}));n["s-rc"]=undefined}o();a();{i=n["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,r){try{t=t.render&&t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.$lazyInstance$;var s=e.$ancestorComponent$;{safeCall(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!s){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{e.$onInstanceResolve$(r)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var forceUpdate=function(e){{var t=getHostRef(e);var r=t.$hostElement$.isConnected;if(r&&(t.$flags$&(2|16))===2){scheduleUpdate(t,false)}return r}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var s=a.$hostElement$;var o=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);var u=Number.isNaN(o)&&Number.isNaN(r);var f=r!==o&&!u;if((!(i&8)||o===undefined)&&f){a.$instanceValues$.set(t,r);if(l){if(n.$watchers$&&i&128){var c=n.$watchers$[t];if(c){c.map((function(e){try{l[e](r,o,t)}catch(e){consoleError(e,s)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],s=e[1][0];if(s&31||r&2&&s&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&s&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=getHostRef(this);return r.$onInstancePromise$.then((function(){var t;return(t=r.$lazyInstance$)[n].apply(t,e)}))}})}}));if(r&1){var s=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;plt.jmp((function(){var t=s.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;s.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var initializeComponent=function(e,t,r,n,a){return __awaiter(void 0,void 0,void 0,(function(){var e,n,s,o,i,l,u;return __generator(this,(function(f){switch(f.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(r);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=f.sent();e();f.label=2;case 2:if(!a.isProxied){{r.$watchers$=a.watchers}proxyComponent(a,r,2);a.isProxied=true}n=createTime("createInstance",r.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}{t.$flags$|=128}n();if(a.style){s=a.style;o=getScopeId(r);if(!styles.has(o)){i=createTime("registerStyles",r.$tagName$);registerStyle(o,s,!!(r.$flags$&1));i()}}f.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var r=t.$cmpMeta$;var n=createTime("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{addHostEventListeners(e,t,r.$listeners$)}n()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r=createTime();var n=[];var a=t.exclude||[];var s=win.customElements;var o=doc.head;var i=o.querySelector("meta[charset]");var l=doc.createElement("style");var u=[];var f;var c=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$attrsToReflect$=[]}{r.$watchers$={}}var o=r.$tagName$;var i=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(c){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(o)&&!s.get(o)){n.push(o);s.define(o,proxyComponent(i,r,1))}}))}));{l.innerHTML=n+HYDRATED_CSS;l.setAttribute("data-styles","");o.insertBefore(l,i?i.nextSibling:o.firstChild)}c=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}r()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onInstancePromise$=new Promise((function(e){return r.$onInstanceResolve$=e}))}{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,r,t.$listeners$);return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var s=cmpModules.get(a);if(s){return s[n]}return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,createEvent as c,forceUpdate as f,getElement as g,h,promiseResolve as p,registerInstance as r};