@sparkle-learning/core 0.0.27 → 0.0.30

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 (697) hide show
  1. package/dist/cjs/{PrivateRoute-cee9b061.js → PrivateRoute-043bb7d3.js} +6 -40
  2. package/dist/cjs/{active-router-3bd7b540.js → active-router-eedb3bfe.js} +1 -1
  3. package/dist/cjs/{animation-05337433.js → animation-6132e37f.js} +28 -4
  4. package/dist/cjs/app-globals-9869bf67.js +9 -0
  5. package/dist/cjs/{auth.store-aba3d22f.js → auth.store-ff3fda09.js} +1869 -357
  6. package/dist/cjs/compass-svg.cjs.entry.js +1 -1
  7. package/dist/cjs/context-consumer.cjs.entry.js +1 -1
  8. package/dist/cjs/course-select.cjs.entry.js +1 -1
  9. package/dist/cjs/{cubic-bezier-24e309bf.js → cubic-bezier-293f4663.js} +3 -0
  10. package/dist/cjs/dir-5af5259a.js +20 -0
  11. package/dist/cjs/{facilitator.service-e1e2f719.js → facilitator.service-faac5c0c.js} +1 -1
  12. package/dist/cjs/feed.service-66405969.js +124 -0
  13. package/dist/cjs/focus-visible-ad3828a7.js +63 -0
  14. package/dist/cjs/framework-delegate-2470a246.js +113 -0
  15. package/dist/cjs/{gesture-controller-e824cfb3.js → gesture-controller-07c31f70.js} +3 -0
  16. package/dist/cjs/{haptic-415dac5b.js → haptic-91e86eb7.js} +3 -0
  17. package/dist/cjs/{hardware-back-button-ca468aae.js → hardware-back-button-f7b5d99e.js} +3 -0
  18. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +18001 -0
  19. package/dist/cjs/{helpers-26770c32.js → helpers-7e28976c.js} +122 -3
  20. package/dist/cjs/{icons-a0fef92b.js → icons-b8a2231a.js} +1 -1
  21. package/dist/cjs/{index-427d03fb.js → index-185f9c5a.js} +3 -0
  22. package/dist/cjs/{index-6eff209d.js → index-43642662.js} +24 -3
  23. package/dist/cjs/{index-7bcd36a0.js → index-459a5fa9.js} +20 -4
  24. package/dist/cjs/index-8540d72e.js +42 -0
  25. package/dist/cjs/{index-58b3ee93.js → index-b12edb26.js} +34 -5
  26. package/dist/cjs/{index-fbf4d3bf.js → index-bae2a754.js} +303 -207
  27. package/dist/cjs/index.cjs.js +8 -7
  28. package/dist/cjs/index.es-ef3efdfb.js +10671 -0
  29. package/dist/cjs/{input-shims-213e83f8.js → input-shims-6c442c9f.js} +34 -10
  30. package/dist/cjs/ion-accordion-group.cjs.entry.js +197 -0
  31. package/dist/cjs/ion-accordion.cjs.entry.js +340 -0
  32. package/dist/cjs/ion-action-sheet_4.cjs.entry.js +2203 -0
  33. package/dist/cjs/ion-app.cjs.entry.js +23 -8
  34. package/dist/cjs/ion-back-button.cjs.entry.js +14 -9
  35. package/dist/cjs/ion-backdrop.cjs.entry.js +3 -3
  36. package/dist/cjs/ion-badge.cjs.entry.js +3 -3
  37. package/dist/cjs/ion-breadcrumb.cjs.entry.js +103 -0
  38. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +135 -0
  39. package/dist/cjs/ion-buttons_3.cjs.entry.js +7 -6
  40. package/dist/cjs/ion-card-header.cjs.entry.js +3 -3
  41. package/dist/cjs/ion-card-subtitle.cjs.entry.js +3 -3
  42. package/dist/cjs/ion-card-title.cjs.entry.js +3 -3
  43. package/dist/cjs/ion-chip.cjs.entry.js +3 -3
  44. package/dist/cjs/ion-content_2.cjs.entry.js +144 -56
  45. package/dist/cjs/ion-datetime.cjs.entry.js +1902 -779
  46. package/dist/cjs/ion-fab-button.cjs.entry.js +5 -4
  47. package/dist/cjs/ion-fab-list.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-fab.cjs.entry.js +2 -2
  49. package/dist/cjs/ion-footer.cjs.entry.js +79 -4
  50. package/dist/cjs/ion-img.cjs.entry.js +33 -7
  51. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +3 -3
  52. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +4 -2
  53. package/dist/cjs/ion-item-divider.cjs.entry.js +3 -3
  54. package/dist/cjs/ion-item-group.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-item-option.cjs.entry.js +4 -4
  56. package/dist/cjs/ion-item-options.cjs.entry.js +3 -3
  57. package/dist/cjs/ion-item-sliding.cjs.entry.js +52 -8
  58. package/dist/cjs/ion-loading.cjs.entry.js +23 -11
  59. package/dist/cjs/ion-menu-button.cjs.entry.js +17 -11
  60. package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -7
  61. package/dist/cjs/ion-menu.cjs.entry.js +141 -29
  62. package/dist/cjs/ion-modal.cjs.entry.js +649 -75
  63. package/dist/cjs/ion-nav-link.cjs.entry.js +4 -1
  64. package/dist/cjs/ion-nav.cjs.entry.js +140 -137
  65. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +700 -0
  66. package/dist/cjs/ion-picker-column.cjs.entry.js +5 -5
  67. package/dist/cjs/ion-picker.cjs.entry.js +18 -11
  68. package/dist/cjs/ion-progress-bar.cjs.entry.js +17 -13
  69. package/dist/cjs/ion-refresher-content.cjs.entry.js +7 -6
  70. package/dist/cjs/ion-refresher.cjs.entry.js +83 -84
  71. package/dist/cjs/ion-reorder-group.cjs.entry.js +9 -8
  72. package/dist/cjs/ion-reorder.cjs.entry.js +5 -4
  73. package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
  74. package/dist/cjs/ion-route.cjs.entry.js +1 -1
  75. package/dist/cjs/ion-router-link.cjs.entry.js +3 -3
  76. package/dist/cjs/ion-router-outlet.cjs.entry.js +50 -12
  77. package/dist/cjs/ion-router.cjs.entry.js +378 -234
  78. package/dist/cjs/ion-searchbar.cjs.entry.js +50 -17
  79. package/dist/cjs/ion-segment-button.cjs.entry.js +12 -9
  80. package/dist/cjs/ion-segment.cjs.entry.js +89 -10
  81. package/dist/cjs/ion-select_2.cjs.entry.js +64 -30
  82. package/dist/cjs/ion-skeleton-text.cjs.entry.js +4 -4
  83. package/dist/cjs/ion-slide.cjs.entry.js +2 -2
  84. package/dist/cjs/ion-slides.cjs.entry.js +19 -32
  85. package/dist/cjs/ion-split-pane.cjs.entry.js +8 -3
  86. package/dist/cjs/ion-tab-bar.cjs.entry.js +25 -12
  87. package/dist/cjs/ion-tab-button.cjs.entry.js +2 -2
  88. package/dist/cjs/ion-tab.cjs.entry.js +3 -2
  89. package/dist/cjs/ion-tabs.cjs.entry.js +1 -1
  90. package/dist/cjs/ion-textarea.cjs.entry.js +9 -8
  91. package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
  92. package/dist/cjs/ion-toast.cjs.entry.js +37 -27
  93. package/dist/cjs/ion-toggle.cjs.entry.js +15 -15
  94. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +13 -3
  95. package/dist/cjs/{ionic-global-4930d319.js → ionic-global-878073d1.js} +103 -77
  96. package/dist/cjs/{ios.transition-6e1fd3d6.js → ios.transition-c3bfb096.js} +8 -5
  97. package/dist/cjs/{keyboard-1dcbde6c.js → keyboard-dfd76ac3.js} +3 -0
  98. package/dist/cjs/loader.cjs.js +5 -5
  99. package/dist/cjs/localstorage.service-6346a41d.js +40 -0
  100. package/dist/cjs/{md.transition-3652ad78.js → md.transition-7eb9a1a7.js} +7 -4
  101. package/dist/cjs/{menu-toggle-util-a8fb4c56.js → menu-toggle-util-cb549c2c.js} +4 -1
  102. package/dist/cjs/{overlays-08a817ea.js → overlays-0a748609.js} +188 -47
  103. package/dist/cjs/{purify-596fc2d6.js → purify-d0ad2883.js} +187 -74
  104. package/dist/cjs/sparkle-animation-player.cjs.entry.js +56 -50
  105. package/dist/cjs/sparkle-character-intro.cjs.entry.js +26 -0
  106. package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
  107. package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
  108. package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
  109. package/dist/cjs/sparkle-core.cjs.js +7 -7
  110. package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
  111. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +7 -7
  112. package/dist/cjs/sparkle-feed-post.cjs.entry.js +1 -1
  113. package/dist/cjs/sparkle-feedback.cjs.entry.js +7 -7
  114. package/dist/cjs/sparkle-goal-form.cjs.entry.js +15 -14
  115. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +1 -1
  116. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
  117. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
  118. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
  119. package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
  120. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
  121. package/dist/cjs/sparkle-overlay.cjs.entry.js +1 -1
  122. package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
  123. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
  124. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
  125. package/dist/cjs/sparkle-quiz.cjs.entry.js +2 -2
  126. package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
  127. package/dist/cjs/sparkle-sidebar.cjs.entry.js +1 -1
  128. package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
  129. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
  130. package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
  131. package/dist/cjs/sparkle-youtube.cjs.entry.js +2 -2
  132. package/dist/cjs/{spinner-configs-559523fd.js → spinner-configs-6f6b7ef0.js} +36 -1
  133. package/dist/cjs/status-tap-8697433c.js +40 -0
  134. package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
  135. package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
  136. package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
  137. package/dist/cjs/{student.service-41c7c78d.js → student.service-744c3155.js} +1 -1
  138. package/dist/cjs/{swipe-back-c1951cbd.js → swipe-back-7e08b5e0.js} +32 -8
  139. package/dist/cjs/{swiper.bundle-cbea42d8.js → swiper.bundle-8c897c07.js} +4 -4
  140. package/dist/cjs/{tap-click-cd858b48.js → tap-click-1caf1780.js} +8 -1
  141. package/dist/cjs/{theme-98ccfc24.js → theme-4252ac15.js} +3 -0
  142. package/dist/cjs/util-d383acb8.js +2462 -0
  143. package/dist/collection/collection-manifest.json +9 -2
  144. package/dist/collection/components/layout/page/page.js +1 -0
  145. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +78 -66
  146. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  147. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  148. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  149. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  150. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  151. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  152. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +67 -0
  153. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +64 -0
  154. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +48 -43
  155. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +6 -2
  156. package/dist/collection/util.js +1 -0
  157. package/dist/esm/{PrivateRoute-9f0973bb.js → PrivateRoute-b9937c45.js} +3 -37
  158. package/dist/esm/{active-router-b3ae32c7.js → active-router-909088d6.js} +1 -1
  159. package/dist/esm/{animation-72fdacfb.js → animation-b306f6c2.js} +28 -4
  160. package/dist/esm/app-globals-5c736ae5.js +7 -0
  161. package/dist/esm/auth.store-3ed2389e.js +4061 -0
  162. package/dist/esm/compass-svg.entry.js +1 -1
  163. package/dist/esm/context-consumer.entry.js +1 -1
  164. package/dist/esm/course-select.entry.js +1 -1
  165. package/dist/esm/{cubic-bezier-ed243a9b.js → cubic-bezier-a7ad9c8e.js} +3 -0
  166. package/dist/esm/dir-03012648.js +18 -0
  167. package/dist/esm/{facilitator.service-cddb2feb.js → facilitator.service-ec0a9739.js} +1 -1
  168. package/dist/esm/feed.service-33b83cb7.js +119 -0
  169. package/dist/esm/focus-visible-40cda868.js +61 -0
  170. package/dist/esm/framework-delegate-3bc58c27.js +109 -0
  171. package/dist/esm/{gesture-controller-604336b7.js → gesture-controller-686622ba.js} +3 -0
  172. package/dist/esm/{haptic-67928174.js → haptic-99c9e346.js} +4 -1
  173. package/dist/esm/{hardware-back-button-508e48cf.js → hardware-back-button-b6ccf74a.js} +3 -0
  174. package/dist/esm/header-mobile-collapse_61.entry.js +17937 -0
  175. package/dist/esm/{helpers-e7f66b2b.js → helpers-39367fe1.js} +119 -4
  176. package/dist/esm/{icons-33e5804c.js → icons-5debfbaf.js} +1 -1
  177. package/dist/esm/{index-cc97b114.js → index-435af8e6.js} +3 -0
  178. package/dist/esm/{index-55fc9f5e.js → index-5568e3fa.js} +303 -208
  179. package/dist/esm/{index-dc09784f.js → index-9594837e.js} +20 -4
  180. package/dist/esm/{index-b2ad0f1a.js → index-a12c14bd.js} +25 -4
  181. package/dist/esm/{index-a94619f9.js → index-c26d8655.js} +34 -5
  182. package/dist/esm/index-dc61f152.js +22 -0
  183. package/dist/esm/index.es-97dd8174.js +10585 -0
  184. package/dist/esm/index.js +8 -7
  185. package/dist/esm/{input-shims-3a97fa86.js → input-shims-cc98ea92.js} +34 -10
  186. package/dist/esm/ion-accordion-group.entry.js +193 -0
  187. package/dist/esm/ion-accordion.entry.js +336 -0
  188. package/dist/esm/ion-action-sheet_4.entry.js +2196 -0
  189. package/dist/esm/ion-app.entry.js +23 -8
  190. package/dist/esm/ion-back-button.entry.js +14 -9
  191. package/dist/esm/ion-backdrop.entry.js +3 -3
  192. package/dist/esm/ion-badge.entry.js +3 -3
  193. package/dist/esm/ion-breadcrumb.entry.js +99 -0
  194. package/dist/esm/ion-breadcrumbs.entry.js +131 -0
  195. package/dist/esm/ion-buttons_3.entry.js +7 -6
  196. package/dist/esm/ion-card-header.entry.js +3 -3
  197. package/dist/esm/ion-card-subtitle.entry.js +3 -3
  198. package/dist/esm/ion-card-title.entry.js +3 -3
  199. package/dist/esm/ion-chip.entry.js +3 -3
  200. package/dist/esm/ion-content_2.entry.js +144 -56
  201. package/dist/esm/ion-datetime.entry.js +1902 -779
  202. package/dist/esm/ion-fab-button.entry.js +5 -4
  203. package/dist/esm/ion-fab-list.entry.js +2 -2
  204. package/dist/esm/ion-fab.entry.js +2 -2
  205. package/dist/esm/ion-footer.entry.js +79 -4
  206. package/dist/esm/ion-img.entry.js +33 -7
  207. package/dist/esm/ion-infinite-scroll-content.entry.js +3 -3
  208. package/dist/esm/ion-infinite-scroll.entry.js +4 -2
  209. package/dist/esm/ion-item-divider.entry.js +3 -3
  210. package/dist/esm/ion-item-group.entry.js +2 -2
  211. package/dist/esm/ion-item-option.entry.js +4 -4
  212. package/dist/esm/ion-item-options.entry.js +3 -3
  213. package/dist/esm/ion-item-sliding.entry.js +52 -8
  214. package/dist/esm/ion-loading.entry.js +23 -11
  215. package/dist/esm/ion-menu-button.entry.js +17 -11
  216. package/dist/esm/ion-menu-toggle.entry.js +7 -7
  217. package/dist/esm/ion-menu.entry.js +141 -29
  218. package/dist/esm/ion-modal.entry.js +649 -75
  219. package/dist/esm/ion-nav-link.entry.js +4 -1
  220. package/dist/esm/ion-nav.entry.js +140 -137
  221. package/dist/esm/ion-picker-column-internal_2.entry.js +695 -0
  222. package/dist/esm/ion-picker-column.entry.js +5 -5
  223. package/dist/esm/ion-picker.entry.js +18 -11
  224. package/dist/esm/ion-progress-bar.entry.js +17 -13
  225. package/dist/esm/ion-refresher-content.entry.js +7 -6
  226. package/dist/esm/ion-refresher.entry.js +82 -83
  227. package/dist/esm/ion-reorder-group.entry.js +9 -8
  228. package/dist/esm/ion-reorder.entry.js +5 -4
  229. package/dist/esm/ion-route-redirect.entry.js +1 -1
  230. package/dist/esm/ion-route.entry.js +1 -1
  231. package/dist/esm/ion-router-link.entry.js +3 -3
  232. package/dist/esm/ion-router-outlet.entry.js +50 -12
  233. package/dist/esm/ion-router.entry.js +378 -234
  234. package/dist/esm/ion-searchbar.entry.js +50 -17
  235. package/dist/esm/ion-segment-button.entry.js +12 -9
  236. package/dist/esm/ion-segment.entry.js +89 -10
  237. package/dist/esm/ion-select_2.entry.js +64 -30
  238. package/dist/esm/ion-skeleton-text.entry.js +4 -4
  239. package/dist/esm/ion-slide.entry.js +2 -2
  240. package/dist/esm/ion-slides.entry.js +19 -32
  241. package/dist/esm/ion-split-pane.entry.js +8 -3
  242. package/dist/esm/ion-tab-bar.entry.js +25 -12
  243. package/dist/esm/ion-tab-button.entry.js +2 -2
  244. package/dist/esm/ion-tab.entry.js +3 -2
  245. package/dist/esm/ion-tabs.entry.js +1 -1
  246. package/dist/esm/ion-textarea.entry.js +9 -8
  247. package/dist/esm/ion-thumbnail.entry.js +2 -2
  248. package/dist/esm/ion-toast.entry.js +37 -27
  249. package/dist/esm/ion-toggle.entry.js +15 -15
  250. package/dist/esm/ion-virtual-scroll.entry.js +13 -3
  251. package/dist/esm/{ionic-global-1f9287cc.js → ionic-global-0939c477.js} +103 -77
  252. package/dist/esm/{ios.transition-d01abefd.js → ios.transition-b4ca8a33.js} +8 -5
  253. package/dist/esm/{keyboard-06906eac.js → keyboard-2503e874.js} +3 -0
  254. package/dist/esm/loader.js +5 -5
  255. package/dist/esm/localstorage.service-4bf408c8.js +36 -0
  256. package/dist/esm/{md.transition-245ffa55.js → md.transition-ca5e0322.js} +7 -4
  257. package/dist/esm/{menu-toggle-util-fe83fcf5.js → menu-toggle-util-7fa22c2f.js} +4 -1
  258. package/dist/esm/{overlays-8363621c.js → overlays-34cfa9e0.js} +187 -47
  259. package/dist/esm/polyfills/css-shim.js +1 -1
  260. package/dist/esm/polyfills/index.js +2 -2
  261. package/dist/esm/{purify-4247e2d0.js → purify-ffce2b4c.js} +185 -72
  262. package/dist/esm/sparkle-animation-player.entry.js +56 -50
  263. package/dist/esm/sparkle-character-intro.entry.js +22 -0
  264. package/dist/esm/sparkle-code.entry.js +2 -2
  265. package/dist/esm/sparkle-compass-post.entry.js +1 -1
  266. package/dist/esm/sparkle-compass.entry.js +1 -1
  267. package/dist/esm/sparkle-core.js +7 -7
  268. package/dist/esm/sparkle-emoji.entry.js +1 -1
  269. package/dist/esm/sparkle-facilitator-notes-form.entry.js +7 -7
  270. package/dist/esm/sparkle-feed-post.entry.js +1 -1
  271. package/dist/esm/sparkle-feedback.entry.js +7 -7
  272. package/dist/esm/sparkle-goal-form.entry.js +8 -7
  273. package/dist/esm/sparkle-gww-comment-list.entry.js +1 -1
  274. package/dist/esm/sparkle-gww-graph.entry.js +1 -1
  275. package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
  276. package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
  277. package/dist/esm/sparkle-modal-image.entry.js +1 -1
  278. package/dist/esm/sparkle-notfound-page.entry.js +1 -1
  279. package/dist/esm/sparkle-overlay.entry.js +1 -1
  280. package/dist/esm/sparkle-poll.entry.js +1 -1
  281. package/dist/esm/sparkle-quiz-container.entry.js +1 -1
  282. package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
  283. package/dist/esm/sparkle-quiz.entry.js +2 -2
  284. package/dist/esm/sparkle-select.entry.js +1 -1
  285. package/dist/esm/sparkle-sidebar.entry.js +1 -1
  286. package/dist/esm/sparkle-tab.entry.js +1 -1
  287. package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
  288. package/dist/esm/sparkle-tabs.entry.js +1 -1
  289. package/dist/esm/sparkle-youtube.entry.js +2 -2
  290. package/dist/esm/{spinner-configs-9536fae2.js → spinner-configs-f609a655.js} +36 -1
  291. package/dist/esm/status-tap-6351a0cb.js +38 -0
  292. package/dist/esm/stencil-async-content.entry.js +1 -1
  293. package/dist/esm/stencil-route-title.entry.js +2 -2
  294. package/dist/esm/stencil-router-prompt.entry.js +2 -2
  295. package/dist/esm/{student.service-c36c5a75.js → student.service-29b688ba.js} +1 -1
  296. package/dist/esm/{swipe-back-21f58ecf.js → swipe-back-34251834.js} +32 -8
  297. package/dist/esm/{swiper.bundle-d4422d52.js → swiper.bundle-b6a959de.js} +4 -4
  298. package/dist/esm/{tap-click-8c728329.js → tap-click-13f1fb0d.js} +8 -1
  299. package/dist/esm/{theme-12606872.js → theme-c336c9d9.js} +3 -0
  300. package/dist/esm/util-6ef753e9.js +2451 -0
  301. package/dist/loader/index.d.ts +0 -1
  302. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +75 -0
  303. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +72 -0
  304. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +25 -0
  305. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +59 -0
  306. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +10 -19
  307. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +19 -16
  308. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +2 -2
  309. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +4 -0
  310. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +4 -0
  311. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +234 -0
  312. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +237 -0
  313. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +38 -0
  314. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +37 -0
  315. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -1
  316. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +5 -5
  317. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +60 -14
  318. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +586 -68
  319. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +575 -68
  320. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +4 -0
  321. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +16 -0
  322. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +9 -0
  323. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +9 -0
  324. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +105 -17
  325. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +295 -22
  326. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +6 -6
  327. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +6 -6
  328. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +2 -2
  329. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +7 -3
  330. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +100 -18
  331. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +1 -1
  332. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +2 -2
  333. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +2 -2
  334. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +74 -11
  335. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +48 -4
  336. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +59 -0
  337. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +62 -0
  338. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +122 -0
  339. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +118 -0
  340. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +83 -0
  341. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +49 -0
  342. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +53 -38
  343. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +53 -38
  344. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +3 -3
  345. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +5 -5
  346. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +12 -0
  347. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +2 -2
  348. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +1 -1
  349. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +1 -1
  350. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +4 -0
  351. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +4 -0
  352. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +1 -1
  353. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +30 -2
  354. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/{select-popover.css → select-popover.ios.css} +4 -4
  355. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
  356. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +4 -4
  357. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +15 -2
  358. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +2 -1
  359. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +1 -0
  360. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +9 -0
  361. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +9 -0
  362. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +4 -3
  363. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +14 -2
  364. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +14 -2
  365. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +1 -0
  366. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +1 -0
  367. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +3 -2
  368. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +2 -1
  369. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +1 -1
  370. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
  371. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
  372. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
  373. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
  374. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
  375. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
  376. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
  377. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
  378. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
  379. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
  380. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
  381. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
  382. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
  383. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
  384. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +89 -0
  385. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
  386. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
  387. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
  388. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
  389. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
  390. package/dist/sparkle-core/assets/characters/character-img.jpg +0 -0
  391. package/dist/sparkle-core/assets/characters/jen.png +0 -0
  392. package/dist/sparkle-core/assets/characters/kimberly.png +0 -0
  393. package/dist/sparkle-core/assets/characters/valeria.png +0 -0
  394. package/dist/sparkle-core/assets/characters/yuna.png +0 -0
  395. package/dist/sparkle-core/assets/characters/zynab.png +0 -0
  396. package/dist/sparkle-core/index.esm.js +1 -1
  397. package/dist/sparkle-core/p-0146afa0.entry.js +1 -0
  398. package/dist/sparkle-core/{p-52355989.entry.js → p-016a7aaf.entry.js} +1 -1
  399. package/dist/sparkle-core/p-0187adef.entry.js +1 -0
  400. package/dist/sparkle-core/p-03189863.js +1 -0
  401. package/dist/sparkle-core/{p-d4d9aa4a.entry.js → p-03ec54a8.entry.js} +1 -1
  402. package/dist/sparkle-core/p-04583c51.entry.js +1 -0
  403. package/dist/sparkle-core/{p-6d506f4e.js → p-052caa63.js} +1 -1
  404. package/dist/sparkle-core/{p-016bf847.entry.js → p-057f6a23.entry.js} +1 -1
  405. package/dist/sparkle-core/p-0580419b.entry.js +1 -0
  406. package/dist/sparkle-core/{p-c563b4de.js → p-063cd168.js} +4 -1
  407. package/dist/sparkle-core/p-081968cc.entry.js +1 -0
  408. package/dist/sparkle-core/p-0934f5dd.entry.js +1 -0
  409. package/dist/sparkle-core/{p-3f5d7a08.entry.js → p-11cf398a.entry.js} +1 -1
  410. package/dist/sparkle-core/p-1339830f.entry.js +1 -0
  411. package/dist/sparkle-core/p-145e40f5.entry.js +1 -0
  412. package/dist/sparkle-core/{p-68f3c93d.entry.js → p-1726da2f.entry.js} +1 -1
  413. package/dist/sparkle-core/p-173d5461.entry.js +7 -0
  414. package/dist/sparkle-core/p-18e62133.entry.js +1 -0
  415. package/dist/sparkle-core/p-1af044f7.js +3 -0
  416. package/dist/sparkle-core/p-1b78dea1.entry.js +1 -0
  417. package/dist/sparkle-core/p-1cef8572.js +4 -0
  418. package/dist/sparkle-core/p-1df05176.js +4 -0
  419. package/dist/sparkle-core/p-21bf4ca0.entry.js +1 -0
  420. package/dist/sparkle-core/p-21db4e8e.entry.js +1 -0
  421. package/dist/sparkle-core/p-23a9f7d1.entry.js +1 -0
  422. package/dist/sparkle-core/p-289a35ed.entry.js +1 -0
  423. package/dist/sparkle-core/p-2ee6a5f9.entry.js +1 -0
  424. package/dist/sparkle-core/p-350adbaa.entry.js +1 -0
  425. package/dist/sparkle-core/{p-bccd9036.entry.js → p-35a7bd6c.entry.js} +1 -1
  426. package/dist/sparkle-core/{p-66e3bd1c.entry.js → p-37c00e39.entry.js} +1 -1
  427. package/dist/sparkle-core/p-389500fd.js +4 -0
  428. package/dist/sparkle-core/p-39e5a90f.entry.js +1 -0
  429. package/dist/sparkle-core/{p-ac5e5308.entry.js → p-3a202a38.entry.js} +1 -1
  430. package/dist/sparkle-core/p-3defe550.entry.js +1 -0
  431. package/dist/sparkle-core/p-45e6db62.entry.js +1 -0
  432. package/dist/sparkle-core/{p-581ca370.entry.js → p-48f9b960.entry.js} +1 -1
  433. package/dist/sparkle-core/{p-0efbc0b3.entry.js → p-4dc3ef96.entry.js} +1 -1
  434. package/dist/sparkle-core/p-506221fe.js +4 -0
  435. package/dist/sparkle-core/p-50aac721.entry.js +7 -0
  436. package/dist/sparkle-core/p-513794b0.js +16 -0
  437. package/dist/sparkle-core/{p-2e4e8117.js → p-5264da79.js} +3 -0
  438. package/dist/sparkle-core/{p-40db85ac.entry.js → p-547b70c6.entry.js} +1 -1
  439. package/dist/sparkle-core/p-5598650a.entry.js +1 -0
  440. package/dist/sparkle-core/p-55ae49e1.js +4 -0
  441. package/dist/sparkle-core/p-58e98f89.entry.js +1 -0
  442. package/dist/sparkle-core/p-59f7bf6e.entry.js +1 -0
  443. package/dist/sparkle-core/p-5a3d0e6b.js +4 -0
  444. package/dist/sparkle-core/{p-85d31769.entry.js → p-5b40aae5.entry.js} +1 -1
  445. package/dist/sparkle-core/p-5c9aa1f9.entry.js +4 -0
  446. package/dist/sparkle-core/p-5d2e54ee.entry.js +1 -0
  447. package/dist/sparkle-core/p-5d409601.js +1 -0
  448. package/dist/sparkle-core/{p-afbaad64.entry.js → p-5f45d206.entry.js} +1 -1
  449. package/dist/sparkle-core/p-5ff6416d.entry.js +7 -0
  450. package/dist/sparkle-core/{p-cf2332bb.entry.js → p-62a6c96f.entry.js} +1 -1
  451. package/dist/sparkle-core/p-64e72f8f.js +4 -0
  452. package/dist/sparkle-core/p-660e0742.js +1 -0
  453. package/dist/sparkle-core/{p-d5023db0.entry.js → p-667accac.entry.js} +1 -1
  454. package/dist/sparkle-core/{p-9ca56f5d.entry.js → p-680663a2.entry.js} +1 -1
  455. package/dist/sparkle-core/{p-e975924a.entry.js → p-6823e6c1.entry.js} +1 -1
  456. package/dist/sparkle-core/p-69e7783d.js +4 -0
  457. package/dist/sparkle-core/p-6bbabb80.entry.js +1 -0
  458. package/dist/sparkle-core/p-6bf07a28.js +1 -0
  459. package/dist/sparkle-core/p-6c6145cd.js +4 -0
  460. package/dist/sparkle-core/p-6c90bde6.entry.js +5 -0
  461. package/dist/sparkle-core/p-6e88764b.entry.js +4 -0
  462. package/dist/sparkle-core/p-6ee40949.js +1 -0
  463. package/dist/sparkle-core/p-6fbe3ca3.entry.js +1 -0
  464. package/dist/sparkle-core/{p-f2660943.js → p-6fd4985d.js} +3 -0
  465. package/dist/sparkle-core/{p-8fc9298a.js → p-703ca87c.js} +3 -0
  466. package/dist/sparkle-core/{p-1bf8bed6.entry.js → p-7052c43a.entry.js} +1 -1
  467. package/dist/sparkle-core/{p-111520a0.js → p-70b2452c.js} +3 -0
  468. package/dist/sparkle-core/p-713590fc.js +5 -0
  469. package/dist/sparkle-core/p-7493ee15.entry.js +1 -0
  470. package/dist/sparkle-core/p-75572037.js +1 -0
  471. package/dist/sparkle-core/{p-eb56aa20.entry.js → p-768bcc9e.entry.js} +1 -1
  472. package/dist/sparkle-core/p-797c23ed.entry.js +1 -0
  473. package/dist/sparkle-core/{p-03eb2164.js → p-7c38a70b.js} +1 -1
  474. package/dist/sparkle-core/{p-09d43bee.entry.js → p-7d61177b.entry.js} +1 -1
  475. package/dist/sparkle-core/p-7dbfc316.js +1 -0
  476. package/dist/sparkle-core/p-7e61973d.entry.js +7 -0
  477. package/dist/sparkle-core/{p-3cd28c60.entry.js → p-82e98d07.entry.js} +1 -1
  478. package/dist/sparkle-core/p-838fa86d.entry.js +18 -0
  479. package/dist/sparkle-core/p-855ca600.js +1 -0
  480. package/dist/sparkle-core/p-857f3696.entry.js +1 -0
  481. package/dist/sparkle-core/{p-8f72be08.js → p-8c6b6038.js} +3 -0
  482. package/dist/sparkle-core/p-8fe2e51f.entry.js +4 -0
  483. package/dist/sparkle-core/{p-f72a6e6d.entry.js → p-90389886.entry.js} +1 -1
  484. package/dist/sparkle-core/p-932bfb69.entry.js +1 -0
  485. package/dist/sparkle-core/p-935e7cfc.js +1 -0
  486. package/dist/sparkle-core/{p-c70b9765.entry.js → p-941eaa3a.entry.js} +1 -1
  487. package/dist/sparkle-core/p-95004267.entry.js +1 -0
  488. package/dist/sparkle-core/p-950effe7.entry.js +1 -0
  489. package/dist/sparkle-core/{p-1ca4bf1d.entry.js → p-996361f9.entry.js} +1 -1
  490. package/dist/sparkle-core/p-9a17f2ad.js +4 -0
  491. package/dist/sparkle-core/p-9a443f51.js +1 -1
  492. package/dist/sparkle-core/p-9babd345.js +1 -0
  493. package/dist/sparkle-core/p-9cfdeb18.entry.js +1 -0
  494. package/dist/sparkle-core/p-a080e768.entry.js +1 -0
  495. package/dist/sparkle-core/p-a1cab0f3.js +4 -0
  496. package/dist/sparkle-core/p-a7cc0052.entry.js +4 -0
  497. package/dist/sparkle-core/p-a9ccb0df.js +4 -0
  498. package/dist/sparkle-core/p-a9ee3f6d.entry.js +1 -0
  499. package/dist/sparkle-core/{p-abe2676a.entry.js → p-aa87c7f0.entry.js} +1 -1
  500. package/dist/sparkle-core/{p-e818b11d.entry.js → p-aa9ebc39.entry.js} +1 -1
  501. package/dist/sparkle-core/p-ae1f145d.entry.js +1 -0
  502. package/dist/sparkle-core/{p-73a646fb.entry.js → p-b07a2cf2.entry.js} +1 -1
  503. package/dist/sparkle-core/{p-c82b05e0.entry.js → p-b3909012.entry.js} +1 -1
  504. package/dist/sparkle-core/p-b3e6427d.js +7 -0
  505. package/dist/sparkle-core/p-b49ca0ea.entry.js +1 -0
  506. package/dist/sparkle-core/p-b81e20fe.entry.js +4 -0
  507. package/dist/sparkle-core/p-bca0e465.entry.js +1 -0
  508. package/dist/sparkle-core/p-c1279cc9.entry.js +1 -0
  509. package/dist/sparkle-core/{p-82d95fcd.entry.js → p-c1376096.entry.js} +1 -1
  510. package/dist/sparkle-core/p-c3986a52.entry.js +1 -0
  511. package/dist/sparkle-core/p-c3d3d5c4.entry.js +1 -0
  512. package/dist/sparkle-core/p-c48bbc7c.entry.js +4 -0
  513. package/dist/sparkle-core/p-c5b9bdd6.entry.js +1 -0
  514. package/dist/sparkle-core/{p-15d68269.entry.js → p-c69b0a7a.entry.js} +1 -1
  515. package/dist/sparkle-core/p-cbbeed67.entry.js +1 -0
  516. package/dist/sparkle-core/p-d4a435f8.entry.js +1 -0
  517. package/dist/sparkle-core/p-d4c07aca.js +4 -0
  518. package/dist/sparkle-core/p-d5b05ece.entry.js +5 -0
  519. package/dist/sparkle-core/p-d7baf31e.entry.js +1 -0
  520. package/dist/sparkle-core/p-d8d3524a.js +1 -0
  521. package/dist/sparkle-core/p-df0070c5.entry.js +352 -0
  522. package/dist/sparkle-core/{p-22926eed.entry.js → p-e0fced48.entry.js} +1 -1
  523. package/dist/sparkle-core/p-e1cba44b.entry.js +4 -0
  524. package/dist/sparkle-core/p-e225581a.js +7 -0
  525. package/dist/sparkle-core/{p-4e28ca37.entry.js → p-e3fdd0a8.entry.js} +1 -1
  526. package/dist/sparkle-core/p-e72d4450.js +4 -0
  527. package/dist/sparkle-core/p-eb70a23c.entry.js +1 -0
  528. package/dist/sparkle-core/{p-f9143c5d.entry.js → p-ecd39170.entry.js} +1 -1
  529. package/dist/sparkle-core/{p-151afa9e.entry.js → p-ed0e9d29.entry.js} +1 -1
  530. package/dist/sparkle-core/{p-92d42c10.entry.js → p-ee0d7f19.entry.js} +1 -1
  531. package/dist/sparkle-core/p-f4001fdf.js +4 -0
  532. package/dist/sparkle-core/p-f9b73032.entry.js +1 -0
  533. package/dist/sparkle-core/p-faa912d7.entry.js +1 -0
  534. package/dist/sparkle-core/{p-a250e2ae.entry.js → p-fbd7eeca.entry.js} +1 -1
  535. package/dist/sparkle-core/p-fc933591.entry.js +1 -0
  536. package/dist/sparkle-core/p-fef04ab5.js +4 -0
  537. package/dist/sparkle-core/sparkle-core.css +1 -1
  538. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  539. package/dist/sparkle-core/svg/balloon-outline.svg +1 -0
  540. package/dist/sparkle-core/svg/balloon-sharp.svg +1 -0
  541. package/dist/sparkle-core/svg/balloon.svg +1 -0
  542. package/dist/sparkle-core/svg/bowling-ball-outline.svg +1 -0
  543. package/dist/sparkle-core/svg/bowling-ball-sharp.svg +1 -0
  544. package/dist/sparkle-core/svg/bowling-ball.svg +1 -0
  545. package/dist/sparkle-core/svg/calendar-number-outline.svg +1 -0
  546. package/dist/sparkle-core/svg/calendar-number-sharp.svg +1 -0
  547. package/dist/sparkle-core/svg/calendar-number.svg +1 -0
  548. package/dist/sparkle-core/svg/diamond-outline.svg +1 -0
  549. package/dist/sparkle-core/svg/diamond-sharp.svg +1 -0
  550. package/dist/sparkle-core/svg/diamond.svg +1 -0
  551. package/dist/sparkle-core/svg/footsteps-outline.svg +1 -0
  552. package/dist/sparkle-core/svg/footsteps-sharp.svg +1 -0
  553. package/dist/sparkle-core/svg/footsteps.svg +1 -0
  554. package/dist/sparkle-core/svg/id-card-outline.svg +1 -0
  555. package/dist/sparkle-core/svg/id-card-sharp.svg +1 -0
  556. package/dist/sparkle-core/svg/id-card.svg +1 -0
  557. package/dist/sparkle-core/svg/logo-apple-ar.svg +1 -0
  558. package/dist/sparkle-core/svg/prism-outline.svg +1 -0
  559. package/dist/sparkle-core/svg/prism-sharp.svg +1 -0
  560. package/dist/sparkle-core/svg/prism.svg +1 -0
  561. package/dist/sparkle-core/svg/scale-outline.svg +1 -0
  562. package/dist/sparkle-core/svg/scale-sharp.svg +1 -0
  563. package/dist/sparkle-core/svg/scale.svg +1 -0
  564. package/dist/sparkle-core/svg/shield-half-outline.svg +1 -0
  565. package/dist/sparkle-core/svg/shield-half-sharp.svg +1 -0
  566. package/dist/sparkle-core/svg/shield-half.svg +1 -0
  567. package/dist/sparkle-core/svg/sparkles-outline.svg +1 -0
  568. package/dist/sparkle-core/svg/sparkles-sharp.svg +1 -0
  569. package/dist/sparkle-core/svg/sparkles.svg +1 -0
  570. package/dist/sparkle-core/swiper/swiper.bundle.js +2 -2
  571. package/dist/types/components/sparkle-animation-player/sparkle-animation-player.d.ts +1 -0
  572. package/dist/types/components/sparkle-character-intro/sparkle-character-intro.d.ts +7 -0
  573. package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +2 -2
  574. package/dist/types/components/sparkle-youtube/sparkle-youtube.d.ts +1 -1
  575. package/dist/types/components.d.ts +17 -0
  576. package/dist/types/models/definitions.d.ts +8 -0
  577. package/dist/types/stencil-public-runtime.d.ts +200 -190
  578. package/dist/types/util.d.ts +1 -0
  579. package/package.json +26 -26
  580. package/dist/cjs/app-globals-98121d6d.js +0 -9
  581. package/dist/cjs/button-active-9456fb4d.js +0 -66
  582. package/dist/cjs/feed.service-518d18fd.js +0 -5802
  583. package/dist/cjs/focus-visible-1583bc8e.js +0 -45
  584. package/dist/cjs/framework-delegate-72815681.js +0 -37
  585. package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +0 -86
  586. package/dist/cjs/index.es-baef3314.js +0 -13834
  587. package/dist/cjs/ion-action-sheet.cjs.entry.js +0 -261
  588. package/dist/cjs/ion-alert.cjs.entry.js +0 -455
  589. package/dist/cjs/ion-note.cjs.entry.js +0 -29
  590. package/dist/cjs/ion-popover.cjs.entry.js +0 -365
  591. package/dist/cjs/ion-select-popover.cjs.entry.js +0 -35
  592. package/dist/cjs/status-tap-466a7c6a.js +0 -25
  593. package/dist/esm/app-globals-6451faf3.js +0 -7
  594. package/dist/esm/auth.store-dd944bc2.js +0 -2552
  595. package/dist/esm/button-active-97535443.js +0 -64
  596. package/dist/esm/feed.service-0fda1e36.js +0 -5787
  597. package/dist/esm/focus-visible-abf04ce3.js +0 -43
  598. package/dist/esm/framework-delegate-2c397da3.js +0 -34
  599. package/dist/esm/header-mobile-collapse_60.entry.js +0 -19
  600. package/dist/esm/index.es-a5bf9a49.js +0 -13748
  601. package/dist/esm/ion-action-sheet.entry.js +0 -257
  602. package/dist/esm/ion-alert.entry.js +0 -451
  603. package/dist/esm/ion-note.entry.js +0 -25
  604. package/dist/esm/ion-popover.entry.js +0 -361
  605. package/dist/esm/ion-select-popover.entry.js +0 -31
  606. package/dist/esm/status-tap-9221cd79.js +0 -23
  607. package/dist/sparkle-core/p-019d9d02.entry.js +0 -1
  608. package/dist/sparkle-core/p-02d6d899.js +0 -1
  609. package/dist/sparkle-core/p-03fd27d0.entry.js +0 -1
  610. package/dist/sparkle-core/p-07018d29.js +0 -1
  611. package/dist/sparkle-core/p-083d57a6.entry.js +0 -1
  612. package/dist/sparkle-core/p-090f2624.js +0 -1
  613. package/dist/sparkle-core/p-0e1c7c8c.js +0 -1
  614. package/dist/sparkle-core/p-101feae9.js +0 -1
  615. package/dist/sparkle-core/p-13b0cdfc.entry.js +0 -1
  616. package/dist/sparkle-core/p-13c9bf3a.entry.js +0 -1
  617. package/dist/sparkle-core/p-169920f1.js +0 -1
  618. package/dist/sparkle-core/p-1e1f5e98.entry.js +0 -1
  619. package/dist/sparkle-core/p-1e866c41.entry.js +0 -1
  620. package/dist/sparkle-core/p-2474bf60.entry.js +0 -1
  621. package/dist/sparkle-core/p-25bbf9b4.entry.js +0 -1
  622. package/dist/sparkle-core/p-2a45b732.js +0 -1
  623. package/dist/sparkle-core/p-2abf4d37.entry.js +0 -1
  624. package/dist/sparkle-core/p-2c5edb9f.entry.js +0 -1
  625. package/dist/sparkle-core/p-2d966d35.js +0 -1
  626. package/dist/sparkle-core/p-30b641a4.entry.js +0 -1
  627. package/dist/sparkle-core/p-34ea6639.entry.js +0 -1
  628. package/dist/sparkle-core/p-359422b6.entry.js +0 -1
  629. package/dist/sparkle-core/p-37bfb548.entry.js +0 -1
  630. package/dist/sparkle-core/p-38307b31.js +0 -1
  631. package/dist/sparkle-core/p-3a29a75b.entry.js +0 -1
  632. package/dist/sparkle-core/p-3bb55510.entry.js +0 -1
  633. package/dist/sparkle-core/p-3be0a218.js +0 -1
  634. package/dist/sparkle-core/p-417a8dd6.js +0 -1
  635. package/dist/sparkle-core/p-447163be.entry.js +0 -1
  636. package/dist/sparkle-core/p-49265a8e.entry.js +0 -1
  637. package/dist/sparkle-core/p-4950f841.entry.js +0 -1
  638. package/dist/sparkle-core/p-4b7db0e6.js +0 -1
  639. package/dist/sparkle-core/p-4d8cb365.entry.js +0 -1
  640. package/dist/sparkle-core/p-5073899e.entry.js +0 -1
  641. package/dist/sparkle-core/p-5b366c20.entry.js +0 -1
  642. package/dist/sparkle-core/p-5dce20b9.entry.js +0 -1
  643. package/dist/sparkle-core/p-6006beec.entry.js +0 -1
  644. package/dist/sparkle-core/p-600d04fc.entry.js +0 -1
  645. package/dist/sparkle-core/p-60828739.entry.js +0 -1
  646. package/dist/sparkle-core/p-6112b180.entry.js +0 -1
  647. package/dist/sparkle-core/p-66eb6b7a.entry.js +0 -1
  648. package/dist/sparkle-core/p-67ddec3f.entry.js +0 -1
  649. package/dist/sparkle-core/p-68cb7d41.entry.js +0 -1
  650. package/dist/sparkle-core/p-69cd49de.js +0 -1
  651. package/dist/sparkle-core/p-6edbdde5.entry.js +0 -1
  652. package/dist/sparkle-core/p-6f0ecbe3.js +0 -1
  653. package/dist/sparkle-core/p-765b8593.js +0 -1
  654. package/dist/sparkle-core/p-770128c8.js +0 -1
  655. package/dist/sparkle-core/p-7840618d.js +0 -1
  656. package/dist/sparkle-core/p-7b37d523.entry.js +0 -1
  657. package/dist/sparkle-core/p-7d83d006.entry.js +0 -1
  658. package/dist/sparkle-core/p-7f3d5344.js +0 -1
  659. package/dist/sparkle-core/p-81651f26.entry.js +0 -1
  660. package/dist/sparkle-core/p-86148067.entry.js +0 -1
  661. package/dist/sparkle-core/p-8b5bc1d6.entry.js +0 -1
  662. package/dist/sparkle-core/p-8c3ee44c.entry.js +0 -1
  663. package/dist/sparkle-core/p-9007a06b.entry.js +0 -1
  664. package/dist/sparkle-core/p-90482861.entry.js +0 -1
  665. package/dist/sparkle-core/p-a061537e.entry.js +0 -1
  666. package/dist/sparkle-core/p-a38ea475.js +0 -1
  667. package/dist/sparkle-core/p-ad1ddf1f.js +0 -483
  668. package/dist/sparkle-core/p-aef0bba0.js +0 -1
  669. package/dist/sparkle-core/p-b080c1e3.entry.js +0 -1
  670. package/dist/sparkle-core/p-b11fe0c7.js +0 -1
  671. package/dist/sparkle-core/p-bac45a26.entry.js +0 -1
  672. package/dist/sparkle-core/p-bbe5977b.entry.js +0 -1
  673. package/dist/sparkle-core/p-bc568dcb.js +0 -1
  674. package/dist/sparkle-core/p-bfb55f1d.js +0 -3
  675. package/dist/sparkle-core/p-c163c16d.entry.js +0 -1
  676. package/dist/sparkle-core/p-c3166584.entry.js +0 -1
  677. package/dist/sparkle-core/p-c34269ae.entry.js +0 -1
  678. package/dist/sparkle-core/p-c466ee32.js +0 -1
  679. package/dist/sparkle-core/p-c6710592.entry.js +0 -1
  680. package/dist/sparkle-core/p-c7022391.entry.js +0 -1
  681. package/dist/sparkle-core/p-d4ad796c.js +0 -1
  682. package/dist/sparkle-core/p-d6152660.entry.js +0 -1
  683. package/dist/sparkle-core/p-d63406d8.js +0 -1
  684. package/dist/sparkle-core/p-dba672d5.entry.js +0 -1
  685. package/dist/sparkle-core/p-dd73d01a.entry.js +0 -1
  686. package/dist/sparkle-core/p-de33872d.entry.js +0 -1
  687. package/dist/sparkle-core/p-dee2128a.entry.js +0 -1
  688. package/dist/sparkle-core/p-df07e132.entry.js +0 -1
  689. package/dist/sparkle-core/p-e5d5aaa5.js +0 -1
  690. package/dist/sparkle-core/p-e72c6d87.entry.js +0 -1
  691. package/dist/sparkle-core/p-e8df6ea6.entry.js +0 -1
  692. package/dist/sparkle-core/p-ef2a2172.js +0 -1
  693. package/dist/sparkle-core/p-f1a4ab33.entry.js +0 -1
  694. package/dist/sparkle-core/p-f43ac631.entry.js +0 -1
  695. package/dist/sparkle-core/p-f8063d7b.js +0 -1
  696. package/dist/sparkle-core/p-fd62283e.entry.js +0 -1
  697. package/dist/sparkle-core/p-fef71e0e.entry.js +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-fbf4d3bf.js');
3
+ const overlays = require('./overlays-0a748609.js');
4
4
  const environmentConfig_service = require('./environment-config.service-0e02b049.js');
5
- const overlays = require('./overlays-08a817ea.js');
5
+ const index = require('./index-bae2a754.js');
6
6
 
7
7
  var bind = function bind(fn, thisArg) {
8
8
  return function wrap() {
@@ -14,8 +14,6 @@ var bind = function bind(fn, thisArg) {
14
14
  };
15
15
  };
16
16
 
17
- /*global toString:true*/
18
-
19
17
  // utils is a library of generic helper functions non-specific to axios
20
18
 
21
19
  var toString = Object.prototype.toString;
@@ -26,8 +24,8 @@ var toString = Object.prototype.toString;
26
24
  * @param {Object} val The value to test
27
25
  * @returns {boolean} True if value is an Array, otherwise false
28
26
  */
29
- function isArray(val) {
30
- return toString.call(val) === '[object Array]';
27
+ function isArray$4(val) {
28
+ return Array.isArray(val);
31
29
  }
32
30
 
33
31
  /**
@@ -46,7 +44,7 @@ function isUndefined(val) {
46
44
  * @param {Object} val The value to test
47
45
  * @returns {boolean} True if value is a Buffer, otherwise false
48
46
  */
49
- function isBuffer(val) {
47
+ function isBuffer$1(val) {
50
48
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
51
49
  && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
52
50
  }
@@ -68,7 +66,7 @@ function isArrayBuffer(val) {
68
66
  * @returns {boolean} True if value is an FormData, otherwise false
69
67
  */
70
68
  function isFormData(val) {
71
- return (typeof FormData !== 'undefined') && (val instanceof FormData);
69
+ return toString.call(val) === '[object FormData]';
72
70
  }
73
71
 
74
72
  /**
@@ -82,7 +80,7 @@ function isArrayBufferView(val) {
82
80
  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
83
81
  result = ArrayBuffer.isView(val);
84
82
  } else {
85
- result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
83
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
86
84
  }
87
85
  return result;
88
86
  }
@@ -93,7 +91,7 @@ function isArrayBufferView(val) {
93
91
  * @param {Object} val The value to test
94
92
  * @returns {boolean} True if value is a String, otherwise false
95
93
  */
96
- function isString(val) {
94
+ function isString$1(val) {
97
95
  return typeof val === 'string';
98
96
  }
99
97
 
@@ -103,7 +101,7 @@ function isString(val) {
103
101
  * @param {Object} val The value to test
104
102
  * @returns {boolean} True if value is a Number, otherwise false
105
103
  */
106
- function isNumber(val) {
104
+ function isNumber$1(val) {
107
105
  return typeof val === 'number';
108
106
  }
109
107
 
@@ -138,7 +136,7 @@ function isPlainObject(val) {
138
136
  * @param {Object} val The value to test
139
137
  * @returns {boolean} True if value is a Date, otherwise false
140
138
  */
141
- function isDate(val) {
139
+ function isDate$1(val) {
142
140
  return toString.call(val) === '[object Date]';
143
141
  }
144
142
 
@@ -189,7 +187,7 @@ function isStream(val) {
189
187
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
190
188
  */
191
189
  function isURLSearchParams(val) {
192
- return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
190
+ return toString.call(val) === '[object URLSearchParams]';
193
191
  }
194
192
 
195
193
  /**
@@ -199,7 +197,7 @@ function isURLSearchParams(val) {
199
197
  * @returns {String} The String freed of excess whitespace
200
198
  */
201
199
  function trim(str) {
202
- return str.replace(/^\s*/, '').replace(/\s*$/, '');
200
+ return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
203
201
  }
204
202
 
205
203
  /**
@@ -253,7 +251,7 @@ function forEach(obj, fn) {
253
251
  obj = [obj];
254
252
  }
255
253
 
256
- if (isArray(obj)) {
254
+ if (isArray$4(obj)) {
257
255
  // Iterate over array values
258
256
  for (var i = 0, l = obj.length; i < l; i++) {
259
257
  fn.call(null, obj[i], i, obj);
@@ -285,14 +283,14 @@ function forEach(obj, fn) {
285
283
  * @param {Object} obj1 Object to merge
286
284
  * @returns {Object} Result of all merge properties
287
285
  */
288
- function merge(/* obj1, obj2, obj3, ... */) {
286
+ function merge$1(/* obj1, obj2, obj3, ... */) {
289
287
  var result = {};
290
288
  function assignValue(val, key) {
291
289
  if (isPlainObject(result[key]) && isPlainObject(val)) {
292
- result[key] = merge(result[key], val);
290
+ result[key] = merge$1(result[key], val);
293
291
  } else if (isPlainObject(val)) {
294
- result[key] = merge({}, val);
295
- } else if (isArray(val)) {
292
+ result[key] = merge$1({}, val);
293
+ } else if (isArray$4(val)) {
296
294
  result[key] = val.slice();
297
295
  } else {
298
296
  result[key] = val;
@@ -337,18 +335,18 @@ function stripBOM(content) {
337
335
  return content;
338
336
  }
339
337
 
340
- var utils = {
341
- isArray: isArray,
338
+ var utils$1 = {
339
+ isArray: isArray$4,
342
340
  isArrayBuffer: isArrayBuffer,
343
- isBuffer: isBuffer,
341
+ isBuffer: isBuffer$1,
344
342
  isFormData: isFormData,
345
343
  isArrayBufferView: isArrayBufferView,
346
- isString: isString,
347
- isNumber: isNumber,
344
+ isString: isString$1,
345
+ isNumber: isNumber$1,
348
346
  isObject: isObject,
349
347
  isPlainObject: isPlainObject,
350
348
  isUndefined: isUndefined,
351
- isDate: isDate,
349
+ isDate: isDate$1,
352
350
  isFile: isFile,
353
351
  isBlob: isBlob,
354
352
  isFunction: isFunction,
@@ -356,13 +354,13 @@ var utils = {
356
354
  isURLSearchParams: isURLSearchParams,
357
355
  isStandardBrowserEnv: isStandardBrowserEnv,
358
356
  forEach: forEach,
359
- merge: merge,
357
+ merge: merge$1,
360
358
  extend: extend,
361
359
  trim: trim,
362
360
  stripBOM: stripBOM
363
361
  };
364
362
 
365
- function encode(val) {
363
+ function encode$1(val) {
366
364
  return encodeURIComponent(val).
367
365
  replace(/%3A/gi, ':').
368
366
  replace(/%24/g, '$').
@@ -388,29 +386,29 @@ var buildURL = function buildURL(url, params, paramsSerializer) {
388
386
  var serializedParams;
389
387
  if (paramsSerializer) {
390
388
  serializedParams = paramsSerializer(params);
391
- } else if (utils.isURLSearchParams(params)) {
389
+ } else if (utils$1.isURLSearchParams(params)) {
392
390
  serializedParams = params.toString();
393
391
  } else {
394
392
  var parts = [];
395
393
 
396
- utils.forEach(params, function serialize(val, key) {
394
+ utils$1.forEach(params, function serialize(val, key) {
397
395
  if (val === null || typeof val === 'undefined') {
398
396
  return;
399
397
  }
400
398
 
401
- if (utils.isArray(val)) {
399
+ if (utils$1.isArray(val)) {
402
400
  key = key + '[]';
403
401
  } else {
404
402
  val = [val];
405
403
  }
406
404
 
407
- utils.forEach(val, function parseValue(v) {
408
- if (utils.isDate(v)) {
405
+ utils$1.forEach(val, function parseValue(v) {
406
+ if (utils$1.isDate(v)) {
409
407
  v = v.toISOString();
410
- } else if (utils.isObject(v)) {
408
+ } else if (utils$1.isObject(v)) {
411
409
  v = JSON.stringify(v);
412
410
  }
413
- parts.push(encode(key) + '=' + encode(v));
411
+ parts.push(encode$1(key) + '=' + encode$1(v));
414
412
  });
415
413
  });
416
414
 
@@ -441,10 +439,12 @@ function InterceptorManager() {
441
439
  *
442
440
  * @return {Number} An ID used to remove interceptor later
443
441
  */
444
- InterceptorManager.prototype.use = function use(fulfilled, rejected) {
442
+ InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
445
443
  this.handlers.push({
446
444
  fulfilled: fulfilled,
447
- rejected: rejected
445
+ rejected: rejected,
446
+ synchronous: options ? options.synchronous : false,
447
+ runWhen: options ? options.runWhen : null
448
448
  });
449
449
  return this.handlers.length - 1;
450
450
  };
@@ -469,7 +469,7 @@ InterceptorManager.prototype.eject = function eject(id) {
469
469
  * @param {Function} fn The function to call for each interceptor
470
470
  */
471
471
  InterceptorManager.prototype.forEach = function forEach(fn) {
472
- utils.forEach(this.handlers, function forEachHandler(h) {
472
+ utils$1.forEach(this.handlers, function forEachHandler(h) {
473
473
  if (h !== null) {
474
474
  fn(h);
475
475
  }
@@ -478,29 +478,8 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
478
478
 
479
479
  var InterceptorManager_1 = InterceptorManager;
480
480
 
481
- /**
482
- * Transform the data for a request or a response
483
- *
484
- * @param {Object|String} data The data to be transformed
485
- * @param {Array} headers The headers for the request or response
486
- * @param {Array|Function} fns A single function or Array of functions
487
- * @returns {*} The resulting transformed data
488
- */
489
- var transformData = function transformData(data, headers, fns) {
490
- /*eslint no-param-reassign:0*/
491
- utils.forEach(fns, function transform(fn) {
492
- data = fn(data, headers);
493
- });
494
-
495
- return data;
496
- };
497
-
498
- var isCancel = function isCancel(value) {
499
- return !!(value && value.__CANCEL__);
500
- };
501
-
502
481
  var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
503
- utils.forEach(headers, function processHeader(value, name) {
482
+ utils$1.forEach(headers, function processHeader(value, name) {
504
483
  if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
505
484
  headers[normalizedName] = value;
506
485
  delete headers[name];
@@ -543,12 +522,19 @@ var enhanceError = function enhanceError(error, config, code, request, response)
543
522
  stack: this.stack,
544
523
  // Axios
545
524
  config: this.config,
546
- code: this.code
525
+ code: this.code,
526
+ status: this.response && this.response.status ? this.response.status : null
547
527
  };
548
528
  };
549
529
  return error;
550
530
  };
551
531
 
532
+ var transitional = {
533
+ silentJSONParsing: true,
534
+ forcedJSONParsing: true,
535
+ clarifyTimeoutError: false
536
+ };
537
+
552
538
  /**
553
539
  * Create an Error with the specified message, config, error code, request and response.
554
540
  *
@@ -587,7 +573,7 @@ var settle = function settle(resolve, reject, response) {
587
573
  };
588
574
 
589
575
  var cookies = (
590
- utils.isStandardBrowserEnv() ?
576
+ utils$1.isStandardBrowserEnv() ?
591
577
 
592
578
  // Standard browser envs support document.cookie
593
579
  (function standardBrowserEnv() {
@@ -596,15 +582,15 @@ var cookies = (
596
582
  var cookie = [];
597
583
  cookie.push(name + '=' + encodeURIComponent(value));
598
584
 
599
- if (utils.isNumber(expires)) {
585
+ if (utils$1.isNumber(expires)) {
600
586
  cookie.push('expires=' + new Date(expires).toGMTString());
601
587
  }
602
588
 
603
- if (utils.isString(path)) {
589
+ if (utils$1.isString(path)) {
604
590
  cookie.push('path=' + path);
605
591
  }
606
592
 
607
- if (utils.isString(domain)) {
593
+ if (utils$1.isString(domain)) {
608
594
  cookie.push('domain=' + domain);
609
595
  }
610
596
 
@@ -646,7 +632,7 @@ var isAbsoluteURL = function isAbsoluteURL(url) {
646
632
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
647
633
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
648
634
  // by any combination of letters, digits, plus, period, or hyphen.
649
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
635
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
650
636
  };
651
637
 
652
638
  /**
@@ -708,10 +694,10 @@ var parseHeaders = function parseHeaders(headers) {
708
694
 
709
695
  if (!headers) { return parsed; }
710
696
 
711
- utils.forEach(headers.split('\n'), function parser(line) {
697
+ utils$1.forEach(headers.split('\n'), function parser(line) {
712
698
  i = line.indexOf(':');
713
- key = utils.trim(line.substr(0, i)).toLowerCase();
714
- val = utils.trim(line.substr(i + 1));
699
+ key = utils$1.trim(line.substr(0, i)).toLowerCase();
700
+ val = utils$1.trim(line.substr(i + 1));
715
701
 
716
702
  if (key) {
717
703
  if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
@@ -729,7 +715,7 @@ var parseHeaders = function parseHeaders(headers) {
729
715
  };
730
716
 
731
717
  var isURLSameOrigin = (
732
- utils.isStandardBrowserEnv() ?
718
+ utils$1.isStandardBrowserEnv() ?
733
719
 
734
720
  // Standard browser envs have full support of the APIs needed to test
735
721
  // whether the request URL is of the same origin as current location.
@@ -779,7 +765,7 @@ var isURLSameOrigin = (
779
765
  * @returns {boolean} True if URL shares the same origin, otherwise false
780
766
  */
781
767
  return function isURLSameOrigin(requestURL) {
782
- var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
768
+ var parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
783
769
  return (parsed.protocol === originURL.protocol &&
784
770
  parsed.host === originURL.host);
785
771
  };
@@ -793,12 +779,41 @@ var isURLSameOrigin = (
793
779
  })()
794
780
  );
795
781
 
782
+ /**
783
+ * A `Cancel` is an object that is thrown when an operation is canceled.
784
+ *
785
+ * @class
786
+ * @param {string=} message The message.
787
+ */
788
+ function Cancel(message) {
789
+ this.message = message;
790
+ }
791
+
792
+ Cancel.prototype.toString = function toString() {
793
+ return 'Cancel' + (this.message ? ': ' + this.message : '');
794
+ };
795
+
796
+ Cancel.prototype.__CANCEL__ = true;
797
+
798
+ var Cancel_1 = Cancel;
799
+
796
800
  var xhr = function xhrAdapter(config) {
797
801
  return new Promise(function dispatchXhrRequest(resolve, reject) {
798
802
  var requestData = config.data;
799
803
  var requestHeaders = config.headers;
804
+ var responseType = config.responseType;
805
+ var onCanceled;
806
+ function done() {
807
+ if (config.cancelToken) {
808
+ config.cancelToken.unsubscribe(onCanceled);
809
+ }
810
+
811
+ if (config.signal) {
812
+ config.signal.removeEventListener('abort', onCanceled);
813
+ }
814
+ }
800
815
 
801
- if (utils.isFormData(requestData)) {
816
+ if (utils$1.isFormData(requestData)) {
802
817
  delete requestHeaders['Content-Type']; // Let the browser set it
803
818
  }
804
819
 
@@ -817,23 +832,14 @@ var xhr = function xhrAdapter(config) {
817
832
  // Set the request timeout in MS
818
833
  request.timeout = config.timeout;
819
834
 
820
- // Listen for ready state
821
- request.onreadystatechange = function handleLoad() {
822
- if (!request || request.readyState !== 4) {
823
- return;
824
- }
825
-
826
- // The request errored out and we didn't get a response, this will be
827
- // handled by onerror instead
828
- // With one exception: request that using file: protocol, most browsers
829
- // will return status as 0 even though it's a successful request
830
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
835
+ function onloadend() {
836
+ if (!request) {
831
837
  return;
832
838
  }
833
-
834
839
  // Prepare the response
835
840
  var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
836
- var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
841
+ var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
842
+ request.responseText : request.response;
837
843
  var response = {
838
844
  data: responseData,
839
845
  status: request.status,
@@ -843,11 +849,40 @@ var xhr = function xhrAdapter(config) {
843
849
  request: request
844
850
  };
845
851
 
846
- settle(resolve, reject, response);
852
+ settle(function _resolve(value) {
853
+ resolve(value);
854
+ done();
855
+ }, function _reject(err) {
856
+ reject(err);
857
+ done();
858
+ }, response);
847
859
 
848
860
  // Clean up request
849
861
  request = null;
850
- };
862
+ }
863
+
864
+ if ('onloadend' in request) {
865
+ // Use onloadend if available
866
+ request.onloadend = onloadend;
867
+ } else {
868
+ // Listen for ready state to emulate onloadend
869
+ request.onreadystatechange = function handleLoad() {
870
+ if (!request || request.readyState !== 4) {
871
+ return;
872
+ }
873
+
874
+ // The request errored out and we didn't get a response, this will be
875
+ // handled by onerror instead
876
+ // With one exception: request that using file: protocol, most browsers
877
+ // will return status as 0 even though it's a successful request
878
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
879
+ return;
880
+ }
881
+ // readystate handler is calling before onerror or ontimeout handlers,
882
+ // so we should call onloadend on the next 'tick'
883
+ setTimeout(onloadend);
884
+ };
885
+ }
851
886
 
852
887
  // Handle browser request cancellation (as opposed to a manual cancellation)
853
888
  request.onabort = function handleAbort() {
@@ -873,11 +908,15 @@ var xhr = function xhrAdapter(config) {
873
908
 
874
909
  // Handle timeout
875
910
  request.ontimeout = function handleTimeout() {
876
- var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
911
+ var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
912
+ var transitional$1 = config.transitional || transitional;
877
913
  if (config.timeoutErrorMessage) {
878
914
  timeoutErrorMessage = config.timeoutErrorMessage;
879
915
  }
880
- reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
916
+ reject(createError(
917
+ timeoutErrorMessage,
918
+ config,
919
+ transitional$1.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
881
920
  request));
882
921
 
883
922
  // Clean up request
@@ -887,7 +926,7 @@ var xhr = function xhrAdapter(config) {
887
926
  // Add xsrf header
888
927
  // This is only done if running in a standard browser environment.
889
928
  // Specifically not if we're in a web worker, or react-native.
890
- if (utils.isStandardBrowserEnv()) {
929
+ if (utils$1.isStandardBrowserEnv()) {
891
930
  // Add xsrf header
892
931
  var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
893
932
  cookies.read(config.xsrfCookieName) :
@@ -900,7 +939,7 @@ var xhr = function xhrAdapter(config) {
900
939
 
901
940
  // Add headers to the request
902
941
  if ('setRequestHeader' in request) {
903
- utils.forEach(requestHeaders, function setRequestHeader(val, key) {
942
+ utils$1.forEach(requestHeaders, function setRequestHeader(val, key) {
904
943
  if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
905
944
  // Remove Content-Type if data is undefined
906
945
  delete requestHeaders[key];
@@ -912,21 +951,13 @@ var xhr = function xhrAdapter(config) {
912
951
  }
913
952
 
914
953
  // Add withCredentials to request if needed
915
- if (!utils.isUndefined(config.withCredentials)) {
954
+ if (!utils$1.isUndefined(config.withCredentials)) {
916
955
  request.withCredentials = !!config.withCredentials;
917
956
  }
918
957
 
919
958
  // Add responseType to request if needed
920
- if (config.responseType) {
921
- try {
922
- request.responseType = config.responseType;
923
- } catch (e) {
924
- // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
925
- // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
926
- if (config.responseType !== 'json') {
927
- throw e;
928
- }
929
- }
959
+ if (responseType && responseType !== 'json') {
960
+ request.responseType = config.responseType;
930
961
  }
931
962
 
932
963
  // Handle progress if needed
@@ -939,18 +970,22 @@ var xhr = function xhrAdapter(config) {
939
970
  request.upload.addEventListener('progress', config.onUploadProgress);
940
971
  }
941
972
 
942
- if (config.cancelToken) {
973
+ if (config.cancelToken || config.signal) {
943
974
  // Handle cancellation
944
- config.cancelToken.promise.then(function onCanceled(cancel) {
975
+ // eslint-disable-next-line func-names
976
+ onCanceled = function(cancel) {
945
977
  if (!request) {
946
978
  return;
947
979
  }
948
-
980
+ reject(!cancel || (cancel && cancel.type) ? new Cancel_1('canceled') : cancel);
949
981
  request.abort();
950
- reject(cancel);
951
- // Clean up request
952
982
  request = null;
953
- });
983
+ };
984
+
985
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
986
+ if (config.signal) {
987
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
988
+ }
954
989
  }
955
990
 
956
991
  if (!requestData) {
@@ -967,7 +1002,7 @@ var DEFAULT_CONTENT_TYPE = {
967
1002
  };
968
1003
 
969
1004
  function setContentTypeIfUnset(headers, value) {
970
- if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
1005
+ if (!utils$1.isUndefined(headers) && utils$1.isUndefined(headers['Content-Type'])) {
971
1006
  headers['Content-Type'] = value;
972
1007
  }
973
1008
  }
@@ -984,42 +1019,73 @@ function getDefaultAdapter() {
984
1019
  return adapter;
985
1020
  }
986
1021
 
987
- var defaults = {
1022
+ function stringifySafely(rawValue, parser, encoder) {
1023
+ if (utils$1.isString(rawValue)) {
1024
+ try {
1025
+ (parser || JSON.parse)(rawValue);
1026
+ return utils$1.trim(rawValue);
1027
+ } catch (e) {
1028
+ if (e.name !== 'SyntaxError') {
1029
+ throw e;
1030
+ }
1031
+ }
1032
+ }
1033
+
1034
+ return (encoder || JSON.stringify)(rawValue);
1035
+ }
1036
+
1037
+ var defaults$2 = {
1038
+
1039
+ transitional: transitional,
1040
+
988
1041
  adapter: getDefaultAdapter(),
989
1042
 
990
1043
  transformRequest: [function transformRequest(data, headers) {
991
1044
  normalizeHeaderName(headers, 'Accept');
992
1045
  normalizeHeaderName(headers, 'Content-Type');
993
- if (utils.isFormData(data) ||
994
- utils.isArrayBuffer(data) ||
995
- utils.isBuffer(data) ||
996
- utils.isStream(data) ||
997
- utils.isFile(data) ||
998
- utils.isBlob(data)
1046
+
1047
+ if (utils$1.isFormData(data) ||
1048
+ utils$1.isArrayBuffer(data) ||
1049
+ utils$1.isBuffer(data) ||
1050
+ utils$1.isStream(data) ||
1051
+ utils$1.isFile(data) ||
1052
+ utils$1.isBlob(data)
999
1053
  ) {
1000
1054
  return data;
1001
1055
  }
1002
- if (utils.isArrayBufferView(data)) {
1056
+ if (utils$1.isArrayBufferView(data)) {
1003
1057
  return data.buffer;
1004
1058
  }
1005
- if (utils.isURLSearchParams(data)) {
1059
+ if (utils$1.isURLSearchParams(data)) {
1006
1060
  setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
1007
1061
  return data.toString();
1008
1062
  }
1009
- if (utils.isObject(data)) {
1010
- setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
1011
- return JSON.stringify(data);
1063
+ if (utils$1.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
1064
+ setContentTypeIfUnset(headers, 'application/json');
1065
+ return stringifySafely(data);
1012
1066
  }
1013
1067
  return data;
1014
1068
  }],
1015
1069
 
1016
1070
  transformResponse: [function transformResponse(data) {
1017
- /*eslint no-param-reassign:0*/
1018
- if (typeof data === 'string') {
1071
+ var transitional = this.transitional || defaults$2.transitional;
1072
+ var silentJSONParsing = transitional && transitional.silentJSONParsing;
1073
+ var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1074
+ var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
1075
+
1076
+ if (strictJSONParsing || (forcedJSONParsing && utils$1.isString(data) && data.length)) {
1019
1077
  try {
1020
- data = JSON.parse(data);
1021
- } catch (e) { /* Ignore */ }
1078
+ return JSON.parse(data);
1079
+ } catch (e) {
1080
+ if (strictJSONParsing) {
1081
+ if (e.name === 'SyntaxError') {
1082
+ throw enhanceError(e, this, 'E_JSON_PARSE');
1083
+ }
1084
+ throw e;
1085
+ }
1086
+ }
1022
1087
  }
1088
+
1023
1089
  return data;
1024
1090
  }],
1025
1091
 
@@ -1037,24 +1103,46 @@ var defaults = {
1037
1103
 
1038
1104
  validateStatus: function validateStatus(status) {
1039
1105
  return status >= 200 && status < 300;
1040
- }
1041
- };
1106
+ },
1042
1107
 
1043
- defaults.headers = {
1044
- common: {
1045
- 'Accept': 'application/json, text/plain, */*'
1108
+ headers: {
1109
+ common: {
1110
+ 'Accept': 'application/json, text/plain, */*'
1111
+ }
1046
1112
  }
1047
1113
  };
1048
1114
 
1049
- utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1050
- defaults.headers[method] = {};
1115
+ utils$1.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1116
+ defaults$2.headers[method] = {};
1051
1117
  });
1052
1118
 
1053
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1054
- defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
1119
+ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1120
+ defaults$2.headers[method] = utils$1.merge(DEFAULT_CONTENT_TYPE);
1055
1121
  });
1056
1122
 
1057
- var defaults_1 = defaults;
1123
+ var defaults_1 = defaults$2;
1124
+
1125
+ /**
1126
+ * Transform the data for a request or a response
1127
+ *
1128
+ * @param {Object|String} data The data to be transformed
1129
+ * @param {Array} headers The headers for the request or response
1130
+ * @param {Array|Function} fns A single function or Array of functions
1131
+ * @returns {*} The resulting transformed data
1132
+ */
1133
+ var transformData = function transformData(data, headers, fns) {
1134
+ var context = this || defaults_1;
1135
+ /*eslint no-param-reassign:0*/
1136
+ utils$1.forEach(fns, function transform(fn) {
1137
+ data = fn.call(context, data, headers);
1138
+ });
1139
+
1140
+ return data;
1141
+ };
1142
+
1143
+ var isCancel = function isCancel(value) {
1144
+ return !!(value && value.__CANCEL__);
1145
+ };
1058
1146
 
1059
1147
  /**
1060
1148
  * Throws a `Cancel` if cancellation has been requested.
@@ -1063,6 +1151,10 @@ function throwIfCancellationRequested(config) {
1063
1151
  if (config.cancelToken) {
1064
1152
  config.cancelToken.throwIfRequested();
1065
1153
  }
1154
+
1155
+ if (config.signal && config.signal.aborted) {
1156
+ throw new Cancel_1('canceled');
1157
+ }
1066
1158
  }
1067
1159
 
1068
1160
  /**
@@ -1078,20 +1170,21 @@ var dispatchRequest = function dispatchRequest(config) {
1078
1170
  config.headers = config.headers || {};
1079
1171
 
1080
1172
  // Transform request data
1081
- config.data = transformData(
1173
+ config.data = transformData.call(
1174
+ config,
1082
1175
  config.data,
1083
1176
  config.headers,
1084
1177
  config.transformRequest
1085
1178
  );
1086
1179
 
1087
1180
  // Flatten headers
1088
- config.headers = utils.merge(
1181
+ config.headers = utils$1.merge(
1089
1182
  config.headers.common || {},
1090
1183
  config.headers[config.method] || {},
1091
1184
  config.headers
1092
1185
  );
1093
1186
 
1094
- utils.forEach(
1187
+ utils$1.forEach(
1095
1188
  ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
1096
1189
  function cleanHeaderConfig(method) {
1097
1190
  delete config.headers[method];
@@ -1104,7 +1197,8 @@ var dispatchRequest = function dispatchRequest(config) {
1104
1197
  throwIfCancellationRequested(config);
1105
1198
 
1106
1199
  // Transform response data
1107
- response.data = transformData(
1200
+ response.data = transformData.call(
1201
+ config,
1108
1202
  response.data,
1109
1203
  response.headers,
1110
1204
  config.transformResponse
@@ -1117,7 +1211,8 @@ var dispatchRequest = function dispatchRequest(config) {
1117
1211
 
1118
1212
  // Transform response data
1119
1213
  if (reason && reason.response) {
1120
- reason.response.data = transformData(
1214
+ reason.response.data = transformData.call(
1215
+ config,
1121
1216
  reason.response.data,
1122
1217
  reason.response.headers,
1123
1218
  config.transformResponse
@@ -1142,77 +1237,175 @@ var mergeConfig = function mergeConfig(config1, config2) {
1142
1237
  config2 = config2 || {};
1143
1238
  var config = {};
1144
1239
 
1145
- var valueFromConfig2Keys = ['url', 'method', 'data'];
1146
- var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
1147
- var defaultToConfig2Keys = [
1148
- 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
1149
- 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
1150
- 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
1151
- 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
1152
- 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
1153
- ];
1154
- var directMergeKeys = ['validateStatus'];
1155
-
1156
1240
  function getMergedValue(target, source) {
1157
- if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
1158
- return utils.merge(target, source);
1159
- } else if (utils.isPlainObject(source)) {
1160
- return utils.merge({}, source);
1161
- } else if (utils.isArray(source)) {
1241
+ if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
1242
+ return utils$1.merge(target, source);
1243
+ } else if (utils$1.isPlainObject(source)) {
1244
+ return utils$1.merge({}, source);
1245
+ } else if (utils$1.isArray(source)) {
1162
1246
  return source.slice();
1163
1247
  }
1164
1248
  return source;
1165
1249
  }
1166
1250
 
1251
+ // eslint-disable-next-line consistent-return
1167
1252
  function mergeDeepProperties(prop) {
1168
- if (!utils.isUndefined(config2[prop])) {
1169
- config[prop] = getMergedValue(config1[prop], config2[prop]);
1170
- } else if (!utils.isUndefined(config1[prop])) {
1171
- config[prop] = getMergedValue(undefined, config1[prop]);
1253
+ if (!utils$1.isUndefined(config2[prop])) {
1254
+ return getMergedValue(config1[prop], config2[prop]);
1255
+ } else if (!utils$1.isUndefined(config1[prop])) {
1256
+ return getMergedValue(undefined, config1[prop]);
1172
1257
  }
1173
1258
  }
1174
1259
 
1175
- utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
1176
- if (!utils.isUndefined(config2[prop])) {
1177
- config[prop] = getMergedValue(undefined, config2[prop]);
1260
+ // eslint-disable-next-line consistent-return
1261
+ function valueFromConfig2(prop) {
1262
+ if (!utils$1.isUndefined(config2[prop])) {
1263
+ return getMergedValue(undefined, config2[prop]);
1178
1264
  }
1179
- });
1180
-
1181
- utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
1265
+ }
1182
1266
 
1183
- utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
1184
- if (!utils.isUndefined(config2[prop])) {
1185
- config[prop] = getMergedValue(undefined, config2[prop]);
1186
- } else if (!utils.isUndefined(config1[prop])) {
1187
- config[prop] = getMergedValue(undefined, config1[prop]);
1267
+ // eslint-disable-next-line consistent-return
1268
+ function defaultToConfig2(prop) {
1269
+ if (!utils$1.isUndefined(config2[prop])) {
1270
+ return getMergedValue(undefined, config2[prop]);
1271
+ } else if (!utils$1.isUndefined(config1[prop])) {
1272
+ return getMergedValue(undefined, config1[prop]);
1188
1273
  }
1189
- });
1274
+ }
1190
1275
 
1191
- utils.forEach(directMergeKeys, function merge(prop) {
1276
+ // eslint-disable-next-line consistent-return
1277
+ function mergeDirectKeys(prop) {
1192
1278
  if (prop in config2) {
1193
- config[prop] = getMergedValue(config1[prop], config2[prop]);
1279
+ return getMergedValue(config1[prop], config2[prop]);
1194
1280
  } else if (prop in config1) {
1195
- config[prop] = getMergedValue(undefined, config1[prop]);
1281
+ return getMergedValue(undefined, config1[prop]);
1196
1282
  }
1283
+ }
1284
+
1285
+ var mergeMap = {
1286
+ 'url': valueFromConfig2,
1287
+ 'method': valueFromConfig2,
1288
+ 'data': valueFromConfig2,
1289
+ 'baseURL': defaultToConfig2,
1290
+ 'transformRequest': defaultToConfig2,
1291
+ 'transformResponse': defaultToConfig2,
1292
+ 'paramsSerializer': defaultToConfig2,
1293
+ 'timeout': defaultToConfig2,
1294
+ 'timeoutMessage': defaultToConfig2,
1295
+ 'withCredentials': defaultToConfig2,
1296
+ 'adapter': defaultToConfig2,
1297
+ 'responseType': defaultToConfig2,
1298
+ 'xsrfCookieName': defaultToConfig2,
1299
+ 'xsrfHeaderName': defaultToConfig2,
1300
+ 'onUploadProgress': defaultToConfig2,
1301
+ 'onDownloadProgress': defaultToConfig2,
1302
+ 'decompress': defaultToConfig2,
1303
+ 'maxContentLength': defaultToConfig2,
1304
+ 'maxBodyLength': defaultToConfig2,
1305
+ 'transport': defaultToConfig2,
1306
+ 'httpAgent': defaultToConfig2,
1307
+ 'httpsAgent': defaultToConfig2,
1308
+ 'cancelToken': defaultToConfig2,
1309
+ 'socketPath': defaultToConfig2,
1310
+ 'responseEncoding': defaultToConfig2,
1311
+ 'validateStatus': mergeDirectKeys
1312
+ };
1313
+
1314
+ utils$1.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
1315
+ var merge = mergeMap[prop] || mergeDeepProperties;
1316
+ var configValue = merge(prop);
1317
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
1197
1318
  });
1198
1319
 
1199
- var axiosKeys = valueFromConfig2Keys
1200
- .concat(mergeDeepPropertiesKeys)
1201
- .concat(defaultToConfig2Keys)
1202
- .concat(directMergeKeys);
1320
+ return config;
1321
+ };
1322
+
1323
+ var data = {
1324
+ "version": "0.26.1"
1325
+ };
1203
1326
 
1204
- var otherKeys = Object
1205
- .keys(config1)
1206
- .concat(Object.keys(config2))
1207
- .filter(function filterAxiosKeys(key) {
1208
- return axiosKeys.indexOf(key) === -1;
1209
- });
1327
+ var VERSION = data.version;
1210
1328
 
1211
- utils.forEach(otherKeys, mergeDeepProperties);
1329
+ var validators$1 = {};
1212
1330
 
1213
- return config;
1331
+ // eslint-disable-next-line func-names
1332
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
1333
+ validators$1[type] = function validator(thing) {
1334
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
1335
+ };
1336
+ });
1337
+
1338
+ var deprecatedWarnings = {};
1339
+
1340
+ /**
1341
+ * Transitional option validator
1342
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
1343
+ * @param {string?} version - deprecated version / removed since version
1344
+ * @param {string?} message - some message with additional info
1345
+ * @returns {function}
1346
+ */
1347
+ validators$1.transitional = function transitional(validator, version, message) {
1348
+ function formatMessage(opt, desc) {
1349
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
1350
+ }
1351
+
1352
+ // eslint-disable-next-line func-names
1353
+ return function(value, opt, opts) {
1354
+ if (validator === false) {
1355
+ throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
1356
+ }
1357
+
1358
+ if (version && !deprecatedWarnings[opt]) {
1359
+ deprecatedWarnings[opt] = true;
1360
+ // eslint-disable-next-line no-console
1361
+ console.warn(
1362
+ formatMessage(
1363
+ opt,
1364
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
1365
+ )
1366
+ );
1367
+ }
1368
+
1369
+ return validator ? validator(value, opt, opts) : true;
1370
+ };
1371
+ };
1372
+
1373
+ /**
1374
+ * Assert object's properties type
1375
+ * @param {object} options
1376
+ * @param {object} schema
1377
+ * @param {boolean?} allowUnknown
1378
+ */
1379
+
1380
+ function assertOptions(options, schema, allowUnknown) {
1381
+ if (typeof options !== 'object') {
1382
+ throw new TypeError('options must be an object');
1383
+ }
1384
+ var keys = Object.keys(options);
1385
+ var i = keys.length;
1386
+ while (i-- > 0) {
1387
+ var opt = keys[i];
1388
+ var validator = schema[opt];
1389
+ if (validator) {
1390
+ var value = options[opt];
1391
+ var result = value === undefined || validator(value, opt, options);
1392
+ if (result !== true) {
1393
+ throw new TypeError('option ' + opt + ' must be ' + result);
1394
+ }
1395
+ continue;
1396
+ }
1397
+ if (allowUnknown !== true) {
1398
+ throw Error('Unknown option ' + opt);
1399
+ }
1400
+ }
1401
+ }
1402
+
1403
+ var validator = {
1404
+ assertOptions: assertOptions,
1405
+ validators: validators$1
1214
1406
  };
1215
1407
 
1408
+ var validators = validator.validators;
1216
1409
  /**
1217
1410
  * Create a new instance of Axios
1218
1411
  *
@@ -1231,14 +1424,14 @@ function Axios(instanceConfig) {
1231
1424
  *
1232
1425
  * @param {Object} config The config specific for this request (merged with this.defaults)
1233
1426
  */
1234
- Axios.prototype.request = function request(config) {
1427
+ Axios.prototype.request = function request(configOrUrl, config) {
1235
1428
  /*eslint no-param-reassign:0*/
1236
1429
  // Allow for axios('example/url'[, config]) a la fetch API
1237
- if (typeof config === 'string') {
1238
- config = arguments[1] || {};
1239
- config.url = arguments[0];
1240
- } else {
1430
+ if (typeof configOrUrl === 'string') {
1241
1431
  config = config || {};
1432
+ config.url = configOrUrl;
1433
+ } else {
1434
+ config = configOrUrl || {};
1242
1435
  }
1243
1436
 
1244
1437
  config = mergeConfig(this.defaults, config);
@@ -1252,20 +1445,71 @@ Axios.prototype.request = function request(config) {
1252
1445
  config.method = 'get';
1253
1446
  }
1254
1447
 
1255
- // Hook up interceptors middleware
1256
- var chain = [dispatchRequest, undefined];
1257
- var promise = Promise.resolve(config);
1448
+ var transitional = config.transitional;
1258
1449
 
1450
+ if (transitional !== undefined) {
1451
+ validator.assertOptions(transitional, {
1452
+ silentJSONParsing: validators.transitional(validators.boolean),
1453
+ forcedJSONParsing: validators.transitional(validators.boolean),
1454
+ clarifyTimeoutError: validators.transitional(validators.boolean)
1455
+ }, false);
1456
+ }
1457
+
1458
+ // filter out skipped interceptors
1459
+ var requestInterceptorChain = [];
1460
+ var synchronousRequestInterceptors = true;
1259
1461
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
1260
- chain.unshift(interceptor.fulfilled, interceptor.rejected);
1462
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
1463
+ return;
1464
+ }
1465
+
1466
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
1467
+
1468
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
1261
1469
  });
1262
1470
 
1471
+ var responseInterceptorChain = [];
1263
1472
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
1264
- chain.push(interceptor.fulfilled, interceptor.rejected);
1473
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
1265
1474
  });
1266
1475
 
1267
- while (chain.length) {
1268
- promise = promise.then(chain.shift(), chain.shift());
1476
+ var promise;
1477
+
1478
+ if (!synchronousRequestInterceptors) {
1479
+ var chain = [dispatchRequest, undefined];
1480
+
1481
+ Array.prototype.unshift.apply(chain, requestInterceptorChain);
1482
+ chain = chain.concat(responseInterceptorChain);
1483
+
1484
+ promise = Promise.resolve(config);
1485
+ while (chain.length) {
1486
+ promise = promise.then(chain.shift(), chain.shift());
1487
+ }
1488
+
1489
+ return promise;
1490
+ }
1491
+
1492
+
1493
+ var newConfig = config;
1494
+ while (requestInterceptorChain.length) {
1495
+ var onFulfilled = requestInterceptorChain.shift();
1496
+ var onRejected = requestInterceptorChain.shift();
1497
+ try {
1498
+ newConfig = onFulfilled(newConfig);
1499
+ } catch (error) {
1500
+ onRejected(error);
1501
+ break;
1502
+ }
1503
+ }
1504
+
1505
+ try {
1506
+ promise = dispatchRequest(newConfig);
1507
+ } catch (error) {
1508
+ return Promise.reject(error);
1509
+ }
1510
+
1511
+ while (responseInterceptorChain.length) {
1512
+ promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
1269
1513
  }
1270
1514
 
1271
1515
  return promise;
@@ -1277,7 +1521,7 @@ Axios.prototype.getUri = function getUri(config) {
1277
1521
  };
1278
1522
 
1279
1523
  // Provide aliases for supported request methods
1280
- utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
1524
+ utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
1281
1525
  /*eslint func-names:0*/
1282
1526
  Axios.prototype[method] = function(url, config) {
1283
1527
  return this.request(mergeConfig(config || {}, {
@@ -1288,7 +1532,7 @@ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData
1288
1532
  };
1289
1533
  });
1290
1534
 
1291
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1535
+ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1292
1536
  /*eslint func-names:0*/
1293
1537
  Axios.prototype[method] = function(url, data, config) {
1294
1538
  return this.request(mergeConfig(config || {}, {
@@ -1301,24 +1545,6 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1301
1545
 
1302
1546
  var Axios_1 = Axios;
1303
1547
 
1304
- /**
1305
- * A `Cancel` is an object that is thrown when an operation is canceled.
1306
- *
1307
- * @class
1308
- * @param {string=} message The message.
1309
- */
1310
- function Cancel(message) {
1311
- this.message = message;
1312
- }
1313
-
1314
- Cancel.prototype.toString = function toString() {
1315
- return 'Cancel' + (this.message ? ': ' + this.message : '');
1316
- };
1317
-
1318
- Cancel.prototype.__CANCEL__ = true;
1319
-
1320
- var Cancel_1 = Cancel;
1321
-
1322
1548
  /**
1323
1549
  * A `CancelToken` is an object that can be used to request cancellation of an operation.
1324
1550
  *
@@ -1331,11 +1557,42 @@ function CancelToken(executor) {
1331
1557
  }
1332
1558
 
1333
1559
  var resolvePromise;
1560
+
1334
1561
  this.promise = new Promise(function promiseExecutor(resolve) {
1335
1562
  resolvePromise = resolve;
1336
1563
  });
1337
1564
 
1338
1565
  var token = this;
1566
+
1567
+ // eslint-disable-next-line func-names
1568
+ this.promise.then(function(cancel) {
1569
+ if (!token._listeners) return;
1570
+
1571
+ var i;
1572
+ var l = token._listeners.length;
1573
+
1574
+ for (i = 0; i < l; i++) {
1575
+ token._listeners[i](cancel);
1576
+ }
1577
+ token._listeners = null;
1578
+ });
1579
+
1580
+ // eslint-disable-next-line func-names
1581
+ this.promise.then = function(onfulfilled) {
1582
+ var _resolve;
1583
+ // eslint-disable-next-line func-names
1584
+ var promise = new Promise(function(resolve) {
1585
+ token.subscribe(resolve);
1586
+ _resolve = resolve;
1587
+ }).then(onfulfilled);
1588
+
1589
+ promise.cancel = function reject() {
1590
+ token.unsubscribe(_resolve);
1591
+ };
1592
+
1593
+ return promise;
1594
+ };
1595
+
1339
1596
  executor(function cancel(message) {
1340
1597
  if (token.reason) {
1341
1598
  // Cancellation has already been requested
@@ -1356,6 +1613,37 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1356
1613
  }
1357
1614
  };
1358
1615
 
1616
+ /**
1617
+ * Subscribe to the cancel signal
1618
+ */
1619
+
1620
+ CancelToken.prototype.subscribe = function subscribe(listener) {
1621
+ if (this.reason) {
1622
+ listener(this.reason);
1623
+ return;
1624
+ }
1625
+
1626
+ if (this._listeners) {
1627
+ this._listeners.push(listener);
1628
+ } else {
1629
+ this._listeners = [listener];
1630
+ }
1631
+ };
1632
+
1633
+ /**
1634
+ * Unsubscribe from the cancel signal
1635
+ */
1636
+
1637
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1638
+ if (!this._listeners) {
1639
+ return;
1640
+ }
1641
+ var index = this._listeners.indexOf(listener);
1642
+ if (index !== -1) {
1643
+ this._listeners.splice(index, 1);
1644
+ }
1645
+ };
1646
+
1359
1647
  /**
1360
1648
  * Returns an object that contains a new `CancelToken` and a function that, when called,
1361
1649
  * cancels the `CancelToken`.
@@ -1406,7 +1694,7 @@ var spread = function spread(callback) {
1406
1694
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
1407
1695
  */
1408
1696
  var isAxiosError = function isAxiosError(payload) {
1409
- return (typeof payload === 'object') && (payload.isAxiosError === true);
1697
+ return utils$1.isObject(payload) && (payload.isAxiosError === true);
1410
1698
  };
1411
1699
 
1412
1700
  /**
@@ -1420,74 +1708,1237 @@ function createInstance(defaultConfig) {
1420
1708
  var instance = bind(Axios_1.prototype.request, context);
1421
1709
 
1422
1710
  // Copy axios.prototype to instance
1423
- utils.extend(instance, Axios_1.prototype, context);
1711
+ utils$1.extend(instance, Axios_1.prototype, context);
1424
1712
 
1425
1713
  // Copy context to instance
1426
- utils.extend(instance, context);
1714
+ utils$1.extend(instance, context);
1715
+
1716
+ // Factory for creating new instances
1717
+ instance.create = function create(instanceConfig) {
1718
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
1719
+ };
1427
1720
 
1428
1721
  return instance;
1429
1722
  }
1430
1723
 
1431
1724
  // Create the default instance to be exported
1432
- var axios = createInstance(defaults_1);
1725
+ var axios$1 = createInstance(defaults_1);
1433
1726
 
1434
1727
  // Expose Axios class to allow class inheritance
1435
- axios.Axios = Axios_1;
1436
-
1437
- // Factory for creating new instances
1438
- axios.create = function create(instanceConfig) {
1439
- return createInstance(mergeConfig(axios.defaults, instanceConfig));
1440
- };
1728
+ axios$1.Axios = Axios_1;
1441
1729
 
1442
1730
  // Expose Cancel & CancelToken
1443
- axios.Cancel = Cancel_1;
1444
- axios.CancelToken = CancelToken_1;
1445
- axios.isCancel = isCancel;
1731
+ axios$1.Cancel = Cancel_1;
1732
+ axios$1.CancelToken = CancelToken_1;
1733
+ axios$1.isCancel = isCancel;
1734
+ axios$1.VERSION = data.version;
1446
1735
 
1447
1736
  // Expose all/spread
1448
- axios.all = function all(promises) {
1737
+ axios$1.all = function all(promises) {
1449
1738
  return Promise.all(promises);
1450
1739
  };
1451
- axios.spread = spread;
1740
+ axios$1.spread = spread;
1452
1741
 
1453
1742
  // Expose isAxiosError
1454
- axios.isAxiosError = isAxiosError;
1743
+ axios$1.isAxiosError = isAxiosError;
1455
1744
 
1456
- var axios_1 = axios;
1745
+ var axios_1 = axios$1;
1457
1746
 
1458
1747
  // Allow use of default import syntax in TypeScript
1459
- var _default = axios;
1748
+ var _default = axios$1;
1460
1749
  axios_1.default = _default;
1461
1750
 
1462
- var axios$1 = axios_1;
1751
+ var axios = axios_1;
1463
1752
 
1464
- var replace = String.prototype.replace;
1465
- var percentTwenties = /%20/g;
1753
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1754
+ var shams = function hasSymbols() {
1755
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1756
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1466
1757
 
1467
- var Format = {
1468
- RFC1738: 'RFC1738',
1469
- RFC3986: 'RFC3986'
1470
- };
1758
+ var obj = {};
1759
+ var sym = Symbol('test');
1760
+ var symObj = Object(sym);
1761
+ if (typeof sym === 'string') { return false; }
1471
1762
 
1472
- var formats = {
1473
- 'default': Format.RFC3986,
1474
- formatters: {
1475
- RFC1738: function (value) {
1476
- return replace.call(value, percentTwenties, '+');
1477
- },
1478
- RFC3986: function (value) {
1479
- return String(value);
1480
- }
1481
- },
1482
- RFC1738: Format.RFC1738,
1483
- RFC3986: Format.RFC3986
1484
- };
1763
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1764
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1485
1765
 
1486
- var has = Object.prototype.hasOwnProperty;
1487
- var isArray$1 = Array.isArray;
1766
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1767
+ // if (sym instanceof Symbol) { return false; }
1768
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1769
+ // if (!(symObj instanceof Symbol)) { return false; }
1488
1770
 
1489
- var hexTable = (function () {
1490
- var array = [];
1771
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1772
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1773
+
1774
+ var symVal = 42;
1775
+ obj[sym] = symVal;
1776
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1777
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1778
+
1779
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1780
+
1781
+ var syms = Object.getOwnPropertySymbols(obj);
1782
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1783
+
1784
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1785
+
1786
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1787
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1788
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1789
+ }
1790
+
1791
+ return true;
1792
+ };
1793
+
1794
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1795
+
1796
+
1797
+ var hasSymbols$1 = function hasNativeSymbols() {
1798
+ if (typeof origSymbol !== 'function') { return false; }
1799
+ if (typeof Symbol !== 'function') { return false; }
1800
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1801
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1802
+
1803
+ return shams();
1804
+ };
1805
+
1806
+ /* eslint no-invalid-this: 1 */
1807
+
1808
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1809
+ var slice = Array.prototype.slice;
1810
+ var toStr$1 = Object.prototype.toString;
1811
+ var funcType = '[object Function]';
1812
+
1813
+ var implementation = function bind(that) {
1814
+ var target = this;
1815
+ if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
1816
+ throw new TypeError(ERROR_MESSAGE + target);
1817
+ }
1818
+ var args = slice.call(arguments, 1);
1819
+
1820
+ var bound;
1821
+ var binder = function () {
1822
+ if (this instanceof bound) {
1823
+ var result = target.apply(
1824
+ this,
1825
+ args.concat(slice.call(arguments))
1826
+ );
1827
+ if (Object(result) === result) {
1828
+ return result;
1829
+ }
1830
+ return this;
1831
+ } else {
1832
+ return target.apply(
1833
+ that,
1834
+ args.concat(slice.call(arguments))
1835
+ );
1836
+ }
1837
+ };
1838
+
1839
+ var boundLength = Math.max(0, target.length - args.length);
1840
+ var boundArgs = [];
1841
+ for (var i = 0; i < boundLength; i++) {
1842
+ boundArgs.push('$' + i);
1843
+ }
1844
+
1845
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1846
+
1847
+ if (target.prototype) {
1848
+ var Empty = function Empty() {};
1849
+ Empty.prototype = target.prototype;
1850
+ bound.prototype = new Empty();
1851
+ Empty.prototype = null;
1852
+ }
1853
+
1854
+ return bound;
1855
+ };
1856
+
1857
+ var functionBind = Function.prototype.bind || implementation;
1858
+
1859
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1860
+
1861
+ var undefined$1;
1862
+
1863
+ var $SyntaxError = SyntaxError;
1864
+ var $Function = Function;
1865
+ var $TypeError$1 = TypeError;
1866
+
1867
+ // eslint-disable-next-line consistent-return
1868
+ var getEvalledConstructor = function (expressionSyntax) {
1869
+ try {
1870
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1871
+ } catch (e) {}
1872
+ };
1873
+
1874
+ var $gOPD = Object.getOwnPropertyDescriptor;
1875
+
1876
+ var throwTypeError = function () {
1877
+ throw new $TypeError$1();
1878
+ };
1879
+ var ThrowTypeError = $gOPD
1880
+ ? (function () {
1881
+ try {
1882
+ return throwTypeError;
1883
+ } catch (calleeThrows) {
1884
+ try {
1885
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1886
+ return $gOPD(arguments, 'callee').get;
1887
+ } catch (gOPDthrows) {
1888
+ return throwTypeError;
1889
+ }
1890
+ }
1891
+ }())
1892
+ : throwTypeError;
1893
+
1894
+ var hasSymbols = hasSymbols$1();
1895
+
1896
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1897
+
1898
+ var needsEval = {};
1899
+
1900
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1901
+
1902
+ var INTRINSICS = {
1903
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1904
+ '%Array%': Array,
1905
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1906
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
1907
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
1908
+ '%AsyncFunction%': needsEval,
1909
+ '%AsyncGenerator%': needsEval,
1910
+ '%AsyncGeneratorFunction%': needsEval,
1911
+ '%AsyncIteratorPrototype%': needsEval,
1912
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1913
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1914
+ '%Boolean%': Boolean,
1915
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1916
+ '%Date%': Date,
1917
+ '%decodeURI%': decodeURI,
1918
+ '%decodeURIComponent%': decodeURIComponent,
1919
+ '%encodeURI%': encodeURI,
1920
+ '%encodeURIComponent%': encodeURIComponent,
1921
+ '%Error%': Error,
1922
+ '%eval%': eval, // eslint-disable-line no-eval
1923
+ '%EvalError%': EvalError,
1924
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1925
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1926
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1927
+ '%Function%': $Function,
1928
+ '%GeneratorFunction%': needsEval,
1929
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1930
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1931
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1932
+ '%isFinite%': isFinite,
1933
+ '%isNaN%': isNaN,
1934
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1935
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1936
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1937
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1938
+ '%Math%': Math,
1939
+ '%Number%': Number,
1940
+ '%Object%': Object,
1941
+ '%parseFloat%': parseFloat,
1942
+ '%parseInt%': parseInt,
1943
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1944
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1945
+ '%RangeError%': RangeError,
1946
+ '%ReferenceError%': ReferenceError,
1947
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1948
+ '%RegExp%': RegExp,
1949
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1950
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1951
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1952
+ '%String%': String,
1953
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
1954
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
1955
+ '%SyntaxError%': $SyntaxError,
1956
+ '%ThrowTypeError%': ThrowTypeError,
1957
+ '%TypedArray%': TypedArray,
1958
+ '%TypeError%': $TypeError$1,
1959
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1960
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1961
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1962
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1963
+ '%URIError%': URIError,
1964
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1965
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1966
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1967
+ };
1968
+
1969
+ var doEval = function doEval(name) {
1970
+ var value;
1971
+ if (name === '%AsyncFunction%') {
1972
+ value = getEvalledConstructor('async function () {}');
1973
+ } else if (name === '%GeneratorFunction%') {
1974
+ value = getEvalledConstructor('function* () {}');
1975
+ } else if (name === '%AsyncGeneratorFunction%') {
1976
+ value = getEvalledConstructor('async function* () {}');
1977
+ } else if (name === '%AsyncGenerator%') {
1978
+ var fn = doEval('%AsyncGeneratorFunction%');
1979
+ if (fn) {
1980
+ value = fn.prototype;
1981
+ }
1982
+ } else if (name === '%AsyncIteratorPrototype%') {
1983
+ var gen = doEval('%AsyncGenerator%');
1984
+ if (gen) {
1985
+ value = getProto(gen.prototype);
1986
+ }
1987
+ }
1988
+
1989
+ INTRINSICS[name] = value;
1990
+
1991
+ return value;
1992
+ };
1993
+
1994
+ var LEGACY_ALIASES = {
1995
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1996
+ '%ArrayPrototype%': ['Array', 'prototype'],
1997
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1998
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1999
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
2000
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
2001
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
2002
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
2003
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
2004
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
2005
+ '%DataViewPrototype%': ['DataView', 'prototype'],
2006
+ '%DatePrototype%': ['Date', 'prototype'],
2007
+ '%ErrorPrototype%': ['Error', 'prototype'],
2008
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
2009
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
2010
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
2011
+ '%FunctionPrototype%': ['Function', 'prototype'],
2012
+ '%Generator%': ['GeneratorFunction', 'prototype'],
2013
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
2014
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
2015
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
2016
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
2017
+ '%JSONParse%': ['JSON', 'parse'],
2018
+ '%JSONStringify%': ['JSON', 'stringify'],
2019
+ '%MapPrototype%': ['Map', 'prototype'],
2020
+ '%NumberPrototype%': ['Number', 'prototype'],
2021
+ '%ObjectPrototype%': ['Object', 'prototype'],
2022
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
2023
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
2024
+ '%PromisePrototype%': ['Promise', 'prototype'],
2025
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
2026
+ '%Promise_all%': ['Promise', 'all'],
2027
+ '%Promise_reject%': ['Promise', 'reject'],
2028
+ '%Promise_resolve%': ['Promise', 'resolve'],
2029
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
2030
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
2031
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
2032
+ '%SetPrototype%': ['Set', 'prototype'],
2033
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
2034
+ '%StringPrototype%': ['String', 'prototype'],
2035
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
2036
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
2037
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
2038
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
2039
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
2040
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
2041
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
2042
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
2043
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
2044
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
2045
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
2046
+ };
2047
+
2048
+
2049
+
2050
+ var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
2051
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2052
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2053
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
2054
+
2055
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2056
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2057
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2058
+ var stringToPath = function stringToPath(string) {
2059
+ var first = $strSlice(string, 0, 1);
2060
+ var last = $strSlice(string, -1);
2061
+ if (first === '%' && last !== '%') {
2062
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
2063
+ } else if (last === '%' && first !== '%') {
2064
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
2065
+ }
2066
+ var result = [];
2067
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
2068
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
2069
+ });
2070
+ return result;
2071
+ };
2072
+ /* end adaptation */
2073
+
2074
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
2075
+ var intrinsicName = name;
2076
+ var alias;
2077
+ if (src(LEGACY_ALIASES, intrinsicName)) {
2078
+ alias = LEGACY_ALIASES[intrinsicName];
2079
+ intrinsicName = '%' + alias[0] + '%';
2080
+ }
2081
+
2082
+ if (src(INTRINSICS, intrinsicName)) {
2083
+ var value = INTRINSICS[intrinsicName];
2084
+ if (value === needsEval) {
2085
+ value = doEval(intrinsicName);
2086
+ }
2087
+ if (typeof value === 'undefined' && !allowMissing) {
2088
+ throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2089
+ }
2090
+
2091
+ return {
2092
+ alias: alias,
2093
+ name: intrinsicName,
2094
+ value: value
2095
+ };
2096
+ }
2097
+
2098
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
2099
+ };
2100
+
2101
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2102
+ if (typeof name !== 'string' || name.length === 0) {
2103
+ throw new $TypeError$1('intrinsic name must be a non-empty string');
2104
+ }
2105
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2106
+ throw new $TypeError$1('"allowMissing" argument must be a boolean');
2107
+ }
2108
+
2109
+ var parts = stringToPath(name);
2110
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
2111
+
2112
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
2113
+ var intrinsicRealName = intrinsic.name;
2114
+ var value = intrinsic.value;
2115
+ var skipFurtherCaching = false;
2116
+
2117
+ var alias = intrinsic.alias;
2118
+ if (alias) {
2119
+ intrinsicBaseName = alias[0];
2120
+ $spliceApply(parts, $concat$1([0, 1], alias));
2121
+ }
2122
+
2123
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
2124
+ var part = parts[i];
2125
+ var first = $strSlice(part, 0, 1);
2126
+ var last = $strSlice(part, -1);
2127
+ if (
2128
+ (
2129
+ (first === '"' || first === "'" || first === '`')
2130
+ || (last === '"' || last === "'" || last === '`')
2131
+ )
2132
+ && first !== last
2133
+ ) {
2134
+ throw new $SyntaxError('property names with quotes must have matching quotes');
2135
+ }
2136
+ if (part === 'constructor' || !isOwn) {
2137
+ skipFurtherCaching = true;
2138
+ }
2139
+
2140
+ intrinsicBaseName += '.' + part;
2141
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
2142
+
2143
+ if (src(INTRINSICS, intrinsicRealName)) {
2144
+ value = INTRINSICS[intrinsicRealName];
2145
+ } else if (value != null) {
2146
+ if (!(part in value)) {
2147
+ if (!allowMissing) {
2148
+ throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
2149
+ }
2150
+ return void undefined$1;
2151
+ }
2152
+ if ($gOPD && (i + 1) >= parts.length) {
2153
+ var desc = $gOPD(value, part);
2154
+ isOwn = !!desc;
2155
+
2156
+ // By convention, when a data property is converted to an accessor
2157
+ // property to emulate a data property that does not suffer from
2158
+ // the override mistake, that accessor's getter is marked with
2159
+ // an `originalValue` property. Here, when we detect this, we
2160
+ // uphold the illusion by pretending to see that original data
2161
+ // property, i.e., returning the value rather than the getter
2162
+ // itself.
2163
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
2164
+ value = desc.get;
2165
+ } else {
2166
+ value = value[part];
2167
+ }
2168
+ } else {
2169
+ isOwn = src(value, part);
2170
+ value = value[part];
2171
+ }
2172
+
2173
+ if (isOwn && !skipFurtherCaching) {
2174
+ INTRINSICS[intrinsicRealName] = value;
2175
+ }
2176
+ }
2177
+ }
2178
+ return value;
2179
+ };
2180
+
2181
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2182
+
2183
+ function getDefaultExportFromCjs (x) {
2184
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2185
+ }
2186
+
2187
+ function createCommonjsModule(fn, basedir, module) {
2188
+ return module = {
2189
+ path: basedir,
2190
+ exports: {},
2191
+ require: function (path, base) {
2192
+ return commonjsRequire();
2193
+ }
2194
+ }, fn(module, module.exports), module.exports;
2195
+ }
2196
+
2197
+ function getAugmentedNamespace(n) {
2198
+ if (n.__esModule) return n;
2199
+ var a = Object.defineProperty({}, '__esModule', {value: true});
2200
+ Object.keys(n).forEach(function (k) {
2201
+ var d = Object.getOwnPropertyDescriptor(n, k);
2202
+ Object.defineProperty(a, k, d.get ? d : {
2203
+ enumerable: true,
2204
+ get: function () {
2205
+ return n[k];
2206
+ }
2207
+ });
2208
+ });
2209
+ return a;
2210
+ }
2211
+
2212
+ function commonjsRequire () {
2213
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
2214
+ }
2215
+
2216
+ var callBind = createCommonjsModule(function (module) {
2217
+
2218
+
2219
+
2220
+
2221
+ var $apply = getIntrinsic('%Function.prototype.apply%');
2222
+ var $call = getIntrinsic('%Function.prototype.call%');
2223
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2224
+
2225
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2226
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2227
+ var $max = getIntrinsic('%Math.max%');
2228
+
2229
+ if ($defineProperty) {
2230
+ try {
2231
+ $defineProperty({}, 'a', { value: 1 });
2232
+ } catch (e) {
2233
+ // IE 8 has a broken defineProperty
2234
+ $defineProperty = null;
2235
+ }
2236
+ }
2237
+
2238
+ module.exports = function callBind(originalFunction) {
2239
+ var func = $reflectApply(functionBind, $call, arguments);
2240
+ if ($gOPD && $defineProperty) {
2241
+ var desc = $gOPD(func, 'length');
2242
+ if (desc.configurable) {
2243
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2244
+ $defineProperty(
2245
+ func,
2246
+ 'length',
2247
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2248
+ );
2249
+ }
2250
+ }
2251
+ return func;
2252
+ };
2253
+
2254
+ var applyBind = function applyBind() {
2255
+ return $reflectApply(functionBind, $apply, arguments);
2256
+ };
2257
+
2258
+ if ($defineProperty) {
2259
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2260
+ } else {
2261
+ module.exports.apply = applyBind;
2262
+ }
2263
+ });
2264
+
2265
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2266
+
2267
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
2268
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2269
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2270
+ return callBind(intrinsic);
2271
+ }
2272
+ return intrinsic;
2273
+ };
2274
+
2275
+ const _nodeResolve_empty = {};
2276
+
2277
+ const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
2278
+ __proto__: null,
2279
+ 'default': _nodeResolve_empty
2280
+ });
2281
+
2282
+ const require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
2283
+
2284
+ var hasMap = typeof Map === 'function' && Map.prototype;
2285
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
2286
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
2287
+ var mapForEach = hasMap && Map.prototype.forEach;
2288
+ var hasSet = typeof Set === 'function' && Set.prototype;
2289
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
2290
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
2291
+ var setForEach = hasSet && Set.prototype.forEach;
2292
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
2293
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
2294
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
2295
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
2296
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
2297
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
2298
+ var booleanValueOf = Boolean.prototype.valueOf;
2299
+ var objectToString = Object.prototype.toString;
2300
+ var functionToString = Function.prototype.toString;
2301
+ var $match = String.prototype.match;
2302
+ var $slice = String.prototype.slice;
2303
+ var $replace = String.prototype.replace;
2304
+ var $toUpperCase = String.prototype.toUpperCase;
2305
+ var $toLowerCase = String.prototype.toLowerCase;
2306
+ var $test = RegExp.prototype.test;
2307
+ var $concat = Array.prototype.concat;
2308
+ var $join = Array.prototype.join;
2309
+ var $arrSlice = Array.prototype.slice;
2310
+ var $floor = Math.floor;
2311
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
2312
+ var gOPS = Object.getOwnPropertySymbols;
2313
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
2314
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
2315
+ // ie, `has-tostringtag/shams
2316
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
2317
+ ? Symbol.toStringTag
2318
+ : null;
2319
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
2320
+
2321
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
2322
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
2323
+ ? function (O) {
2324
+ return O.__proto__; // eslint-disable-line no-proto
2325
+ }
2326
+ : null
2327
+ );
2328
+
2329
+ function addNumericSeparator(num, str) {
2330
+ if (
2331
+ num === Infinity
2332
+ || num === -Infinity
2333
+ || num !== num
2334
+ || (num && num > -1000 && num < 1000)
2335
+ || $test.call(/e/, str)
2336
+ ) {
2337
+ return str;
2338
+ }
2339
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2340
+ if (typeof num === 'number') {
2341
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
2342
+ if (int !== num) {
2343
+ var intStr = String(int);
2344
+ var dec = $slice.call(str, intStr.length + 1);
2345
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
2346
+ }
2347
+ }
2348
+ return $replace.call(str, sepRegex, '$&_');
2349
+ }
2350
+
2351
+ var inspectCustom = require$$0.custom;
2352
+ var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
2353
+
2354
+ var objectInspect = function inspect_(obj, options, depth, seen) {
2355
+ var opts = options || {};
2356
+
2357
+ if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
2358
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
2359
+ }
2360
+ if (
2361
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
2362
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
2363
+ : opts.maxStringLength !== null
2364
+ )
2365
+ ) {
2366
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
2367
+ }
2368
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
2369
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
2370
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
2371
+ }
2372
+
2373
+ if (
2374
+ has$3(opts, 'indent')
2375
+ && opts.indent !== null
2376
+ && opts.indent !== '\t'
2377
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
2378
+ ) {
2379
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2380
+ }
2381
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
2382
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2383
+ }
2384
+ var numericSeparator = opts.numericSeparator;
2385
+
2386
+ if (typeof obj === 'undefined') {
2387
+ return 'undefined';
2388
+ }
2389
+ if (obj === null) {
2390
+ return 'null';
2391
+ }
2392
+ if (typeof obj === 'boolean') {
2393
+ return obj ? 'true' : 'false';
2394
+ }
2395
+
2396
+ if (typeof obj === 'string') {
2397
+ return inspectString(obj, opts);
2398
+ }
2399
+ if (typeof obj === 'number') {
2400
+ if (obj === 0) {
2401
+ return Infinity / obj > 0 ? '0' : '-0';
2402
+ }
2403
+ var str = String(obj);
2404
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
2405
+ }
2406
+ if (typeof obj === 'bigint') {
2407
+ var bigIntStr = String(obj) + 'n';
2408
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
2409
+ }
2410
+
2411
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
2412
+ if (typeof depth === 'undefined') { depth = 0; }
2413
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
2414
+ return isArray$3(obj) ? '[Array]' : '[Object]';
2415
+ }
2416
+
2417
+ var indent = getIndent(opts, depth);
2418
+
2419
+ if (typeof seen === 'undefined') {
2420
+ seen = [];
2421
+ } else if (indexOf(seen, obj) >= 0) {
2422
+ return '[Circular]';
2423
+ }
2424
+
2425
+ function inspect(value, from, noIndent) {
2426
+ if (from) {
2427
+ seen = $arrSlice.call(seen);
2428
+ seen.push(from);
2429
+ }
2430
+ if (noIndent) {
2431
+ var newOpts = {
2432
+ depth: opts.depth
2433
+ };
2434
+ if (has$3(opts, 'quoteStyle')) {
2435
+ newOpts.quoteStyle = opts.quoteStyle;
2436
+ }
2437
+ return inspect_(value, newOpts, depth + 1, seen);
2438
+ }
2439
+ return inspect_(value, opts, depth + 1, seen);
2440
+ }
2441
+
2442
+ if (typeof obj === 'function') {
2443
+ var name = nameOf(obj);
2444
+ var keys = arrObjKeys(obj, inspect);
2445
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
2446
+ }
2447
+ if (isSymbol(obj)) {
2448
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
2449
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
2450
+ }
2451
+ if (isElement(obj)) {
2452
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
2453
+ var attrs = obj.attributes || [];
2454
+ for (var i = 0; i < attrs.length; i++) {
2455
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
2456
+ }
2457
+ s += '>';
2458
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
2459
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
2460
+ return s;
2461
+ }
2462
+ if (isArray$3(obj)) {
2463
+ if (obj.length === 0) { return '[]'; }
2464
+ var xs = arrObjKeys(obj, inspect);
2465
+ if (indent && !singleLineValues(xs)) {
2466
+ return '[' + indentedJoin(xs, indent) + ']';
2467
+ }
2468
+ return '[ ' + $join.call(xs, ', ') + ' ]';
2469
+ }
2470
+ if (isError(obj)) {
2471
+ var parts = arrObjKeys(obj, inspect);
2472
+ if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
2473
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
2474
+ }
2475
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
2476
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
2477
+ }
2478
+ if (typeof obj === 'object' && customInspect) {
2479
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
2480
+ return obj[inspectSymbol]();
2481
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
2482
+ return obj.inspect();
2483
+ }
2484
+ }
2485
+ if (isMap(obj)) {
2486
+ var mapParts = [];
2487
+ mapForEach.call(obj, function (value, key) {
2488
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
2489
+ });
2490
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
2491
+ }
2492
+ if (isSet(obj)) {
2493
+ var setParts = [];
2494
+ setForEach.call(obj, function (value) {
2495
+ setParts.push(inspect(value, obj));
2496
+ });
2497
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
2498
+ }
2499
+ if (isWeakMap(obj)) {
2500
+ return weakCollectionOf('WeakMap');
2501
+ }
2502
+ if (isWeakSet(obj)) {
2503
+ return weakCollectionOf('WeakSet');
2504
+ }
2505
+ if (isWeakRef(obj)) {
2506
+ return weakCollectionOf('WeakRef');
2507
+ }
2508
+ if (isNumber(obj)) {
2509
+ return markBoxed(inspect(Number(obj)));
2510
+ }
2511
+ if (isBigInt(obj)) {
2512
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
2513
+ }
2514
+ if (isBoolean(obj)) {
2515
+ return markBoxed(booleanValueOf.call(obj));
2516
+ }
2517
+ if (isString(obj)) {
2518
+ return markBoxed(inspect(String(obj)));
2519
+ }
2520
+ if (!isDate(obj) && !isRegExp$1(obj)) {
2521
+ var ys = arrObjKeys(obj, inspect);
2522
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2523
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
2524
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
2525
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
2526
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
2527
+ if (ys.length === 0) { return tag + '{}'; }
2528
+ if (indent) {
2529
+ return tag + '{' + indentedJoin(ys, indent) + '}';
2530
+ }
2531
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
2532
+ }
2533
+ return String(obj);
2534
+ };
2535
+
2536
+ function wrapQuotes(s, defaultStyle, opts) {
2537
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
2538
+ return quoteChar + s + quoteChar;
2539
+ }
2540
+
2541
+ function quote(s) {
2542
+ return $replace.call(String(s), /"/g, '&quot;');
2543
+ }
2544
+
2545
+ function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2546
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2547
+ function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2548
+ function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2549
+ function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2550
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2551
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2552
+
2553
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
2554
+ function isSymbol(obj) {
2555
+ if (hasShammedSymbols) {
2556
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
2557
+ }
2558
+ if (typeof obj === 'symbol') {
2559
+ return true;
2560
+ }
2561
+ if (!obj || typeof obj !== 'object' || !symToString) {
2562
+ return false;
2563
+ }
2564
+ try {
2565
+ symToString.call(obj);
2566
+ return true;
2567
+ } catch (e) {}
2568
+ return false;
2569
+ }
2570
+
2571
+ function isBigInt(obj) {
2572
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
2573
+ return false;
2574
+ }
2575
+ try {
2576
+ bigIntValueOf.call(obj);
2577
+ return true;
2578
+ } catch (e) {}
2579
+ return false;
2580
+ }
2581
+
2582
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
2583
+ function has$3(obj, key) {
2584
+ return hasOwn.call(obj, key);
2585
+ }
2586
+
2587
+ function toStr(obj) {
2588
+ return objectToString.call(obj);
2589
+ }
2590
+
2591
+ function nameOf(f) {
2592
+ if (f.name) { return f.name; }
2593
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
2594
+ if (m) { return m[1]; }
2595
+ return null;
2596
+ }
2597
+
2598
+ function indexOf(xs, x) {
2599
+ if (xs.indexOf) { return xs.indexOf(x); }
2600
+ for (var i = 0, l = xs.length; i < l; i++) {
2601
+ if (xs[i] === x) { return i; }
2602
+ }
2603
+ return -1;
2604
+ }
2605
+
2606
+ function isMap(x) {
2607
+ if (!mapSize || !x || typeof x !== 'object') {
2608
+ return false;
2609
+ }
2610
+ try {
2611
+ mapSize.call(x);
2612
+ try {
2613
+ setSize.call(x);
2614
+ } catch (s) {
2615
+ return true;
2616
+ }
2617
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
2618
+ } catch (e) {}
2619
+ return false;
2620
+ }
2621
+
2622
+ function isWeakMap(x) {
2623
+ if (!weakMapHas || !x || typeof x !== 'object') {
2624
+ return false;
2625
+ }
2626
+ try {
2627
+ weakMapHas.call(x, weakMapHas);
2628
+ try {
2629
+ weakSetHas.call(x, weakSetHas);
2630
+ } catch (s) {
2631
+ return true;
2632
+ }
2633
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
2634
+ } catch (e) {}
2635
+ return false;
2636
+ }
2637
+
2638
+ function isWeakRef(x) {
2639
+ if (!weakRefDeref || !x || typeof x !== 'object') {
2640
+ return false;
2641
+ }
2642
+ try {
2643
+ weakRefDeref.call(x);
2644
+ return true;
2645
+ } catch (e) {}
2646
+ return false;
2647
+ }
2648
+
2649
+ function isSet(x) {
2650
+ if (!setSize || !x || typeof x !== 'object') {
2651
+ return false;
2652
+ }
2653
+ try {
2654
+ setSize.call(x);
2655
+ try {
2656
+ mapSize.call(x);
2657
+ } catch (m) {
2658
+ return true;
2659
+ }
2660
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
2661
+ } catch (e) {}
2662
+ return false;
2663
+ }
2664
+
2665
+ function isWeakSet(x) {
2666
+ if (!weakSetHas || !x || typeof x !== 'object') {
2667
+ return false;
2668
+ }
2669
+ try {
2670
+ weakSetHas.call(x, weakSetHas);
2671
+ try {
2672
+ weakMapHas.call(x, weakMapHas);
2673
+ } catch (s) {
2674
+ return true;
2675
+ }
2676
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
2677
+ } catch (e) {}
2678
+ return false;
2679
+ }
2680
+
2681
+ function isElement(x) {
2682
+ if (!x || typeof x !== 'object') { return false; }
2683
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
2684
+ return true;
2685
+ }
2686
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
2687
+ }
2688
+
2689
+ function inspectString(str, opts) {
2690
+ if (str.length > opts.maxStringLength) {
2691
+ var remaining = str.length - opts.maxStringLength;
2692
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
2693
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
2694
+ }
2695
+ // eslint-disable-next-line no-control-regex
2696
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
2697
+ return wrapQuotes(s, 'single', opts);
2698
+ }
2699
+
2700
+ function lowbyte(c) {
2701
+ var n = c.charCodeAt(0);
2702
+ var x = {
2703
+ 8: 'b',
2704
+ 9: 't',
2705
+ 10: 'n',
2706
+ 12: 'f',
2707
+ 13: 'r'
2708
+ }[n];
2709
+ if (x) { return '\\' + x; }
2710
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
2711
+ }
2712
+
2713
+ function markBoxed(str) {
2714
+ return 'Object(' + str + ')';
2715
+ }
2716
+
2717
+ function weakCollectionOf(type) {
2718
+ return type + ' { ? }';
2719
+ }
2720
+
2721
+ function collectionOf(type, size, entries, indent) {
2722
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
2723
+ return type + ' (' + size + ') {' + joinedEntries + '}';
2724
+ }
2725
+
2726
+ function singleLineValues(xs) {
2727
+ for (var i = 0; i < xs.length; i++) {
2728
+ if (indexOf(xs[i], '\n') >= 0) {
2729
+ return false;
2730
+ }
2731
+ }
2732
+ return true;
2733
+ }
2734
+
2735
+ function getIndent(opts, depth) {
2736
+ var baseIndent;
2737
+ if (opts.indent === '\t') {
2738
+ baseIndent = '\t';
2739
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
2740
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
2741
+ } else {
2742
+ return null;
2743
+ }
2744
+ return {
2745
+ base: baseIndent,
2746
+ prev: $join.call(Array(depth + 1), baseIndent)
2747
+ };
2748
+ }
2749
+
2750
+ function indentedJoin(xs, indent) {
2751
+ if (xs.length === 0) { return ''; }
2752
+ var lineJoiner = '\n' + indent.prev + indent.base;
2753
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
2754
+ }
2755
+
2756
+ function arrObjKeys(obj, inspect) {
2757
+ var isArr = isArray$3(obj);
2758
+ var xs = [];
2759
+ if (isArr) {
2760
+ xs.length = obj.length;
2761
+ for (var i = 0; i < obj.length; i++) {
2762
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
2763
+ }
2764
+ }
2765
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
2766
+ var symMap;
2767
+ if (hasShammedSymbols) {
2768
+ symMap = {};
2769
+ for (var k = 0; k < syms.length; k++) {
2770
+ symMap['$' + syms[k]] = syms[k];
2771
+ }
2772
+ }
2773
+
2774
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
2775
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
2776
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
2777
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
2778
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
2779
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
2780
+ } else if ($test.call(/[^\w$]/, key)) {
2781
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
2782
+ } else {
2783
+ xs.push(key + ': ' + inspect(obj[key], obj));
2784
+ }
2785
+ }
2786
+ if (typeof gOPS === 'function') {
2787
+ for (var j = 0; j < syms.length; j++) {
2788
+ if (isEnumerable.call(obj, syms[j])) {
2789
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
2790
+ }
2791
+ }
2792
+ }
2793
+ return xs;
2794
+ }
2795
+
2796
+ var $TypeError = getIntrinsic('%TypeError%');
2797
+ var $WeakMap = getIntrinsic('%WeakMap%', true);
2798
+ var $Map = getIntrinsic('%Map%', true);
2799
+
2800
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
2801
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
2802
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
2803
+ var $mapGet = callBound('Map.prototype.get', true);
2804
+ var $mapSet = callBound('Map.prototype.set', true);
2805
+ var $mapHas = callBound('Map.prototype.has', true);
2806
+
2807
+ /*
2808
+ * This function traverses the list returning the node corresponding to the
2809
+ * given key.
2810
+ *
2811
+ * That node is also moved to the head of the list, so that if it's accessed
2812
+ * again we don't need to traverse the whole list. By doing so, all the recently
2813
+ * used nodes can be accessed relatively quickly.
2814
+ */
2815
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
2816
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
2817
+ if (curr.key === key) {
2818
+ prev.next = curr.next;
2819
+ curr.next = list.next;
2820
+ list.next = curr; // eslint-disable-line no-param-reassign
2821
+ return curr;
2822
+ }
2823
+ }
2824
+ };
2825
+
2826
+ var listGet = function (objects, key) {
2827
+ var node = listGetNode(objects, key);
2828
+ return node && node.value;
2829
+ };
2830
+ var listSet = function (objects, key, value) {
2831
+ var node = listGetNode(objects, key);
2832
+ if (node) {
2833
+ node.value = value;
2834
+ } else {
2835
+ // Prepend the new node to the beginning of the list
2836
+ objects.next = { // eslint-disable-line no-param-reassign
2837
+ key: key,
2838
+ next: objects.next,
2839
+ value: value
2840
+ };
2841
+ }
2842
+ };
2843
+ var listHas = function (objects, key) {
2844
+ return !!listGetNode(objects, key);
2845
+ };
2846
+
2847
+ var sideChannel = function getSideChannel() {
2848
+ var $wm;
2849
+ var $m;
2850
+ var $o;
2851
+ var channel = {
2852
+ assert: function (key) {
2853
+ if (!channel.has(key)) {
2854
+ throw new $TypeError('Side channel does not contain ' + objectInspect(key));
2855
+ }
2856
+ },
2857
+ get: function (key) { // eslint-disable-line consistent-return
2858
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2859
+ if ($wm) {
2860
+ return $weakMapGet($wm, key);
2861
+ }
2862
+ } else if ($Map) {
2863
+ if ($m) {
2864
+ return $mapGet($m, key);
2865
+ }
2866
+ } else {
2867
+ if ($o) { // eslint-disable-line no-lonely-if
2868
+ return listGet($o, key);
2869
+ }
2870
+ }
2871
+ },
2872
+ has: function (key) {
2873
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2874
+ if ($wm) {
2875
+ return $weakMapHas($wm, key);
2876
+ }
2877
+ } else if ($Map) {
2878
+ if ($m) {
2879
+ return $mapHas($m, key);
2880
+ }
2881
+ } else {
2882
+ if ($o) { // eslint-disable-line no-lonely-if
2883
+ return listHas($o, key);
2884
+ }
2885
+ }
2886
+ return false;
2887
+ },
2888
+ set: function (key, value) {
2889
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2890
+ if (!$wm) {
2891
+ $wm = new $WeakMap();
2892
+ }
2893
+ $weakMapSet($wm, key, value);
2894
+ } else if ($Map) {
2895
+ if (!$m) {
2896
+ $m = new $Map();
2897
+ }
2898
+ $mapSet($m, key, value);
2899
+ } else {
2900
+ if (!$o) {
2901
+ /*
2902
+ * Initialize the linked list as an empty node, so that we don't have
2903
+ * to special-case handling of the first node: we can always refer to
2904
+ * it as (previous node).next, instead of something like (list).head
2905
+ */
2906
+ $o = { key: {}, next: null };
2907
+ }
2908
+ listSet($o, key, value);
2909
+ }
2910
+ }
2911
+ };
2912
+ return channel;
2913
+ };
2914
+
2915
+ var replace = String.prototype.replace;
2916
+ var percentTwenties = /%20/g;
2917
+
2918
+ var Format = {
2919
+ RFC1738: 'RFC1738',
2920
+ RFC3986: 'RFC3986'
2921
+ };
2922
+
2923
+ var formats = {
2924
+ 'default': Format.RFC3986,
2925
+ formatters: {
2926
+ RFC1738: function (value) {
2927
+ return replace.call(value, percentTwenties, '+');
2928
+ },
2929
+ RFC3986: function (value) {
2930
+ return String(value);
2931
+ }
2932
+ },
2933
+ RFC1738: Format.RFC1738,
2934
+ RFC3986: Format.RFC3986
2935
+ };
2936
+
2937
+ var has$2 = Object.prototype.hasOwnProperty;
2938
+ var isArray$2 = Array.isArray;
2939
+
2940
+ var hexTable = (function () {
2941
+ var array = [];
1491
2942
  for (var i = 0; i < 256; ++i) {
1492
2943
  array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1493
2944
  }
@@ -1500,7 +2951,7 @@ var compactQueue = function compactQueue(queue) {
1500
2951
  var item = queue.pop();
1501
2952
  var obj = item.obj[item.prop];
1502
2953
 
1503
- if (isArray$1(obj)) {
2954
+ if (isArray$2(obj)) {
1504
2955
  var compacted = [];
1505
2956
 
1506
2957
  for (var j = 0; j < obj.length; ++j) {
@@ -1525,17 +2976,17 @@ var arrayToObject = function arrayToObject(source, options) {
1525
2976
  return obj;
1526
2977
  };
1527
2978
 
1528
- var merge$1 = function merge(target, source, options) {
2979
+ var merge = function merge(target, source, options) {
1529
2980
  /* eslint no-param-reassign: 0 */
1530
2981
  if (!source) {
1531
2982
  return target;
1532
2983
  }
1533
2984
 
1534
2985
  if (typeof source !== 'object') {
1535
- if (isArray$1(target)) {
2986
+ if (isArray$2(target)) {
1536
2987
  target.push(source);
1537
2988
  } else if (target && typeof target === 'object') {
1538
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
2989
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
1539
2990
  target[source] = true;
1540
2991
  }
1541
2992
  } else {
@@ -1550,13 +3001,13 @@ var merge$1 = function merge(target, source, options) {
1550
3001
  }
1551
3002
 
1552
3003
  var mergeTarget = target;
1553
- if (isArray$1(target) && !isArray$1(source)) {
3004
+ if (isArray$2(target) && !isArray$2(source)) {
1554
3005
  mergeTarget = arrayToObject(target, options);
1555
3006
  }
1556
3007
 
1557
- if (isArray$1(target) && isArray$1(source)) {
3008
+ if (isArray$2(target) && isArray$2(source)) {
1558
3009
  source.forEach(function (item, i) {
1559
- if (has.call(target, i)) {
3010
+ if (has$2.call(target, i)) {
1560
3011
  var targetItem = target[i];
1561
3012
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1562
3013
  target[i] = merge(targetItem, item, options);
@@ -1573,7 +3024,7 @@ var merge$1 = function merge(target, source, options) {
1573
3024
  return Object.keys(source).reduce(function (acc, key) {
1574
3025
  var value = source[key];
1575
3026
 
1576
- if (has.call(acc, key)) {
3027
+ if (has$2.call(acc, key)) {
1577
3028
  acc[key] = merge(acc[key], value, options);
1578
3029
  } else {
1579
3030
  acc[key] = value;
@@ -1603,7 +3054,7 @@ var decode = function (str, decoder, charset) {
1603
3054
  }
1604
3055
  };
1605
3056
 
1606
- var encode$1 = function encode(str, defaultEncoder, charset, kind, format) {
3057
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
1607
3058
  // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
1608
3059
  // It has been adapted here for stricter adherence to RFC 3986
1609
3060
  if (str.length === 0) {
@@ -1658,6 +3109,7 @@ var encode$1 = function encode(str, defaultEncoder, charset, kind, format) {
1658
3109
 
1659
3110
  i += 1;
1660
3111
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
3112
+ /* eslint operator-linebreak: [2, "before"] */
1661
3113
  out += hexTable[0xF0 | (c >> 18)]
1662
3114
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
1663
3115
  + hexTable[0x80 | ((c >> 6) & 0x3F)]
@@ -1695,7 +3147,7 @@ var isRegExp = function isRegExp(obj) {
1695
3147
  return Object.prototype.toString.call(obj) === '[object RegExp]';
1696
3148
  };
1697
3149
 
1698
- var isBuffer$1 = function isBuffer(obj) {
3150
+ var isBuffer = function isBuffer(obj) {
1699
3151
  if (!obj || typeof obj !== 'object') {
1700
3152
  return false;
1701
3153
  }
@@ -1708,7 +3160,7 @@ var combine = function combine(a, b) {
1708
3160
  };
1709
3161
 
1710
3162
  var maybeMap = function maybeMap(val, fn) {
1711
- if (isArray$1(val)) {
3163
+ if (isArray$2(val)) {
1712
3164
  var mapped = [];
1713
3165
  for (var i = 0; i < val.length; i += 1) {
1714
3166
  mapped.push(fn(val[i]));
@@ -1718,17 +3170,17 @@ var maybeMap = function maybeMap(val, fn) {
1718
3170
  return fn(val);
1719
3171
  };
1720
3172
 
1721
- var utils$1 = {
3173
+ var utils = {
1722
3174
  arrayToObject: arrayToObject,
1723
3175
  assign: assign,
1724
3176
  combine: combine,
1725
3177
  compact: compact,
1726
3178
  decode: decode,
1727
- encode: encode$1,
1728
- isBuffer: isBuffer$1,
3179
+ encode: encode,
3180
+ isBuffer: isBuffer,
1729
3181
  isRegExp: isRegExp,
1730
3182
  maybeMap: maybeMap,
1731
- merge: merge$1
3183
+ merge: merge
1732
3184
  };
1733
3185
 
1734
3186
  var has$1 = Object.prototype.hasOwnProperty;
@@ -1746,10 +3198,11 @@ var arrayPrefixGenerators = {
1746
3198
  }
1747
3199
  };
1748
3200
 
1749
- var isArray$2 = Array.isArray;
3201
+ var isArray$1 = Array.isArray;
3202
+ var split = String.prototype.split;
1750
3203
  var push = Array.prototype.push;
1751
3204
  var pushToArray = function (arr, valueOrArray) {
1752
- push.apply(arr, isArray$2(valueOrArray) ? valueOrArray : [valueOrArray]);
3205
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
1753
3206
  };
1754
3207
 
1755
3208
  var toISO = Date.prototype.toISOString;
@@ -1762,7 +3215,7 @@ var defaults$1 = {
1762
3215
  charsetSentinel: false,
1763
3216
  delimiter: '&',
1764
3217
  encode: true,
1765
- encoder: utils$1.encode,
3218
+ encoder: utils.encode,
1766
3219
  encodeValuesOnly: false,
1767
3220
  format: defaultFormat,
1768
3221
  formatter: formats.formatters[defaultFormat],
@@ -1783,6 +3236,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
1783
3236
  || typeof v === 'bigint';
1784
3237
  };
1785
3238
 
3239
+ var sentinel = {};
3240
+
1786
3241
  var stringify = function stringify(
1787
3242
  object,
1788
3243
  prefix,
@@ -1797,15 +3252,36 @@ var stringify = function stringify(
1797
3252
  format,
1798
3253
  formatter,
1799
3254
  encodeValuesOnly,
1800
- charset
3255
+ charset,
3256
+ sideChannel$1
1801
3257
  ) {
1802
3258
  var obj = object;
3259
+
3260
+ var tmpSc = sideChannel$1;
3261
+ var step = 0;
3262
+ var findFlag = false;
3263
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
3264
+ // Where object last appeared in the ref tree
3265
+ var pos = tmpSc.get(object);
3266
+ step += 1;
3267
+ if (typeof pos !== 'undefined') {
3268
+ if (pos === step) {
3269
+ throw new RangeError('Cyclic object value');
3270
+ } else {
3271
+ findFlag = true; // Break while
3272
+ }
3273
+ }
3274
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
3275
+ step = 0;
3276
+ }
3277
+ }
3278
+
1803
3279
  if (typeof filter === 'function') {
1804
3280
  obj = filter(prefix, obj);
1805
3281
  } else if (obj instanceof Date) {
1806
3282
  obj = serializeDate(obj);
1807
- } else if (generateArrayPrefix === 'comma' && isArray$2(obj)) {
1808
- obj = utils$1.maybeMap(obj, function (value) {
3283
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
3284
+ obj = utils.maybeMap(obj, function (value) {
1809
3285
  if (value instanceof Date) {
1810
3286
  return serializeDate(value);
1811
3287
  }
@@ -1821,9 +3297,17 @@ var stringify = function stringify(
1821
3297
  obj = '';
1822
3298
  }
1823
3299
 
1824
- if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
3300
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
1825
3301
  if (encoder) {
1826
3302
  var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
3303
+ if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
3304
+ var valuesArray = split.call(String(obj), ',');
3305
+ var valuesJoined = '';
3306
+ for (var i = 0; i < valuesArray.length; ++i) {
3307
+ valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
3308
+ }
3309
+ return [formatter(keyValue) + '=' + valuesJoined];
3310
+ }
1827
3311
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
1828
3312
  }
1829
3313
  return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -1836,28 +3320,31 @@ var stringify = function stringify(
1836
3320
  }
1837
3321
 
1838
3322
  var objKeys;
1839
- if (generateArrayPrefix === 'comma' && isArray$2(obj)) {
3323
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
1840
3324
  // we need to join elements in
1841
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
1842
- } else if (isArray$2(filter)) {
3325
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
3326
+ } else if (isArray$1(filter)) {
1843
3327
  objKeys = filter;
1844
3328
  } else {
1845
3329
  var keys = Object.keys(obj);
1846
3330
  objKeys = sort ? keys.sort(sort) : keys;
1847
3331
  }
1848
3332
 
1849
- for (var i = 0; i < objKeys.length; ++i) {
1850
- var key = objKeys[i];
1851
- var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
3333
+ for (var j = 0; j < objKeys.length; ++j) {
3334
+ var key = objKeys[j];
3335
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
1852
3336
 
1853
3337
  if (skipNulls && value === null) {
1854
3338
  continue;
1855
3339
  }
1856
3340
 
1857
- var keyPrefix = isArray$2(obj)
3341
+ var keyPrefix = isArray$1(obj)
1858
3342
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
1859
3343
  : prefix + (allowDots ? '.' + key : '[' + key + ']');
1860
3344
 
3345
+ sideChannel$1.set(object, step);
3346
+ var valueSideChannel = sideChannel();
3347
+ valueSideChannel.set(sentinel, sideChannel$1);
1861
3348
  pushToArray(values, stringify(
1862
3349
  value,
1863
3350
  keyPrefix,
@@ -1872,7 +3359,8 @@ var stringify = function stringify(
1872
3359
  format,
1873
3360
  formatter,
1874
3361
  encodeValuesOnly,
1875
- charset
3362
+ charset,
3363
+ valueSideChannel
1876
3364
  ));
1877
3365
  }
1878
3366
 
@@ -1884,7 +3372,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
1884
3372
  return defaults$1;
1885
3373
  }
1886
3374
 
1887
- if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
3375
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
1888
3376
  throw new TypeError('Encoder has to be a function.');
1889
3377
  }
1890
3378
 
@@ -1903,7 +3391,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
1903
3391
  var formatter = formats.formatters[format];
1904
3392
 
1905
3393
  var filter = defaults$1.filter;
1906
- if (typeof opts.filter === 'function' || isArray$2(opts.filter)) {
3394
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
1907
3395
  filter = opts.filter;
1908
3396
  }
1909
3397
 
@@ -1936,7 +3424,7 @@ var stringify_1 = function (object, opts) {
1936
3424
  if (typeof options.filter === 'function') {
1937
3425
  filter = options.filter;
1938
3426
  obj = filter('', obj);
1939
- } else if (isArray$2(options.filter)) {
3427
+ } else if (isArray$1(options.filter)) {
1940
3428
  filter = options.filter;
1941
3429
  objKeys = filter;
1942
3430
  }
@@ -1966,6 +3454,7 @@ var stringify_1 = function (object, opts) {
1966
3454
  objKeys.sort(options.sort);
1967
3455
  }
1968
3456
 
3457
+ var sideChannel$1 = sideChannel();
1969
3458
  for (var i = 0; i < objKeys.length; ++i) {
1970
3459
  var key = objKeys[i];
1971
3460
 
@@ -1986,7 +3475,8 @@ var stringify_1 = function (object, opts) {
1986
3475
  options.format,
1987
3476
  options.formatter,
1988
3477
  options.encodeValuesOnly,
1989
- options.charset
3478
+ options.charset,
3479
+ sideChannel$1
1990
3480
  ));
1991
3481
  }
1992
3482
 
@@ -2006,17 +3496,18 @@ var stringify_1 = function (object, opts) {
2006
3496
  return joined.length > 0 ? prefix + joined : '';
2007
3497
  };
2008
3498
 
2009
- var has$2 = Object.prototype.hasOwnProperty;
2010
- var isArray$3 = Array.isArray;
3499
+ var has = Object.prototype.hasOwnProperty;
3500
+ var isArray = Array.isArray;
2011
3501
 
2012
- var defaults$2 = {
3502
+ var defaults = {
2013
3503
  allowDots: false,
2014
3504
  allowPrototypes: false,
3505
+ allowSparse: false,
2015
3506
  arrayLimit: 20,
2016
3507
  charset: 'utf-8',
2017
3508
  charsetSentinel: false,
2018
3509
  comma: false,
2019
- decoder: utils$1.decode,
3510
+ decoder: utils.decode,
2020
3511
  delimiter: '&',
2021
3512
  depth: 5,
2022
3513
  ignoreQueryPrefix: false,
@@ -2085,14 +3576,14 @@ var parseValues = function parseQueryStringValues(str, options) {
2085
3576
 
2086
3577
  var key, val;
2087
3578
  if (pos === -1) {
2088
- key = options.decoder(part, defaults$2.decoder, charset, 'key');
3579
+ key = options.decoder(part, defaults.decoder, charset, 'key');
2089
3580
  val = options.strictNullHandling ? null : '';
2090
3581
  } else {
2091
- key = options.decoder(part.slice(0, pos), defaults$2.decoder, charset, 'key');
2092
- val = utils$1.maybeMap(
3582
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
3583
+ val = utils.maybeMap(
2093
3584
  parseArrayValue(part.slice(pos + 1), options),
2094
3585
  function (encodedVal) {
2095
- return options.decoder(encodedVal, defaults$2.decoder, charset, 'value');
3586
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
2096
3587
  }
2097
3588
  );
2098
3589
  }
@@ -2102,11 +3593,11 @@ var parseValues = function parseQueryStringValues(str, options) {
2102
3593
  }
2103
3594
 
2104
3595
  if (part.indexOf('[]=') > -1) {
2105
- val = isArray$3(val) ? [val] : val;
3596
+ val = isArray(val) ? [val] : val;
2106
3597
  }
2107
3598
 
2108
- if (has$2.call(obj, key)) {
2109
- obj[key] = utils$1.combine(obj[key], val);
3599
+ if (has.call(obj, key)) {
3600
+ obj[key] = utils.combine(obj[key], val);
2110
3601
  } else {
2111
3602
  obj[key] = val;
2112
3603
  }
@@ -2139,7 +3630,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
2139
3630
  ) {
2140
3631
  obj = [];
2141
3632
  obj[index] = leaf;
2142
- } else {
3633
+ } else if (cleanRoot !== '__proto__') {
2143
3634
  obj[cleanRoot] = leaf;
2144
3635
  }
2145
3636
  }
@@ -2173,7 +3664,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
2173
3664
  var keys = [];
2174
3665
  if (parent) {
2175
3666
  // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2176
- if (!options.plainObjects && has$2.call(Object.prototype, parent)) {
3667
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
2177
3668
  if (!options.allowPrototypes) {
2178
3669
  return;
2179
3670
  }
@@ -2187,7 +3678,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
2187
3678
  var i = 0;
2188
3679
  while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2189
3680
  i += 1;
2190
- if (!options.plainObjects && has$2.call(Object.prototype, segment[1].slice(1, -1))) {
3681
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2191
3682
  if (!options.allowPrototypes) {
2192
3683
  return;
2193
3684
  }
@@ -2206,7 +3697,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
2206
3697
 
2207
3698
  var normalizeParseOptions = function normalizeParseOptions(opts) {
2208
3699
  if (!opts) {
2209
- return defaults$2;
3700
+ return defaults;
2210
3701
  }
2211
3702
 
2212
3703
  if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
@@ -2216,25 +3707,26 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2216
3707
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2217
3708
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2218
3709
  }
2219
- var charset = typeof opts.charset === 'undefined' ? defaults$2.charset : opts.charset;
3710
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
2220
3711
 
2221
3712
  return {
2222
- allowDots: typeof opts.allowDots === 'undefined' ? defaults$2.allowDots : !!opts.allowDots,
2223
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults$2.allowPrototypes,
2224
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults$2.arrayLimit,
3713
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
3714
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
3715
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
3716
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
2225
3717
  charset: charset,
2226
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$2.charsetSentinel,
2227
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults$2.comma,
2228
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults$2.decoder,
2229
- delimiter: typeof opts.delimiter === 'string' || utils$1.isRegExp(opts.delimiter) ? opts.delimiter : defaults$2.delimiter,
3718
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
3719
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
3720
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
3721
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
2230
3722
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2231
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults$2.depth,
3723
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
2232
3724
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
2233
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults$2.interpretNumericEntities,
2234
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults$2.parameterLimit,
3725
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
3726
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
2235
3727
  parseArrays: opts.parseArrays !== false,
2236
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults$2.plainObjects,
2237
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$2.strictNullHandling
3728
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
3729
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
2238
3730
  };
2239
3731
  };
2240
3732
 
@@ -2254,10 +3746,14 @@ var parse = function (str, opts) {
2254
3746
  for (var i = 0; i < keys.length; ++i) {
2255
3747
  var key = keys[i];
2256
3748
  var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
2257
- obj = utils$1.merge(obj, newObj, options);
3749
+ obj = utils.merge(obj, newObj, options);
3750
+ }
3751
+
3752
+ if (options.allowSparse === true) {
3753
+ return obj;
2258
3754
  }
2259
3755
 
2260
- return utils$1.compact(obj);
3756
+ return utils.compact(obj);
2261
3757
  };
2262
3758
 
2263
3759
  var lib = {
@@ -2303,32 +3799,33 @@ const cleanupElements = debounce((map) => {
2303
3799
  map.set(key, map.get(key).filter(isConnected));
2304
3800
  }
2305
3801
  }, 2000);
2306
- const stencilSubscription = ({ on }) => {
2307
- const elmsToUpdate = new Map();
2308
- if (typeof index.getRenderingRef === 'function') {
3802
+ const stencilSubscription = () => {
3803
+ if (typeof index.getRenderingRef !== 'function') {
2309
3804
  // If we are not in a stencil project, we do nothing.
2310
3805
  // This function is not really exported by @stencil/core.
2311
- on('dispose', () => {
2312
- elmsToUpdate.clear();
2313
- });
2314
- on('get', (propName) => {
3806
+ return {};
3807
+ }
3808
+ const elmsToUpdate = new Map();
3809
+ return {
3810
+ dispose: () => elmsToUpdate.clear(),
3811
+ get: (propName) => {
2315
3812
  const elm = index.getRenderingRef();
2316
3813
  if (elm) {
2317
3814
  appendToMap(elmsToUpdate, propName, elm);
2318
3815
  }
2319
- });
2320
- on('set', (propName) => {
3816
+ },
3817
+ set: (propName) => {
2321
3818
  const elements = elmsToUpdate.get(propName);
2322
3819
  if (elements) {
2323
3820
  elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
2324
3821
  }
2325
3822
  cleanupElements(elmsToUpdate);
2326
- });
2327
- on('reset', () => {
3823
+ },
3824
+ reset: () => {
2328
3825
  elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
2329
3826
  cleanupElements(elmsToUpdate);
2330
- });
2331
- }
3827
+ },
3828
+ };
2332
3829
  };
2333
3830
 
2334
3831
  const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
@@ -2401,17 +3898,28 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
2401
3898
  unReset();
2402
3899
  };
2403
3900
  };
2404
- const use = (...subscriptions) => subscriptions.forEach((subscription) => {
2405
- if (subscription.set) {
2406
- on('set', subscription.set);
2407
- }
2408
- if (subscription.get) {
2409
- on('get', subscription.get);
2410
- }
2411
- if (subscription.reset) {
2412
- on('reset', subscription.reset);
2413
- }
2414
- });
3901
+ const use = (...subscriptions) => {
3902
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
3903
+ if (subscription.set) {
3904
+ unsubs.push(on('set', subscription.set));
3905
+ }
3906
+ if (subscription.get) {
3907
+ unsubs.push(on('get', subscription.get));
3908
+ }
3909
+ if (subscription.reset) {
3910
+ unsubs.push(on('reset', subscription.reset));
3911
+ }
3912
+ if (subscription.dispose) {
3913
+ unsubs.push(on('dispose', subscription.dispose));
3914
+ }
3915
+ return unsubs;
3916
+ }, []);
3917
+ return () => unsubs.forEach((unsub) => unsub());
3918
+ };
3919
+ const forceUpdate = (key) => {
3920
+ const oldValue = states.get(key);
3921
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
3922
+ };
2415
3923
  return {
2416
3924
  state,
2417
3925
  get,
@@ -2421,6 +3929,7 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
2421
3929
  use,
2422
3930
  dispose,
2423
3931
  reset,
3932
+ forceUpdate,
2424
3933
  };
2425
3934
  };
2426
3935
  const removeFromArray = (array, item) => {
@@ -2433,14 +3942,14 @@ const removeFromArray = (array, item) => {
2433
3942
 
2434
3943
  const createStore = (defaultState, shouldUpdate) => {
2435
3944
  const map = createObservableMap(defaultState, shouldUpdate);
2436
- stencilSubscription(map);
3945
+ map.use(stencilSubscription());
2437
3946
  return map;
2438
3947
  };
2439
3948
 
2440
- const { state, onChange, reset } = createStore({
3949
+ const { state: state$1, onChange: onChange$1, reset: reset$1 } = createStore({
2441
3950
  toc: undefined,
2442
3951
  });
2443
- const TocStore = { state, onChange, reset };
3952
+ const TocStore = { state: state$1, onChange: onChange$1, reset: reset$1 };
2444
3953
 
2445
3954
  class HttpService {
2446
3955
  constructor() { }
@@ -2452,7 +3961,7 @@ class HttpService {
2452
3961
  }
2453
3962
  static init() {
2454
3963
  var sparkleConfig = environmentConfig_service.EnvironmentConfigService.getInstance().get('sparkle');
2455
- this.http = axios$1.create({
3964
+ this.http = axios.create({
2456
3965
  baseURL: sparkleConfig.apiUrl,
2457
3966
  headers: {
2458
3967
  'Content-Type': 'application/json'
@@ -2539,19 +4048,22 @@ class HttpService {
2539
4048
  }
2540
4049
  }
2541
4050
 
2542
- const { state: state$1, onChange: onChange$1, reset: reset$1 } = createStore({
4051
+ const { state, onChange, reset } = createStore({
2543
4052
  authUser: null,
2544
4053
  bearer: 'Bearer ',
2545
4054
  isAuthenticated: false,
2546
4055
  loading: false
2547
4056
  });
2548
- onChange$1('authUser', (authUser) => {
2549
- state$1.bearer = `Bearer ${authUser ? authUser.JWToken : ''}`;
2550
- state$1.isAuthenticated = authUser && !!authUser.Id;
4057
+ onChange('authUser', (authUser) => {
4058
+ state.bearer = `Bearer ${authUser ? authUser.JWToken : ''}`;
4059
+ state.isAuthenticated = authUser && !!authUser.Id;
2551
4060
  });
2552
- const AuthStore = { state: state$1, onChange: onChange$1, reset: reset$1 };
4061
+ const AuthStore = { state, onChange, reset };
2553
4062
 
2554
4063
  exports.AuthStore = AuthStore;
2555
4064
  exports.HttpService = HttpService;
2556
4065
  exports.TocStore = TocStore;
4066
+ exports.commonjsGlobal = commonjsGlobal;
4067
+ exports.createCommonjsModule = createCommonjsModule;
2557
4068
  exports.createStore = createStore;
4069
+ exports.getDefaultExportFromCjs = getDefaultExportFromCjs;