@vonage/vivid 3.0.0-next.7 → 3.0.0-next.70

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 (478) hide show
  1. package/README.md +137 -4
  2. package/accordion/index.js +59 -0
  3. package/accordion-item/index.js +131 -0
  4. package/action-group/index.js +47 -0
  5. package/avatar/index.js +51 -0
  6. package/badge/index.js +58 -0
  7. package/banner/index.js +149 -0
  8. package/breadcrumb/index.js +103 -0
  9. package/breadcrumb-item/index.js +62 -0
  10. package/button/index.js +130 -0
  11. package/calendar/index.js +1563 -0
  12. package/calendar-event/index.js +115 -0
  13. package/card/index.js +132 -0
  14. package/checkbox/index.js +184 -0
  15. package/dialog/index.js +281 -0
  16. package/divider/index.js +86 -0
  17. package/elevation/index.js +3 -0
  18. package/fab/index.js +105 -0
  19. package/focus/index.js +18 -0
  20. package/header/index.js +66 -0
  21. package/icon/index.js +38 -0
  22. package/{src/index.ts → index.d.ts} +2 -2
  23. package/index.js +63 -0
  24. package/layout/index.js +51 -0
  25. package/lib/accordion/accordion.d.ts +9 -0
  26. package/lib/accordion/accordion.template.d.ts +4 -0
  27. package/lib/accordion/index.d.ts +2 -0
  28. package/lib/accordion-item/accordion-item.d.ts +13 -0
  29. package/lib/accordion-item/accordion-item.template.d.ts +4 -0
  30. package/lib/accordion-item/index.d.ts +4 -0
  31. package/lib/action-group/action-group.d.ts +10 -0
  32. package/lib/action-group/action-group.template.d.ts +4 -0
  33. package/lib/action-group/index.d.ts +2 -0
  34. package/lib/avatar/avatar.d.ts +14 -0
  35. package/lib/avatar/avatar.template.d.ts +4 -0
  36. package/lib/avatar/index.d.ts +3 -0
  37. package/lib/badge/badge.d.ts +17 -0
  38. package/lib/badge/badge.template.d.ts +4 -0
  39. package/lib/badge/index.d.ts +3 -0
  40. package/lib/banner/banner.d.ts +20 -0
  41. package/lib/banner/banner.template.d.ts +4 -0
  42. package/lib/banner/index.d.ts +3 -0
  43. package/lib/breadcrumb/breadcrumb.d.ts +3 -0
  44. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  45. package/lib/breadcrumb/index.d.ts +2 -0
  46. package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
  47. package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
  48. package/lib/breadcrumb-item/index.d.ts +4 -0
  49. package/lib/button/button.d.ts +18 -0
  50. package/lib/button/button.template.d.ts +4 -0
  51. package/lib/button/index.d.ts +4 -0
  52. package/lib/calendar/calendar.d.ts +13 -0
  53. package/lib/calendar/calendar.template.d.ts +4 -0
  54. package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
  55. package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
  56. package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
  57. package/lib/calendar/index.d.ts +2 -0
  58. package/lib/calendar-event/calendar-event.d.ts +14 -0
  59. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  60. package/lib/calendar-event/index.d.ts +2 -0
  61. package/lib/card/card.d.ts +10 -0
  62. package/lib/card/card.template.d.ts +4 -0
  63. package/lib/card/index.d.ts +4 -0
  64. package/lib/checkbox/checkbox.d.ts +5 -0
  65. package/lib/checkbox/checkbox.template.d.ts +4 -0
  66. package/lib/checkbox/index.d.ts +4 -0
  67. package/lib/components.d.ts +32 -0
  68. package/lib/dialog/dialog.d.ts +20 -0
  69. package/lib/dialog/dialog.template.d.ts +4 -0
  70. package/lib/dialog/index.d.ts +5 -0
  71. package/lib/divider/divider.d.ts +3 -0
  72. package/lib/divider/divider.template.d.ts +4 -0
  73. package/lib/divider/index.d.ts +2 -0
  74. package/lib/elevation/elevation.d.ts +5 -0
  75. package/lib/elevation/elevation.template.d.ts +4 -0
  76. package/lib/elevation/index.d.ts +2 -0
  77. package/lib/enums.d.ts +51 -0
  78. package/lib/fab/fab.d.ts +13 -0
  79. package/lib/fab/fab.template.d.ts +4 -0
  80. package/lib/fab/index.d.ts +4 -0
  81. package/lib/focus/focus.d.ts +3 -0
  82. package/lib/focus/focus.template.d.ts +4 -0
  83. package/lib/focus/index.d.ts +2 -0
  84. package/lib/header/header.d.ts +5 -0
  85. package/lib/header/header.template.d.ts +4 -0
  86. package/lib/header/index.d.ts +3 -0
  87. package/lib/icon/icon.d.ts +12 -0
  88. package/lib/icon/icon.placeholder.d.ts +1 -0
  89. package/lib/icon/icon.template.d.ts +4 -0
  90. package/lib/icon/index.d.ts +2 -0
  91. package/lib/layout/index.d.ts +2 -0
  92. package/lib/layout/layout.d.ts +16 -0
  93. package/lib/layout/layout.template.d.ts +4 -0
  94. package/lib/menu/index.d.ts +12 -0
  95. package/lib/menu/menu.d.ts +10 -0
  96. package/lib/menu/menu.template.d.ts +3 -0
  97. package/lib/menu-item/index.d.ts +3 -0
  98. package/lib/menu-item/menu-item.d.ts +7 -0
  99. package/lib/menu-item/menu-item.template.d.ts +5 -0
  100. package/lib/nav/index.d.ts +2 -0
  101. package/lib/nav/nav.d.ts +3 -0
  102. package/lib/nav/nav.template.d.ts +4 -0
  103. package/lib/nav-disclosure/index.d.ts +4 -0
  104. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  105. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  106. package/lib/nav-item/index.d.ts +4 -0
  107. package/lib/nav-item/nav-item.d.ts +6 -0
  108. package/lib/nav-item/nav-item.template.d.ts +4 -0
  109. package/lib/note/index.d.ts +2 -0
  110. package/lib/note/note.d.ts +10 -0
  111. package/lib/note/note.template.d.ts +5 -0
  112. package/lib/popup/index.d.ts +4 -0
  113. package/lib/popup/popup.d.ts +18 -0
  114. package/lib/popup/popup.template.d.ts +4 -0
  115. package/lib/progress/index.d.ts +2 -0
  116. package/lib/progress/progress.d.ts +9 -0
  117. package/lib/progress/progress.template.d.ts +5 -0
  118. package/lib/progress-ring/index.d.ts +2 -0
  119. package/lib/progress-ring/progress-ring.d.ts +7 -0
  120. package/lib/progress-ring/progress-ring.template.d.ts +4 -0
  121. package/lib/side-drawer/index.d.ts +2 -0
  122. package/lib/side-drawer/side-drawer.d.ts +9 -0
  123. package/lib/side-drawer/side-drawer.template.d.ts +4 -0
  124. package/lib/text-anchor/index.d.ts +2 -0
  125. package/lib/text-anchor/text-anchor.d.ts +7 -0
  126. package/lib/text-anchor/text-anchor.template.d.ts +4 -0
  127. package/lib/text-area/index.d.ts +3 -0
  128. package/lib/text-area/text-area.d.ts +9 -0
  129. package/lib/text-area/text-area.template.d.ts +4 -0
  130. package/lib/text-field/index.d.ts +4 -0
  131. package/lib/text-field/text-field.d.ts +16 -0
  132. package/lib/text-field/text-field.template.d.ts +5 -0
  133. package/lib/tooltip/index.d.ts +3 -0
  134. package/lib/tooltip/tooltip.d.ts +8 -0
  135. package/lib/tooltip/tooltip.template.d.ts +4 -0
  136. package/menu/index.js +380 -0
  137. package/menu-item/index.js +19 -0
  138. package/nav/index.js +17 -0
  139. package/nav-disclosure/index.js +88 -0
  140. package/nav-item/index.js +45 -0
  141. package/note/index.js +66 -0
  142. package/package.json +56 -5
  143. package/popup/index.js +26 -0
  144. package/progress/index.js +105 -0
  145. package/progress-ring/index.js +80 -0
  146. package/shared/_has.js +58 -0
  147. package/shared/affix.js +29 -0
  148. package/shared/anchor.js +86 -0
  149. package/shared/apply-mixins.js +22 -0
  150. package/shared/aria-global.js +72 -0
  151. package/shared/base-progress.js +70 -0
  152. package/shared/breadcrumb-item.js +25 -0
  153. package/shared/button.js +200 -0
  154. package/shared/calendar-event.js +26 -0
  155. package/shared/class-names.js +15 -0
  156. package/shared/design-system/index.d.ts +3 -0
  157. package/shared/dialog-polyfill.esm.js +858 -0
  158. package/shared/enums.js +79 -0
  159. package/shared/es.object.assign.js +69 -0
  160. package/shared/export.js +995 -0
  161. package/shared/focus.js +5 -0
  162. package/shared/focus2.js +11 -0
  163. package/shared/form-associated.js +466 -0
  164. package/shared/form-elements.js +299 -0
  165. package/shared/icon.js +1406 -0
  166. package/shared/index.js +5014 -0
  167. package/shared/index2.js +35 -0
  168. package/shared/index3.js +2117 -0
  169. package/shared/index4.js +371 -0
  170. package/shared/iterators.js +61 -0
  171. package/shared/key-codes.js +90 -0
  172. package/shared/object-keys.js +13 -0
  173. package/shared/patterns/affix.d.ts +9 -0
  174. package/shared/patterns/focus.d.ts +3 -0
  175. package/shared/patterns/form-elements.d.ts +22 -0
  176. package/shared/patterns/index.d.ts +2 -0
  177. package/shared/ref.js +41 -0
  178. package/shared/slotted.js +119 -0
  179. package/shared/start-end.js +50 -0
  180. package/shared/text-anchor.js +12 -0
  181. package/shared/text-anchor.template.js +57 -0
  182. package/shared/to-string.js +51 -0
  183. package/shared/web.dom-collections.iterator.js +474 -0
  184. package/shared/when.js +15 -0
  185. package/side-drawer/index.js +102 -0
  186. package/styles/core/all.css +75 -0
  187. package/styles/core/theme.css +11 -0
  188. package/styles/core/typography.css +69 -0
  189. package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
  190. package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
  191. package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
  192. package/styles/fonts/spezia.css +20 -0
  193. package/styles/tokens/theme-dark.css +210 -0
  194. package/styles/tokens/theme-light.css +210 -0
  195. package/text-anchor/index.js +27 -0
  196. package/text-area/index.js +304 -0
  197. package/text-field/index.js +152 -0
  198. package/tooltip/index.js +71 -0
  199. package/.babelrc +0 -3
  200. package/.eslintrc.json +0 -70
  201. package/.stylelintrc.json +0 -8
  202. package/CHANGELOG.json +0 -343
  203. package/CHANGELOG.md +0 -45
  204. package/jest.config.cjs +0 -20
  205. package/playwright.config.dev.ts +0 -21
  206. package/playwright.config.ts +0 -34
  207. package/project.json +0 -122
  208. package/rollup.config.prod.ts +0 -50
  209. package/setupJestTests.js +0 -17
  210. package/src/lib/accordion/README.md +0 -55
  211. package/src/lib/accordion/accordion.scss +0 -10
  212. package/src/lib/accordion/accordion.spec.ts +0 -91
  213. package/src/lib/accordion/accordion.template.ts +0 -23
  214. package/src/lib/accordion/accordion.ts +0 -49
  215. package/src/lib/accordion/index.ts +0 -14
  216. package/src/lib/accordion/ui.test.ts +0 -37
  217. package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Chrome-Stable-darwin.png +0 -0
  218. package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Chrome-Stable-linux.png +0 -0
  219. package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Firefox-darwin.png +0 -0
  220. package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Firefox-linux.png +0 -0
  221. package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Safari-darwin.png +0 -0
  222. package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Safari-linux.png +0 -0
  223. package/src/lib/accordion-item/README.md +0 -113
  224. package/src/lib/accordion-item/accordion-item.scss +0 -91
  225. package/src/lib/accordion-item/accordion-item.spec.ts +0 -103
  226. package/src/lib/accordion-item/accordion-item.template.ts +0 -62
  227. package/src/lib/accordion-item/accordion-item.ts +0 -67
  228. package/src/lib/accordion-item/index.ts +0 -14
  229. package/src/lib/accordion-item/partials/variables.scss +0 -1
  230. package/src/lib/accordion-item/ui.test.ts +0 -37
  231. package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Chrome-Stable-darwin.png +0 -0
  232. package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Chrome-Stable-linux.png +0 -0
  233. package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Firefox-darwin.png +0 -0
  234. package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Firefox-linux.png +0 -0
  235. package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Safari-darwin.png +0 -0
  236. package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Safari-linux.png +0 -0
  237. package/src/lib/badge/README.md +0 -112
  238. package/src/lib/badge/badge.scss +0 -64
  239. package/src/lib/badge/badge.spec.ts +0 -114
  240. package/src/lib/badge/badge.template.ts +0 -36
  241. package/src/lib/badge/badge.ts +0 -97
  242. package/src/lib/badge/index.ts +0 -23
  243. package/src/lib/badge/ui.test.ts +0 -28
  244. package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Chrome-Stable-darwin.png +0 -0
  245. package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Chrome-Stable-linux.png +0 -0
  246. package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Firefox-darwin.png +0 -0
  247. package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Firefox-linux.png +0 -0
  248. package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Safari-darwin.png +0 -0
  249. package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Safari-linux.png +0 -0
  250. package/src/lib/banner/README.md +0 -117
  251. package/src/lib/banner/banner.scss +0 -71
  252. package/src/lib/banner/banner.spec.ts +0 -355
  253. package/src/lib/banner/banner.template.ts +0 -61
  254. package/src/lib/banner/banner.ts +0 -77
  255. package/src/lib/banner/index.ts +0 -14
  256. package/src/lib/banner/ui.test.ts +0 -64
  257. package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Chrome-Stable-darwin.png +0 -0
  258. package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Chrome-Stable-linux.png +0 -0
  259. package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Firefox-darwin.png +0 -0
  260. package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Firefox-linux.png +0 -0
  261. package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Safari-darwin.png +0 -0
  262. package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Safari-linux.png +0 -0
  263. package/src/lib/breadcrumb/README.md +0 -25
  264. package/src/lib/breadcrumb/breadcrumb.scss +0 -3
  265. package/src/lib/breadcrumb/breadcrumb.spec.ts +0 -78
  266. package/src/lib/breadcrumb/breadcrumb.ts +0 -10
  267. package/src/lib/breadcrumb/index.ts +0 -13
  268. package/src/lib/breadcrumb/ui.test.ts +0 -36
  269. package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Chrome-Stable-darwin.png +0 -0
  270. package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Chrome-Stable-linux.png +0 -0
  271. package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Firefox-darwin.png +0 -0
  272. package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Firefox-linux.png +0 -0
  273. package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Safari-darwin.png +0 -0
  274. package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Safari-linux.png +0 -0
  275. package/src/lib/breadcrumb-item/README.md +0 -40
  276. package/src/lib/breadcrumb-item/breadcrumb-item.scss +0 -28
  277. package/src/lib/breadcrumb-item/breadcrumb-item.spec.ts +0 -192
  278. package/src/lib/breadcrumb-item/breadcrumb-item.template.ts +0 -37
  279. package/src/lib/breadcrumb-item/breadcrumb-item.ts +0 -15
  280. package/src/lib/breadcrumb-item/index.ts +0 -16
  281. package/src/lib/breadcrumb-item/ui.test.ts +0 -38
  282. package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Chrome-Stable-darwin.png +0 -0
  283. package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Chrome-Stable-linux.png +0 -0
  284. package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Firefox-darwin.png +0 -0
  285. package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Firefox-linux.png +0 -0
  286. package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Safari-darwin.png +0 -0
  287. package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Safari-linux.png +0 -0
  288. package/src/lib/button/README.md +0 -120
  289. package/src/lib/button/button.scss +0 -142
  290. package/src/lib/button/button.spec.ts +0 -131
  291. package/src/lib/button/button.template.ts +0 -89
  292. package/src/lib/button/button.ts +0 -95
  293. package/src/lib/button/index.ts +0 -25
  294. package/src/lib/button/partials/variables.scss +0 -2
  295. package/src/lib/button/ui.test.ts +0 -32
  296. package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Chrome-Stable-darwin.png +0 -0
  297. package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Chrome-Stable-linux.png +0 -0
  298. package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Firefox-darwin.png +0 -0
  299. package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Firefox-linux.png +0 -0
  300. package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Safari-darwin.png +0 -0
  301. package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Safari-linux.png +0 -0
  302. package/src/lib/calendar/README.md +0 -70
  303. package/src/lib/calendar/calendar.scss +0 -176
  304. package/src/lib/calendar/calendar.spec.ts +0 -341
  305. package/src/lib/calendar/calendar.template.ts +0 -93
  306. package/src/lib/calendar/calendar.ts +0 -139
  307. package/src/lib/calendar/helpers/calendar.date-functions.ts +0 -31
  308. package/src/lib/calendar/helpers/calendar.event-context.ts +0 -72
  309. package/src/lib/calendar/helpers/calendar.keyboard-interactions.ts +0 -65
  310. package/src/lib/calendar/index.ts +0 -16
  311. package/src/lib/calendar/partials/_variables.scss +0 -15
  312. package/src/lib/calendar/ui.test.ts +0 -32
  313. package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Chrome-Stable-darwin.png +0 -0
  314. package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Chrome-Stable-linux.png +0 -0
  315. package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Firefox-darwin.png +0 -0
  316. package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Firefox-linux.png +0 -0
  317. package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Safari-darwin.png +0 -0
  318. package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Safari-linux.png +0 -0
  319. package/src/lib/components.spec.ts +0 -7
  320. package/src/lib/components.ts +0 -16
  321. package/src/lib/elevation/README.md +0 -99
  322. package/src/lib/elevation/elevation.scss +0 -15
  323. package/src/lib/elevation/elevation.spec.ts +0 -55
  324. package/src/lib/elevation/elevation.template.ts +0 -26
  325. package/src/lib/elevation/elevation.ts +0 -17
  326. package/src/lib/elevation/index.ts +0 -17
  327. package/src/lib/elevation/partials/_elevation.mixin.scss +0 -4
  328. package/src/lib/elevation/ui.test.ts +0 -32
  329. package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Chrome-Stable-darwin.png +0 -0
  330. package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Chrome-Stable-linux.png +0 -0
  331. package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Firefox-darwin.png +0 -0
  332. package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Firefox-linux.png +0 -0
  333. package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Safari-darwin.png +0 -0
  334. package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Safari-linux.png +0 -0
  335. package/src/lib/enums.ts +0 -55
  336. package/src/lib/focus/README.md +0 -1
  337. package/src/lib/focus/focus.scss +0 -17
  338. package/src/lib/focus/focus.template.ts +0 -16
  339. package/src/lib/focus/focus.ts +0 -10
  340. package/src/lib/focus/index.ts +0 -21
  341. package/src/lib/focus/partials/variables.scss +0 -2
  342. package/src/lib/icon/README.md +0 -70
  343. package/src/lib/icon/__snapshots__/icon.spec.ts.snap +0 -16
  344. package/src/lib/icon/icon.placeholder.ts +0 -12
  345. package/src/lib/icon/icon.scss +0 -52
  346. package/src/lib/icon/icon.spec.ts +0 -106
  347. package/src/lib/icon/icon.template.ts +0 -23
  348. package/src/lib/icon/icon.ts +0 -93
  349. package/src/lib/icon/index.ts +0 -14
  350. package/src/lib/layout/README.md +0 -154
  351. package/src/lib/layout/index.ts +0 -18
  352. package/src/lib/layout/layout.scss +0 -40
  353. package/src/lib/layout/layout.spec.ts +0 -73
  354. package/src/lib/layout/layout.template.ts +0 -29
  355. package/src/lib/layout/layout.ts +0 -46
  356. package/src/lib/layout/partials/_functions.scss +0 -15
  357. package/src/lib/layout/partials/_mixins.scss +0 -5
  358. package/src/lib/layout/partials/_variables.scss +0 -23
  359. package/src/lib/layout/ui.test.ts +0 -32
  360. package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Chrome-Stable-darwin.png +0 -0
  361. package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Chrome-Stable-linux.png +0 -0
  362. package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Firefox-darwin.png +0 -0
  363. package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Firefox-linux.png +0 -0
  364. package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Safari-darwin.png +0 -0
  365. package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Safari-linux.png +0 -0
  366. package/src/lib/popup/README.md +0 -261
  367. package/src/lib/popup/index.ts +0 -21
  368. package/src/lib/popup/popup.scss +0 -43
  369. package/src/lib/popup/popup.spec.ts +0 -265
  370. package/src/lib/popup/popup.template.ts +0 -41
  371. package/src/lib/popup/popup.ts +0 -158
  372. package/src/lib/popup/ui.test.ts +0 -111
  373. package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Chrome-Stable-darwin.png +0 -0
  374. package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Chrome-Stable-linux.png +0 -0
  375. package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Firefox-darwin.png +0 -0
  376. package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Firefox-linux.png +0 -0
  377. package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Safari-darwin.png +0 -0
  378. package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Safari-linux.png +0 -0
  379. package/src/lib/progress/README.md +0 -107
  380. package/src/lib/progress/index.ts +0 -14
  381. package/src/lib/progress/progress.scss +0 -133
  382. package/src/lib/progress/progress.spec.ts +0 -173
  383. package/src/lib/progress/progress.template.ts +0 -62
  384. package/src/lib/progress/progress.ts +0 -25
  385. package/src/lib/progress/ui.test.ts +0 -70
  386. package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Chrome-Stable-darwin.png +0 -0
  387. package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Chrome-Stable-linux.png +0 -0
  388. package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Firefox-darwin.png +0 -0
  389. package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Firefox-linux.png +0 -0
  390. package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Safari-darwin.png +0 -0
  391. package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Safari-linux.png +0 -0
  392. package/src/lib/progress-ring/README.md +0 -90
  393. package/src/lib/progress-ring/index.ts +0 -15
  394. package/src/lib/progress-ring/progress-ring.scss +0 -75
  395. package/src/lib/progress-ring/progress-ring.spec.ts +0 -139
  396. package/src/lib/progress-ring/progress-ring.template.ts +0 -82
  397. package/src/lib/progress-ring/progress-ring.ts +0 -18
  398. package/src/lib/progress-ring/ui.test.ts +0 -35
  399. package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Chrome-Stable-darwin.png +0 -0
  400. package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Chrome-Stable-linux.png +0 -0
  401. package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Firefox-darwin.png +0 -0
  402. package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Firefox-linux.png +0 -0
  403. package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Safari-darwin.png +0 -0
  404. package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Safari-linux.png +0 -0
  405. package/src/lib/side-drawer/README.md +0 -304
  406. package/src/lib/side-drawer/index.ts +0 -16
  407. package/src/lib/side-drawer/partials/variables.scss +0 -6
  408. package/src/lib/side-drawer/side-drawer.scss +0 -109
  409. package/src/lib/side-drawer/side-drawer.spec.ts +0 -118
  410. package/src/lib/side-drawer/side-drawer.template.ts +0 -51
  411. package/src/lib/side-drawer/side-drawer.ts +0 -58
  412. package/src/lib/side-drawer/ui.test.ts +0 -102
  413. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Chrome-Stable-darwin.png +0 -0
  414. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Chrome-Stable-linux.png +0 -0
  415. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Firefox-darwin.png +0 -0
  416. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Firefox-linux.png +0 -0
  417. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Safari-darwin.png +0 -0
  418. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Safari-linux.png +0 -0
  419. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Chrome-Stable-darwin.png +0 -0
  420. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Chrome-Stable-linux.png +0 -0
  421. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Firefox-darwin.png +0 -0
  422. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Firefox-linux.png +0 -0
  423. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Safari-darwin.png +0 -0
  424. package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Safari-linux.png +0 -0
  425. package/src/lib/sidenav-item/README.md +0 -41
  426. package/src/lib/sidenav-item/index.ts +0 -20
  427. package/src/lib/sidenav-item/sidenav-item.scss +0 -51
  428. package/src/lib/sidenav-item/sidenav-item.spec.ts +0 -64
  429. package/src/lib/sidenav-item/sidenav-item.template.ts +0 -25
  430. package/src/lib/sidenav-item/sidenav-item.ts +0 -15
  431. package/src/lib/sidenav-item/ui.test.ts +0 -32
  432. package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Chrome-Stable-darwin.png +0 -0
  433. package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Chrome-Stable-linux.png +0 -0
  434. package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Firefox-darwin.png +0 -0
  435. package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Firefox-linux.png +0 -0
  436. package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Safari-darwin.png +0 -0
  437. package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Safari-linux.png +0 -0
  438. package/src/lib/text/README.md +0 -119
  439. package/src/lib/text/index.ts +0 -14
  440. package/src/lib/text/text.scss +0 -92
  441. package/src/lib/text/text.spec.ts +0 -54
  442. package/src/lib/text/text.template.ts +0 -28
  443. package/src/lib/text/text.ts +0 -55
  444. package/src/lib/text/ui.test.ts +0 -39
  445. package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Chrome-Stable-darwin.png +0 -0
  446. package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Chrome-Stable-linux.png +0 -0
  447. package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Firefox-darwin.png +0 -0
  448. package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Firefox-linux.png +0 -0
  449. package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Safari-darwin.png +0 -0
  450. package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Safari-linux.png +0 -0
  451. package/src/lib/text-anchor/README.md +0 -5
  452. package/src/lib/text-anchor/index.ts +0 -12
  453. package/src/lib/text-anchor/text-anchor.spec.ts +0 -153
  454. package/src/lib/text-anchor/text-anchor.template.ts +0 -66
  455. package/src/lib/text-anchor/text-anchor.ts +0 -22
  456. package/src/lib/tooltip/README.md +0 -132
  457. package/src/lib/tooltip/index.ts +0 -16
  458. package/src/lib/tooltip/partials/variables.scss +0 -1
  459. package/src/lib/tooltip/tooltip.scss +0 -18
  460. package/src/lib/tooltip/tooltip.spec.ts +0 -70
  461. package/src/lib/tooltip/tooltip.template.ts +0 -30
  462. package/src/lib/tooltip/tooltip.ts +0 -44
  463. package/src/lib/tooltip/ui.test.ts +0 -53
  464. package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Chrome-Stable-darwin.png +0 -0
  465. package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Chrome-Stable-linux.png +0 -0
  466. package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Firefox-darwin.png +0 -0
  467. package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Firefox-linux.png +0 -0
  468. package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Safari-darwin.png +0 -0
  469. package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Safari-linux.png +0 -0
  470. package/src/shared/design-system/index.ts +0 -12
  471. package/src/shared/patterns/affix.ts +0 -56
  472. package/src/shared/patterns/index.ts +0 -1
  473. package/src/types/extract-gfm.d.ts +0 -5
  474. package/src/types/style.d.ts +0 -4
  475. package/src/visual-tests/visual-tests-utils.ts +0 -76
  476. package/tsconfig.json +0 -36
  477. package/tsconfig.lib.json +0 -11
  478. package/tsconfig.spec.json +0 -16
package/shared/icon.js ADDED
@@ -0,0 +1,1406 @@
1
+ import { c as classofRaw, g as global$8, w as wellKnownSymbol$6, a as getBuiltIn$5, o as objectDefineProperty, d as descriptors, b as objectIsPrototypeOf, f as functionUncurryThis, e as fails$4, i as isCallable$6, h as inspectSource$2, t as tryToString$3, j as anObject$5, k as isNullOrUndefined$2, l as functionBindNative, m as aCallable$6, n as engineUserAgent, p as documentCreateElement, q as hasOwnProperty_1, r as objectGetOwnPropertyDescriptor, s as isForced_1, u as engineV8Version, _ as _export, v as defineBuiltIn$3, x as functionCall, y as isObject$2, z as internalState, A as getMethod$2, B as lengthOfArrayLike$1, C as requireObjectCoercible$1, D as functionName } from './export.js';
2
+ import { h as html$1, o as objectSetPrototypeOf, s as setToStringTag$1, i as iterators } from './iterators.js';
3
+ import { c as classof$3, t as toString$1 } from './to-string.js';
4
+ import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
5
+ import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
6
+
7
+ var classof$2 = classofRaw;
8
+ var global$7 = global$8;
9
+
10
+ var engineIsNode = classof$2(global$7.process) == 'process';
11
+
12
+ var getBuiltIn$4 = getBuiltIn$5;
13
+ var definePropertyModule = objectDefineProperty;
14
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
15
+ var DESCRIPTORS = descriptors;
16
+
17
+ var SPECIES$2 = wellKnownSymbol$5('species');
18
+
19
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
20
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
21
+ var defineProperty = definePropertyModule.f;
22
+
23
+ if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
24
+ defineProperty(Constructor, SPECIES$2, {
25
+ configurable: true,
26
+ get: function () { return this; }
27
+ });
28
+ }
29
+ };
30
+
31
+ var isPrototypeOf$1 = objectIsPrototypeOf;
32
+
33
+ var $TypeError$5 = TypeError;
34
+
35
+ var anInstance$1 = function (it, Prototype) {
36
+ if (isPrototypeOf$1(Prototype, it)) return it;
37
+ throw $TypeError$5('Incorrect invocation');
38
+ };
39
+
40
+ var uncurryThis$3 = functionUncurryThis;
41
+ var fails$3 = fails$4;
42
+ var isCallable$5 = isCallable$6;
43
+ var classof$1 = classof$3;
44
+ var getBuiltIn$3 = getBuiltIn$5;
45
+ var inspectSource$1 = inspectSource$2;
46
+
47
+ var noop = function () { /* empty */ };
48
+ var empty = [];
49
+ var construct = getBuiltIn$3('Reflect', 'construct');
50
+ var constructorRegExp = /^\s*(?:class|function)\b/;
51
+ var exec = uncurryThis$3(constructorRegExp.exec);
52
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
53
+
54
+ var isConstructorModern = function isConstructor(argument) {
55
+ if (!isCallable$5(argument)) return false;
56
+ try {
57
+ construct(noop, empty, argument);
58
+ return true;
59
+ } catch (error) {
60
+ return false;
61
+ }
62
+ };
63
+
64
+ var isConstructorLegacy = function isConstructor(argument) {
65
+ if (!isCallable$5(argument)) return false;
66
+ switch (classof$1(argument)) {
67
+ case 'AsyncFunction':
68
+ case 'GeneratorFunction':
69
+ case 'AsyncGeneratorFunction': return false;
70
+ }
71
+ try {
72
+ // we can't check .prototype since constructors produced by .bind haven't it
73
+ // `Function#toString` throws on some built-it function in some legacy engines
74
+ // (for example, `DOMQuad` and similar in FF41-)
75
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
76
+ } catch (error) {
77
+ return true;
78
+ }
79
+ };
80
+
81
+ isConstructorLegacy.sham = true;
82
+
83
+ // `IsConstructor` abstract operation
84
+ // https://tc39.es/ecma262/#sec-isconstructor
85
+ var isConstructor$1 = !construct || fails$3(function () {
86
+ var called;
87
+ return isConstructorModern(isConstructorModern.call)
88
+ || !isConstructorModern(Object)
89
+ || !isConstructorModern(function () { called = true; })
90
+ || called;
91
+ }) ? isConstructorLegacy : isConstructorModern;
92
+
93
+ var isConstructor = isConstructor$1;
94
+ var tryToString$2 = tryToString$3;
95
+
96
+ var $TypeError$4 = TypeError;
97
+
98
+ // `Assert: IsConstructor(argument) is true`
99
+ var aConstructor$1 = function (argument) {
100
+ if (isConstructor(argument)) return argument;
101
+ throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
102
+ };
103
+
104
+ var anObject$4 = anObject$5;
105
+ var aConstructor = aConstructor$1;
106
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
107
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
108
+
109
+ var SPECIES$1 = wellKnownSymbol$4('species');
110
+
111
+ // `SpeciesConstructor` abstract operation
112
+ // https://tc39.es/ecma262/#sec-speciesconstructor
113
+ var speciesConstructor$2 = function (O, defaultConstructor) {
114
+ var C = anObject$4(O).constructor;
115
+ var S;
116
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
117
+ };
118
+
119
+ var NATIVE_BIND$1 = functionBindNative;
120
+
121
+ var FunctionPrototype = Function.prototype;
122
+ var apply$1 = FunctionPrototype.apply;
123
+ var call$7 = FunctionPrototype.call;
124
+
125
+ // eslint-disable-next-line es-x/no-reflect -- safe
126
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
127
+ return call$7.apply(apply$1, arguments);
128
+ });
129
+
130
+ var uncurryThis$2 = functionUncurryThis;
131
+ var aCallable$5 = aCallable$6;
132
+ var NATIVE_BIND = functionBindNative;
133
+
134
+ var bind$4 = uncurryThis$2(uncurryThis$2.bind);
135
+
136
+ // optional / simple context binding
137
+ var functionBindContext = function (fn, that) {
138
+ aCallable$5(fn);
139
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
140
+ return fn.apply(that, arguments);
141
+ };
142
+ };
143
+
144
+ var uncurryThis$1 = functionUncurryThis;
145
+
146
+ var arraySlice$1 = uncurryThis$1([].slice);
147
+
148
+ var $TypeError$3 = TypeError;
149
+
150
+ var validateArgumentsLength$1 = function (passed, required) {
151
+ if (passed < required) throw $TypeError$3('Not enough arguments');
152
+ return passed;
153
+ };
154
+
155
+ var userAgent$2 = engineUserAgent;
156
+
157
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
158
+
159
+ var global$6 = global$8;
160
+ var apply = functionApply;
161
+ var bind$3 = functionBindContext;
162
+ var isCallable$4 = isCallable$6;
163
+ var hasOwn = hasOwnProperty_1;
164
+ var fails$2 = fails$4;
165
+ var html = html$1;
166
+ var arraySlice = arraySlice$1;
167
+ var createElement = documentCreateElement;
168
+ var validateArgumentsLength = validateArgumentsLength$1;
169
+ var IS_IOS$1 = engineIsIos;
170
+ var IS_NODE$3 = engineIsNode;
171
+
172
+ var set = global$6.setImmediate;
173
+ var clear = global$6.clearImmediate;
174
+ var process$2 = global$6.process;
175
+ var Dispatch = global$6.Dispatch;
176
+ var Function$1 = global$6.Function;
177
+ var MessageChannel = global$6.MessageChannel;
178
+ var String$1 = global$6.String;
179
+ var counter = 0;
180
+ var queue$1 = {};
181
+ var ONREADYSTATECHANGE = 'onreadystatechange';
182
+ var location, defer, channel, port;
183
+
184
+ try {
185
+ // Deno throws a ReferenceError on `location` access without `--location` flag
186
+ location = global$6.location;
187
+ } catch (error) { /* empty */ }
188
+
189
+ var run = function (id) {
190
+ if (hasOwn(queue$1, id)) {
191
+ var fn = queue$1[id];
192
+ delete queue$1[id];
193
+ fn();
194
+ }
195
+ };
196
+
197
+ var runner = function (id) {
198
+ return function () {
199
+ run(id);
200
+ };
201
+ };
202
+
203
+ var listener = function (event) {
204
+ run(event.data);
205
+ };
206
+
207
+ var post = function (id) {
208
+ // old engines have not location.origin
209
+ global$6.postMessage(String$1(id), location.protocol + '//' + location.host);
210
+ };
211
+
212
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
213
+ if (!set || !clear) {
214
+ set = function setImmediate(handler) {
215
+ validateArgumentsLength(arguments.length, 1);
216
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
217
+ var args = arraySlice(arguments, 1);
218
+ queue$1[++counter] = function () {
219
+ apply(fn, undefined, args);
220
+ };
221
+ defer(counter);
222
+ return counter;
223
+ };
224
+ clear = function clearImmediate(id) {
225
+ delete queue$1[id];
226
+ };
227
+ // Node.js 0.8-
228
+ if (IS_NODE$3) {
229
+ defer = function (id) {
230
+ process$2.nextTick(runner(id));
231
+ };
232
+ // Sphere (JS game engine) Dispatch API
233
+ } else if (Dispatch && Dispatch.now) {
234
+ defer = function (id) {
235
+ Dispatch.now(runner(id));
236
+ };
237
+ // Browsers with MessageChannel, includes WebWorkers
238
+ // except iOS - https://github.com/zloirock/core-js/issues/624
239
+ } else if (MessageChannel && !IS_IOS$1) {
240
+ channel = new MessageChannel();
241
+ port = channel.port2;
242
+ channel.port1.onmessage = listener;
243
+ defer = bind$3(port.postMessage, port);
244
+ // Browsers with postMessage, skip WebWorkers
245
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
246
+ } else if (
247
+ global$6.addEventListener &&
248
+ isCallable$4(global$6.postMessage) &&
249
+ !global$6.importScripts &&
250
+ location && location.protocol !== 'file:' &&
251
+ !fails$2(post)
252
+ ) {
253
+ defer = post;
254
+ global$6.addEventListener('message', listener, false);
255
+ // IE8-
256
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
257
+ defer = function (id) {
258
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
259
+ html.removeChild(this);
260
+ run(id);
261
+ };
262
+ };
263
+ // Rest old browsers
264
+ } else {
265
+ defer = function (id) {
266
+ setTimeout(runner(id), 0);
267
+ };
268
+ }
269
+ }
270
+
271
+ var task$1 = {
272
+ set: set,
273
+ clear: clear
274
+ };
275
+
276
+ var userAgent$1 = engineUserAgent;
277
+ var global$5 = global$8;
278
+
279
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$5.Pebble !== undefined;
280
+
281
+ var userAgent = engineUserAgent;
282
+
283
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
284
+
285
+ var global$4 = global$8;
286
+ var bind$2 = functionBindContext;
287
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
288
+ var macrotask = task$1.set;
289
+ var IS_IOS = engineIsIos;
290
+ var IS_IOS_PEBBLE = engineIsIosPebble;
291
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
292
+ var IS_NODE$2 = engineIsNode;
293
+
294
+ var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
295
+ var document$2 = global$4.document;
296
+ var process$1 = global$4.process;
297
+ var Promise$1 = global$4.Promise;
298
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
299
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
300
+ var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
301
+
302
+ var flush, head, last, notify$1, toggle, node, promise, then;
303
+
304
+ // modern engines have queueMicrotask method
305
+ if (!queueMicrotask) {
306
+ flush = function () {
307
+ var parent, fn;
308
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
309
+ while (head) {
310
+ fn = head.fn;
311
+ head = head.next;
312
+ try {
313
+ fn();
314
+ } catch (error) {
315
+ if (head) notify$1();
316
+ else last = undefined;
317
+ throw error;
318
+ }
319
+ } last = undefined;
320
+ if (parent) parent.enter();
321
+ };
322
+
323
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
324
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
325
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
326
+ toggle = true;
327
+ node = document$2.createTextNode('');
328
+ new MutationObserver(flush).observe(node, { characterData: true });
329
+ notify$1 = function () {
330
+ node.data = toggle = !toggle;
331
+ };
332
+ // environments with maybe non-completely correct, but existent Promise
333
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
334
+ // Promise.resolve without an argument throws an error in LG WebOS 2
335
+ promise = Promise$1.resolve(undefined);
336
+ // workaround of WebKit ~ iOS Safari 10.1 bug
337
+ promise.constructor = Promise$1;
338
+ then = bind$2(promise.then, promise);
339
+ notify$1 = function () {
340
+ then(flush);
341
+ };
342
+ // Node.js without promises
343
+ } else if (IS_NODE$2) {
344
+ notify$1 = function () {
345
+ process$1.nextTick(flush);
346
+ };
347
+ // for other environments - macrotask based on:
348
+ // - setImmediate
349
+ // - MessageChannel
350
+ // - window.postMessage
351
+ // - onreadystatechange
352
+ // - setTimeout
353
+ } else {
354
+ // strange IE + webpack dev server bug - use .bind(global)
355
+ macrotask = bind$2(macrotask, global$4);
356
+ notify$1 = function () {
357
+ macrotask(flush);
358
+ };
359
+ }
360
+ }
361
+
362
+ var microtask$1 = queueMicrotask || function (fn) {
363
+ var task = { fn: fn, next: undefined };
364
+ if (last) last.next = task;
365
+ if (!head) {
366
+ head = task;
367
+ notify$1();
368
+ } last = task;
369
+ };
370
+
371
+ var global$3 = global$8;
372
+
373
+ var hostReportErrors$1 = function (a, b) {
374
+ var console = global$3.console;
375
+ if (console && console.error) {
376
+ arguments.length == 1 ? console.error(a) : console.error(a, b);
377
+ }
378
+ };
379
+
380
+ var perform$3 = function (exec) {
381
+ try {
382
+ return { error: false, value: exec() };
383
+ } catch (error) {
384
+ return { error: true, value: error };
385
+ }
386
+ };
387
+
388
+ var Queue$1 = function () {
389
+ this.head = null;
390
+ this.tail = null;
391
+ };
392
+
393
+ Queue$1.prototype = {
394
+ add: function (item) {
395
+ var entry = { item: item, next: null };
396
+ if (this.head) this.tail.next = entry;
397
+ else this.head = entry;
398
+ this.tail = entry;
399
+ },
400
+ get: function () {
401
+ var entry = this.head;
402
+ if (entry) {
403
+ this.head = entry.next;
404
+ if (this.tail === entry) this.tail = null;
405
+ return entry.item;
406
+ }
407
+ }
408
+ };
409
+
410
+ var queue = Queue$1;
411
+
412
+ var global$2 = global$8;
413
+
414
+ var promiseNativeConstructor = global$2.Promise;
415
+
416
+ /* global Deno -- Deno case */
417
+
418
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
419
+
420
+ var IS_DENO$1 = engineIsDeno;
421
+ var IS_NODE$1 = engineIsNode;
422
+
423
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
424
+ && typeof window == 'object'
425
+ && typeof document == 'object';
426
+
427
+ var global$1 = global$8;
428
+ var NativePromiseConstructor$4 = promiseNativeConstructor;
429
+ var isCallable$3 = isCallable$6;
430
+ var isForced = isForced_1;
431
+ var inspectSource = inspectSource$2;
432
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
433
+ var IS_BROWSER = engineIsBrowser;
434
+ var IS_DENO = engineIsDeno;
435
+ var V8_VERSION = engineV8Version;
436
+
437
+ NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
438
+ var SPECIES = wellKnownSymbol$3('species');
439
+ var SUBCLASSING = false;
440
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$1.PromiseRejectionEvent);
441
+
442
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
443
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
444
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
445
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
446
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
447
+ // We can't detect it synchronously, so just check versions
448
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
449
+ // We can't use @@species feature detection in V8 since it causes
450
+ // deoptimization and performance degradation
451
+ // https://github.com/zloirock/core-js/issues/679
452
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
453
+ // Detect correctness of subclassing with @@species support
454
+ var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
455
+ var FakePromise = function (exec) {
456
+ exec(function () { /* empty */ }, function () { /* empty */ });
457
+ };
458
+ var constructor = promise.constructor = {};
459
+ constructor[SPECIES] = FakePromise;
460
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
461
+ if (!SUBCLASSING) return true;
462
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
463
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
464
+ });
465
+
466
+ var promiseConstructorDetection = {
467
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
468
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
469
+ SUBCLASSING: SUBCLASSING
470
+ };
471
+
472
+ var newPromiseCapability$2 = {};
473
+
474
+ var aCallable$4 = aCallable$6;
475
+
476
+ var $TypeError$2 = TypeError;
477
+
478
+ var PromiseCapability = function (C) {
479
+ var resolve, reject;
480
+ this.promise = new C(function ($$resolve, $$reject) {
481
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
482
+ resolve = $$resolve;
483
+ reject = $$reject;
484
+ });
485
+ this.resolve = aCallable$4(resolve);
486
+ this.reject = aCallable$4(reject);
487
+ };
488
+
489
+ // `NewPromiseCapability` abstract operation
490
+ // https://tc39.es/ecma262/#sec-newpromisecapability
491
+ newPromiseCapability$2.f = function (C) {
492
+ return new PromiseCapability(C);
493
+ };
494
+
495
+ var $$7 = _export;
496
+ var IS_NODE = engineIsNode;
497
+ var global = global$8;
498
+ var call$6 = functionCall;
499
+ var defineBuiltIn$2 = defineBuiltIn$3;
500
+ var setPrototypeOf = objectSetPrototypeOf;
501
+ var setToStringTag = setToStringTag$1;
502
+ var setSpecies = setSpecies$1;
503
+ var aCallable$3 = aCallable$6;
504
+ var isCallable$2 = isCallable$6;
505
+ var isObject$1 = isObject$2;
506
+ var anInstance = anInstance$1;
507
+ var speciesConstructor$1 = speciesConstructor$2;
508
+ var task = task$1.set;
509
+ var microtask = microtask$1;
510
+ var hostReportErrors = hostReportErrors$1;
511
+ var perform$2 = perform$3;
512
+ var Queue = queue;
513
+ var InternalStateModule = internalState;
514
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
515
+ var PromiseConstructorDetection = promiseConstructorDetection;
516
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
517
+
518
+ var PROMISE = 'Promise';
519
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
520
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
521
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
522
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
523
+ var setInternalState = InternalStateModule.set;
524
+ var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
525
+ var PromiseConstructor = NativePromiseConstructor$3;
526
+ var PromisePrototype = NativePromisePrototype$2;
527
+ var TypeError$1 = global.TypeError;
528
+ var document$1 = global.document;
529
+ var process = global.process;
530
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
531
+ var newGenericPromiseCapability = newPromiseCapability$1;
532
+
533
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global.dispatchEvent);
534
+ var UNHANDLED_REJECTION = 'unhandledrejection';
535
+ var REJECTION_HANDLED = 'rejectionhandled';
536
+ var PENDING = 0;
537
+ var FULFILLED = 1;
538
+ var REJECTED = 2;
539
+ var HANDLED = 1;
540
+ var UNHANDLED = 2;
541
+
542
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
543
+
544
+ // helpers
545
+ var isThenable = function (it) {
546
+ var then;
547
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
548
+ };
549
+
550
+ var callReaction = function (reaction, state) {
551
+ var value = state.value;
552
+ var ok = state.state == FULFILLED;
553
+ var handler = ok ? reaction.ok : reaction.fail;
554
+ var resolve = reaction.resolve;
555
+ var reject = reaction.reject;
556
+ var domain = reaction.domain;
557
+ var result, then, exited;
558
+ try {
559
+ if (handler) {
560
+ if (!ok) {
561
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
562
+ state.rejection = HANDLED;
563
+ }
564
+ if (handler === true) result = value;
565
+ else {
566
+ if (domain) domain.enter();
567
+ result = handler(value); // can throw
568
+ if (domain) {
569
+ domain.exit();
570
+ exited = true;
571
+ }
572
+ }
573
+ if (result === reaction.promise) {
574
+ reject(TypeError$1('Promise-chain cycle'));
575
+ } else if (then = isThenable(result)) {
576
+ call$6(then, result, resolve, reject);
577
+ } else resolve(result);
578
+ } else reject(value);
579
+ } catch (error) {
580
+ if (domain && !exited) domain.exit();
581
+ reject(error);
582
+ }
583
+ };
584
+
585
+ var notify = function (state, isReject) {
586
+ if (state.notified) return;
587
+ state.notified = true;
588
+ microtask(function () {
589
+ var reactions = state.reactions;
590
+ var reaction;
591
+ while (reaction = reactions.get()) {
592
+ callReaction(reaction, state);
593
+ }
594
+ state.notified = false;
595
+ if (isReject && !state.rejection) onUnhandled(state);
596
+ });
597
+ };
598
+
599
+ var dispatchEvent = function (name, promise, reason) {
600
+ var event, handler;
601
+ if (DISPATCH_EVENT) {
602
+ event = document$1.createEvent('Event');
603
+ event.promise = promise;
604
+ event.reason = reason;
605
+ event.initEvent(name, false, true);
606
+ global.dispatchEvent(event);
607
+ } else event = { promise: promise, reason: reason };
608
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
609
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
610
+ };
611
+
612
+ var onUnhandled = function (state) {
613
+ call$6(task, global, function () {
614
+ var promise = state.facade;
615
+ var value = state.value;
616
+ var IS_UNHANDLED = isUnhandled(state);
617
+ var result;
618
+ if (IS_UNHANDLED) {
619
+ result = perform$2(function () {
620
+ if (IS_NODE) {
621
+ process.emit('unhandledRejection', value, promise);
622
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
623
+ });
624
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
625
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
626
+ if (result.error) throw result.value;
627
+ }
628
+ });
629
+ };
630
+
631
+ var isUnhandled = function (state) {
632
+ return state.rejection !== HANDLED && !state.parent;
633
+ };
634
+
635
+ var onHandleUnhandled = function (state) {
636
+ call$6(task, global, function () {
637
+ var promise = state.facade;
638
+ if (IS_NODE) {
639
+ process.emit('rejectionHandled', promise);
640
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
641
+ });
642
+ };
643
+
644
+ var bind$1 = function (fn, state, unwrap) {
645
+ return function (value) {
646
+ fn(state, value, unwrap);
647
+ };
648
+ };
649
+
650
+ var internalReject = function (state, value, unwrap) {
651
+ if (state.done) return;
652
+ state.done = true;
653
+ if (unwrap) state = unwrap;
654
+ state.value = value;
655
+ state.state = REJECTED;
656
+ notify(state, true);
657
+ };
658
+
659
+ var internalResolve = function (state, value, unwrap) {
660
+ if (state.done) return;
661
+ state.done = true;
662
+ if (unwrap) state = unwrap;
663
+ try {
664
+ if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
665
+ var then = isThenable(value);
666
+ if (then) {
667
+ microtask(function () {
668
+ var wrapper = { done: false };
669
+ try {
670
+ call$6(then, value,
671
+ bind$1(internalResolve, wrapper, state),
672
+ bind$1(internalReject, wrapper, state)
673
+ );
674
+ } catch (error) {
675
+ internalReject(wrapper, error, state);
676
+ }
677
+ });
678
+ } else {
679
+ state.value = value;
680
+ state.state = FULFILLED;
681
+ notify(state, false);
682
+ }
683
+ } catch (error) {
684
+ internalReject({ done: false }, error, state);
685
+ }
686
+ };
687
+
688
+ // constructor polyfill
689
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
690
+ // 25.4.3.1 Promise(executor)
691
+ PromiseConstructor = function Promise(executor) {
692
+ anInstance(this, PromisePrototype);
693
+ aCallable$3(executor);
694
+ call$6(Internal, this);
695
+ var state = getInternalPromiseState(this);
696
+ try {
697
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
698
+ } catch (error) {
699
+ internalReject(state, error);
700
+ }
701
+ };
702
+
703
+ PromisePrototype = PromiseConstructor.prototype;
704
+
705
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
706
+ Internal = function Promise(executor) {
707
+ setInternalState(this, {
708
+ type: PROMISE,
709
+ done: false,
710
+ notified: false,
711
+ parent: false,
712
+ reactions: new Queue(),
713
+ rejection: false,
714
+ state: PENDING,
715
+ value: undefined
716
+ });
717
+ };
718
+
719
+ // `Promise.prototype.then` method
720
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
721
+ Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
722
+ var state = getInternalPromiseState(this);
723
+ var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
724
+ state.parent = true;
725
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
726
+ reaction.fail = isCallable$2(onRejected) && onRejected;
727
+ reaction.domain = IS_NODE ? process.domain : undefined;
728
+ if (state.state == PENDING) state.reactions.add(reaction);
729
+ else microtask(function () {
730
+ callReaction(reaction, state);
731
+ });
732
+ return reaction.promise;
733
+ });
734
+
735
+ OwnPromiseCapability = function () {
736
+ var promise = new Internal();
737
+ var state = getInternalPromiseState(promise);
738
+ this.promise = promise;
739
+ this.resolve = bind$1(internalResolve, state);
740
+ this.reject = bind$1(internalReject, state);
741
+ };
742
+
743
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
744
+ return C === PromiseConstructor || C === PromiseWrapper
745
+ ? new OwnPromiseCapability(C)
746
+ : newGenericPromiseCapability(C);
747
+ };
748
+
749
+ if (isCallable$2(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
750
+ nativeThen = NativePromisePrototype$2.then;
751
+
752
+ if (!NATIVE_PROMISE_SUBCLASSING) {
753
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
754
+ defineBuiltIn$2(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
755
+ var that = this;
756
+ return new PromiseConstructor(function (resolve, reject) {
757
+ call$6(nativeThen, that, resolve, reject);
758
+ }).then(onFulfilled, onRejected);
759
+ // https://github.com/zloirock/core-js/issues/640
760
+ }, { unsafe: true });
761
+ }
762
+
763
+ // make `.constructor === Promise` work for native promise-based APIs
764
+ try {
765
+ delete NativePromisePrototype$2.constructor;
766
+ } catch (error) { /* empty */ }
767
+
768
+ // make `instanceof Promise` work for native promise-based APIs
769
+ if (setPrototypeOf) {
770
+ setPrototypeOf(NativePromisePrototype$2, PromisePrototype);
771
+ }
772
+ }
773
+ }
774
+
775
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
776
+ Promise: PromiseConstructor
777
+ });
778
+
779
+ setToStringTag(PromiseConstructor, PROMISE, false);
780
+ setSpecies(PROMISE);
781
+
782
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
783
+ var Iterators$1 = iterators;
784
+
785
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
786
+ var ArrayPrototype = Array.prototype;
787
+
788
+ // check on default Array iterator
789
+ var isArrayIteratorMethod$1 = function (it) {
790
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
791
+ };
792
+
793
+ var classof = classof$3;
794
+ var getMethod$1 = getMethod$2;
795
+ var isNullOrUndefined = isNullOrUndefined$2;
796
+ var Iterators = iterators;
797
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
798
+
799
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
800
+
801
+ var getIteratorMethod$2 = function (it) {
802
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
803
+ || getMethod$1(it, '@@iterator')
804
+ || Iterators[classof(it)];
805
+ };
806
+
807
+ var call$5 = functionCall;
808
+ var aCallable$2 = aCallable$6;
809
+ var anObject$3 = anObject$5;
810
+ var tryToString$1 = tryToString$3;
811
+ var getIteratorMethod$1 = getIteratorMethod$2;
812
+
813
+ var $TypeError$1 = TypeError;
814
+
815
+ var getIterator$1 = function (argument, usingIterator) {
816
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
817
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
818
+ throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
819
+ };
820
+
821
+ var call$4 = functionCall;
822
+ var anObject$2 = anObject$5;
823
+ var getMethod = getMethod$2;
824
+
825
+ var iteratorClose$1 = function (iterator, kind, value) {
826
+ var innerResult, innerError;
827
+ anObject$2(iterator);
828
+ try {
829
+ innerResult = getMethod(iterator, 'return');
830
+ if (!innerResult) {
831
+ if (kind === 'throw') throw value;
832
+ return value;
833
+ }
834
+ innerResult = call$4(innerResult, iterator);
835
+ } catch (error) {
836
+ innerError = true;
837
+ innerResult = error;
838
+ }
839
+ if (kind === 'throw') throw value;
840
+ if (innerError) throw innerResult;
841
+ anObject$2(innerResult);
842
+ return value;
843
+ };
844
+
845
+ var bind = functionBindContext;
846
+ var call$3 = functionCall;
847
+ var anObject$1 = anObject$5;
848
+ var tryToString = tryToString$3;
849
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
850
+ var lengthOfArrayLike = lengthOfArrayLike$1;
851
+ var isPrototypeOf = objectIsPrototypeOf;
852
+ var getIterator = getIterator$1;
853
+ var getIteratorMethod = getIteratorMethod$2;
854
+ var iteratorClose = iteratorClose$1;
855
+
856
+ var $TypeError = TypeError;
857
+
858
+ var Result = function (stopped, result) {
859
+ this.stopped = stopped;
860
+ this.result = result;
861
+ };
862
+
863
+ var ResultPrototype = Result.prototype;
864
+
865
+ var iterate$2 = function (iterable, unboundFunction, options) {
866
+ var that = options && options.that;
867
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
868
+ var IS_RECORD = !!(options && options.IS_RECORD);
869
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
870
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
871
+ var fn = bind(unboundFunction, that);
872
+ var iterator, iterFn, index, length, result, next, step;
873
+
874
+ var stop = function (condition) {
875
+ if (iterator) iteratorClose(iterator, 'normal', condition);
876
+ return new Result(true, condition);
877
+ };
878
+
879
+ var callFn = function (value) {
880
+ if (AS_ENTRIES) {
881
+ anObject$1(value);
882
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
883
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
884
+ };
885
+
886
+ if (IS_RECORD) {
887
+ iterator = iterable.iterator;
888
+ } else if (IS_ITERATOR) {
889
+ iterator = iterable;
890
+ } else {
891
+ iterFn = getIteratorMethod(iterable);
892
+ if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
893
+ // optimisation for array iterators
894
+ if (isArrayIteratorMethod(iterFn)) {
895
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
896
+ result = callFn(iterable[index]);
897
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
898
+ } return new Result(false);
899
+ }
900
+ iterator = getIterator(iterable, iterFn);
901
+ }
902
+
903
+ next = IS_RECORD ? iterable.next : iterator.next;
904
+ while (!(step = call$3(next, iterator)).done) {
905
+ try {
906
+ result = callFn(step.value);
907
+ } catch (error) {
908
+ iteratorClose(iterator, 'throw', error);
909
+ }
910
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
911
+ } return new Result(false);
912
+ };
913
+
914
+ var wellKnownSymbol = wellKnownSymbol$6;
915
+
916
+ var ITERATOR = wellKnownSymbol('iterator');
917
+ var SAFE_CLOSING = false;
918
+
919
+ try {
920
+ var called = 0;
921
+ var iteratorWithReturn = {
922
+ next: function () {
923
+ return { done: !!called++ };
924
+ },
925
+ 'return': function () {
926
+ SAFE_CLOSING = true;
927
+ }
928
+ };
929
+ iteratorWithReturn[ITERATOR] = function () {
930
+ return this;
931
+ };
932
+ // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
933
+ Array.from(iteratorWithReturn, function () { throw 2; });
934
+ } catch (error) { /* empty */ }
935
+
936
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
937
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
938
+ var ITERATION_SUPPORT = false;
939
+ try {
940
+ var object = {};
941
+ object[ITERATOR] = function () {
942
+ return {
943
+ next: function () {
944
+ return { done: ITERATION_SUPPORT = true };
945
+ }
946
+ };
947
+ };
948
+ exec(object);
949
+ } catch (error) { /* empty */ }
950
+ return ITERATION_SUPPORT;
951
+ };
952
+
953
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
954
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
955
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
956
+
957
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
958
+ NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
959
+ });
960
+
961
+ var $$6 = _export;
962
+ var call$2 = functionCall;
963
+ var aCallable$1 = aCallable$6;
964
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
965
+ var perform$1 = perform$3;
966
+ var iterate$1 = iterate$2;
967
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
968
+
969
+ // `Promise.all` method
970
+ // https://tc39.es/ecma262/#sec-promise.all
971
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
972
+ all: function all(iterable) {
973
+ var C = this;
974
+ var capability = newPromiseCapabilityModule$2.f(C);
975
+ var resolve = capability.resolve;
976
+ var reject = capability.reject;
977
+ var result = perform$1(function () {
978
+ var $promiseResolve = aCallable$1(C.resolve);
979
+ var values = [];
980
+ var counter = 0;
981
+ var remaining = 1;
982
+ iterate$1(iterable, function (promise) {
983
+ var index = counter++;
984
+ var alreadyCalled = false;
985
+ remaining++;
986
+ call$2($promiseResolve, C, promise).then(function (value) {
987
+ if (alreadyCalled) return;
988
+ alreadyCalled = true;
989
+ values[index] = value;
990
+ --remaining || resolve(values);
991
+ }, reject);
992
+ });
993
+ --remaining || resolve(values);
994
+ });
995
+ if (result.error) reject(result.value);
996
+ return capability.promise;
997
+ }
998
+ });
999
+
1000
+ var $$5 = _export;
1001
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
1002
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
1003
+ var getBuiltIn$2 = getBuiltIn$5;
1004
+ var isCallable$1 = isCallable$6;
1005
+ var defineBuiltIn$1 = defineBuiltIn$3;
1006
+
1007
+ var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
1008
+
1009
+ // `Promise.prototype.catch` method
1010
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
1011
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
1012
+ 'catch': function (onRejected) {
1013
+ return this.then(undefined, onRejected);
1014
+ }
1015
+ });
1016
+
1017
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
1018
+ if (isCallable$1(NativePromiseConstructor$1)) {
1019
+ var method$1 = getBuiltIn$2('Promise').prototype['catch'];
1020
+ if (NativePromisePrototype$1['catch'] !== method$1) {
1021
+ defineBuiltIn$1(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
1022
+ }
1023
+ }
1024
+
1025
+ var $$4 = _export;
1026
+ var call$1 = functionCall;
1027
+ var aCallable = aCallable$6;
1028
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
1029
+ var perform = perform$3;
1030
+ var iterate = iterate$2;
1031
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
1032
+
1033
+ // `Promise.race` method
1034
+ // https://tc39.es/ecma262/#sec-promise.race
1035
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
1036
+ race: function race(iterable) {
1037
+ var C = this;
1038
+ var capability = newPromiseCapabilityModule$1.f(C);
1039
+ var reject = capability.reject;
1040
+ var result = perform(function () {
1041
+ var $promiseResolve = aCallable(C.resolve);
1042
+ iterate(iterable, function (promise) {
1043
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
1044
+ });
1045
+ });
1046
+ if (result.error) reject(result.value);
1047
+ return capability.promise;
1048
+ }
1049
+ });
1050
+
1051
+ var $$3 = _export;
1052
+ var call = functionCall;
1053
+ var newPromiseCapabilityModule = newPromiseCapability$2;
1054
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
1055
+
1056
+ // `Promise.reject` method
1057
+ // https://tc39.es/ecma262/#sec-promise.reject
1058
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
1059
+ reject: function reject(r) {
1060
+ var capability = newPromiseCapabilityModule.f(this);
1061
+ call(capability.reject, undefined, r);
1062
+ return capability.promise;
1063
+ }
1064
+ });
1065
+
1066
+ var anObject = anObject$5;
1067
+ var isObject = isObject$2;
1068
+ var newPromiseCapability = newPromiseCapability$2;
1069
+
1070
+ var promiseResolve$2 = function (C, x) {
1071
+ anObject(C);
1072
+ if (isObject(x) && x.constructor === C) return x;
1073
+ var promiseCapability = newPromiseCapability.f(C);
1074
+ var resolve = promiseCapability.resolve;
1075
+ resolve(x);
1076
+ return promiseCapability.promise;
1077
+ };
1078
+
1079
+ var $$2 = _export;
1080
+ var getBuiltIn$1 = getBuiltIn$5;
1081
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
1082
+ var promiseResolve$1 = promiseResolve$2;
1083
+
1084
+ getBuiltIn$1('Promise');
1085
+
1086
+ // `Promise.resolve` method
1087
+ // https://tc39.es/ecma262/#sec-promise.resolve
1088
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
1089
+ resolve: function resolve(x) {
1090
+ return promiseResolve$1(this, x);
1091
+ }
1092
+ });
1093
+
1094
+ // a string of all valid unicode whitespaces
1095
+ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1096
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1097
+
1098
+ var uncurryThis = functionUncurryThis;
1099
+ var requireObjectCoercible = requireObjectCoercible$1;
1100
+ var toString = toString$1;
1101
+ var whitespaces$1 = whitespaces$2;
1102
+
1103
+ var replace = uncurryThis(''.replace);
1104
+ var whitespace = '[' + whitespaces$1 + ']';
1105
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
1106
+ var rtrim = RegExp(whitespace + whitespace + '*$');
1107
+
1108
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1109
+ var createMethod = function (TYPE) {
1110
+ return function ($this) {
1111
+ var string = toString(requireObjectCoercible($this));
1112
+ if (TYPE & 1) string = replace(string, ltrim, '');
1113
+ if (TYPE & 2) string = replace(string, rtrim, '');
1114
+ return string;
1115
+ };
1116
+ };
1117
+
1118
+ var stringTrim = {
1119
+ // `String.prototype.{ trimLeft, trimStart }` methods
1120
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1121
+ start: createMethod(1),
1122
+ // `String.prototype.{ trimRight, trimEnd }` methods
1123
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
1124
+ end: createMethod(2),
1125
+ // `String.prototype.trim` method
1126
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
1127
+ trim: createMethod(3)
1128
+ };
1129
+
1130
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
1131
+ var fails$1 = fails$4;
1132
+ var whitespaces = whitespaces$2;
1133
+
1134
+ var non = '\u200B\u0085\u180E';
1135
+
1136
+ // check that a method works with the correct list
1137
+ // of whitespaces and has a correct name
1138
+ var stringTrimForced = function (METHOD_NAME) {
1139
+ return fails$1(function () {
1140
+ return !!whitespaces[METHOD_NAME]()
1141
+ || non[METHOD_NAME]() !== non
1142
+ || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
1143
+ });
1144
+ };
1145
+
1146
+ var $$1 = _export;
1147
+ var $trim = stringTrim.trim;
1148
+ var forcedStringTrimMethod = stringTrimForced;
1149
+
1150
+ // `String.prototype.trim` method
1151
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
1152
+ $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1153
+ trim: function trim() {
1154
+ return $trim(this);
1155
+ }
1156
+ });
1157
+
1158
+ var $ = _export;
1159
+ var NativePromiseConstructor = promiseNativeConstructor;
1160
+ var fails = fails$4;
1161
+ var getBuiltIn = getBuiltIn$5;
1162
+ var isCallable = isCallable$6;
1163
+ var speciesConstructor = speciesConstructor$2;
1164
+ var promiseResolve = promiseResolve$2;
1165
+ var defineBuiltIn = defineBuiltIn$3;
1166
+
1167
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
1168
+
1169
+ // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
1170
+ var NON_GENERIC = !!NativePromiseConstructor && fails(function () {
1171
+ // eslint-disable-next-line unicorn/no-thenable -- required for testing
1172
+ NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
1173
+ });
1174
+
1175
+ // `Promise.prototype.finally` method
1176
+ // https://tc39.es/ecma262/#sec-promise.prototype.finally
1177
+ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
1178
+ 'finally': function (onFinally) {
1179
+ var C = speciesConstructor(this, getBuiltIn('Promise'));
1180
+ var isFunction = isCallable(onFinally);
1181
+ return this.then(
1182
+ isFunction ? function (x) {
1183
+ return promiseResolve(C, onFinally()).then(function () { return x; });
1184
+ } : onFinally,
1185
+ isFunction ? function (e) {
1186
+ return promiseResolve(C, onFinally()).then(function () { throw e; });
1187
+ } : onFinally
1188
+ );
1189
+ }
1190
+ });
1191
+
1192
+ // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
1193
+ if (isCallable(NativePromiseConstructor)) {
1194
+ var method = getBuiltIn('Promise').prototype['finally'];
1195
+ if (NativePromisePrototype['finally'] !== method) {
1196
+ defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });
1197
+ }
1198
+ }
1199
+
1200
+ function _arity(n, fn) {
1201
+ /* eslint-disable no-unused-vars */
1202
+ switch (n) {
1203
+ case 0:
1204
+ return function () {
1205
+ return fn.apply(this, arguments);
1206
+ };
1207
+
1208
+ case 1:
1209
+ return function (a0) {
1210
+ return fn.apply(this, arguments);
1211
+ };
1212
+
1213
+ case 2:
1214
+ return function (a0, a1) {
1215
+ return fn.apply(this, arguments);
1216
+ };
1217
+
1218
+ case 3:
1219
+ return function (a0, a1, a2) {
1220
+ return fn.apply(this, arguments);
1221
+ };
1222
+
1223
+ case 4:
1224
+ return function (a0, a1, a2, a3) {
1225
+ return fn.apply(this, arguments);
1226
+ };
1227
+
1228
+ case 5:
1229
+ return function (a0, a1, a2, a3, a4) {
1230
+ return fn.apply(this, arguments);
1231
+ };
1232
+
1233
+ case 6:
1234
+ return function (a0, a1, a2, a3, a4, a5) {
1235
+ return fn.apply(this, arguments);
1236
+ };
1237
+
1238
+ case 7:
1239
+ return function (a0, a1, a2, a3, a4, a5, a6) {
1240
+ return fn.apply(this, arguments);
1241
+ };
1242
+
1243
+ case 8:
1244
+ return function (a0, a1, a2, a3, a4, a5, a6, a7) {
1245
+ return fn.apply(this, arguments);
1246
+ };
1247
+
1248
+ case 9:
1249
+ return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
1250
+ return fn.apply(this, arguments);
1251
+ };
1252
+
1253
+ case 10:
1254
+ return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
1255
+ return fn.apply(this, arguments);
1256
+ };
1257
+
1258
+ default:
1259
+ throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
1260
+ }
1261
+ }
1262
+
1263
+ function _identity(x) {
1264
+ return x;
1265
+ }
1266
+
1267
+ /**
1268
+ * A function that does nothing but return the parameter supplied to it. Good
1269
+ * as a default or placeholder function.
1270
+ *
1271
+ * @func
1272
+ * @memberOf R
1273
+ * @since v0.1.0
1274
+ * @category Function
1275
+ * @sig a -> a
1276
+ * @param {*} x The value to return.
1277
+ * @return {*} The input value, `x`.
1278
+ * @example
1279
+ *
1280
+ * R.identity(1); //=> 1
1281
+ *
1282
+ * const obj = {};
1283
+ * R.identity(obj) === obj; //=> true
1284
+ * @symb R.identity(a) = a
1285
+ */
1286
+
1287
+ var identity =
1288
+ /*#__PURE__*/
1289
+ _curry1(_identity);
1290
+
1291
+ var identity$1 = identity;
1292
+
1293
+ /**
1294
+ * Creates a new function that, when invoked, caches the result of calling `fn`
1295
+ * for a given argument set and returns the result. Subsequent calls to the
1296
+ * memoized `fn` with the same argument set will not result in an additional
1297
+ * call to `fn`; instead, the cached result for that set of arguments will be
1298
+ * returned.
1299
+ *
1300
+ *
1301
+ * @func
1302
+ * @memberOf R
1303
+ * @since v0.24.0
1304
+ * @category Function
1305
+ * @sig (*... -> String) -> (*... -> a) -> (*... -> a)
1306
+ * @param {Function} fn The function to generate the cache key.
1307
+ * @param {Function} fn The function to memoize.
1308
+ * @return {Function} Memoized version of `fn`.
1309
+ * @example
1310
+ *
1311
+ * let count = 0;
1312
+ * const factorial = R.memoizeWith(R.identity, n => {
1313
+ * count += 1;
1314
+ * return R.product(R.range(1, n + 1));
1315
+ * });
1316
+ * factorial(5); //=> 120
1317
+ * factorial(5); //=> 120
1318
+ * factorial(5); //=> 120
1319
+ * count; //=> 1
1320
+ */
1321
+
1322
+ var memoizeWith =
1323
+ /*#__PURE__*/
1324
+ _curry2(function memoizeWith(mFn, fn) {
1325
+ var cache = {};
1326
+ return _arity(fn.length, function () {
1327
+ var key = mFn.apply(this, arguments);
1328
+
1329
+ if (!_has(key, cache)) {
1330
+ cache[key] = fn.apply(this, arguments);
1331
+ }
1332
+
1333
+ return cache[key];
1334
+ });
1335
+ });
1336
+
1337
+ var memoizeWith$1 = memoizeWith;
1338
+
1339
+ const PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
1340
+ <g>
1341
+ <g stroke-width="6" stroke-linecap="round" fill="none">
1342
+ <path stroke="currentColor" d="M4,32 c0,15,12,28,28,28c8,0,16-4,21-9">
1343
+ </path>
1344
+ <path d="M60,32 C60,16,47.464,4,32,4S4,16,4,32">
1345
+ </path>
1346
+ <animateTransform values="0,32,32;360,32,32" attributeName="transform" type="rotate" repeatCount="indefinite" dur="750ms">
1347
+ </animateTransform>
1348
+ </g>
1349
+ </g>
1350
+ </svg>`;
1351
+
1352
+ const BASE_URL = 'https://icon.resources.vonage.com';
1353
+ const ICON_SET_VERSION = '4.0.30';
1354
+ const PLACEHOLDER_DELAY = 500;
1355
+ const PLACEHOLDER_TIMEOUT = 2000;
1356
+
1357
+ const baseUrlTemplate = (resource, version) => [BASE_URL, `v${version}`, resource].join('/');
1358
+
1359
+ const assertIsValidResponse = ({
1360
+ ok,
1361
+ headers
1362
+ }) => {
1363
+ if (!ok || headers.get('content-type') !== 'image/svg+xml') {
1364
+ throw new Error('Something went wrong');
1365
+ }
1366
+ };
1367
+
1368
+ const extractSvg = response => {
1369
+ assertIsValidResponse(response);
1370
+ return response.text();
1371
+ };
1372
+
1373
+ const loadSvg = iconId => fetch(baseUrlTemplate([iconId, 'svg'].join('.'), ICON_SET_VERSION)).then(extractSvg);
1374
+
1375
+ const resolveIcon = memoizeWith$1(identity$1, (iconId = '') => iconId.trim() ? loadSvg(iconId) : Promise.resolve(''));
1376
+ class Icon extends FoundationElement {
1377
+ async typeChanged() {
1378
+ this.svg = undefined;
1379
+ let timeout = setTimeout(() => {
1380
+ this.svg = PLACEHOLDER_ICON;
1381
+ timeout = setTimeout(() => {
1382
+ if (this.svg === PLACEHOLDER_ICON) {
1383
+ this.svg = undefined;
1384
+ }
1385
+ }, PLACEHOLDER_TIMEOUT);
1386
+ }, PLACEHOLDER_DELAY);
1387
+ await resolveIcon(this.type).then(svg => {
1388
+ this.svg = svg;
1389
+ }).catch(() => {
1390
+ this.svg = undefined;
1391
+ }).finally(() => {
1392
+ clearTimeout(timeout);
1393
+ });
1394
+ }
1395
+
1396
+ }
1397
+
1398
+ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "connotation", void 0);
1399
+
1400
+ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "size", void 0);
1401
+
1402
+ __decorate([observable, __metadata("design:type", String)], Icon.prototype, "svg", void 0);
1403
+
1404
+ __decorate([attr, __metadata("design:type", String)], Icon.prototype, "type", void 0);
1405
+
1406
+ export { Icon as I, functionApply as f, speciesConstructor$2 as s };