@sparkle-learning/core 0.0.16 → 0.0.20

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 (554) hide show
  1. package/dist/cjs/{PrivateRoute-946ab42c.js → PrivateRoute-cee9b061.js} +44 -45
  2. package/dist/cjs/{active-router-dca7573e.js → active-router-3bd7b540.js} +1 -1
  3. package/dist/cjs/{app-globals-bea78913.js → app-globals-98121d6d.js} +1 -1
  4. package/dist/cjs/{assets.service-5098e79c.js → assets.service-0c759d51.js} +2 -27
  5. package/dist/cjs/{httpService-6377985c.js → auth.store-aba3d22f.js} +31 -5
  6. package/dist/cjs/{button-active-1edcd24e.js → button-active-9456fb4d.js} +1 -1
  7. package/dist/cjs/compass-svg.cjs.entry.js +132 -0
  8. package/dist/cjs/context-consumer.cjs.entry.js +1 -1
  9. package/dist/cjs/course-select.cjs.entry.js +1 -1
  10. package/dist/cjs/environment-config.service-0e02b049.js +29 -0
  11. package/dist/cjs/facilitator.service-e1e2f719.js +94 -0
  12. package/dist/cjs/feed.service-518d18fd.js +5802 -0
  13. package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +86 -0
  14. package/dist/cjs/{icons-fc80a947.js → icons-a0fef92b.js} +2 -8
  15. package/dist/cjs/{index-123ceda0.js → index-58b3ee93.js} +3 -3
  16. package/dist/cjs/{index-786a6369.js → index-7bcd36a0.js} +1 -1
  17. package/dist/cjs/{index-56cc404a.js → index-fbf4d3bf.js} +2 -0
  18. package/dist/cjs/index.cjs.js +9 -8
  19. package/dist/cjs/index.es-6a9d5ef8.js +13834 -0
  20. package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
  21. package/dist/cjs/ion-alert.cjs.entry.js +4 -4
  22. package/dist/cjs/ion-app.cjs.entry.js +3 -3
  23. package/dist/cjs/ion-back-button.cjs.entry.js +89 -0
  24. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  25. package/dist/cjs/ion-badge.cjs.entry.js +2 -2
  26. package/dist/cjs/{ion-back-button_4.cjs.entry.js → ion-buttons_3.cjs.entry.js} +2 -83
  27. package/dist/cjs/ion-card-header.cjs.entry.js +2 -2
  28. package/dist/cjs/ion-card-subtitle.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-card-title.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  31. package/dist/cjs/{ion-content.cjs.entry.js → ion-content_2.cjs.entry.js} +259 -2
  32. package/dist/cjs/ion-datetime.cjs.entry.js +3 -3
  33. package/dist/cjs/ion-fab-button.cjs.entry.js +2 -2
  34. package/dist/cjs/ion-fab-list.cjs.entry.js +2 -2
  35. package/dist/cjs/ion-fab.cjs.entry.js +2 -2
  36. package/dist/cjs/ion-footer.cjs.entry.js +2 -2
  37. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  38. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +2 -2
  39. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +2 -2
  40. package/dist/cjs/ion-item-divider.cjs.entry.js +2 -2
  41. package/dist/cjs/ion-item-group.cjs.entry.js +2 -2
  42. package/dist/cjs/ion-item-option.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-item-options.cjs.entry.js +2 -2
  44. package/dist/cjs/ion-item-sliding.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-loading.cjs.entry.js +3 -3
  46. package/dist/cjs/ion-menu-button.cjs.entry.js +4 -4
  47. package/dist/cjs/ion-menu-toggle.cjs.entry.js +4 -4
  48. package/dist/cjs/ion-menu.cjs.entry.js +3 -3
  49. package/dist/cjs/ion-modal.cjs.entry.js +4 -4
  50. package/dist/cjs/ion-nav-link.cjs.entry.js +1 -1
  51. package/dist/cjs/ion-nav.cjs.entry.js +3 -3
  52. package/dist/cjs/ion-note.cjs.entry.js +2 -2
  53. package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
  54. package/dist/cjs/ion-picker.cjs.entry.js +3 -3
  55. package/dist/cjs/ion-popover.cjs.entry.js +4 -4
  56. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  57. package/dist/cjs/ion-refresher-content.cjs.entry.js +2 -2
  58. package/dist/cjs/ion-refresher.cjs.entry.js +2 -2
  59. package/dist/cjs/ion-reorder-group.cjs.entry.js +2 -2
  60. package/dist/cjs/ion-reorder.cjs.entry.js +2 -2
  61. package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
  62. package/dist/cjs/ion-route.cjs.entry.js +1 -1
  63. package/dist/cjs/ion-router-link.cjs.entry.js +2 -2
  64. package/dist/cjs/ion-router-outlet.cjs.entry.js +3 -3
  65. package/dist/cjs/ion-router.cjs.entry.js +1 -1
  66. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  67. package/dist/cjs/ion-segment-button.cjs.entry.js +2 -2
  68. package/dist/cjs/ion-segment.cjs.entry.js +2 -2
  69. package/dist/cjs/ion-select-popover.cjs.entry.js +3 -3
  70. package/dist/cjs/ion-select_2.cjs.entry.js +3 -3
  71. package/dist/cjs/ion-skeleton-text.cjs.entry.js +2 -2
  72. package/dist/cjs/ion-slide.cjs.entry.js +2 -2
  73. package/dist/cjs/ion-slides.cjs.entry.js +2 -2
  74. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  75. package/dist/cjs/ion-tab-bar.cjs.entry.js +2 -2
  76. package/dist/cjs/ion-tab-button.cjs.entry.js +2 -2
  77. package/dist/cjs/ion-tab.cjs.entry.js +1 -1
  78. package/dist/cjs/ion-tabs.cjs.entry.js +1 -1
  79. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  80. package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
  81. package/dist/cjs/ion-toast.cjs.entry.js +3 -3
  82. package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
  83. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +1 -1
  84. package/dist/cjs/{ionic-global-57e21b7b.js → ionic-global-4930d319.js} +1 -1
  85. package/dist/cjs/{ios.transition-b6898b4e.js → ios.transition-6e1fd3d6.js} +2 -2
  86. package/dist/cjs/loader.cjs.js +4 -4
  87. package/dist/cjs/{md.transition-dcccb17e.js → md.transition-3652ad78.js} +2 -2
  88. package/dist/cjs/{menu-toggle-util-36785376.js → menu-toggle-util-a8fb4c56.js} +1 -1
  89. package/dist/cjs/{overlays-09ece60d.js → overlays-08a817ea.js} +1 -1
  90. package/dist/cjs/purify-9804ff8d.js +1355 -0
  91. package/dist/cjs/sparkle-animation-player.cjs.entry.js +1 -1
  92. package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
  93. package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
  94. package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
  95. package/dist/cjs/sparkle-core.cjs.js +4 -4
  96. package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
  97. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +118 -0
  98. package/dist/cjs/sparkle-feed-post.cjs.entry.js +1 -1
  99. package/dist/cjs/sparkle-feedback.cjs.entry.js +19 -6
  100. package/dist/cjs/sparkle-goal-form.cjs.entry.js +75 -34
  101. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +2 -2
  102. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
  103. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
  104. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
  105. package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
  106. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
  107. package/dist/cjs/sparkle-overlay.cjs.entry.js +92 -0
  108. package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
  109. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
  110. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
  111. package/dist/cjs/sparkle-quiz.cjs.entry.js +4 -3
  112. package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
  113. package/dist/cjs/sparkle-sidebar.cjs.entry.js +43 -0
  114. package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
  115. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
  116. package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
  117. package/dist/cjs/sparkle-youtube.cjs.entry.js +1 -1
  118. package/dist/cjs/{status-tap-18630b4c.js → status-tap-466a7c6a.js} +1 -1
  119. package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
  120. package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
  121. package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
  122. package/dist/cjs/{student.service-93a3c3e1.js → student.service-41c7c78d.js} +17 -14
  123. package/dist/collection/PrivateRoute.js +1 -1
  124. package/dist/collection/{lib → assets/lib}/SignalRAspNetCoreHelper.js +2 -2
  125. package/dist/collection/{lib → assets/lib}/sparkleUtility.js +1 -1
  126. package/dist/collection/assets/svg/profile.svg +2 -0
  127. package/dist/collection/collection-manifest.json +8 -0
  128. package/dist/collection/components/compass-svg/compass-svg.css +15 -0
  129. package/dist/collection/components/compass-svg/compass-svg.js +156 -0
  130. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +7 -0
  131. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +110 -0
  132. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +3 -0
  133. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +214 -0
  134. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +22 -11
  135. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +3 -0
  136. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +144 -0
  137. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +14 -0
  138. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +64 -0
  139. package/dist/collection/components/layout/facilitator/facilitator-page.css +13 -3
  140. package/dist/collection/components/layout/facilitator/facilitator-page.js +147 -24
  141. package/dist/collection/components/layout/facilitator/online-students/online-students.js +59 -2
  142. package/dist/collection/components/layout/page/page.js +93 -4
  143. package/dist/collection/components/layout/page/templates/index.js +2 -0
  144. package/dist/collection/components/layout/page/templates/pdf.js +8 -0
  145. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +3 -3
  146. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +98 -64
  147. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +12 -29
  148. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +23 -6
  149. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +33 -0
  150. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +37 -0
  151. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +8 -8
  152. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +15 -60
  153. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +7 -7
  154. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +5 -3
  155. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +3 -3
  156. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +30 -29
  157. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +113 -13
  158. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +3 -3
  159. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +30 -64
  160. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +10 -3
  161. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +51 -11
  162. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +11 -11
  163. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +38 -8
  164. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +3 -3
  165. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +30 -27
  166. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +16 -16
  167. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +3 -3
  168. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +3 -3
  169. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +14 -1
  170. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +40 -6
  171. package/dist/collection/components/sparkle-login/sparkle-login.js +5 -3
  172. package/dist/collection/components/sparkle-poll/sparkle-poll.css +3 -3
  173. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +3 -3
  174. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +3 -3
  175. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +3 -3
  176. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +3 -3
  177. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +3 -3
  178. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +3 -0
  179. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +126 -0
  180. package/dist/collection/components/sparkle-root/sparkle-root.css +16 -0
  181. package/dist/collection/components/sparkle-root/sparkle-root.js +24 -1
  182. package/dist/collection/components/sparkle-signup/sparkle-signup.js +18 -14
  183. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +13 -13
  184. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +3 -3
  185. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +54 -3
  186. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +35 -8
  187. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +11 -0
  188. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +44 -0
  189. package/dist/collection/icons.js +1 -0
  190. package/dist/collection/models/class.model.js +5 -1
  191. package/dist/collection/models/facilitator-dashboard.model.js +5 -0
  192. package/dist/collection/services/account.service.js +42 -4
  193. package/dist/collection/services/appdata.service.js +60 -0
  194. package/dist/collection/services/auth/auth.service.js +34 -25
  195. package/dist/collection/services/environment/environment-config.js +6 -2
  196. package/dist/collection/services/facilitator.service.js +76 -0
  197. package/dist/collection/services/feed.service.js +43 -0
  198. package/dist/collection/services/httpService.js +16 -3
  199. package/dist/collection/services/media.service.js +29 -0
  200. package/dist/collection/services/signalR.service.js +85 -0
  201. package/dist/collection/services/student.service.js +8 -7
  202. package/dist/collection/stores/auth.store.js +2 -1
  203. package/dist/collection/stores/facilitator.store.js +11 -2
  204. package/dist/collection/stores/feed.store.js +3 -1
  205. package/dist/collection/stores/goal.store.js +2 -0
  206. package/dist/collection/stores/media.store.js +5 -0
  207. package/dist/collection/stores/signalR.store.js +6 -0
  208. package/dist/collection/stores/user.store.js +3 -1
  209. package/dist/collection/util.js +23 -1
  210. package/dist/collection/utils.js +0 -1
  211. package/dist/esm/{PrivateRoute-b34b53e0.js → PrivateRoute-9f0973bb.js} +42 -42
  212. package/dist/esm/{active-router-866d742c.js → active-router-b3ae32c7.js} +1 -1
  213. package/dist/esm/{app-globals-a5620b62.js → app-globals-6451faf3.js} +1 -1
  214. package/dist/esm/{assets.service-da511a45.js → assets.service-66e848b8.js} +2 -26
  215. package/dist/esm/{httpService-ed44926c.js → auth.store-dd944bc2.js} +31 -6
  216. package/dist/esm/{button-active-fe7ddd19.js → button-active-97535443.js} +1 -1
  217. package/dist/esm/compass-svg.entry.js +128 -0
  218. package/dist/esm/context-consumer.entry.js +1 -1
  219. package/dist/esm/course-select.entry.js +1 -1
  220. package/dist/esm/environment-config.service-2b5d692b.js +27 -0
  221. package/dist/esm/facilitator.service-cddb2feb.js +91 -0
  222. package/dist/esm/feed.service-0fda1e36.js +5787 -0
  223. package/dist/esm/header-mobile-collapse_60.entry.js +19 -0
  224. package/dist/esm/{icons-375b5504.js → icons-33e5804c.js} +3 -7
  225. package/dist/esm/{index-181d9e06.js → index-55fc9f5e.js} +2 -1
  226. package/dist/esm/{index-db21c1c7.js → index-a94619f9.js} +3 -3
  227. package/dist/esm/{index-c6bfe5ca.js → index-dc09784f.js} +1 -1
  228. package/dist/esm/index.es-8ad3b6a1.js +13748 -0
  229. package/dist/esm/index.js +7 -6
  230. package/dist/esm/ion-action-sheet.entry.js +4 -4
  231. package/dist/esm/ion-alert.entry.js +4 -4
  232. package/dist/esm/ion-app.entry.js +3 -3
  233. package/dist/esm/ion-back-button.entry.js +85 -0
  234. package/dist/esm/ion-backdrop.entry.js +2 -2
  235. package/dist/esm/ion-badge.entry.js +2 -2
  236. package/dist/esm/{ion-back-button_4.entry.js → ion-buttons_3.entry.js} +4 -84
  237. package/dist/esm/ion-card-header.entry.js +2 -2
  238. package/dist/esm/ion-card-subtitle.entry.js +2 -2
  239. package/dist/esm/ion-card-title.entry.js +2 -2
  240. package/dist/esm/ion-chip.entry.js +2 -2
  241. package/dist/esm/{ion-content.entry.js → ion-content_2.entry.js} +259 -3
  242. package/dist/esm/ion-datetime.entry.js +3 -3
  243. package/dist/esm/ion-fab-button.entry.js +2 -2
  244. package/dist/esm/ion-fab-list.entry.js +2 -2
  245. package/dist/esm/ion-fab.entry.js +2 -2
  246. package/dist/esm/ion-footer.entry.js +2 -2
  247. package/dist/esm/ion-img.entry.js +2 -2
  248. package/dist/esm/ion-infinite-scroll-content.entry.js +2 -2
  249. package/dist/esm/ion-infinite-scroll.entry.js +2 -2
  250. package/dist/esm/ion-item-divider.entry.js +2 -2
  251. package/dist/esm/ion-item-group.entry.js +2 -2
  252. package/dist/esm/ion-item-option.entry.js +2 -2
  253. package/dist/esm/ion-item-options.entry.js +2 -2
  254. package/dist/esm/ion-item-sliding.entry.js +2 -2
  255. package/dist/esm/ion-loading.entry.js +3 -3
  256. package/dist/esm/ion-menu-button.entry.js +4 -4
  257. package/dist/esm/ion-menu-toggle.entry.js +4 -4
  258. package/dist/esm/ion-menu.entry.js +3 -3
  259. package/dist/esm/ion-modal.entry.js +4 -4
  260. package/dist/esm/ion-nav-link.entry.js +1 -1
  261. package/dist/esm/ion-nav.entry.js +3 -3
  262. package/dist/esm/ion-note.entry.js +2 -2
  263. package/dist/esm/ion-picker-column.entry.js +2 -2
  264. package/dist/esm/ion-picker.entry.js +3 -3
  265. package/dist/esm/ion-popover.entry.js +4 -4
  266. package/dist/esm/ion-progress-bar.entry.js +2 -2
  267. package/dist/esm/ion-refresher-content.entry.js +2 -2
  268. package/dist/esm/ion-refresher.entry.js +2 -2
  269. package/dist/esm/ion-reorder-group.entry.js +2 -2
  270. package/dist/esm/ion-reorder.entry.js +2 -2
  271. package/dist/esm/ion-route-redirect.entry.js +1 -1
  272. package/dist/esm/ion-route.entry.js +1 -1
  273. package/dist/esm/ion-router-link.entry.js +2 -2
  274. package/dist/esm/ion-router-outlet.entry.js +3 -3
  275. package/dist/esm/ion-router.entry.js +1 -1
  276. package/dist/esm/ion-searchbar.entry.js +2 -2
  277. package/dist/esm/ion-segment-button.entry.js +2 -2
  278. package/dist/esm/ion-segment.entry.js +2 -2
  279. package/dist/esm/ion-select-popover.entry.js +3 -3
  280. package/dist/esm/ion-select_2.entry.js +3 -3
  281. package/dist/esm/ion-skeleton-text.entry.js +2 -2
  282. package/dist/esm/ion-slide.entry.js +2 -2
  283. package/dist/esm/ion-slides.entry.js +2 -2
  284. package/dist/esm/ion-split-pane.entry.js +2 -2
  285. package/dist/esm/ion-tab-bar.entry.js +2 -2
  286. package/dist/esm/ion-tab-button.entry.js +2 -2
  287. package/dist/esm/ion-tab.entry.js +1 -1
  288. package/dist/esm/ion-tabs.entry.js +1 -1
  289. package/dist/esm/ion-textarea.entry.js +2 -2
  290. package/dist/esm/ion-thumbnail.entry.js +2 -2
  291. package/dist/esm/ion-toast.entry.js +3 -3
  292. package/dist/esm/ion-toggle.entry.js +2 -2
  293. package/dist/esm/ion-virtual-scroll.entry.js +1 -1
  294. package/dist/esm/{ionic-global-2d79c2f2.js → ionic-global-1f9287cc.js} +1 -1
  295. package/dist/esm/{ios.transition-e24a66ff.js → ios.transition-d01abefd.js} +2 -2
  296. package/dist/esm/loader.js +4 -4
  297. package/dist/esm/{md.transition-a4f96d01.js → md.transition-245ffa55.js} +2 -2
  298. package/dist/esm/{menu-toggle-util-f9838cfb.js → menu-toggle-util-fe83fcf5.js} +1 -1
  299. package/dist/esm/{overlays-0222dd55.js → overlays-8363621c.js} +2 -2
  300. package/dist/esm/purify-76634fc8.js +1353 -0
  301. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  302. package/dist/esm/sparkle-code.entry.js +2 -2
  303. package/dist/esm/sparkle-compass-post.entry.js +1 -1
  304. package/dist/esm/sparkle-compass.entry.js +1 -1
  305. package/dist/esm/sparkle-core.js +4 -4
  306. package/dist/esm/sparkle-emoji.entry.js +1 -1
  307. package/dist/esm/sparkle-facilitator-notes-form.entry.js +114 -0
  308. package/dist/esm/sparkle-feed-post.entry.js +1 -1
  309. package/dist/esm/sparkle-feedback.entry.js +19 -6
  310. package/dist/esm/sparkle-goal-form.entry.js +73 -32
  311. package/dist/esm/sparkle-gww-comment-list.entry.js +2 -2
  312. package/dist/esm/sparkle-gww-graph.entry.js +1 -1
  313. package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
  314. package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
  315. package/dist/esm/sparkle-modal-image.entry.js +1 -1
  316. package/dist/esm/sparkle-notfound-page.entry.js +1 -1
  317. package/dist/esm/sparkle-overlay.entry.js +88 -0
  318. package/dist/esm/sparkle-poll.entry.js +1 -1
  319. package/dist/esm/sparkle-quiz-container.entry.js +1 -1
  320. package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
  321. package/dist/esm/sparkle-quiz.entry.js +3 -2
  322. package/dist/esm/sparkle-select.entry.js +1 -1
  323. package/dist/esm/sparkle-sidebar.entry.js +39 -0
  324. package/dist/esm/sparkle-tab.entry.js +1 -1
  325. package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
  326. package/dist/esm/sparkle-tabs.entry.js +1 -1
  327. package/dist/esm/sparkle-youtube.entry.js +1 -1
  328. package/dist/esm/{status-tap-dac23492.js → status-tap-9221cd79.js} +1 -1
  329. package/dist/esm/stencil-async-content.entry.js +1 -1
  330. package/dist/esm/stencil-route-title.entry.js +2 -2
  331. package/dist/esm/stencil-router-prompt.entry.js +2 -2
  332. package/dist/esm/{student.service-7c806a49.js → student.service-c36c5a75.js} +12 -9
  333. package/dist/sparkle-core/index.esm.js +1 -1
  334. package/dist/sparkle-core/{p-f4e2b82a.entry.js → p-016bf847.entry.js} +1 -1
  335. package/dist/sparkle-core/p-019d9d02.entry.js +1 -0
  336. package/dist/sparkle-core/p-03eb2164.js +1 -0
  337. package/dist/sparkle-core/{p-5cee001e.entry.js → p-03fd27d0.entry.js} +1 -1
  338. package/dist/sparkle-core/p-07018d29.js +1 -0
  339. package/dist/sparkle-core/p-083d57a6.entry.js +1 -0
  340. package/dist/sparkle-core/p-090f2624.js +1 -0
  341. package/dist/sparkle-core/{p-bc4e8c2a.entry.js → p-09d43bee.entry.js} +1 -1
  342. package/dist/sparkle-core/{p-b785a9ac.entry.js → p-0bd3e81f.entry.js} +1 -1
  343. package/dist/sparkle-core/{p-91889ff0.js → p-0e1c7c8c.js} +1 -1
  344. package/dist/sparkle-core/{p-1224fabd.entry.js → p-0efbc0b3.entry.js} +1 -1
  345. package/dist/sparkle-core/{p-7a898bda.entry.js → p-13b0cdfc.entry.js} +1 -1
  346. package/dist/sparkle-core/{p-586cb4d7.entry.js → p-13c9bf3a.entry.js} +1 -1
  347. package/dist/sparkle-core/{p-863b83d6.entry.js → p-151afa9e.entry.js} +1 -1
  348. package/dist/sparkle-core/{p-00adbab7.entry.js → p-15d68269.entry.js} +1 -1
  349. package/dist/sparkle-core/p-17507402.entry.js +1 -0
  350. package/dist/sparkle-core/{p-8bb44df7.entry.js → p-1bf8bed6.entry.js} +1 -1
  351. package/dist/sparkle-core/p-1ca4bf1d.entry.js +1 -0
  352. package/dist/sparkle-core/{p-5ca31915.entry.js → p-1e866c41.entry.js} +1 -1
  353. package/dist/sparkle-core/p-22926eed.entry.js +1 -0
  354. package/dist/sparkle-core/{p-517bb889.entry.js → p-2474bf60.entry.js} +1 -1
  355. package/dist/sparkle-core/{p-ffe93176.entry.js → p-25bbf9b4.entry.js} +1 -1
  356. package/dist/sparkle-core/p-2a45b732.js +1 -0
  357. package/dist/sparkle-core/{p-4572c448.entry.js → p-2abf4d37.entry.js} +1 -1
  358. package/dist/sparkle-core/{p-0c162ac4.entry.js → p-2c5edb9f.entry.js} +1 -1
  359. package/dist/sparkle-core/p-30b641a4.entry.js +1 -0
  360. package/dist/sparkle-core/{p-c05eb884.entry.js → p-359422b6.entry.js} +1 -1
  361. package/dist/sparkle-core/{p-62141bd4.entry.js → p-37bfb548.entry.js} +1 -1
  362. package/dist/sparkle-core/{p-80e128b9.entry.js → p-3a29a75b.entry.js} +1 -1
  363. package/dist/sparkle-core/{p-e5e40803.entry.js → p-3bb55510.entry.js} +1 -1
  364. package/dist/sparkle-core/p-3be0a218.js +1 -0
  365. package/dist/sparkle-core/{p-e5845154.entry.js → p-3cd28c60.entry.js} +1 -1
  366. package/dist/sparkle-core/{p-6f571ea1.entry.js → p-3f5d7a08.entry.js} +1 -1
  367. package/dist/sparkle-core/p-40db85ac.entry.js +1 -0
  368. package/dist/sparkle-core/{p-114fcfc1.entry.js → p-447163be.entry.js} +1 -1
  369. package/dist/sparkle-core/{p-bbb3b417.entry.js → p-49265a8e.entry.js} +1 -1
  370. package/dist/sparkle-core/{p-76c4e33b.entry.js → p-4950f841.entry.js} +1 -1
  371. package/dist/sparkle-core/{p-1cd371a7.entry.js → p-4d8cb365.entry.js} +1 -1
  372. package/dist/sparkle-core/p-4e28ca37.entry.js +1 -0
  373. package/dist/sparkle-core/{p-f985d69e.entry.js → p-5073899e.entry.js} +1 -1
  374. package/dist/sparkle-core/p-52355989.entry.js +1 -0
  375. package/dist/sparkle-core/{p-1898fe4c.entry.js → p-581ca370.entry.js} +1 -1
  376. package/dist/sparkle-core/{p-48d24341.entry.js → p-5b366c20.entry.js} +1 -1
  377. package/dist/sparkle-core/{p-ff092368.entry.js → p-5dce20b9.entry.js} +1 -1
  378. package/dist/sparkle-core/{p-c1a4ba92.entry.js → p-6006beec.entry.js} +1 -1
  379. package/dist/sparkle-core/{p-d4339e9c.entry.js → p-600d04fc.entry.js} +1 -1
  380. package/dist/sparkle-core/{p-257fd781.entry.js → p-60828739.entry.js} +1 -1
  381. package/dist/sparkle-core/{p-e48343fe.entry.js → p-6112b180.entry.js} +1 -1
  382. package/dist/sparkle-core/p-660fccf6.js +1 -0
  383. package/dist/sparkle-core/{p-0b04e1c4.entry.js → p-66e3bd1c.entry.js} +1 -1
  384. package/dist/sparkle-core/{p-9523cc6c.entry.js → p-66eb6b7a.entry.js} +1 -1
  385. package/dist/sparkle-core/p-67ddec3f.entry.js +1 -0
  386. package/dist/sparkle-core/p-68cb7d41.entry.js +1 -0
  387. package/dist/sparkle-core/{p-e7d32b53.entry.js → p-68f3c93d.entry.js} +1 -1
  388. package/dist/sparkle-core/p-69cd49de.js +1 -0
  389. package/dist/sparkle-core/{p-fb3ea85e.js → p-6d506f4e.js} +1 -1
  390. package/dist/sparkle-core/{p-7c39c5c0.entry.js → p-6edbdde5.entry.js} +1 -1
  391. package/dist/sparkle-core/p-6f0ecbe3.js +1 -0
  392. package/dist/sparkle-core/{p-7b7ebe04.entry.js → p-73a646fb.entry.js} +1 -1
  393. package/dist/sparkle-core/{p-0e1cdb86.js → p-765b8593.js} +1 -1
  394. package/dist/sparkle-core/{p-22836c22.js → p-770128c8.js} +1 -1
  395. package/dist/sparkle-core/{p-05bcee18.entry.js → p-7b37d523.entry.js} +1 -1
  396. package/dist/sparkle-core/{p-1d62b3ff.entry.js → p-7d83d006.entry.js} +1 -1
  397. package/dist/sparkle-core/p-7f3d5344.js +1 -0
  398. package/dist/sparkle-core/{p-99d08952.entry.js → p-81651f26.entry.js} +1 -1
  399. package/dist/sparkle-core/{p-d046110e.entry.js → p-85d31769.entry.js} +1 -1
  400. package/dist/sparkle-core/{p-42443d61.entry.js → p-86148067.entry.js} +1 -1
  401. package/dist/sparkle-core/{p-88ea26d4.entry.js → p-8b5bc1d6.entry.js} +1 -1
  402. package/dist/sparkle-core/{p-e0603c01.entry.js → p-8c3ee44c.entry.js} +1 -1
  403. package/dist/sparkle-core/{p-fce285b3.entry.js → p-9007a06b.entry.js} +1 -1
  404. package/dist/sparkle-core/{p-89aca87d.entry.js → p-90482861.entry.js} +1 -1
  405. package/dist/sparkle-core/{p-8dddaae1.entry.js → p-92d42c10.entry.js} +1 -1
  406. package/dist/sparkle-core/p-9a443f51.js +1 -0
  407. package/dist/sparkle-core/{p-aae8e3b8.entry.js → p-9ca56f5d.entry.js} +1 -1
  408. package/dist/sparkle-core/{p-c5cc6d79.entry.js → p-a061537e.entry.js} +1 -1
  409. package/dist/sparkle-core/{p-b0bb946d.entry.js → p-a250e2ae.entry.js} +1 -1
  410. package/dist/sparkle-core/{p-dc903858.entry.js → p-abe2676a.entry.js} +1 -1
  411. package/dist/sparkle-core/{p-64592d28.entry.js → p-ac5e5308.entry.js} +1 -1
  412. package/dist/sparkle-core/{p-6df23697.entry.js → p-afbaad64.entry.js} +1 -1
  413. package/dist/sparkle-core/p-b080c1e3.entry.js +1 -0
  414. package/dist/sparkle-core/p-b226f54d.js +1 -0
  415. package/dist/sparkle-core/p-b2d4840f.js +3 -0
  416. package/dist/sparkle-core/{p-9835f777.entry.js → p-bac45a26.entry.js} +1 -1
  417. package/dist/sparkle-core/p-bbe5977b.entry.js +1 -0
  418. package/dist/sparkle-core/p-bc568dcb.js +1 -0
  419. package/dist/sparkle-core/{p-60d25a7f.entry.js → p-bccd9036.entry.js} +1 -1
  420. package/dist/sparkle-core/{p-58a6d8ab.entry.js → p-c163c16d.entry.js} +1 -1
  421. package/dist/sparkle-core/{p-8626ebe6.entry.js → p-c3166584.entry.js} +1 -1
  422. package/dist/sparkle-core/{p-589d4664.entry.js → p-c34269ae.entry.js} +1 -1
  423. package/dist/sparkle-core/{p-3c3194fd.js → p-c466ee32.js} +1 -1
  424. package/dist/sparkle-core/p-c6710592.entry.js +1 -0
  425. package/dist/sparkle-core/{p-71f184d9.entry.js → p-c7022391.entry.js} +1 -1
  426. package/dist/sparkle-core/{p-1cd3c5d0.entry.js → p-c70b9765.entry.js} +1 -1
  427. package/dist/sparkle-core/{p-2e286dc5.entry.js → p-c82b05e0.entry.js} +1 -1
  428. package/dist/sparkle-core/{p-ebe7e674.entry.js → p-cf2332bb.entry.js} +1 -1
  429. package/dist/sparkle-core/{p-07d16606.entry.js → p-d069b834.entry.js} +1 -1
  430. package/dist/sparkle-core/{p-92fa1d62.js → p-d4ad796c.js} +1 -1
  431. package/dist/sparkle-core/{p-d9669c41.entry.js → p-d4d9aa4a.entry.js} +1 -1
  432. package/dist/sparkle-core/{p-f87fecb0.entry.js → p-d5023db0.entry.js} +1 -1
  433. package/dist/sparkle-core/p-d6152660.entry.js +1 -0
  434. package/dist/sparkle-core/{p-7e8645c2.js → p-d63406d8.js} +1 -1
  435. package/dist/sparkle-core/{p-3a75bd70.entry.js → p-dba672d5.entry.js} +1 -1
  436. package/dist/sparkle-core/{p-2fa5a8dd.entry.js → p-dd73d01a.entry.js} +1 -1
  437. package/dist/sparkle-core/p-de33872d.entry.js +1 -0
  438. package/dist/sparkle-core/p-dee2128a.entry.js +1 -0
  439. package/dist/sparkle-core/{p-7f4ae7be.entry.js → p-df07e132.entry.js} +1 -1
  440. package/dist/sparkle-core/p-e5d5aaa5.js +1 -0
  441. package/dist/sparkle-core/{p-0f83c1c3.entry.js → p-e72c6d87.entry.js} +1 -1
  442. package/dist/sparkle-core/{p-1a6ca540.entry.js → p-e818b11d.entry.js} +1 -1
  443. package/dist/sparkle-core/{p-e7d9176a.entry.js → p-e8df6ea6.entry.js} +1 -1
  444. package/dist/sparkle-core/{p-b9f544da.entry.js → p-e975924a.entry.js} +1 -1
  445. package/dist/sparkle-core/p-eb56aa20.entry.js +1 -0
  446. package/dist/sparkle-core/p-ec2e029e.js +483 -0
  447. package/dist/sparkle-core/{p-9a192334.js → p-ef2a2172.js} +1 -1
  448. package/dist/sparkle-core/p-f1a4ab33.entry.js +1 -0
  449. package/dist/sparkle-core/{p-cac9f43c.entry.js → p-f43ac631.entry.js} +1 -1
  450. package/dist/sparkle-core/{p-826aea5e.entry.js → p-f72a6e6d.entry.js} +1 -1
  451. package/dist/sparkle-core/{p-c557858e.entry.js → p-f9143c5d.entry.js} +1 -1
  452. package/dist/sparkle-core/{p-540238c1.entry.js → p-fd62283e.entry.js} +1 -1
  453. package/dist/sparkle-core/{p-6620c98e.entry.js → p-fef71e0e.entry.js} +1 -1
  454. package/dist/sparkle-core/sparkle-core.css +1 -1
  455. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  456. package/dist/types/{lib → assets/lib}/SignalRAspNetCoreHelper.d.ts +0 -0
  457. package/dist/types/{lib → assets/lib}/sparkleUtility.d.ts +0 -0
  458. package/dist/types/components/compass-svg/compass-svg.d.ts +34 -0
  459. package/dist/types/components/layout/facilitator/export-lessons/export-lessons.d.ts +16 -0
  460. package/dist/types/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.d.ts +22 -0
  461. package/dist/types/components/layout/facilitator/facilitator-header/facilitator-header.d.ts +1 -0
  462. package/dist/types/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.d.ts +24 -0
  463. package/dist/types/components/layout/facilitator/facilitator-notes/facilitator-notes.d.ts +9 -0
  464. package/dist/types/components/layout/facilitator/facilitator-page.d.ts +19 -2
  465. package/dist/types/components/layout/facilitator/online-students/online-students.d.ts +6 -0
  466. package/dist/types/components/layout/page/page.d.ts +8 -0
  467. package/dist/types/components/layout/page/templates/index.d.ts +1 -0
  468. package/dist/types/components/layout/page/templates/pdf.d.ts +2 -0
  469. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.d.ts +6 -5
  470. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.d.ts +1 -0
  471. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.d.ts +4 -0
  472. package/dist/types/components/mini-apps/sparkle-goals/sparkle-goals.d.ts +3 -3
  473. package/dist/types/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.d.ts +9 -2
  474. package/dist/types/components/mini-apps/sparkle-gww/sparkle-gww.d.ts +4 -2
  475. package/dist/types/components/mini-apps/sparkle-health/sparkle-health.d.ts +4 -1
  476. package/dist/types/components/mini-apps/sparkle-mood/sparkle-mood.d.ts +3 -0
  477. package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +6 -4
  478. package/dist/types/components/sparkle-forgot-password/sparkle-forgot-password.d.ts +3 -0
  479. package/dist/types/components/sparkle-reset-password/sparkle-reset-password.d.ts +22 -0
  480. package/dist/types/components/sparkle-root/sparkle-root.d.ts +4 -0
  481. package/dist/types/components/sparkle-signup/sparkle-signup.d.ts +1 -1
  482. package/dist/types/components/sparkle-user-profile/sparkle-user-profile.d.ts +4 -0
  483. package/dist/types/components/sparkle-validation-error/sparkle-validation-error.d.ts +7 -0
  484. package/dist/types/components.d.ts +143 -6
  485. package/dist/types/models/api.model.d.ts +8 -0
  486. package/dist/types/models/class.model.d.ts +59 -6
  487. package/dist/types/models/facilitator-dashboard.model.d.ts +61 -0
  488. package/dist/types/models/goal.model.d.ts +3 -2
  489. package/dist/types/services/account.service.d.ts +11 -2
  490. package/dist/types/services/appdata.service.d.ts +13 -0
  491. package/dist/types/services/facilitator.service.d.ts +22 -0
  492. package/dist/types/services/feed.service.d.ts +10 -0
  493. package/dist/types/services/httpService.d.ts +1 -0
  494. package/dist/types/services/media.service.d.ts +8 -0
  495. package/dist/types/services/signalR.service.d.ts +10 -0
  496. package/dist/types/services/student.service.d.ts +1 -1
  497. package/dist/types/stores/auth.store.d.ts +1 -0
  498. package/dist/types/stores/facilitator.store.d.ts +11 -2
  499. package/dist/types/stores/feed.store.d.ts +3 -1
  500. package/dist/types/stores/goal.store.d.ts +4 -1
  501. package/dist/types/stores/media.store.d.ts +8 -0
  502. package/dist/types/stores/signalR.store.d.ts +10 -0
  503. package/dist/types/stores/user.store.d.ts +3 -1
  504. package/dist/types/util.d.ts +11 -0
  505. package/package.json +7 -3
  506. package/dist/cjs/header-mobile-collapse_51.cjs.entry.js +0 -5285
  507. package/dist/cjs/ion-card-content.cjs.entry.js +0 -30
  508. package/dist/cjs/ion-card.cjs.entry.js +0 -70
  509. package/dist/cjs/ion-header.cjs.entry.js +0 -264
  510. package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
  511. package/dist/cjs/sparkle-page-footer.cjs.entry.js +0 -27
  512. package/dist/cjs/sparkle-pagination.cjs.entry.js +0 -31
  513. package/dist/cjs/util-dd1e6ff1.js +0 -23
  514. package/dist/collection/lib/sparkle.js +0 -524
  515. package/dist/collection/lib/sparkle.signalr-client.js +0 -135
  516. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1.js +0 -2884
  517. package/dist/esm/header-mobile-collapse_51.entry.js +0 -5231
  518. package/dist/esm/ion-card-content.entry.js +0 -26
  519. package/dist/esm/ion-card.entry.js +0 -66
  520. package/dist/esm/ion-header.entry.js +0 -260
  521. package/dist/esm/ion-spinner.entry.js +0 -60
  522. package/dist/esm/sparkle-page-footer.entry.js +0 -23
  523. package/dist/esm/sparkle-pagination.entry.js +0 -27
  524. package/dist/esm/util-0e88110d.js +0 -17
  525. package/dist/sparkle-core/p-0f511fed.entry.js +0 -1
  526. package/dist/sparkle-core/p-1227bbd6.entry.js +0 -1
  527. package/dist/sparkle-core/p-2d6fbde3.js +0 -1
  528. package/dist/sparkle-core/p-33b46e43.entry.js +0 -1
  529. package/dist/sparkle-core/p-3f769f4e.entry.js +0 -1
  530. package/dist/sparkle-core/p-51ffa746.entry.js +0 -1
  531. package/dist/sparkle-core/p-5336d922.js +0 -1
  532. package/dist/sparkle-core/p-58ede27f.js +0 -1
  533. package/dist/sparkle-core/p-5c51baac.js +0 -1
  534. package/dist/sparkle-core/p-5e8dc338.entry.js +0 -1
  535. package/dist/sparkle-core/p-6bf9263e.js +0 -1
  536. package/dist/sparkle-core/p-7d1b4002.entry.js +0 -1
  537. package/dist/sparkle-core/p-7d7a0a87.entry.js +0 -1
  538. package/dist/sparkle-core/p-7e8a6354.js +0 -1
  539. package/dist/sparkle-core/p-87e97bdd.entry.js +0 -1
  540. package/dist/sparkle-core/p-880c438c.entry.js +0 -1
  541. package/dist/sparkle-core/p-8fdccc4a.entry.js +0 -1
  542. package/dist/sparkle-core/p-9563bf6c.js +0 -1
  543. package/dist/sparkle-core/p-971b29c9.entry.js +0 -1
  544. package/dist/sparkle-core/p-972d5bd1.entry.js +0 -1
  545. package/dist/sparkle-core/p-a7754cd1.entry.js +0 -1
  546. package/dist/sparkle-core/p-b3dfac3e.js +0 -1
  547. package/dist/sparkle-core/p-c20861ac.entry.js +0 -1
  548. package/dist/sparkle-core/p-c396afb2.entry.js +0 -1
  549. package/dist/sparkle-core/p-c5de0b12.js +0 -1
  550. package/dist/sparkle-core/p-d3ea02b3.js +0 -1
  551. package/dist/sparkle-core/p-df5c60a1.entry.js +0 -1
  552. package/dist/sparkle-core/p-eeb7a650.entry.js +0 -1
  553. package/dist/sparkle-core/p-f0604500.entry.js +0 -1
  554. package/dist/sparkle-core/p-f2de03c5.entry.js +0 -1
@@ -0,0 +1,1353 @@
1
+ import { c as createCommonjsModule, a as commonjsGlobal } from './header-mobile-collapse.ion-avatar.ion-button.ion-card.ion-card-content.ion-checkbox.ion-col.ion-grid.ion-icon.ion-input.ion-item.ion-label.ion-list.ion-list-header.ion-radio.ion-radio-group.ion-range.ion-ripple-effect.ion-row.ion-spinner.ion-text.sparkle-button.sparkle-card.sparkle-cards.sparkle-course-root.sparkle-dropdown.sparkle-export-lessons.sparkle-facilitator-dashboard.sparkle-facilitator-header.sparkle-facilitator-notes.sparkle-facilitator-page.sparkle-forgot-password.sparkle-goal-item.sparkle-goal-progress.sparkle-goals.sparkle-gww.sparkle-gww-item.sparkle-header.sparkle-health.sparkle-login.sparkle-menu.sparkle-menu-toggle.sparkle-mood.sparkle-nav.sparkle-online-students.sparkle-page.sparkle-page-footer.sparkle-pagination.sparkle-reset-password.sparkle-root.sparkle-signup.sparkle-unauthorized.sparkle-user-enrollment.sparkle-user-profile.sparkle-validation-error.stencil-route.stencil-route-link.stencil-route-switch.stencil-router.stencil-router-redirect-6a44187f.js';
2
+
3
+ var purify = createCommonjsModule(function (module, exports) {
4
+ /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
5
+
6
+ (function (global, factory) {
7
+ module.exports = factory() ;
8
+ }(commonjsGlobal, function () {
9
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
10
+
11
+ var hasOwnProperty = Object.hasOwnProperty,
12
+ setPrototypeOf = Object.setPrototypeOf,
13
+ isFrozen = Object.isFrozen,
14
+ getPrototypeOf = Object.getPrototypeOf,
15
+ getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
16
+ var freeze = Object.freeze,
17
+ seal = Object.seal,
18
+ create = Object.create; // eslint-disable-line import/no-mutable-exports
19
+
20
+ var _ref = typeof Reflect !== 'undefined' && Reflect,
21
+ apply = _ref.apply,
22
+ construct = _ref.construct;
23
+
24
+ if (!apply) {
25
+ apply = function apply(fun, thisValue, args) {
26
+ return fun.apply(thisValue, args);
27
+ };
28
+ }
29
+
30
+ if (!freeze) {
31
+ freeze = function freeze(x) {
32
+ return x;
33
+ };
34
+ }
35
+
36
+ if (!seal) {
37
+ seal = function seal(x) {
38
+ return x;
39
+ };
40
+ }
41
+
42
+ if (!construct) {
43
+ construct = function construct(Func, args) {
44
+ return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();
45
+ };
46
+ }
47
+
48
+ var arrayForEach = unapply(Array.prototype.forEach);
49
+ var arrayPop = unapply(Array.prototype.pop);
50
+ var arrayPush = unapply(Array.prototype.push);
51
+
52
+ var stringToLowerCase = unapply(String.prototype.toLowerCase);
53
+ var stringMatch = unapply(String.prototype.match);
54
+ var stringReplace = unapply(String.prototype.replace);
55
+ var stringIndexOf = unapply(String.prototype.indexOf);
56
+ var stringTrim = unapply(String.prototype.trim);
57
+
58
+ var regExpTest = unapply(RegExp.prototype.test);
59
+
60
+ var typeErrorCreate = unconstruct(TypeError);
61
+
62
+ function unapply(func) {
63
+ return function (thisArg) {
64
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
65
+ args[_key - 1] = arguments[_key];
66
+ }
67
+
68
+ return apply(func, thisArg, args);
69
+ };
70
+ }
71
+
72
+ function unconstruct(func) {
73
+ return function () {
74
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
75
+ args[_key2] = arguments[_key2];
76
+ }
77
+
78
+ return construct(func, args);
79
+ };
80
+ }
81
+
82
+ /* Add properties to a lookup table */
83
+ function addToSet(set, array) {
84
+ if (setPrototypeOf) {
85
+ // Make 'in' and truthy checks like Boolean(set.constructor)
86
+ // independent of any properties defined on Object.prototype.
87
+ // Prevent prototype setters from intercepting set as a this value.
88
+ setPrototypeOf(set, null);
89
+ }
90
+
91
+ var l = array.length;
92
+ while (l--) {
93
+ var element = array[l];
94
+ if (typeof element === 'string') {
95
+ var lcElement = stringToLowerCase(element);
96
+ if (lcElement !== element) {
97
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
98
+ if (!isFrozen(array)) {
99
+ array[l] = lcElement;
100
+ }
101
+
102
+ element = lcElement;
103
+ }
104
+ }
105
+
106
+ set[element] = true;
107
+ }
108
+
109
+ return set;
110
+ }
111
+
112
+ /* Shallow clone an object */
113
+ function clone(object) {
114
+ var newObject = create(null);
115
+
116
+ var property = void 0;
117
+ for (property in object) {
118
+ if (apply(hasOwnProperty, object, [property])) {
119
+ newObject[property] = object[property];
120
+ }
121
+ }
122
+
123
+ return newObject;
124
+ }
125
+
126
+ /* IE10 doesn't support __lookupGetter__ so lets'
127
+ * simulate it. It also automatically checks
128
+ * if the prop is function or getter and behaves
129
+ * accordingly. */
130
+ function lookupGetter(object, prop) {
131
+ while (object !== null) {
132
+ var desc = getOwnPropertyDescriptor(object, prop);
133
+ if (desc) {
134
+ if (desc.get) {
135
+ return unapply(desc.get);
136
+ }
137
+
138
+ if (typeof desc.value === 'function') {
139
+ return unapply(desc.value);
140
+ }
141
+ }
142
+
143
+ object = getPrototypeOf(object);
144
+ }
145
+
146
+ function fallbackValue(element) {
147
+ console.warn('fallback value for', element);
148
+ return null;
149
+ }
150
+
151
+ return fallbackValue;
152
+ }
153
+
154
+ var html = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
155
+
156
+ // SVG
157
+ var svg = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
158
+
159
+ var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
160
+
161
+ // List of SVG elements that are disallowed by default.
162
+ // We still need to know them so that we can do namespace
163
+ // checks properly in case one wants to add them to
164
+ // allow-list.
165
+ var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'feimage', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);
166
+
167
+ var mathMl = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);
168
+
169
+ // Similarly to SVG, we want to know all MathML elements,
170
+ // even those that we disallow by default.
171
+ var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
172
+
173
+ var text = freeze(['#text']);
174
+
175
+ var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns']);
176
+
177
+ var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
178
+
179
+ var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
180
+
181
+ var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
182
+
183
+ // eslint-disable-next-line unicorn/better-regex
184
+ var MUSTACHE_EXPR = seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
185
+ var ERB_EXPR = seal(/<%[\s\S]*|[\s\S]*%>/gm);
186
+ var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape
187
+ var ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
188
+ var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
189
+ );
190
+ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
191
+ var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
192
+ );
193
+
194
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
195
+
196
+ function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
197
+
198
+ var getGlobal = function getGlobal() {
199
+ return typeof window === 'undefined' ? null : window;
200
+ };
201
+
202
+ /**
203
+ * Creates a no-op policy for internal use only.
204
+ * Don't export this function outside this module!
205
+ * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.
206
+ * @param {Document} document The document object (to determine policy name suffix)
207
+ * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types
208
+ * are not supported).
209
+ */
210
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {
211
+ if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
212
+ return null;
213
+ }
214
+
215
+ // Allow the callers to control the unique policy name
216
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
217
+ // Policy creation with duplicate names throws in Trusted Types.
218
+ var suffix = null;
219
+ var ATTR_NAME = 'data-tt-policy-suffix';
220
+ if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {
221
+ suffix = document.currentScript.getAttribute(ATTR_NAME);
222
+ }
223
+
224
+ var policyName = 'dompurify' + (suffix ? '#' + suffix : '');
225
+
226
+ try {
227
+ return trustedTypes.createPolicy(policyName, {
228
+ createHTML: function createHTML(html$$1) {
229
+ return html$$1;
230
+ }
231
+ });
232
+ } catch (_) {
233
+ // Policy creation failed (most likely another DOMPurify script has
234
+ // already run). Skip creating the policy, as this will only cause errors
235
+ // if TT are enforced.
236
+ console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
237
+ return null;
238
+ }
239
+ };
240
+
241
+ function createDOMPurify() {
242
+ var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
243
+
244
+ var DOMPurify = function DOMPurify(root) {
245
+ return createDOMPurify(root);
246
+ };
247
+
248
+ /**
249
+ * Version label, exposed for easier checks
250
+ * if DOMPurify is up to date or not
251
+ */
252
+ DOMPurify.version = '2.2.7';
253
+
254
+ /**
255
+ * Array of elements that DOMPurify removed during sanitation.
256
+ * Empty if nothing was removed.
257
+ */
258
+ DOMPurify.removed = [];
259
+
260
+ if (!window || !window.document || window.document.nodeType !== 9) {
261
+ // Not running in a browser, provide a factory function
262
+ // so that you can pass your own Window
263
+ DOMPurify.isSupported = false;
264
+
265
+ return DOMPurify;
266
+ }
267
+
268
+ var originalDocument = window.document;
269
+
270
+ var document = window.document;
271
+ var DocumentFragment = window.DocumentFragment,
272
+ HTMLTemplateElement = window.HTMLTemplateElement,
273
+ Node = window.Node,
274
+ Element = window.Element,
275
+ NodeFilter = window.NodeFilter,
276
+ _window$NamedNodeMap = window.NamedNodeMap,
277
+ NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,
278
+ Text = window.Text,
279
+ Comment = window.Comment,
280
+ DOMParser = window.DOMParser,
281
+ trustedTypes = window.trustedTypes;
282
+
283
+
284
+ var ElementPrototype = Element.prototype;
285
+
286
+ var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
287
+ var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
288
+ var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
289
+ var getParentNode = lookupGetter(ElementPrototype, 'parentNode');
290
+
291
+ // As per issue #47, the web-components registry is inherited by a
292
+ // new document created via createHTMLDocument. As per the spec
293
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
294
+ // a new empty registry is used when creating a template contents owner
295
+ // document, so we use that as our parent document to ensure nothing
296
+ // is inherited.
297
+ if (typeof HTMLTemplateElement === 'function') {
298
+ var template = document.createElement('template');
299
+ if (template.content && template.content.ownerDocument) {
300
+ document = template.content.ownerDocument;
301
+ }
302
+ }
303
+
304
+ var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
305
+ var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';
306
+
307
+ var _document = document,
308
+ implementation = _document.implementation,
309
+ createNodeIterator = _document.createNodeIterator,
310
+ getElementsByTagName = _document.getElementsByTagName,
311
+ createDocumentFragment = _document.createDocumentFragment;
312
+ var importNode = originalDocument.importNode;
313
+
314
+
315
+ var documentMode = {};
316
+ try {
317
+ documentMode = clone(document).documentMode ? document.documentMode : {};
318
+ } catch (_) {}
319
+
320
+ var hooks = {};
321
+
322
+ /**
323
+ * Expose whether this browser supports running the full DOMPurify.
324
+ */
325
+ DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;
326
+
327
+ var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,
328
+ ERB_EXPR$$1 = ERB_EXPR,
329
+ DATA_ATTR$$1 = DATA_ATTR,
330
+ ARIA_ATTR$$1 = ARIA_ATTR,
331
+ IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,
332
+ ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;
333
+ var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;
334
+
335
+ /**
336
+ * We consider the elements and attributes below to be safe. Ideally
337
+ * don't add any new ones but feel free to remove unwanted ones.
338
+ */
339
+
340
+ /* allowed element names */
341
+
342
+ var ALLOWED_TAGS = null;
343
+ var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));
344
+
345
+ /* Allowed attribute names */
346
+ var ALLOWED_ATTR = null;
347
+ var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));
348
+
349
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
350
+ var FORBID_TAGS = null;
351
+
352
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
353
+ var FORBID_ATTR = null;
354
+
355
+ /* Decide if ARIA attributes are okay */
356
+ var ALLOW_ARIA_ATTR = true;
357
+
358
+ /* Decide if custom data attributes are okay */
359
+ var ALLOW_DATA_ATTR = true;
360
+
361
+ /* Decide if unknown protocols are okay */
362
+ var ALLOW_UNKNOWN_PROTOCOLS = false;
363
+
364
+ /* Output should be safe for common template engines.
365
+ * This means, DOMPurify removes data attributes, mustaches and ERB
366
+ */
367
+ var SAFE_FOR_TEMPLATES = false;
368
+
369
+ /* Decide if document with <html>... should be returned */
370
+ var WHOLE_DOCUMENT = false;
371
+
372
+ /* Track whether config is already set on this instance of DOMPurify. */
373
+ var SET_CONFIG = false;
374
+
375
+ /* Decide if all elements (e.g. style, script) must be children of
376
+ * document.body. By default, browsers might move them to document.head */
377
+ var FORCE_BODY = false;
378
+
379
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
380
+ * string (or a TrustedHTML object if Trusted Types are supported).
381
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
382
+ */
383
+ var RETURN_DOM = false;
384
+
385
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
386
+ * string (or a TrustedHTML object if Trusted Types are supported) */
387
+ var RETURN_DOM_FRAGMENT = false;
388
+
389
+ /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM
390
+ * `Node` is imported into the current `Document`. If this flag is not enabled the
391
+ * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by
392
+ * DOMPurify.
393
+ *
394
+ * This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`
395
+ * might cause XSS from attacks hidden in closed shadowroots in case the browser
396
+ * supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/
397
+ */
398
+ var RETURN_DOM_IMPORT = true;
399
+
400
+ /* Try to return a Trusted Type object instead of a string, return a string in
401
+ * case Trusted Types are not supported */
402
+ var RETURN_TRUSTED_TYPE = false;
403
+
404
+ /* Output should be free from DOM clobbering attacks? */
405
+ var SANITIZE_DOM = true;
406
+
407
+ /* Keep element content when removing element? */
408
+ var KEEP_CONTENT = true;
409
+
410
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
411
+ * of importing it into a new Document and returning a sanitized copy */
412
+ var IN_PLACE = false;
413
+
414
+ /* Allow usage of profiles like html, svg and mathMl */
415
+ var USE_PROFILES = {};
416
+
417
+ /* Tags to ignore content of when KEEP_CONTENT is true */
418
+ var FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
419
+
420
+ /* Tags that are safe for data: URIs */
421
+ var DATA_URI_TAGS = null;
422
+ var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
423
+
424
+ /* Attributes safe for values like "javascript:" */
425
+ var URI_SAFE_ATTRIBUTES = null;
426
+ var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'summary', 'title', 'value', 'style', 'xmlns']);
427
+
428
+ /* Keep a reference to config to pass to hooks */
429
+ var CONFIG = null;
430
+
431
+ /* Ideally, do not touch anything below this line */
432
+ /* ______________________________________________ */
433
+
434
+ var formElement = document.createElement('form');
435
+
436
+ /**
437
+ * _parseConfig
438
+ *
439
+ * @param {Object} cfg optional config literal
440
+ */
441
+ // eslint-disable-next-line complexity
442
+ var _parseConfig = function _parseConfig(cfg) {
443
+ if (CONFIG && CONFIG === cfg) {
444
+ return;
445
+ }
446
+
447
+ /* Shield configuration object from tampering */
448
+ if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {
449
+ cfg = {};
450
+ }
451
+
452
+ /* Shield configuration object from prototype pollution */
453
+ cfg = clone(cfg);
454
+
455
+ /* Set configuration parameters */
456
+ ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;
457
+ ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;
458
+ URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;
459
+ DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;
460
+ FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};
461
+ FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};
462
+ USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;
463
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
464
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
465
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
466
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
467
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
468
+ RETURN_DOM = cfg.RETURN_DOM || false; // Default false
469
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
470
+ RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT !== false; // Default true
471
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
472
+ FORCE_BODY = cfg.FORCE_BODY || false; // Default false
473
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
474
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
475
+ IN_PLACE = cfg.IN_PLACE || false; // Default false
476
+ IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;
477
+ if (SAFE_FOR_TEMPLATES) {
478
+ ALLOW_DATA_ATTR = false;
479
+ }
480
+
481
+ if (RETURN_DOM_FRAGMENT) {
482
+ RETURN_DOM = true;
483
+ }
484
+
485
+ /* Parse profile info */
486
+ if (USE_PROFILES) {
487
+ ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));
488
+ ALLOWED_ATTR = [];
489
+ if (USE_PROFILES.html === true) {
490
+ addToSet(ALLOWED_TAGS, html);
491
+ addToSet(ALLOWED_ATTR, html$1);
492
+ }
493
+
494
+ if (USE_PROFILES.svg === true) {
495
+ addToSet(ALLOWED_TAGS, svg);
496
+ addToSet(ALLOWED_ATTR, svg$1);
497
+ addToSet(ALLOWED_ATTR, xml);
498
+ }
499
+
500
+ if (USE_PROFILES.svgFilters === true) {
501
+ addToSet(ALLOWED_TAGS, svgFilters);
502
+ addToSet(ALLOWED_ATTR, svg$1);
503
+ addToSet(ALLOWED_ATTR, xml);
504
+ }
505
+
506
+ if (USE_PROFILES.mathMl === true) {
507
+ addToSet(ALLOWED_TAGS, mathMl);
508
+ addToSet(ALLOWED_ATTR, mathMl$1);
509
+ addToSet(ALLOWED_ATTR, xml);
510
+ }
511
+ }
512
+
513
+ /* Merge configuration parameters */
514
+ if (cfg.ADD_TAGS) {
515
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
516
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
517
+ }
518
+
519
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);
520
+ }
521
+
522
+ if (cfg.ADD_ATTR) {
523
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
524
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
525
+ }
526
+
527
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);
528
+ }
529
+
530
+ if (cfg.ADD_URI_SAFE_ATTR) {
531
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);
532
+ }
533
+
534
+ /* Add #text in case KEEP_CONTENT is set to true */
535
+ if (KEEP_CONTENT) {
536
+ ALLOWED_TAGS['#text'] = true;
537
+ }
538
+
539
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
540
+ if (WHOLE_DOCUMENT) {
541
+ addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
542
+ }
543
+
544
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
545
+ if (ALLOWED_TAGS.table) {
546
+ addToSet(ALLOWED_TAGS, ['tbody']);
547
+ delete FORBID_TAGS.tbody;
548
+ }
549
+
550
+ // Prevent further manipulation of configuration.
551
+ // Not available in IE8, Safari 5, etc.
552
+ if (freeze) {
553
+ freeze(cfg);
554
+ }
555
+
556
+ CONFIG = cfg;
557
+ };
558
+
559
+ var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
560
+
561
+ var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);
562
+
563
+ /* Keep track of all possible SVG and MathML tags
564
+ * so that we can perform the namespace checks
565
+ * correctly. */
566
+ var ALL_SVG_TAGS = addToSet({}, svg);
567
+ addToSet(ALL_SVG_TAGS, svgFilters);
568
+ addToSet(ALL_SVG_TAGS, svgDisallowed);
569
+
570
+ var ALL_MATHML_TAGS = addToSet({}, mathMl);
571
+ addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
572
+
573
+ var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
574
+ var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
575
+ var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
576
+
577
+ /**
578
+ *
579
+ *
580
+ * @param {Element} element a DOM element whose namespace is being checked
581
+ * @returns {boolean} Return false if the element has a
582
+ * namespace that a spec-compliant parser would never
583
+ * return. Return true otherwise.
584
+ */
585
+ var _checkValidNamespace = function _checkValidNamespace(element) {
586
+ var parent = getParentNode(element);
587
+
588
+ // In JSDOM, if we're inside shadow DOM, then parentNode
589
+ // can be null. We just simulate parent in this case.
590
+ if (!parent || !parent.tagName) {
591
+ parent = {
592
+ namespaceURI: HTML_NAMESPACE,
593
+ tagName: 'template'
594
+ };
595
+ }
596
+
597
+ var tagName = stringToLowerCase(element.tagName);
598
+ var parentTagName = stringToLowerCase(parent.tagName);
599
+
600
+ if (element.namespaceURI === SVG_NAMESPACE) {
601
+ // The only way to switch from HTML namespace to SVG
602
+ // is via <svg>. If it happens via any other tag, then
603
+ // it should be killed.
604
+ if (parent.namespaceURI === HTML_NAMESPACE) {
605
+ return tagName === 'svg';
606
+ }
607
+
608
+ // The only way to switch from MathML to SVG is via
609
+ // svg if parent is either <annotation-xml> or MathML
610
+ // text integration points.
611
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
612
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
613
+ }
614
+
615
+ // We only allow elements that are defined in SVG
616
+ // spec. All others are disallowed in SVG namespace.
617
+ return Boolean(ALL_SVG_TAGS[tagName]);
618
+ }
619
+
620
+ if (element.namespaceURI === MATHML_NAMESPACE) {
621
+ // The only way to switch from HTML namespace to MathML
622
+ // is via <math>. If it happens via any other tag, then
623
+ // it should be killed.
624
+ if (parent.namespaceURI === HTML_NAMESPACE) {
625
+ return tagName === 'math';
626
+ }
627
+
628
+ // The only way to switch from SVG to MathML is via
629
+ // <math> and HTML integration points
630
+ if (parent.namespaceURI === SVG_NAMESPACE) {
631
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
632
+ }
633
+
634
+ // We only allow elements that are defined in MathML
635
+ // spec. All others are disallowed in MathML namespace.
636
+ return Boolean(ALL_MATHML_TAGS[tagName]);
637
+ }
638
+
639
+ if (element.namespaceURI === HTML_NAMESPACE) {
640
+ // The only way to switch from SVG to HTML is via
641
+ // HTML integration points, and from MathML to HTML
642
+ // is via MathML text integration points
643
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
644
+ return false;
645
+ }
646
+
647
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
648
+ return false;
649
+ }
650
+
651
+ // Certain elements are allowed in both SVG and HTML
652
+ // namespace. We need to specify them explicitly
653
+ // so that they don't get erronously deleted from
654
+ // HTML namespace.
655
+ var commonSvgAndHTMLElements = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
656
+
657
+ // We disallow tags that are specific for MathML
658
+ // or SVG and should never appear in HTML namespace
659
+ return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);
660
+ }
661
+
662
+ // The code should never reach this place (this means
663
+ // that the element somehow got namespace that is not
664
+ // HTML, SVG or MathML). Return false just in case.
665
+ return false;
666
+ };
667
+
668
+ /**
669
+ * _forceRemove
670
+ *
671
+ * @param {Node} node a DOM node
672
+ */
673
+ var _forceRemove = function _forceRemove(node) {
674
+ arrayPush(DOMPurify.removed, { element: node });
675
+ try {
676
+ node.parentNode.removeChild(node);
677
+ } catch (_) {
678
+ try {
679
+ node.outerHTML = emptyHTML;
680
+ } catch (_) {
681
+ node.remove();
682
+ }
683
+ }
684
+ };
685
+
686
+ /**
687
+ * _removeAttribute
688
+ *
689
+ * @param {String} name an Attribute name
690
+ * @param {Node} node a DOM node
691
+ */
692
+ var _removeAttribute = function _removeAttribute(name, node) {
693
+ try {
694
+ arrayPush(DOMPurify.removed, {
695
+ attribute: node.getAttributeNode(name),
696
+ from: node
697
+ });
698
+ } catch (_) {
699
+ arrayPush(DOMPurify.removed, {
700
+ attribute: null,
701
+ from: node
702
+ });
703
+ }
704
+
705
+ node.removeAttribute(name);
706
+
707
+ // We void attribute values for unremovable "is"" attributes
708
+ if (name === 'is' && !ALLOWED_ATTR[name]) {
709
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
710
+ try {
711
+ _forceRemove(node);
712
+ } catch (_) {}
713
+ } else {
714
+ try {
715
+ node.setAttribute(name, '');
716
+ } catch (_) {}
717
+ }
718
+ }
719
+ };
720
+
721
+ /**
722
+ * _initDocument
723
+ *
724
+ * @param {String} dirty a string of dirty markup
725
+ * @return {Document} a DOM, filled with the dirty markup
726
+ */
727
+ var _initDocument = function _initDocument(dirty) {
728
+ /* Create a HTML document */
729
+ var doc = void 0;
730
+ var leadingWhitespace = void 0;
731
+
732
+ if (FORCE_BODY) {
733
+ dirty = '<remove></remove>' + dirty;
734
+ } else {
735
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
736
+ var matches = stringMatch(dirty, /^[\r\n\t ]+/);
737
+ leadingWhitespace = matches && matches[0];
738
+ }
739
+
740
+ var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
741
+ /* Use the DOMParser API by default, fallback later if needs be */
742
+ try {
743
+ doc = new DOMParser().parseFromString(dirtyPayload, 'text/html');
744
+ } catch (_) {}
745
+
746
+ /* Use createHTMLDocument in case DOMParser is not available */
747
+ if (!doc || !doc.documentElement) {
748
+ doc = implementation.createHTMLDocument('');
749
+ var _doc = doc,
750
+ body = _doc.body;
751
+
752
+ body.parentNode.removeChild(body.parentNode.firstElementChild);
753
+ body.outerHTML = dirtyPayload;
754
+ }
755
+
756
+ if (dirty && leadingWhitespace) {
757
+ doc.body.insertBefore(document.createTextNode(leadingWhitespace), doc.body.childNodes[0] || null);
758
+ }
759
+
760
+ /* Work on whole document or just its body */
761
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
762
+ };
763
+
764
+ /**
765
+ * _createIterator
766
+ *
767
+ * @param {Document} root document/fragment to create iterator for
768
+ * @return {Iterator} iterator instance
769
+ */
770
+ var _createIterator = function _createIterator(root) {
771
+ return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, function () {
772
+ return NodeFilter.FILTER_ACCEPT;
773
+ }, false);
774
+ };
775
+
776
+ /**
777
+ * _isClobbered
778
+ *
779
+ * @param {Node} elm element to check for clobbering attacks
780
+ * @return {Boolean} true if clobbered, false if safe
781
+ */
782
+ var _isClobbered = function _isClobbered(elm) {
783
+ if (elm instanceof Text || elm instanceof Comment) {
784
+ return false;
785
+ }
786
+
787
+ if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function') {
788
+ return true;
789
+ }
790
+
791
+ return false;
792
+ };
793
+
794
+ /**
795
+ * _isNode
796
+ *
797
+ * @param {Node} obj object to check whether it's a DOM node
798
+ * @return {Boolean} true is object is a DOM node
799
+ */
800
+ var _isNode = function _isNode(object) {
801
+ return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';
802
+ };
803
+
804
+ /**
805
+ * _executeHook
806
+ * Execute user configurable hooks
807
+ *
808
+ * @param {String} entryPoint Name of the hook's entry point
809
+ * @param {Node} currentNode node to work on with the hook
810
+ * @param {Object} data additional hook parameters
811
+ */
812
+ var _executeHook = function _executeHook(entryPoint, currentNode, data) {
813
+ if (!hooks[entryPoint]) {
814
+ return;
815
+ }
816
+
817
+ arrayForEach(hooks[entryPoint], function (hook) {
818
+ hook.call(DOMPurify, currentNode, data, CONFIG);
819
+ });
820
+ };
821
+
822
+ /**
823
+ * _sanitizeElements
824
+ *
825
+ * @protect nodeName
826
+ * @protect textContent
827
+ * @protect removeChild
828
+ *
829
+ * @param {Node} currentNode to check for permission to exist
830
+ * @return {Boolean} true if node was killed, false if left alive
831
+ */
832
+ var _sanitizeElements = function _sanitizeElements(currentNode) {
833
+ var content = void 0;
834
+
835
+ /* Execute a hook if present */
836
+ _executeHook('beforeSanitizeElements', currentNode, null);
837
+
838
+ /* Check if element is clobbered or can clobber */
839
+ if (_isClobbered(currentNode)) {
840
+ _forceRemove(currentNode);
841
+ return true;
842
+ }
843
+
844
+ /* Check if tagname contains Unicode */
845
+ if (stringMatch(currentNode.nodeName, /[\u0080-\uFFFF]/)) {
846
+ _forceRemove(currentNode);
847
+ return true;
848
+ }
849
+
850
+ /* Now let's check the element's type and name */
851
+ var tagName = stringToLowerCase(currentNode.nodeName);
852
+
853
+ /* Execute a hook if present */
854
+ _executeHook('uponSanitizeElement', currentNode, {
855
+ tagName: tagName,
856
+ allowedTags: ALLOWED_TAGS
857
+ });
858
+
859
+ /* Detect mXSS attempts abusing namespace confusion */
860
+ if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
861
+ _forceRemove(currentNode);
862
+ return true;
863
+ }
864
+
865
+ /* Remove element if anything forbids its presence */
866
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
867
+ /* Keep content except for bad-listed elements */
868
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
869
+ var parentNode = getParentNode(currentNode);
870
+ var childNodes = getChildNodes(currentNode);
871
+
872
+ if (childNodes && parentNode) {
873
+ var childCount = childNodes.length;
874
+
875
+ for (var i = childCount - 1; i >= 0; --i) {
876
+ parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));
877
+ }
878
+ }
879
+ }
880
+
881
+ _forceRemove(currentNode);
882
+ return true;
883
+ }
884
+
885
+ /* Check whether element has a valid namespace */
886
+ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
887
+ _forceRemove(currentNode);
888
+ return true;
889
+ }
890
+
891
+ if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) {
892
+ _forceRemove(currentNode);
893
+ return true;
894
+ }
895
+
896
+ /* Sanitize element content to be template-safe */
897
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
898
+ /* Get the element's text content */
899
+ content = currentNode.textContent;
900
+ content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');
901
+ content = stringReplace(content, ERB_EXPR$$1, ' ');
902
+ if (currentNode.textContent !== content) {
903
+ arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
904
+ currentNode.textContent = content;
905
+ }
906
+ }
907
+
908
+ /* Execute a hook if present */
909
+ _executeHook('afterSanitizeElements', currentNode, null);
910
+
911
+ return false;
912
+ };
913
+
914
+ /**
915
+ * _isValidAttribute
916
+ *
917
+ * @param {string} lcTag Lowercase tag name of containing element.
918
+ * @param {string} lcName Lowercase attribute name.
919
+ * @param {string} value Attribute value.
920
+ * @return {Boolean} Returns true if `value` is valid, otherwise false.
921
+ */
922
+ // eslint-disable-next-line complexity
923
+ var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
924
+ /* Make sure attribute cannot clobber */
925
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
926
+ return false;
927
+ }
928
+
929
+ /* Allow valid data-* attributes: At least one character after "-"
930
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
931
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
932
+ We don't need to check the value; it's always URI safe. */
933
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
934
+ return false;
935
+
936
+ /* Check value is safe. First, is attr inert? If so, is safe */
937
+ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {
938
+ return false;
939
+ }
940
+
941
+ return true;
942
+ };
943
+
944
+ /**
945
+ * _sanitizeAttributes
946
+ *
947
+ * @protect attributes
948
+ * @protect nodeName
949
+ * @protect removeAttribute
950
+ * @protect setAttribute
951
+ *
952
+ * @param {Node} currentNode to sanitize
953
+ */
954
+ var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
955
+ var attr = void 0;
956
+ var value = void 0;
957
+ var lcName = void 0;
958
+ var l = void 0;
959
+ /* Execute a hook if present */
960
+ _executeHook('beforeSanitizeAttributes', currentNode, null);
961
+
962
+ var attributes = currentNode.attributes;
963
+
964
+ /* Check if we have attributes; if not we might have a text node */
965
+
966
+ if (!attributes) {
967
+ return;
968
+ }
969
+
970
+ var hookEvent = {
971
+ attrName: '',
972
+ attrValue: '',
973
+ keepAttr: true,
974
+ allowedAttributes: ALLOWED_ATTR
975
+ };
976
+ l = attributes.length;
977
+
978
+ /* Go backwards over all attributes; safely remove bad ones */
979
+ while (l--) {
980
+ attr = attributes[l];
981
+ var _attr = attr,
982
+ name = _attr.name,
983
+ namespaceURI = _attr.namespaceURI;
984
+
985
+ value = stringTrim(attr.value);
986
+ lcName = stringToLowerCase(name);
987
+
988
+ /* Execute a hook if present */
989
+ hookEvent.attrName = lcName;
990
+ hookEvent.attrValue = value;
991
+ hookEvent.keepAttr = true;
992
+ hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
993
+ _executeHook('uponSanitizeAttribute', currentNode, hookEvent);
994
+ value = hookEvent.attrValue;
995
+ /* Did the hooks approve of the attribute? */
996
+ if (hookEvent.forceKeepAttr) {
997
+ continue;
998
+ }
999
+
1000
+ /* Remove attribute */
1001
+ _removeAttribute(name, currentNode);
1002
+
1003
+ /* Did the hooks approve of the attribute? */
1004
+ if (!hookEvent.keepAttr) {
1005
+ continue;
1006
+ }
1007
+
1008
+ /* Work around a security issue in jQuery 3.0 */
1009
+ if (regExpTest(/\/>/i, value)) {
1010
+ _removeAttribute(name, currentNode);
1011
+ continue;
1012
+ }
1013
+
1014
+ /* Sanitize attribute content to be template-safe */
1015
+ if (SAFE_FOR_TEMPLATES) {
1016
+ value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');
1017
+ value = stringReplace(value, ERB_EXPR$$1, ' ');
1018
+ }
1019
+
1020
+ /* Is `value` valid for this attribute? */
1021
+ var lcTag = currentNode.nodeName.toLowerCase();
1022
+ if (!_isValidAttribute(lcTag, lcName, value)) {
1023
+ continue;
1024
+ }
1025
+
1026
+ /* Handle invalid data-* attribute set by try-catching it */
1027
+ try {
1028
+ if (namespaceURI) {
1029
+ currentNode.setAttributeNS(namespaceURI, name, value);
1030
+ } else {
1031
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1032
+ currentNode.setAttribute(name, value);
1033
+ }
1034
+
1035
+ arrayPop(DOMPurify.removed);
1036
+ } catch (_) {}
1037
+ }
1038
+
1039
+ /* Execute a hook if present */
1040
+ _executeHook('afterSanitizeAttributes', currentNode, null);
1041
+ };
1042
+
1043
+ /**
1044
+ * _sanitizeShadowDOM
1045
+ *
1046
+ * @param {DocumentFragment} fragment to iterate over recursively
1047
+ */
1048
+ var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
1049
+ var shadowNode = void 0;
1050
+ var shadowIterator = _createIterator(fragment);
1051
+
1052
+ /* Execute a hook if present */
1053
+ _executeHook('beforeSanitizeShadowDOM', fragment, null);
1054
+
1055
+ while (shadowNode = shadowIterator.nextNode()) {
1056
+ /* Execute a hook if present */
1057
+ _executeHook('uponSanitizeShadowNode', shadowNode, null);
1058
+
1059
+ /* Sanitize tags and elements */
1060
+ if (_sanitizeElements(shadowNode)) {
1061
+ continue;
1062
+ }
1063
+
1064
+ /* Deep shadow DOM detected */
1065
+ if (shadowNode.content instanceof DocumentFragment) {
1066
+ _sanitizeShadowDOM(shadowNode.content);
1067
+ }
1068
+
1069
+ /* Check attributes, sanitize if necessary */
1070
+ _sanitizeAttributes(shadowNode);
1071
+ }
1072
+
1073
+ /* Execute a hook if present */
1074
+ _executeHook('afterSanitizeShadowDOM', fragment, null);
1075
+ };
1076
+
1077
+ /**
1078
+ * Sanitize
1079
+ * Public method providing core sanitation functionality
1080
+ *
1081
+ * @param {String|Node} dirty string or DOM node
1082
+ * @param {Object} configuration object
1083
+ */
1084
+ // eslint-disable-next-line complexity
1085
+ DOMPurify.sanitize = function (dirty, cfg) {
1086
+ var body = void 0;
1087
+ var importedNode = void 0;
1088
+ var currentNode = void 0;
1089
+ var oldNode = void 0;
1090
+ var returnNode = void 0;
1091
+ /* Make sure we have a string to sanitize.
1092
+ DO NOT return early, as this will return the wrong type if
1093
+ the user has requested a DOM object rather than a string */
1094
+ if (!dirty) {
1095
+ dirty = '<!-->';
1096
+ }
1097
+
1098
+ /* Stringify, in case dirty is an object */
1099
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
1100
+ // eslint-disable-next-line no-negated-condition
1101
+ if (typeof dirty.toString !== 'function') {
1102
+ throw typeErrorCreate('toString is not a function');
1103
+ } else {
1104
+ dirty = dirty.toString();
1105
+ if (typeof dirty !== 'string') {
1106
+ throw typeErrorCreate('dirty is not a string, aborting');
1107
+ }
1108
+ }
1109
+ }
1110
+
1111
+ /* Check we can run. Otherwise fall back or ignore */
1112
+ if (!DOMPurify.isSupported) {
1113
+ if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {
1114
+ if (typeof dirty === 'string') {
1115
+ return window.toStaticHTML(dirty);
1116
+ }
1117
+
1118
+ if (_isNode(dirty)) {
1119
+ return window.toStaticHTML(dirty.outerHTML);
1120
+ }
1121
+ }
1122
+
1123
+ return dirty;
1124
+ }
1125
+
1126
+ /* Assign config vars */
1127
+ if (!SET_CONFIG) {
1128
+ _parseConfig(cfg);
1129
+ }
1130
+
1131
+ /* Clean up removed elements */
1132
+ DOMPurify.removed = [];
1133
+
1134
+ /* Check if dirty is correctly typed for IN_PLACE */
1135
+ if (typeof dirty === 'string') {
1136
+ IN_PLACE = false;
1137
+ }
1138
+
1139
+ if (IN_PLACE) ; else if (dirty instanceof Node) {
1140
+ /* If dirty is a DOM element, append to an empty document to avoid
1141
+ elements being stripped by the parser */
1142
+ body = _initDocument('<!---->');
1143
+ importedNode = body.ownerDocument.importNode(dirty, true);
1144
+ if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {
1145
+ /* Node is already a body, use as is */
1146
+ body = importedNode;
1147
+ } else if (importedNode.nodeName === 'HTML') {
1148
+ body = importedNode;
1149
+ } else {
1150
+ // eslint-disable-next-line unicorn/prefer-node-append
1151
+ body.appendChild(importedNode);
1152
+ }
1153
+ } else {
1154
+ /* Exit directly if we have nothing to do */
1155
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
1156
+ // eslint-disable-next-line unicorn/prefer-includes
1157
+ dirty.indexOf('<') === -1) {
1158
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
1159
+ }
1160
+
1161
+ /* Initialize the document to work on */
1162
+ body = _initDocument(dirty);
1163
+
1164
+ /* Check we have a DOM node from the data */
1165
+ if (!body) {
1166
+ return RETURN_DOM ? null : emptyHTML;
1167
+ }
1168
+ }
1169
+
1170
+ /* Remove first element node (ours) if FORCE_BODY is set */
1171
+ if (body && FORCE_BODY) {
1172
+ _forceRemove(body.firstChild);
1173
+ }
1174
+
1175
+ /* Get node iterator */
1176
+ var nodeIterator = _createIterator(IN_PLACE ? dirty : body);
1177
+
1178
+ /* Now start iterating over the created document */
1179
+ while (currentNode = nodeIterator.nextNode()) {
1180
+ /* Fix IE's strange behavior with manipulated textNodes #89 */
1181
+ if (currentNode.nodeType === 3 && currentNode === oldNode) {
1182
+ continue;
1183
+ }
1184
+
1185
+ /* Sanitize tags and elements */
1186
+ if (_sanitizeElements(currentNode)) {
1187
+ continue;
1188
+ }
1189
+
1190
+ /* Shadow DOM detected, sanitize it */
1191
+ if (currentNode.content instanceof DocumentFragment) {
1192
+ _sanitizeShadowDOM(currentNode.content);
1193
+ }
1194
+
1195
+ /* Check attributes, sanitize if necessary */
1196
+ _sanitizeAttributes(currentNode);
1197
+
1198
+ oldNode = currentNode;
1199
+ }
1200
+
1201
+ oldNode = null;
1202
+
1203
+ /* If we sanitized `dirty` in-place, return it. */
1204
+ if (IN_PLACE) {
1205
+ return dirty;
1206
+ }
1207
+
1208
+ /* Return sanitized string or DOM */
1209
+ if (RETURN_DOM) {
1210
+ if (RETURN_DOM_FRAGMENT) {
1211
+ returnNode = createDocumentFragment.call(body.ownerDocument);
1212
+
1213
+ while (body.firstChild) {
1214
+ // eslint-disable-next-line unicorn/prefer-node-append
1215
+ returnNode.appendChild(body.firstChild);
1216
+ }
1217
+ } else {
1218
+ returnNode = body;
1219
+ }
1220
+
1221
+ if (RETURN_DOM_IMPORT) {
1222
+ /*
1223
+ AdoptNode() is not used because internal state is not reset
1224
+ (e.g. the past names map of a HTMLFormElement), this is safe
1225
+ in theory but we would rather not risk another attack vector.
1226
+ The state that is cloned by importNode() is explicitly defined
1227
+ by the specs.
1228
+ */
1229
+ returnNode = importNode.call(originalDocument, returnNode, true);
1230
+ }
1231
+
1232
+ return returnNode;
1233
+ }
1234
+
1235
+ var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1236
+
1237
+ /* Sanitize final string template-safe */
1238
+ if (SAFE_FOR_TEMPLATES) {
1239
+ serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');
1240
+ serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');
1241
+ }
1242
+
1243
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
1244
+ };
1245
+
1246
+ /**
1247
+ * Public method to set the configuration once
1248
+ * setConfig
1249
+ *
1250
+ * @param {Object} cfg configuration object
1251
+ */
1252
+ DOMPurify.setConfig = function (cfg) {
1253
+ _parseConfig(cfg);
1254
+ SET_CONFIG = true;
1255
+ };
1256
+
1257
+ /**
1258
+ * Public method to remove the configuration
1259
+ * clearConfig
1260
+ *
1261
+ */
1262
+ DOMPurify.clearConfig = function () {
1263
+ CONFIG = null;
1264
+ SET_CONFIG = false;
1265
+ };
1266
+
1267
+ /**
1268
+ * Public method to check if an attribute value is valid.
1269
+ * Uses last set config, if any. Otherwise, uses config defaults.
1270
+ * isValidAttribute
1271
+ *
1272
+ * @param {string} tag Tag name of containing element.
1273
+ * @param {string} attr Attribute name.
1274
+ * @param {string} value Attribute value.
1275
+ * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.
1276
+ */
1277
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
1278
+ /* Initialize shared config vars if necessary. */
1279
+ if (!CONFIG) {
1280
+ _parseConfig({});
1281
+ }
1282
+
1283
+ var lcTag = stringToLowerCase(tag);
1284
+ var lcName = stringToLowerCase(attr);
1285
+ return _isValidAttribute(lcTag, lcName, value);
1286
+ };
1287
+
1288
+ /**
1289
+ * AddHook
1290
+ * Public method to add DOMPurify hooks
1291
+ *
1292
+ * @param {String} entryPoint entry point for the hook to add
1293
+ * @param {Function} hookFunction function to execute
1294
+ */
1295
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
1296
+ if (typeof hookFunction !== 'function') {
1297
+ return;
1298
+ }
1299
+
1300
+ hooks[entryPoint] = hooks[entryPoint] || [];
1301
+ arrayPush(hooks[entryPoint], hookFunction);
1302
+ };
1303
+
1304
+ /**
1305
+ * RemoveHook
1306
+ * Public method to remove a DOMPurify hook at a given entryPoint
1307
+ * (pops it from the stack of hooks if more are present)
1308
+ *
1309
+ * @param {String} entryPoint entry point for the hook to remove
1310
+ */
1311
+ DOMPurify.removeHook = function (entryPoint) {
1312
+ if (hooks[entryPoint]) {
1313
+ arrayPop(hooks[entryPoint]);
1314
+ }
1315
+ };
1316
+
1317
+ /**
1318
+ * RemoveHooks
1319
+ * Public method to remove all DOMPurify hooks at a given entryPoint
1320
+ *
1321
+ * @param {String} entryPoint entry point for the hooks to remove
1322
+ */
1323
+ DOMPurify.removeHooks = function (entryPoint) {
1324
+ if (hooks[entryPoint]) {
1325
+ hooks[entryPoint] = [];
1326
+ }
1327
+ };
1328
+
1329
+ /**
1330
+ * RemoveAllHooks
1331
+ * Public method to remove all DOMPurify hooks
1332
+ *
1333
+ */
1334
+ DOMPurify.removeAllHooks = function () {
1335
+ hooks = {};
1336
+ };
1337
+
1338
+ return DOMPurify;
1339
+ }
1340
+
1341
+ var purify = createDOMPurify();
1342
+
1343
+ return purify;
1344
+
1345
+ }));
1346
+
1347
+ });
1348
+
1349
+ const purify$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), purify, {
1350
+ 'default': purify
1351
+ }));
1352
+
1353
+ export { purify$1 as p };