@baloise/ds-core 20.0.0-next.10 → 20.0.0-next.11

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 (1748) hide show
  1. package/components/ds-accordion.js +1 -1
  2. package/components/ds-alert-container.js +1 -1
  3. package/components/ds-app-footer.js +1 -1
  4. package/components/ds-app-navbar.js +1 -1
  5. package/components/ds-badge.js +1 -1
  6. package/components/ds-brand-icon.js +1 -1
  7. package/components/ds-button-group.js +1 -1
  8. package/components/ds-button.js +1 -1
  9. package/components/ds-card-actions.js +1 -1
  10. package/components/ds-card-content.js +1 -1
  11. package/components/ds-card-header.js +1 -1
  12. package/components/ds-card-subtitle.js +1 -1
  13. package/components/ds-card-title.js +1 -1
  14. package/components/ds-card.js +1 -1
  15. package/components/ds-carousel.js +1 -1
  16. package/components/ds-checkbox-group.js +1 -1
  17. package/components/ds-checkbox.js +1 -1
  18. package/components/ds-close.js +1 -1
  19. package/components/ds-content.js +1 -1
  20. package/components/ds-counter.js +1 -1
  21. package/components/ds-data-item.js +1 -1
  22. package/components/ds-data-label.js +1 -1
  23. package/components/ds-data-value.js +1 -1
  24. package/components/ds-data.js +1 -1
  25. package/components/ds-datepicker.js +1 -1
  26. package/components/ds-divider.js +1 -1
  27. package/components/ds-drawer.js +1 -1
  28. package/components/ds-file-upload.js +1 -1
  29. package/components/ds-heading.js +1 -1
  30. package/components/ds-hint-text.js +1 -1
  31. package/components/ds-hint-title.js +1 -1
  32. package/components/ds-hint.js +1 -1
  33. package/components/ds-icon.js +1 -1
  34. package/components/ds-input-phone.js +1 -1
  35. package/components/ds-input.js +1 -1
  36. package/components/ds-item.js +1 -1
  37. package/components/ds-label.js +1 -1
  38. package/components/ds-list.js +1 -1
  39. package/components/ds-logo.js +1 -1
  40. package/components/ds-modal-body.js +1 -1
  41. package/components/ds-modal-header.js +1 -1
  42. package/components/ds-modal.js +1 -1
  43. package/components/ds-notification.js +1 -1
  44. package/components/ds-number-input.js +1 -1
  45. package/components/ds-pagination.js +1 -1
  46. package/components/ds-popup.js +1 -1
  47. package/components/ds-progress-bar.js +1 -1
  48. package/components/ds-radio-group.js +1 -1
  49. package/components/ds-radio.js +1 -1
  50. package/components/ds-root.js +1 -1
  51. package/components/ds-segment-item.js +1 -1
  52. package/components/ds-segment.js +1 -1
  53. package/components/ds-select-optgroup.js +1 -1
  54. package/components/ds-select-option.js +1 -1
  55. package/components/ds-select.js +1 -1
  56. package/components/ds-shape.js +1 -1
  57. package/components/ds-sheet.js +1 -1
  58. package/components/ds-slider.js +1 -1
  59. package/components/ds-snackbar.js +1 -1
  60. package/components/ds-spinner.js +1 -1
  61. package/components/ds-stack.js +1 -1
  62. package/components/ds-step-panel.js +1 -1
  63. package/components/ds-step.js +1 -1
  64. package/components/ds-steps.js +1 -1
  65. package/components/ds-tab-panel.js +1 -1
  66. package/components/ds-tabs.js +1 -1
  67. package/components/ds-tag-group.js +1 -1
  68. package/components/ds-tag.js +1 -1
  69. package/components/ds-text.js +1 -1
  70. package/components/ds-textarea.js +1 -1
  71. package/components/ds-toast.js +1 -1
  72. package/components/ds-toggle.js +1 -1
  73. package/components/ds-tooltip.js +1 -1
  74. package/components/index.js +1 -1
  75. package/components/p--lHz7LHt.js +4 -0
  76. package/components/p-969JOO-P.js +4 -0
  77. package/components/p-B8ePrJmu.js +4 -0
  78. package/components/p-BjRmjZLl.js +4 -0
  79. package/components/p-Bpb7oyeB.js +5 -0
  80. package/components/p-BvNfYE1d.js +4 -0
  81. package/components/p-CCZcjYyi.js +4 -0
  82. package/components/p-CcE-lfae.js +4 -0
  83. package/components/p-Cqxk0zrf.js +4 -0
  84. package/components/p-CvR0-1OR.js +4 -0
  85. package/components/p-D5xcWCOJ.js +4 -0
  86. package/components/p-D7y4TSm5.js +5 -0
  87. package/components/p-DH2edJBY.js +4 -0
  88. package/components/p-DS10p3U4.js +4 -0
  89. package/components/p-DxZ-rfGs.js +4 -0
  90. package/components/p-DxfQopAD.js +4 -0
  91. package/components/p-XvusBTPw.js +4 -0
  92. package/components/p-mahwWXn2.js +4 -0
  93. package/components/p-oyOklwcz.js +5 -0
  94. package/components/p-uDKYb4sQ.js +4 -0
  95. package/components/p-wwsneo3e.js +4 -0
  96. package/components/p-yDxcfq5h.js +4 -0
  97. package/dist/cjs/array-BLkdw464.js +25 -0
  98. package/dist/cjs/breakpoints.decorator-Bb2joxtH.js +22 -0
  99. package/dist/cjs/breakpoints.subject-5q3_3VmC.js +284 -0
  100. package/dist/cjs/config.utils-DCs-qJCq.js +148 -0
  101. package/dist/cjs/create-validator-decorator-C4BA-l0Q.js +212 -0
  102. package/dist/cjs/design-system.cjs.js +2 -2
  103. package/dist/cjs/device-DzT8Jy_P.js +57 -0
  104. package/dist/cjs/dom-CPxHYIDv.js +14 -0
  105. package/dist/cjs/ds-accordion.cjs.entry.js +11 -11
  106. package/dist/cjs/ds-alert-container.cjs.entry.js +8 -8
  107. package/dist/cjs/ds-app-footer.cjs.entry.js +8 -8
  108. package/dist/cjs/ds-app-navbar.cjs.entry.js +17 -17
  109. package/dist/cjs/ds-badge.cjs.entry.js +8 -8
  110. package/dist/cjs/ds-brand-icon_3.cjs.entry.js +13 -13
  111. package/dist/cjs/ds-button-group.cjs.entry.js +8 -8
  112. package/dist/cjs/ds-card-actions.cjs.entry.js +5 -5
  113. package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
  114. package/dist/cjs/ds-card-header.cjs.entry.js +6 -6
  115. package/dist/cjs/ds-card-subtitle.cjs.entry.js +9 -9
  116. package/dist/cjs/ds-card-title.cjs.entry.js +7 -7
  117. package/dist/cjs/ds-card.cjs.entry.js +9 -9
  118. package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
  119. package/dist/cjs/ds-carousel.cjs.entry.js +15 -14
  120. package/dist/cjs/ds-checkbox-group.cjs.entry.js +17 -16
  121. package/dist/cjs/ds-checkbox.cjs.entry.js +14 -13
  122. package/dist/cjs/ds-content_2.cjs.entry.js +10 -10
  123. package/dist/cjs/ds-counter.cjs.entry.js +52 -12
  124. package/dist/cjs/ds-data-item.cjs.entry.js +7 -7
  125. package/dist/cjs/ds-data-label.cjs.entry.js +5 -5
  126. package/dist/cjs/ds-data-value.cjs.entry.js +3 -3
  127. package/dist/cjs/ds-data.cjs.entry.js +6 -6
  128. package/dist/cjs/ds-datepicker.cjs.entry.js +13 -12
  129. package/dist/cjs/ds-divider_2.cjs.entry.js +15 -15
  130. package/dist/cjs/ds-drawer_2.cjs.entry.js +11 -11
  131. package/dist/cjs/ds-file-upload.cjs.entry.js +15 -14
  132. package/dist/cjs/ds-heading.cjs.entry.js +8 -8
  133. package/dist/cjs/ds-hint-text.cjs.entry.js +3 -3
  134. package/dist/cjs/ds-hint-title.cjs.entry.js +3 -3
  135. package/dist/cjs/ds-hint.cjs.entry.js +11 -11
  136. package/dist/cjs/ds-icon_2.cjs.entry.js +14 -14
  137. package/dist/cjs/ds-input-phone.cjs.entry.js +13 -12
  138. package/dist/cjs/ds-input.cjs.entry.js +13 -12
  139. package/dist/cjs/ds-item.cjs.entry.js +8 -8
  140. package/dist/cjs/ds-label.cjs.entry.js +9 -9
  141. package/dist/cjs/ds-list.cjs.entry.js +7 -7
  142. package/dist/cjs/ds-modal-body.cjs.entry.js +3 -3
  143. package/dist/cjs/ds-modal-header.cjs.entry.js +3 -3
  144. package/dist/cjs/ds-modal.cjs.entry.js +8 -8
  145. package/dist/cjs/ds-notification.cjs.entry.js +12 -11
  146. package/dist/cjs/ds-number-input.cjs.entry.js +15 -14
  147. package/dist/cjs/ds-pagination.cjs.entry.js +16 -16
  148. package/dist/cjs/ds-progress-bar.cjs.entry.js +13 -13
  149. package/dist/cjs/ds-radio-group.cjs.entry.js +16 -15
  150. package/dist/cjs/ds-radio.cjs.entry.js +11 -11
  151. package/dist/cjs/ds-root.cjs.entry.js +11 -11
  152. package/dist/cjs/ds-segment-item.cjs.entry.js +5 -5
  153. package/dist/cjs/ds-segment.cjs.entry.js +17 -16
  154. package/dist/cjs/ds-select-optgroup.cjs.entry.js +5 -5
  155. package/dist/cjs/ds-select-option.cjs.entry.js +5 -5
  156. package/dist/cjs/ds-select.cjs.entry.js +22 -13
  157. package/dist/cjs/ds-shape.cjs.entry.js +5 -5
  158. package/dist/cjs/ds-sheet.cjs.entry.js +6 -6
  159. package/dist/cjs/ds-slider.cjs.entry.js +16 -14
  160. package/dist/cjs/ds-snackbar.cjs.entry.js +15 -15
  161. package/dist/cjs/ds-step-panel.cjs.entry.js +6 -6
  162. package/dist/cjs/ds-step.cjs.entry.js +5 -5
  163. package/dist/cjs/ds-steps.cjs.entry.js +9 -8
  164. package/dist/cjs/ds-tab-panel.cjs.entry.js +6 -6
  165. package/dist/cjs/ds-tab.cjs.entry.js +5 -5
  166. package/dist/cjs/ds-tabs.cjs.entry.js +14 -13
  167. package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
  168. package/dist/cjs/ds-tag.cjs.entry.js +8 -8
  169. package/dist/cjs/ds-text.cjs.entry.js +9 -9
  170. package/dist/cjs/ds-textarea.cjs.entry.js +11 -10
  171. package/dist/cjs/ds-toast.cjs.entry.js +13 -21
  172. package/dist/cjs/ds-toggle.cjs.entry.js +11 -10
  173. package/dist/cjs/ds-tooltip.cjs.entry.js +7 -7
  174. package/dist/cjs/field.util-eBnmJNBK.js +19 -0
  175. package/dist/cjs/focus-CQPlKX45.js +1958 -0
  176. package/dist/cjs/form-control-DSel6gP-.js +131 -0
  177. package/dist/cjs/has-value-CnygFgyg.js +12 -0
  178. package/dist/cjs/index-NTRiwz5O.js +7864 -0
  179. package/dist/cjs/index.cjs.js +6 -6
  180. package/dist/cjs/invalid-text-slot-D_fJ9XCX.js +39 -0
  181. package/dist/cjs/isNaN-IIpdS7oH.js +105 -0
  182. package/dist/cjs/isNil-CB9gi3c4.js +46 -0
  183. package/dist/cjs/listener-D8KLaDvy.js +92 -0
  184. package/dist/cjs/loader.cjs.js +2 -2
  185. package/dist/cjs/logo.animation-BBQpQlWB.js +2610 -0
  186. package/dist/cjs/lottie_light_html-SJ6i8hj4.js +13651 -0
  187. package/dist/cjs/one-of-Maip98c6.js +30 -0
  188. package/dist/cjs/required-CPhwWuV4.js +38 -0
  189. package/dist/cjs/resize.decorator-WFmbV4im.js +98 -0
  190. package/dist/cjs/scroll-DL8b2hGh.js +93 -0
  191. package/dist/cjs/spinner.animation-BeatLeZQ.js +2605 -0
  192. package/dist/cjs/svg-D4xRC7if.js +2744 -0
  193. package/dist/cjs/tslib.es6-JZhzHA9W.js +117 -0
  194. package/dist/cjs/type-xjbuaDB_.js +33 -0
  195. package/dist/collection/collection-manifest.json +75 -75
  196. package/dist/collection/components/actions/button/button-group/button-group.js +181 -0
  197. package/dist/collection/components/actions/button/button.interfaces.js +25 -0
  198. package/dist/collection/components/actions/button/button.js +1104 -0
  199. package/dist/collection/components/actions/button/test/button-group.visual.play.js +29 -0
  200. package/dist/collection/components/actions/button/test/button.a11y.play.js +32 -0
  201. package/dist/collection/components/actions/button/test/button.component.play.js +32 -0
  202. package/dist/collection/components/actions/button/test/button.ssr.play.js +22 -0
  203. package/dist/collection/components/actions/button/test/button.visual.play.js +48 -0
  204. package/dist/collection/components/actions/close/close.js +294 -0
  205. package/dist/collection/components/actions/close/test/close.a11y.play.js +12 -0
  206. package/dist/collection/components/actions/close/test/close.component.play.js +20 -0
  207. package/dist/collection/components/actions/close/test/close.ssr.play.js +12 -0
  208. package/dist/collection/components/actions/close/test/close.visual.play.js +16 -0
  209. package/dist/collection/components/actions/link/test/link.a11y.play.js +8 -0
  210. package/dist/collection/components/actions/link/test/link.visual.play.js +16 -0
  211. package/dist/collection/components/forms/checkbox/checkbox-group/checkbox-group.js +1019 -0
  212. package/dist/collection/components/forms/checkbox/checkbox.js +727 -0
  213. package/dist/collection/components/forms/checkbox/test/checkbox.a11y.play.js +36 -0
  214. package/dist/collection/components/forms/checkbox/test/checkbox.component.play.js +157 -0
  215. package/dist/collection/components/forms/checkbox/test/checkbox.ssr.play.js +21 -0
  216. package/dist/collection/components/forms/checkbox/test/checkbox.visual.play.js +62 -0
  217. package/dist/collection/components/forms/counter/counter.host.css +1 -0
  218. package/dist/collection/components/forms/counter/counter.js +989 -0
  219. package/dist/collection/components/forms/counter/test/counter.a11y.play.js +44 -0
  220. package/dist/collection/components/forms/counter/test/counter.component.play.js +177 -0
  221. package/dist/collection/components/forms/counter/test/counter.ssr.play.js +12 -0
  222. package/dist/collection/components/forms/counter/test/counter.visual.play.js +30 -0
  223. package/dist/collection/components/forms/datepicker/datepicker.js +1361 -0
  224. package/dist/collection/components/forms/datepicker/datepicker.picker.js +531 -0
  225. package/dist/collection/components/forms/datepicker/test/datepicker.a11y.play.js +32 -0
  226. package/dist/collection/components/forms/datepicker/test/datepicker.component.play.js +180 -0
  227. package/dist/collection/components/forms/datepicker/test/datepicker.ssr.play.js +12 -0
  228. package/dist/collection/components/forms/datepicker/test/datepicker.visual.play.js +50 -0
  229. package/dist/collection/components/forms/file-upload/file-upload.js +1043 -0
  230. package/dist/collection/components/forms/file-upload/test/file-upload.a11y.play.js +52 -0
  231. package/dist/collection/components/forms/file-upload/test/file-upload.component.play.js +153 -0
  232. package/dist/collection/components/forms/file-upload/test/file-upload.ssr.play.js +12 -0
  233. package/dist/collection/components/forms/file-upload/test/file-upload.visual.play.js +27 -0
  234. package/dist/collection/components/forms/form/test/form.visual.play.js +28 -0
  235. package/dist/collection/components/forms/input/field.util.js +14 -0
  236. package/dist/collection/components/forms/input/input.js +1360 -0
  237. package/dist/collection/components/forms/input/masks/basic-contract-number.js +58 -0
  238. package/dist/collection/components/forms/input/masks/be-enterprise-number.js +48 -0
  239. package/dist/collection/components/forms/input/masks/be-iban.js +55 -0
  240. package/dist/collection/components/forms/input/masks/claim-number.js +59 -0
  241. package/dist/collection/components/forms/input/masks/contract-number.js +59 -0
  242. package/dist/collection/components/forms/input/masks/offer-number.js +55 -0
  243. package/dist/collection/components/forms/input/masks/vehicle-registration-number.js +55 -0
  244. package/dist/collection/components/forms/input/test/input.a11y.play.js +32 -0
  245. package/dist/collection/components/forms/input/test/input.component.play.js +119 -0
  246. package/dist/collection/components/forms/input/test/input.ssr.play.js +12 -0
  247. package/dist/collection/components/forms/input/test/input.visual.play.js +44 -0
  248. package/dist/collection/components/forms/input-phone/input-phone.js +1177 -0
  249. package/dist/collection/components/forms/input-phone/test/input-phone.a11y.play.js +80 -0
  250. package/dist/collection/components/forms/input-phone/test/input-phone.component.play.js +259 -0
  251. package/dist/collection/components/forms/input-phone/test/input-phone.ssr.play.js +12 -0
  252. package/dist/collection/components/forms/input-phone/test/input-phone.visual.play.js +58 -0
  253. package/dist/collection/components/forms/label/label.js +356 -0
  254. package/dist/collection/components/forms/label/test/label.a11y.play.js +30 -0
  255. package/dist/collection/components/forms/label/test/label.component.play.js +14 -0
  256. package/dist/collection/components/forms/label/test/label.ssr.play.js +13 -0
  257. package/dist/collection/components/forms/label/test/label.visual.play.js +31 -0
  258. package/dist/collection/components/forms/number-input/number-input.js +1096 -0
  259. package/dist/collection/components/forms/number-input/number-input.utils.js +109 -0
  260. package/dist/collection/components/forms/number-input/test/number-input.a11y.play.js +32 -0
  261. package/dist/collection/components/forms/number-input/test/number-input.component.play.js +119 -0
  262. package/dist/collection/components/forms/number-input/test/number-input.ssr.play.js +12 -0
  263. package/dist/collection/components/forms/number-input/test/number-input.visual.play.js +18 -0
  264. package/dist/collection/components/forms/radio/radio-group/radio-group.js +1076 -0
  265. package/dist/collection/components/forms/radio/radio.js +886 -0
  266. package/dist/collection/components/forms/radio/test/radio.a11y.play.js +37 -0
  267. package/dist/collection/components/forms/radio/test/radio.component.play.js +158 -0
  268. package/dist/collection/components/forms/radio/test/radio.ssr.play.js +21 -0
  269. package/dist/collection/components/forms/radio/test/radio.visual.play.js +62 -0
  270. package/dist/collection/components/forms/segment/segment/segment.js +883 -0
  271. package/dist/collection/components/forms/segment/segment-item.js +216 -0
  272. package/dist/collection/components/forms/segment/test/segment.a11y.play.js +37 -0
  273. package/dist/collection/components/forms/segment/test/segment.component.play.js +117 -0
  274. package/dist/collection/components/forms/segment/test/segment.ssr.play.js +16 -0
  275. package/dist/collection/components/forms/segment/test/segment.visual.play.js +51 -0
  276. package/dist/collection/components/forms/select/select-optgroup.js +82 -0
  277. package/dist/collection/components/forms/select/select-option.js +112 -0
  278. package/dist/collection/components/forms/select/select.js +1051 -0
  279. package/dist/collection/components/forms/select/test/select.a11y.play.js +81 -0
  280. package/dist/collection/components/forms/select/test/select.component.play.js +197 -0
  281. package/dist/collection/components/forms/select/test/select.ssr.play.js +21 -0
  282. package/dist/collection/components/forms/select/test/select.visual.play.js +70 -0
  283. package/dist/collection/components/forms/slider/slider.js +977 -0
  284. package/dist/collection/components/forms/slider/test/slider.a11y.play.js +36 -0
  285. package/dist/collection/components/forms/slider/test/slider.component.play.js +127 -0
  286. package/dist/collection/components/forms/slider/test/slider.ssr.play.js +12 -0
  287. package/dist/collection/components/forms/slider/test/slider.visual.play.js +28 -0
  288. package/dist/collection/components/forms/textarea/test/textarea.a11y.play.js +32 -0
  289. package/dist/collection/components/forms/textarea/test/textarea.component.play.js +58 -0
  290. package/dist/collection/components/forms/textarea/test/textarea.ssr.play.js +12 -0
  291. package/dist/collection/components/forms/textarea/test/textarea.visual.play.js +29 -0
  292. package/dist/collection/components/forms/textarea/textarea.js +1028 -0
  293. package/dist/collection/components/forms/time-input/test/time-input.visual.play.js +18 -0
  294. package/dist/collection/components/forms/toggle/test/toggle.a11y.play.js +28 -0
  295. package/dist/collection/components/forms/toggle/test/toggle.component.play.js +90 -0
  296. package/dist/collection/components/forms/toggle/test/toggle.ssr.play.js +12 -0
  297. package/dist/collection/components/forms/toggle/test/toggle.visual.play.js +30 -0
  298. package/dist/collection/components/forms/toggle/toggle.js +514 -0
  299. package/dist/collection/components/indicators/badge/badge.js +206 -0
  300. package/dist/collection/components/indicators/badge/test/badge.a11y.play.js +17 -0
  301. package/dist/collection/components/indicators/badge/test/badge.component.play.js +22 -0
  302. package/dist/collection/components/indicators/badge/test/badge.ssr.play.js +13 -0
  303. package/dist/collection/components/indicators/badge/test/badge.visual.play.js +16 -0
  304. package/dist/collection/components/indicators/hint/hint-text/hint-text.js +32 -0
  305. package/dist/collection/components/indicators/hint/hint-title/hint-title.js +35 -0
  306. package/dist/collection/components/indicators/hint/hint.js +414 -0
  307. package/dist/collection/components/indicators/hint/test/hint.a11y.play.js +41 -0
  308. package/dist/collection/components/indicators/hint/test/hint.component.play.js +110 -0
  309. package/dist/collection/components/indicators/hint/test/hint.ssr.play.js +17 -0
  310. package/dist/collection/components/indicators/hint/test/hint.visual.play.js +39 -0
  311. package/dist/collection/components/indicators/progress-bar/progress-bar.js +274 -0
  312. package/dist/collection/components/indicators/progress-bar/test/progress-bar.a11y.play.js +8 -0
  313. package/dist/collection/components/indicators/progress-bar/test/progress-bar.ssr.play.js +11 -0
  314. package/dist/collection/components/indicators/progress-bar/test/progress-bar.visual.play.js +16 -0
  315. package/dist/collection/components/indicators/spinner/spinner.js +430 -0
  316. package/dist/collection/components/indicators/spinner/test/spinner.a11y.play.js +8 -0
  317. package/dist/collection/components/indicators/spinner/test/spinner.ssr.play.js +12 -0
  318. package/dist/collection/components/indicators/spinner/test/spinner.visual.play.js +16 -0
  319. package/dist/collection/components/indicators/tag/tag-group/tag-group.js +42 -0
  320. package/dist/collection/components/indicators/tag/tag.js +268 -0
  321. package/dist/collection/components/indicators/tag/test/tag.a11y.play.js +42 -0
  322. package/dist/collection/components/indicators/tag/test/tag.component.play.js +22 -0
  323. package/dist/collection/components/indicators/tag/test/tag.ssr.play.js +22 -0
  324. package/dist/collection/components/indicators/tag/test/tag.visual.play.js +29 -0
  325. package/dist/collection/components/media/brand-icon/brand-icon.js +293 -0
  326. package/dist/collection/components/media/brand-icon/test/brand-icon.component.play.js +26 -0
  327. package/dist/collection/components/media/brand-icon/test/brand-icon.ssr.play.js +12 -0
  328. package/dist/collection/components/media/brand-icon/test/brand-icon.visual.play.js +16 -0
  329. package/dist/collection/components/media/icon/icon.host.css +1 -0
  330. package/dist/collection/components/media/icon/icon.js +481 -0
  331. package/dist/collection/components/media/icon/test/icon.a11y.play.js +8 -0
  332. package/dist/collection/components/media/icon/test/icon.component.play.js +35 -0
  333. package/dist/collection/components/media/icon/test/icon.ssr.play.js +12 -0
  334. package/dist/collection/components/media/icon/test/icon.visual.play.js +16 -0
  335. package/dist/collection/components/media/logo/logo.js +347 -0
  336. package/dist/collection/components/media/logo/test/logo.a11y.play.js +8 -0
  337. package/dist/collection/components/media/logo/test/logo.component.play.js +13 -0
  338. package/dist/collection/components/media/logo/test/logo.ssr.play.js +12 -0
  339. package/dist/collection/components/media/logo/test/logo.visual.play.js +16 -0
  340. package/dist/collection/components/media/shape/shape.js +160 -0
  341. package/dist/collection/components/media/shape/test/shape.component.play.js +13 -0
  342. package/dist/collection/components/media/shape/test/shape.ssr.play.js +12 -0
  343. package/dist/collection/components/media/shape/test/shape.visual.play.js +16 -0
  344. package/dist/collection/components/navigation/app-navbar/app-navbar.interfaces.js +6 -0
  345. package/dist/collection/components/navigation/app-navbar/app-navbar.js +538 -0
  346. package/dist/collection/components/navigation/app-navbar/test/app-navbar.a11y.play.js +27 -0
  347. package/dist/collection/components/navigation/app-navbar/test/app-navbar.component.play.js +76 -0
  348. package/dist/collection/components/navigation/app-navbar/test/app-navbar.ssr.play.js +17 -0
  349. package/dist/collection/components/navigation/app-navbar/test/app-navbar.visual.play.js +14 -0
  350. package/dist/collection/components/navigation/pagination/pagination.js +625 -0
  351. package/dist/collection/components/navigation/pagination/test/pagination.a11y.play.js +32 -0
  352. package/dist/collection/components/navigation/pagination/test/pagination.component.play.js +98 -0
  353. package/dist/collection/components/navigation/pagination/test/pagination.ssr.play.js +12 -0
  354. package/dist/collection/components/navigation/pagination/test/pagination.visual.play.js +18 -0
  355. package/dist/collection/components/navigation/steps/step/step.js +431 -0
  356. package/dist/collection/components/navigation/steps/step-panel/step-panel.js +104 -0
  357. package/dist/collection/components/navigation/steps/steps/steps.js +343 -0
  358. package/dist/collection/components/navigation/steps/test/steps.a11y.play.js +73 -0
  359. package/dist/collection/components/navigation/steps/test/steps.component.play.js +210 -0
  360. package/dist/collection/components/navigation/steps/test/steps.ssr.play.js +19 -0
  361. package/dist/collection/components/navigation/steps/test/steps.visual.play.js +18 -0
  362. package/dist/collection/components/navigation/tabs/tab/tab.js +278 -0
  363. package/dist/collection/components/navigation/tabs/tab-panel/tab-panel.js +104 -0
  364. package/dist/collection/components/navigation/tabs/tabs/tabs.js +551 -0
  365. package/dist/collection/components/navigation/tabs/test/tabs.a11y.play.js +60 -0
  366. package/dist/collection/components/navigation/tabs/test/tabs.component.play.js +129 -0
  367. package/dist/collection/components/navigation/tabs/test/tabs.ssr.play.js +19 -0
  368. package/dist/collection/components/navigation/tabs/test/tabs.visual.play.js +31 -0
  369. package/dist/collection/components/overlays/alert/alert-container.js +320 -0
  370. package/dist/collection/components/overlays/alert/alert.controller.js +43 -0
  371. package/dist/collection/components/overlays/alert/snackbar/snackbar.js +636 -0
  372. package/dist/collection/components/overlays/alert/test/alert.visual.play.js +65 -0
  373. package/dist/collection/components/overlays/alert/test/snackbar.a11y.play.js +18 -0
  374. package/dist/collection/components/overlays/alert/test/snackbar.component.play.js +29 -0
  375. package/dist/collection/components/overlays/alert/test/snackbar.ssr.play.js +22 -0
  376. package/dist/collection/components/overlays/alert/test/snackbar.visual.play.js +26 -0
  377. package/dist/collection/components/overlays/alert/test/toast.a11y.play.js +17 -0
  378. package/dist/collection/components/overlays/alert/test/toast.visual.play.js +16 -0
  379. package/dist/collection/components/overlays/alert/toast/toast.js +741 -0
  380. package/dist/collection/components/overlays/drawer/drawer.js +492 -0
  381. package/dist/collection/components/overlays/drawer/test/drawer.a11y.play.js +39 -0
  382. package/dist/collection/components/overlays/drawer/test/drawer.component.play.js +131 -0
  383. package/dist/collection/components/overlays/drawer/test/drawer.ssr.play.js +16 -0
  384. package/dist/collection/components/overlays/drawer/test/drawer.visual.play.js +31 -0
  385. package/dist/collection/components/overlays/modal/modal-body/modal-body.js +45 -0
  386. package/dist/collection/components/overlays/modal/modal-header/modal-header.js +36 -0
  387. package/dist/collection/components/overlays/modal/modal.controller.js +35 -0
  388. package/dist/collection/components/overlays/modal/modal.js +463 -0
  389. package/dist/collection/components/overlays/modal/test/modal.a11y.play.js +59 -0
  390. package/dist/collection/components/overlays/modal/test/modal.component.play.js +196 -0
  391. package/dist/collection/components/overlays/modal/test/modal.ssr.play.js +17 -0
  392. package/dist/collection/components/overlays/modal/test/modal.visual.play.js +36 -0
  393. package/dist/collection/components/overlays/notification/notification.js +361 -0
  394. package/dist/collection/components/overlays/notification/test/notification.a11y.play.js +28 -0
  395. package/dist/collection/components/overlays/notification/test/notification.component.play.js +23 -0
  396. package/dist/collection/components/overlays/notification/test/notification.ssr.play.js +13 -0
  397. package/dist/collection/components/overlays/notification/test/notification.visual.play.js +29 -0
  398. package/dist/collection/components/overlays/popup/popup.js +869 -0
  399. package/dist/collection/components/overlays/popup/test/popup.a11y.play.js +50 -0
  400. package/dist/collection/components/overlays/popup/test/popup.component.play.js +168 -0
  401. package/dist/collection/components/overlays/popup/test/popup.ssr.play.js +17 -0
  402. package/dist/collection/components/overlays/popup/test/popup.visual.play.js +33 -0
  403. package/dist/collection/components/overlays/sheet/sheet.js +85 -0
  404. package/dist/collection/components/overlays/sheet/test/sheet.a11y.play.js +32 -0
  405. package/dist/collection/components/overlays/sheet/test/sheet.component.play.js +65 -0
  406. package/dist/collection/components/overlays/sheet/test/sheet.ssr.play.js +13 -0
  407. package/dist/collection/components/overlays/sheet/test/sheet.visual.play.js +18 -0
  408. package/dist/collection/components/overlays/tooltip/test/tooltip.a11y.play.js +32 -0
  409. package/dist/collection/components/overlays/tooltip/test/tooltip.component.play.js +51 -0
  410. package/dist/collection/components/overlays/tooltip/test/tooltip.ssr.play.js +15 -0
  411. package/dist/collection/components/overlays/tooltip/test/tooltip.visual.play.js +16 -0
  412. package/dist/collection/components/overlays/tooltip/tooltip.host.css +1 -0
  413. package/dist/collection/components/overlays/tooltip/tooltip.js +423 -0
  414. package/dist/collection/components/structure/accordion/accordion.js +704 -0
  415. package/dist/collection/components/structure/accordion/test/accordion.a11y.play.js +20 -0
  416. package/dist/collection/components/structure/accordion/test/accordion.component.play.js +65 -0
  417. package/dist/collection/components/structure/accordion/test/accordion.ssr.play.js +17 -0
  418. package/dist/collection/components/structure/accordion/test/accordion.visual.play.js +32 -0
  419. package/dist/collection/components/structure/app-footer/app-footer.js +342 -0
  420. package/dist/collection/components/structure/app-footer/test/app-footer.a11y.play.js +17 -0
  421. package/dist/collection/components/structure/app-footer/test/app-footer.component.play.js +74 -0
  422. package/dist/collection/components/structure/app-footer/test/app-footer.ssr.play.js +16 -0
  423. package/dist/collection/components/structure/app-footer/test/app-footer.visual.play.js +16 -0
  424. package/dist/collection/components/structure/card/card-actions/card-actions.js +68 -0
  425. package/dist/collection/components/structure/card/card-content/card-content.js +43 -0
  426. package/dist/collection/components/structure/card/card-header/card-header.js +90 -0
  427. package/dist/collection/components/structure/card/card-subtitle/card-subtitle.js +147 -0
  428. package/dist/collection/components/structure/card/card-title/card-title.js +148 -0
  429. package/dist/collection/components/structure/card/card.js +410 -0
  430. package/dist/collection/components/structure/card/test/card.a11y.play.js +84 -0
  431. package/dist/collection/components/structure/card/test/card.component.play.js +65 -0
  432. package/dist/collection/components/structure/card/test/card.ssr.play.js +33 -0
  433. package/dist/collection/components/structure/card/test/card.visual.play.js +39 -0
  434. package/dist/collection/components/structure/carousel/carousel/carousel.js +692 -0
  435. package/dist/collection/components/structure/carousel/carousel-item/carousel-item.js +300 -0
  436. package/dist/collection/components/structure/carousel/test/carousel.a11y.play.js +35 -0
  437. package/dist/collection/components/structure/carousel/test/carousel.component.play.js +57 -0
  438. package/dist/collection/components/structure/carousel/test/carousel.ssr.play.js +16 -0
  439. package/dist/collection/components/structure/carousel/test/carousel.visual.play.js +24 -0
  440. package/dist/collection/components/structure/container/test/container.visual.play.js +16 -0
  441. package/dist/collection/components/structure/content/content.js +260 -0
  442. package/dist/collection/components/structure/content/test/content.component.play.js +14 -0
  443. package/dist/collection/components/structure/content/test/content.ssr.play.js +13 -0
  444. package/dist/collection/components/structure/content/test/content.visual.play.js +29 -0
  445. package/dist/collection/components/structure/data/data-item.js +244 -0
  446. package/dist/collection/components/structure/data/data-label.js +72 -0
  447. package/dist/collection/components/structure/data/data-value.js +38 -0
  448. package/dist/collection/components/structure/data/data.js +75 -0
  449. package/dist/collection/components/structure/data/test/data.a11y.play.js +32 -0
  450. package/dist/collection/components/structure/data/test/data.component.play.js +104 -0
  451. package/dist/collection/components/structure/data/test/data.ssr.play.js +19 -0
  452. package/dist/collection/components/structure/data/test/data.visual.play.js +25 -0
  453. package/dist/collection/components/structure/divider/divider.js +193 -0
  454. package/dist/collection/components/structure/divider/test/divider.a11y.play.js +31 -0
  455. package/dist/collection/components/structure/divider/test/divider.component.play.js +13 -0
  456. package/dist/collection/components/structure/divider/test/divider.ssr.play.js +12 -0
  457. package/dist/collection/components/structure/divider/test/divider.visual.play.js +29 -0
  458. package/dist/collection/components/structure/grid/test/grid.visual.play.js +25 -0
  459. package/dist/collection/components/structure/heading/heading.js +418 -0
  460. package/dist/collection/components/structure/heading/test/heading.a11y.play.js +41 -0
  461. package/dist/collection/components/structure/heading/test/heading.component.play.js +14 -0
  462. package/dist/collection/components/structure/heading/test/heading.ssr.play.js +13 -0
  463. package/dist/collection/components/structure/heading/test/heading.visual.play.js +29 -0
  464. package/dist/collection/components/structure/list/item/item.js +733 -0
  465. package/dist/collection/components/structure/list/list.js +145 -0
  466. package/dist/collection/components/structure/list/test/list-native.visual.play.js +15 -0
  467. package/dist/collection/components/structure/list/test/list.component.play.js +61 -0
  468. package/dist/collection/components/structure/list/test/list.ssr.play.js +18 -0
  469. package/dist/collection/components/structure/list/test/list.visual.play.js +30 -0
  470. package/dist/collection/components/structure/root/root.js +876 -0
  471. package/dist/collection/components/structure/root/test/root.component.play.js +238 -0
  472. package/dist/collection/components/structure/root/test/root.ssr.play.js +13 -0
  473. package/dist/collection/components/structure/stack/stack.js +411 -0
  474. package/dist/collection/components/structure/stack/test/stack.component.play.js +14 -0
  475. package/dist/collection/components/structure/stack/test/stack.ssr.play.js +13 -0
  476. package/dist/collection/components/structure/stack/test/stack.visual.play.js +44 -0
  477. package/dist/collection/components/structure/table/test/table.visual.play.js +16 -0
  478. package/dist/collection/components/structure/text/test/text.a11y.play.js +40 -0
  479. package/dist/collection/components/structure/text/test/text.component.play.js +14 -0
  480. package/dist/collection/components/structure/text/test/text.ssr.play.js +13 -0
  481. package/dist/collection/components/structure/text/test/text.visual.play.js +40 -0
  482. package/dist/collection/components/structure/text/text.js +439 -0
  483. package/dist/collection/global/constants/version.constant.js +1 -1
  484. package/dist/collection/global/initialize.js +2 -2
  485. package/dist/collection/index.js +9 -9
  486. package/dist/collection/utils/dom.js +9 -0
  487. package/dist/collection/utils/form-control.js +12 -2
  488. package/dist/collection/utils/index.js +1 -0
  489. package/dist/collection/utils/invalid-text-slot.js +8 -5
  490. package/dist/collection/utils/scroll.js +8 -4
  491. package/dist/collection/utils/svg.js +5 -1
  492. package/dist/design-system/design-system.esm.js +1 -1
  493. package/dist/design-system/index.esm.js +1 -1
  494. package/dist/design-system/p-02cec19abc.entry.js +4 -0
  495. package/dist/design-system/p-08310c30a4.entry.js +4 -0
  496. package/dist/design-system/p-0fd4d514c5.entry.js +4 -0
  497. package/dist/design-system/p-1173c66664.entry.js +4 -0
  498. package/dist/design-system/p-121ca8f971.entry.js +4 -0
  499. package/dist/design-system/p-1871ccf907.entry.js +4 -0
  500. package/dist/design-system/p-1e569c482f.entry.js +4 -0
  501. package/dist/design-system/p-221a9b580c.entry.js +4 -0
  502. package/dist/design-system/p-228c7ea1e2.entry.js +4 -0
  503. package/dist/design-system/p-25cd8f36cd.entry.js +4 -0
  504. package/dist/design-system/p-270aebfa09.entry.js +4 -0
  505. package/dist/design-system/p-2d792092e0.entry.js +4 -0
  506. package/dist/design-system/p-31e027aac8.entry.js +4 -0
  507. package/dist/design-system/p-3a9747c951.entry.js +4 -0
  508. package/dist/design-system/p-3bbfb06268.entry.js +4 -0
  509. package/dist/design-system/p-3bec90da09.entry.js +4 -0
  510. package/dist/design-system/p-3ee15ee98d.entry.js +4 -0
  511. package/dist/design-system/p-464e9a634b.entry.js +4 -0
  512. package/dist/design-system/p-47a6dc8d06.entry.js +4 -0
  513. package/dist/design-system/p-486130c34c.entry.js +4 -0
  514. package/dist/design-system/p-4b8996e66f.entry.js +4 -0
  515. package/dist/design-system/p-4bfde56112.entry.js +4 -0
  516. package/dist/design-system/p-4c9302de98.entry.js +4 -0
  517. package/dist/design-system/p-51cf36e7ff.entry.js +4 -0
  518. package/dist/design-system/p-553215604a.entry.js +4 -0
  519. package/dist/design-system/p-561a436f82.entry.js +4 -0
  520. package/dist/design-system/p-56257e2856.entry.js +4 -0
  521. package/dist/design-system/p-5635427ff8.entry.js +4 -0
  522. package/dist/design-system/p-5847453cd5.entry.js +4 -0
  523. package/dist/design-system/p-64424bea46.entry.js +4 -0
  524. package/dist/design-system/p-667bf8ed3a.entry.js +4 -0
  525. package/dist/design-system/p-6ae1cffa9a.entry.js +4 -0
  526. package/dist/design-system/p-6d8a8f7076.entry.js +4 -0
  527. package/dist/design-system/p-6dafcc313f.entry.js +4 -0
  528. package/dist/design-system/p-6f348de504.entry.js +4 -0
  529. package/dist/design-system/p-728ae1f621.entry.js +4 -0
  530. package/dist/design-system/p-75e0250836.entry.js +4 -0
  531. package/dist/design-system/p-7a5f9d305c.entry.js +4 -0
  532. package/dist/design-system/p-7e9e4075b0.entry.js +4 -0
  533. package/dist/design-system/p-856f567570.entry.js +4 -0
  534. package/dist/design-system/p-85dfc1c756.entry.js +4 -0
  535. package/dist/design-system/p-862ca0488c.entry.js +4 -0
  536. package/dist/design-system/p-89fabc6013.entry.js +4 -0
  537. package/dist/design-system/p-8ff9ce5416.entry.js +4 -0
  538. package/dist/design-system/p-9094d56bab.entry.js +4 -0
  539. package/dist/design-system/p-959b5338a6.entry.js +4 -0
  540. package/dist/design-system/p-966f40f6cf.entry.js +4 -0
  541. package/dist/design-system/p-969JOO-P.js +4 -0
  542. package/dist/design-system/p-96aef58c17.entry.js +4 -0
  543. package/dist/design-system/p-9932051f3e.entry.js +4 -0
  544. package/dist/design-system/p-9cec692e9f.entry.js +4 -0
  545. package/dist/design-system/p-B7mBNKMT.js +4 -0
  546. package/dist/design-system/p-B8TmUwRu.js +4 -0
  547. package/dist/design-system/p-BKh0Vkl1.js +4 -0
  548. package/dist/design-system/p-BMKTRh5p.js +4 -0
  549. package/dist/design-system/p-BUqqUp-r.js +4 -0
  550. package/dist/design-system/p-B_GE_aHN.js +4 -0
  551. package/dist/design-system/p-Bm_jsWv8.js +4 -0
  552. package/dist/design-system/p-BvNfYE1d.js +4 -0
  553. package/dist/design-system/p-Bw8JQ-9n.js +4 -0
  554. package/dist/design-system/p-C4x_tAIC.js +4 -0
  555. package/dist/design-system/p-CNqH2mE-.js +4 -0
  556. package/dist/design-system/p-CZJ32hZb.js +4 -0
  557. package/dist/design-system/p-Ciy8Z0QT.js +4 -0
  558. package/dist/design-system/p-CnwtEwKG.js +4 -0
  559. package/dist/design-system/p-Cy9j3Fev.js +4 -0
  560. package/dist/design-system/p-D7y4TSm5.js +5 -0
  561. package/dist/design-system/p-DJ2Pimd2.js +14 -0
  562. package/dist/design-system/p-DKLpQJYH.js +4 -0
  563. package/dist/design-system/p-DUF2uMuK.js +4 -0
  564. package/dist/design-system/p-DgAuNSoV.js +4 -0
  565. package/dist/design-system/p-Dx9AKVXh.js +4 -0
  566. package/dist/design-system/p-DxEN1zze.js +6 -0
  567. package/dist/design-system/p-JXoY2RpA.js +4 -0
  568. package/dist/design-system/p-Xula5_E9.js +4 -0
  569. package/dist/design-system/p-ZG7-AWt8.js +4 -0
  570. package/dist/design-system/p-a3c8eb7821.entry.js +4 -0
  571. package/dist/design-system/p-a6288b1239.entry.js +4 -0
  572. package/dist/design-system/p-ac1ecd7950.entry.js +4 -0
  573. package/dist/design-system/p-b339ecca1c.entry.js +4 -0
  574. package/dist/design-system/p-b660899c3a.entry.js +4 -0
  575. package/dist/design-system/p-b67ae5126a.entry.js +4 -0
  576. package/dist/design-system/p-b6c06da686.entry.js +4 -0
  577. package/dist/design-system/p-bb555a3033.entry.js +4 -0
  578. package/dist/design-system/p-bc087ec408.entry.js +4 -0
  579. package/dist/design-system/p-cbe2820343.entry.js +4 -0
  580. package/dist/design-system/p-d16f264c0b.entry.js +4 -0
  581. package/dist/design-system/p-d34009f900.entry.js +4 -0
  582. package/dist/design-system/p-d3c7a7e967.entry.js +4 -0
  583. package/dist/design-system/p-d8c362c21f.entry.js +4 -0
  584. package/dist/design-system/p-dded738638.entry.js +4 -0
  585. package/dist/design-system/p-e401998af1.entry.js +4 -0
  586. package/dist/design-system/p-f9771c0502.entry.js +4 -0
  587. package/dist/design-system/p-fb7871f395.entry.js +4 -0
  588. package/dist/design-system/p-ff290ae85b.entry.js +4 -0
  589. package/dist/esm/array-BuADVVBi.js +23 -0
  590. package/dist/esm/breakpoints.decorator-BVrXmMXt.js +20 -0
  591. package/dist/esm/breakpoints.subject-Dft-o__O.js +269 -0
  592. package/dist/esm/config.utils-RtLdZ8k8.js +129 -0
  593. package/dist/esm/create-validator-decorator-Da-m3zPX.js +208 -0
  594. package/dist/esm/design-system.js +3 -3
  595. package/dist/esm/device-DNizTY2o.js +54 -0
  596. package/dist/esm/dom-969JOO-P.js +11 -0
  597. package/dist/esm/ds-accordion.entry.js +11 -11
  598. package/dist/esm/ds-alert-container.entry.js +8 -8
  599. package/dist/esm/ds-app-footer.entry.js +8 -8
  600. package/dist/esm/ds-app-navbar.entry.js +17 -17
  601. package/dist/esm/ds-badge.entry.js +8 -8
  602. package/dist/esm/ds-brand-icon_3.entry.js +13 -13
  603. package/dist/esm/ds-button-group.entry.js +8 -8
  604. package/dist/esm/ds-card-actions.entry.js +5 -5
  605. package/dist/esm/ds-card-content.entry.js +3 -3
  606. package/dist/esm/ds-card-header.entry.js +6 -6
  607. package/dist/esm/ds-card-subtitle.entry.js +9 -9
  608. package/dist/esm/ds-card-title.entry.js +7 -7
  609. package/dist/esm/ds-card.entry.js +9 -9
  610. package/dist/esm/ds-carousel-item.entry.js +6 -6
  611. package/dist/esm/ds-carousel.entry.js +15 -14
  612. package/dist/esm/ds-checkbox-group.entry.js +17 -16
  613. package/dist/esm/ds-checkbox.entry.js +14 -13
  614. package/dist/esm/ds-content_2.entry.js +10 -10
  615. package/dist/esm/ds-counter.entry.js +52 -12
  616. package/dist/esm/ds-data-item.entry.js +7 -7
  617. package/dist/esm/ds-data-label.entry.js +5 -5
  618. package/dist/esm/ds-data-value.entry.js +3 -3
  619. package/dist/esm/ds-data.entry.js +6 -6
  620. package/dist/esm/ds-datepicker.entry.js +13 -12
  621. package/dist/esm/ds-divider_2.entry.js +15 -15
  622. package/dist/esm/ds-drawer_2.entry.js +11 -11
  623. package/dist/esm/ds-file-upload.entry.js +15 -14
  624. package/dist/esm/ds-heading.entry.js +8 -8
  625. package/dist/esm/ds-hint-text.entry.js +3 -3
  626. package/dist/esm/ds-hint-title.entry.js +3 -3
  627. package/dist/esm/ds-hint.entry.js +11 -11
  628. package/dist/esm/ds-icon_2.entry.js +14 -14
  629. package/dist/esm/ds-input-phone.entry.js +13 -12
  630. package/dist/esm/ds-input.entry.js +13 -12
  631. package/dist/esm/ds-item.entry.js +8 -8
  632. package/dist/esm/ds-label.entry.js +9 -9
  633. package/dist/esm/ds-list.entry.js +7 -7
  634. package/dist/esm/ds-modal-body.entry.js +3 -3
  635. package/dist/esm/ds-modal-header.entry.js +3 -3
  636. package/dist/esm/ds-modal.entry.js +8 -8
  637. package/dist/esm/ds-notification.entry.js +12 -11
  638. package/dist/esm/ds-number-input.entry.js +15 -14
  639. package/dist/esm/ds-pagination.entry.js +16 -16
  640. package/dist/esm/ds-progress-bar.entry.js +13 -13
  641. package/dist/esm/ds-radio-group.entry.js +16 -15
  642. package/dist/esm/ds-radio.entry.js +11 -11
  643. package/dist/esm/ds-root.entry.js +11 -11
  644. package/dist/esm/ds-segment-item.entry.js +5 -5
  645. package/dist/esm/ds-segment.entry.js +17 -16
  646. package/dist/esm/ds-select-optgroup.entry.js +5 -5
  647. package/dist/esm/ds-select-option.entry.js +5 -5
  648. package/dist/esm/ds-select.entry.js +22 -13
  649. package/dist/esm/ds-shape.entry.js +5 -5
  650. package/dist/esm/ds-sheet.entry.js +6 -6
  651. package/dist/esm/ds-slider.entry.js +16 -14
  652. package/dist/esm/ds-snackbar.entry.js +15 -15
  653. package/dist/esm/ds-step-panel.entry.js +6 -6
  654. package/dist/esm/ds-step.entry.js +5 -5
  655. package/dist/esm/ds-steps.entry.js +9 -8
  656. package/dist/esm/ds-tab-panel.entry.js +6 -6
  657. package/dist/esm/ds-tab.entry.js +5 -5
  658. package/dist/esm/ds-tabs.entry.js +14 -13
  659. package/dist/esm/ds-tag-group.entry.js +3 -3
  660. package/dist/esm/ds-tag.entry.js +8 -8
  661. package/dist/esm/ds-text.entry.js +9 -9
  662. package/dist/esm/ds-textarea.entry.js +11 -10
  663. package/dist/esm/ds-toast.entry.js +13 -21
  664. package/dist/esm/ds-toggle.entry.js +11 -10
  665. package/dist/esm/ds-tooltip.entry.js +7 -7
  666. package/dist/esm/field.util-DmVa8E0M.js +17 -0
  667. package/dist/esm/focus-CQdRWMQM.js +1956 -0
  668. package/dist/esm/form-control-RKlnnjxO.js +127 -0
  669. package/dist/esm/has-value-uy_-jH0L.js +10 -0
  670. package/dist/esm/index-DxEN1zze.js +7786 -0
  671. package/dist/esm/index.js +8 -8
  672. package/dist/esm/invalid-text-slot-DamnLE0v.js +37 -0
  673. package/dist/esm/isNaN-B9kO8LAw.js +103 -0
  674. package/dist/esm/isNil-DxRbUK54.js +44 -0
  675. package/dist/esm/listener-CAqZogmy.js +88 -0
  676. package/dist/esm/loader.js +3 -3
  677. package/dist/esm/logo.animation-8yIYvVix.js +2608 -0
  678. package/dist/esm/lottie_light_html-CqMVCLHG.js +13648 -0
  679. package/dist/esm/one-of-dTNN7cqg.js +28 -0
  680. package/dist/esm/required-CSFFkdXm.js +36 -0
  681. package/dist/esm/resize.decorator-ylONZx9a.js +96 -0
  682. package/dist/esm/scroll-BQR4AN2V.js +91 -0
  683. package/dist/esm/spinner.animation-C2JtTvoK.js +2603 -0
  684. package/dist/esm/svg-D7y4TSm5.js +2741 -0
  685. package/dist/esm/tslib.es6-CoU9H0PW.js +113 -0
  686. package/dist/esm/type-3Im_fSnq.js +31 -0
  687. package/dist/types/components/actions/button/button-group/button-group.d.ts +41 -0
  688. package/dist/types/components/actions/button/button.d.ts +192 -0
  689. package/dist/types/components/actions/button/button.interfaces.d.ts +35 -0
  690. package/dist/types/components/actions/close/close.d.ts +59 -0
  691. package/dist/types/components/actions/close/close.i18n.d.ts +6 -0
  692. package/dist/types/components/forms/checkbox/checkbox-group/checkbox-group.d.ts +173 -0
  693. package/dist/types/components/forms/checkbox/checkbox.d.ts +137 -0
  694. package/dist/types/components/forms/counter/counter.d.ts +202 -0
  695. package/dist/types/components/forms/counter/counter.i18n.d.ts +6 -0
  696. package/dist/types/components/forms/datepicker/datepicker.d.ts +234 -0
  697. package/dist/types/components/forms/datepicker/datepicker.i18n.d.ts +13 -0
  698. package/dist/types/components/forms/datepicker/datepicker.mask.d.ts +43 -0
  699. package/dist/types/components/forms/datepicker/datepicker.picker.d.ts +67 -0
  700. package/dist/types/components/forms/file-upload/file-upload.d.ts +196 -0
  701. package/dist/types/components/forms/file-upload/file-upload.i18n.d.ts +8 -0
  702. package/dist/types/components/forms/input/clear-button.i18n.d.ts +6 -0
  703. package/dist/types/components/forms/input/clear-button.util.d.ts +10 -0
  704. package/dist/types/components/forms/input/field.util.d.ts +22 -0
  705. package/dist/types/components/forms/input/input.d.ts +251 -0
  706. package/dist/types/components/forms/input/trigger-button.i18n.d.ts +7 -0
  707. package/dist/types/components/forms/input-phone/input-phone.d.ts +213 -0
  708. package/dist/types/components/forms/input-phone/input-phone.i18n.d.ts +9 -0
  709. package/dist/types/components/forms/label/label.d.ts +72 -0
  710. package/dist/types/components/forms/label/label.i18n.d.ts +6 -0
  711. package/dist/types/components/forms/number-input/number-input.d.ts +203 -0
  712. package/dist/types/components/forms/radio/radio-group/radio-group.d.ts +185 -0
  713. package/dist/types/components/forms/radio/radio.d.ts +168 -0
  714. package/dist/types/components/forms/segment/segment/segment.d.ts +168 -0
  715. package/dist/types/components/forms/segment/segment-item.d.ts +63 -0
  716. package/dist/types/components/forms/select/select-optgroup.d.ts +28 -0
  717. package/dist/types/components/forms/select/select-option.d.ts +34 -0
  718. package/dist/types/components/forms/select/select.d.ts +202 -0
  719. package/dist/types/components/forms/select/select.i18n.d.ts +7 -0
  720. package/dist/types/components/forms/select/select.picker.d.ts +63 -0
  721. package/dist/types/components/forms/slider/slider.d.ts +191 -0
  722. package/dist/types/components/forms/textarea/textarea.d.ts +195 -0
  723. package/dist/types/components/forms/toggle/toggle.d.ts +110 -0
  724. package/dist/types/components/indicators/badge/badge.d.ts +45 -0
  725. package/dist/types/components/indicators/hint/hint-text/hint-text.d.ts +19 -0
  726. package/dist/types/components/indicators/hint/hint-title/hint-title.d.ts +20 -0
  727. package/dist/types/components/indicators/hint/hint.d.ts +91 -0
  728. package/dist/types/components/indicators/hint/hint.i18n.d.ts +6 -0
  729. package/dist/types/components/indicators/progress-bar/progress-bar.d.ts +64 -0
  730. package/dist/types/components/indicators/progress-bar/progress-bar.i18n.d.ts +6 -0
  731. package/dist/types/components/indicators/spinner/spinner.d.ts +80 -0
  732. package/dist/types/components/indicators/spinner/spinner.i18n.d.ts +6 -0
  733. package/dist/types/components/indicators/tag/tag-group/tag-group.d.ts +18 -0
  734. package/dist/types/components/indicators/tag/tag.d.ts +59 -0
  735. package/dist/types/components/media/brand-icon/brand-icon.d.ts +64 -0
  736. package/dist/types/components/media/icon/icon.d.ts +90 -0
  737. package/dist/types/components/media/logo/logo.d.ts +78 -0
  738. package/dist/types/components/media/logo/logo.icons.d.ts +9 -0
  739. package/dist/types/components/media/shape/shape.d.ts +36 -0
  740. package/dist/types/components/navigation/app-navbar/app-navbar.d.ts +128 -0
  741. package/dist/types/components/navigation/app-navbar/app-navbar.i18n.d.ts +9 -0
  742. package/dist/types/components/navigation/pagination/pagination.d.ts +111 -0
  743. package/dist/types/components/navigation/pagination/pagination.i18n.d.ts +8 -0
  744. package/dist/types/components/navigation/steps/step/step.d.ts +89 -0
  745. package/dist/types/components/navigation/steps/step-panel/step-panel.d.ts +34 -0
  746. package/dist/types/components/navigation/steps/steps/steps.d.ts +77 -0
  747. package/dist/types/components/navigation/tabs/tab/tab.d.ts +67 -0
  748. package/dist/types/components/navigation/tabs/tab-panel/tab-panel.d.ts +34 -0
  749. package/dist/types/components/navigation/tabs/tabs/tabs.d.ts +105 -0
  750. package/dist/types/components/navigation/tabs/tabs/tabs.i18n.d.ts +7 -0
  751. package/dist/types/components/overlays/alert/alert-container.d.ts +61 -0
  752. package/dist/types/components/overlays/alert/alert-container.interfaces.d.ts +24 -0
  753. package/dist/types/components/overlays/alert/snackbar/snackbar.d.ts +133 -0
  754. package/dist/types/components/overlays/alert/toast/toast.d.ts +146 -0
  755. package/dist/types/components/overlays/drawer/drawer.d.ts +102 -0
  756. package/dist/types/components/overlays/modal/modal-body/modal-body.d.ts +19 -0
  757. package/dist/types/components/overlays/modal/modal-header/modal-header.d.ts +21 -0
  758. package/dist/types/components/overlays/modal/modal.d.ts +99 -0
  759. package/dist/types/components/overlays/notification/notification.d.ts +85 -0
  760. package/dist/types/components/overlays/popup/popup.d.ts +152 -0
  761. package/dist/types/components/overlays/sheet/sheet.d.ts +30 -0
  762. package/dist/types/components/overlays/tooltip/test/tooltip.visual.play.d.ts +1 -0
  763. package/dist/types/components/overlays/tooltip/tooltip.d.ts +85 -0
  764. package/dist/types/components/structure/accordion/accordion.d.ts +128 -0
  765. package/dist/types/components/structure/accordion/test/accordion.a11y.play.d.ts +1 -0
  766. package/dist/types/components/structure/accordion/test/accordion.component.play.d.ts +1 -0
  767. package/dist/types/components/structure/accordion/test/accordion.ssr.play.d.ts +1 -0
  768. package/dist/types/components/structure/accordion/test/accordion.visual.play.d.ts +1 -0
  769. package/dist/types/components/structure/app-footer/app-footer.d.ts +84 -0
  770. package/dist/types/components/structure/app-footer/app-footer.i18n.d.ts +7 -0
  771. package/dist/types/components/structure/app-footer/test/app-footer.a11y.play.d.ts +1 -0
  772. package/dist/types/components/structure/app-footer/test/app-footer.component.play.d.ts +1 -0
  773. package/dist/types/components/structure/app-footer/test/app-footer.ssr.play.d.ts +1 -0
  774. package/dist/types/components/structure/app-footer/test/app-footer.visual.play.d.ts +1 -0
  775. package/dist/types/components/structure/card/card-actions/card-actions.d.ts +28 -0
  776. package/dist/types/components/structure/card/card-content/card-content.d.ts +19 -0
  777. package/dist/types/components/structure/card/card-header/card-header.d.ts +28 -0
  778. package/dist/types/components/structure/card/card-subtitle/card-subtitle.d.ts +36 -0
  779. package/dist/types/components/structure/card/card-title/card-title.d.ts +38 -0
  780. package/dist/types/components/structure/card/card.d.ts +72 -0
  781. package/dist/types/components/structure/card/card.interfaces.d.ts +17 -0
  782. package/dist/types/components/structure/card/test/card.a11y.play.d.ts +1 -0
  783. package/dist/types/components/structure/card/test/card.component.play.d.ts +1 -0
  784. package/dist/types/components/structure/card/test/card.ssr.play.d.ts +1 -0
  785. package/dist/types/components/structure/card/test/card.visual.play.d.ts +1 -0
  786. package/dist/types/components/structure/carousel/carousel/carousel.d.ts +123 -0
  787. package/dist/types/components/structure/carousel/carousel/carousel.i18n.d.ts +9 -0
  788. package/dist/types/components/structure/carousel/carousel-item/carousel-item.d.ts +66 -0
  789. package/dist/types/components/structure/carousel/test/carousel.a11y.play.d.ts +1 -0
  790. package/dist/types/components/structure/carousel/test/carousel.component.play.d.ts +1 -0
  791. package/dist/types/components/structure/carousel/test/carousel.ssr.play.d.ts +1 -0
  792. package/dist/types/components/structure/carousel/test/carousel.visual.play.d.ts +1 -0
  793. package/dist/types/components/structure/container/test/container.visual.play.d.ts +1 -0
  794. package/dist/types/components/structure/content/content.d.ts +52 -0
  795. package/dist/types/components/structure/content/test/content.component.play.d.ts +1 -0
  796. package/dist/types/components/structure/content/test/content.ssr.play.d.ts +1 -0
  797. package/dist/types/components/structure/content/test/content.visual.play.d.ts +1 -0
  798. package/dist/types/components/structure/data/data-item.d.ts +43 -0
  799. package/dist/types/components/structure/data/data-item.i18n.d.ts +6 -0
  800. package/dist/types/components/structure/data/data-label.d.ts +19 -0
  801. package/dist/types/components/structure/data/data-value.d.ts +15 -0
  802. package/dist/types/components/structure/data/data.d.ts +19 -0
  803. package/dist/types/components/structure/data/test/data.a11y.play.d.ts +1 -0
  804. package/dist/types/components/structure/data/test/data.component.play.d.ts +1 -0
  805. package/dist/types/components/structure/data/test/data.ssr.play.d.ts +1 -0
  806. package/dist/types/components/structure/data/test/data.visual.play.d.ts +1 -0
  807. package/dist/types/components/structure/divider/divider.d.ts +40 -0
  808. package/dist/types/components/structure/divider/test/divider.a11y.play.d.ts +1 -0
  809. package/dist/types/components/structure/divider/test/divider.component.play.d.ts +1 -0
  810. package/dist/types/components/structure/divider/test/divider.ssr.play.d.ts +1 -0
  811. package/dist/types/components/structure/divider/test/divider.visual.play.d.ts +1 -0
  812. package/dist/types/components/structure/grid/test/grid.visual.play.d.ts +1 -0
  813. package/dist/types/components/structure/heading/heading.d.ts +85 -0
  814. package/dist/types/components/structure/heading/test/heading.a11y.play.d.ts +1 -0
  815. package/dist/types/components/structure/heading/test/heading.component.play.d.ts +1 -0
  816. package/dist/types/components/structure/heading/test/heading.ssr.play.d.ts +1 -0
  817. package/dist/types/components/structure/heading/test/heading.visual.play.d.ts +1 -0
  818. package/dist/types/components/structure/list/item/item.d.ts +132 -0
  819. package/dist/types/components/structure/list/list.d.ts +41 -0
  820. package/dist/types/components/structure/list/test/list-native.visual.play.d.ts +1 -0
  821. package/dist/types/components/structure/list/test/list.component.play.d.ts +1 -0
  822. package/dist/types/components/structure/list/test/list.ssr.play.d.ts +1 -0
  823. package/dist/types/components/structure/list/test/list.visual.play.d.ts +1 -0
  824. package/dist/types/components/structure/root/root.d.ts +152 -0
  825. package/dist/types/components/structure/root/test/root.component.play.d.ts +1 -0
  826. package/dist/types/components/structure/root/test/root.ssr.play.d.ts +1 -0
  827. package/dist/types/components/structure/stack/stack.d.ts +72 -0
  828. package/dist/types/components/structure/stack/test/stack.component.play.d.ts +1 -0
  829. package/dist/types/components/structure/stack/test/stack.ssr.play.d.ts +1 -0
  830. package/dist/types/components/structure/stack/test/stack.visual.play.d.ts +1 -0
  831. package/dist/types/components/structure/table/test/table.visual.play.d.ts +1 -0
  832. package/dist/types/components/structure/text/test/text.a11y.play.d.ts +1 -0
  833. package/dist/types/components/structure/text/test/text.component.play.d.ts +1 -0
  834. package/dist/types/components/structure/text/test/text.ssr.play.d.ts +1 -0
  835. package/dist/types/components/structure/text/test/text.visual.play.d.ts +1 -0
  836. package/dist/types/components/structure/text/text.d.ts +78 -0
  837. package/dist/types/components.d.ts +94 -94
  838. package/dist/types/global/config/config.types.d.ts +1 -1
  839. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/index.d.ts +1 -0
  840. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/mount-ssr.d.ts +23 -0
  841. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/mount.d.ts +1 -0
  842. package/dist/types/hydrate.d.ts +21 -0
  843. package/dist/types/index.d.ts +9 -9
  844. package/dist/types/utils/dom.d.ts +6 -0
  845. package/dist/types/utils/form-control.d.ts +8 -0
  846. package/dist/types/utils/index.d.ts +1 -0
  847. package/docs/cem.json +84 -84
  848. package/docs/components.json +952 -2982
  849. package/docs/html.html-data.json +75 -75
  850. package/docs/visual-pages.json +79 -79
  851. package/hydrate/index.js +336 -276
  852. package/hydrate/index.mjs +336 -276
  853. package/package.json +5 -5
  854. package/sbom.cdx.json +10450 -8632
  855. package/components/p-B5CqWYLV.js +0 -4
  856. package/components/p-B7_ufoOC.js +0 -4
  857. package/components/p-BIJq74uJ.js +0 -4
  858. package/components/p-BRVmctrW.js +0 -4
  859. package/components/p-Bcp_wCH3.js +0 -4
  860. package/components/p-BiC9O5XT.js +0 -4
  861. package/components/p-BxX78Fro.js +0 -4
  862. package/components/p-C4ZDDS_m.js +0 -4
  863. package/components/p-C971cVzE.js +0 -5
  864. package/components/p-CBu_QEKB.js +0 -4
  865. package/components/p-CDnfw_B6.js +0 -4
  866. package/components/p-CK_UnOFM.js +0 -4
  867. package/components/p-CN5nsQSG.js +0 -4
  868. package/components/p-CQ-B_pAe.js +0 -4
  869. package/components/p-ClFVspSC.js +0 -5
  870. package/components/p-Cx0PHUcE.js +0 -4
  871. package/components/p-DTldskay.js +0 -5
  872. package/components/p-Dcf7YMP0.js +0 -4
  873. package/components/p-LWV6sif8.js +0 -4
  874. package/components/p-R7F7VS9F.js +0 -4
  875. package/components/p-hW5PhZ5d.js +0 -4
  876. package/dist/cjs/array-Cgvxbusk.js +0 -25
  877. package/dist/cjs/breakpoints.decorator-LnHu4AA-.js +0 -22
  878. package/dist/cjs/breakpoints.subject-CFibnYcR.js +0 -284
  879. package/dist/cjs/config.utils-B4mCijIx.js +0 -148
  880. package/dist/cjs/create-validator-decorator-BQRnK-zG.js +0 -212
  881. package/dist/cjs/device-BAXxh6Rd.js +0 -57
  882. package/dist/cjs/field.util-cPS6JUpa.js +0 -19
  883. package/dist/cjs/focus-BvX6ka9H.js +0 -1958
  884. package/dist/cjs/form-control-CMLNa-jP.js +0 -120
  885. package/dist/cjs/has-value-jsQ_XPV1.js +0 -12
  886. package/dist/cjs/index-Bra7vxQ-.js +0 -7872
  887. package/dist/cjs/invalid-text-slot-DCqojm_q.js +0 -35
  888. package/dist/cjs/isNaN-BsjhIwfg.js +0 -105
  889. package/dist/cjs/isNil-vWTxCDwP.js +0 -46
  890. package/dist/cjs/listener-BsqaYzlf.js +0 -92
  891. package/dist/cjs/logo.animation-C4Dk6DSG.js +0 -2610
  892. package/dist/cjs/lottie_light_html-CWir80mx.js +0 -13651
  893. package/dist/cjs/one-of-GU-CalY9.js +0 -30
  894. package/dist/cjs/required-D3zhSp-O.js +0 -38
  895. package/dist/cjs/resize.decorator-VXdIt_gl.js +0 -98
  896. package/dist/cjs/scroll-CUj4eCY9.js +0 -89
  897. package/dist/cjs/spinner.animation-8udogCY1.js +0 -2605
  898. package/dist/cjs/svg-oviDioAC.js +0 -2740
  899. package/dist/cjs/tslib.es6-Cx0A1PKk.js +0 -117
  900. package/dist/cjs/type-ekmQVouB.js +0 -33
  901. package/dist/collection/components/accordion/accordion.js +0 -704
  902. package/dist/collection/components/accordion/test/accordion.a11y.play.js +0 -20
  903. package/dist/collection/components/accordion/test/accordion.component.play.js +0 -65
  904. package/dist/collection/components/accordion/test/accordion.visual.play.js +0 -32
  905. package/dist/collection/components/alert/alert-container.js +0 -320
  906. package/dist/collection/components/alert/alert.controller.js +0 -43
  907. package/dist/collection/components/alert/snackbar/snackbar.js +0 -636
  908. package/dist/collection/components/alert/test/alert.visual.play.js +0 -65
  909. package/dist/collection/components/alert/test/snackbar.a11y.play.js +0 -18
  910. package/dist/collection/components/alert/test/snackbar.component.play.js +0 -29
  911. package/dist/collection/components/alert/test/snackbar.visual.play.js +0 -26
  912. package/dist/collection/components/alert/test/toast.a11y.play.js +0 -17
  913. package/dist/collection/components/alert/test/toast.visual.play.js +0 -16
  914. package/dist/collection/components/alert/toast/toast.js +0 -749
  915. package/dist/collection/components/app-footer/app-footer.js +0 -342
  916. package/dist/collection/components/app-footer/test/app-footer.a11y.play.js +0 -17
  917. package/dist/collection/components/app-footer/test/app-footer.component.play.js +0 -74
  918. package/dist/collection/components/app-footer/test/app-footer.visual.play.js +0 -16
  919. package/dist/collection/components/app-navbar/app-navbar.interfaces.js +0 -6
  920. package/dist/collection/components/app-navbar/app-navbar.js +0 -538
  921. package/dist/collection/components/app-navbar/test/app-navbar.a11y.play.js +0 -27
  922. package/dist/collection/components/app-navbar/test/app-navbar.component.play.js +0 -76
  923. package/dist/collection/components/app-navbar/test/app-navbar.visual.play.js +0 -14
  924. package/dist/collection/components/badge/badge.js +0 -206
  925. package/dist/collection/components/badge/test/badge.a11y.play.js +0 -17
  926. package/dist/collection/components/badge/test/badge.component.play.js +0 -22
  927. package/dist/collection/components/badge/test/badge.visual.play.js +0 -16
  928. package/dist/collection/components/brand-icon/brand-icon.js +0 -293
  929. package/dist/collection/components/brand-icon/test/brand-icon.component.play.js +0 -26
  930. package/dist/collection/components/brand-icon/test/brand-icon.visual.play.js +0 -16
  931. package/dist/collection/components/button/button-group/button-group.js +0 -181
  932. package/dist/collection/components/button/button.interfaces.js +0 -25
  933. package/dist/collection/components/button/button.js +0 -1104
  934. package/dist/collection/components/button/test/button-group.visual.play.js +0 -29
  935. package/dist/collection/components/button/test/button.a11y.play.js +0 -32
  936. package/dist/collection/components/button/test/button.component.play.js +0 -32
  937. package/dist/collection/components/button/test/button.visual.play.js +0 -48
  938. package/dist/collection/components/card/card-actions/card-actions.js +0 -68
  939. package/dist/collection/components/card/card-content/card-content.js +0 -43
  940. package/dist/collection/components/card/card-header/card-header.js +0 -90
  941. package/dist/collection/components/card/card-subtitle/card-subtitle.js +0 -147
  942. package/dist/collection/components/card/card-title/card-title.js +0 -148
  943. package/dist/collection/components/card/card.js +0 -410
  944. package/dist/collection/components/card/test/card.a11y.play.js +0 -84
  945. package/dist/collection/components/card/test/card.component.play.js +0 -65
  946. package/dist/collection/components/card/test/card.visual.play.js +0 -39
  947. package/dist/collection/components/carousel/carousel/carousel.js +0 -692
  948. package/dist/collection/components/carousel/carousel-item/carousel-item.js +0 -300
  949. package/dist/collection/components/carousel/test/carousel.a11y.play.js +0 -35
  950. package/dist/collection/components/carousel/test/carousel.component.play.js +0 -57
  951. package/dist/collection/components/carousel/test/carousel.visual.play.js +0 -24
  952. package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +0 -1019
  953. package/dist/collection/components/checkbox/checkbox.js +0 -727
  954. package/dist/collection/components/checkbox/test/checkbox.a11y.play.js +0 -36
  955. package/dist/collection/components/checkbox/test/checkbox.component.play.js +0 -157
  956. package/dist/collection/components/checkbox/test/checkbox.visual.play.js +0 -62
  957. package/dist/collection/components/close/close.js +0 -294
  958. package/dist/collection/components/close/test/close.a11y.play.js +0 -12
  959. package/dist/collection/components/close/test/close.component.play.js +0 -20
  960. package/dist/collection/components/close/test/close.visual.play.js +0 -16
  961. package/dist/collection/components/container/test/container.visual.play.js +0 -16
  962. package/dist/collection/components/content/content.js +0 -260
  963. package/dist/collection/components/content/test/content.component.play.js +0 -14
  964. package/dist/collection/components/content/test/content.visual.play.js +0 -29
  965. package/dist/collection/components/counter/counter.host.css +0 -1
  966. package/dist/collection/components/counter/counter.js +0 -948
  967. package/dist/collection/components/counter/test/counter.a11y.play.js +0 -44
  968. package/dist/collection/components/counter/test/counter.component.play.js +0 -177
  969. package/dist/collection/components/counter/test/counter.visual.play.js +0 -30
  970. package/dist/collection/components/data/data-item.js +0 -244
  971. package/dist/collection/components/data/data-label.js +0 -72
  972. package/dist/collection/components/data/data-value.js +0 -38
  973. package/dist/collection/components/data/data.js +0 -75
  974. package/dist/collection/components/data/test/data.a11y.play.js +0 -32
  975. package/dist/collection/components/data/test/data.component.play.js +0 -104
  976. package/dist/collection/components/data/test/data.visual.play.js +0 -25
  977. package/dist/collection/components/datepicker/datepicker.js +0 -1358
  978. package/dist/collection/components/datepicker/datepicker.picker.js +0 -531
  979. package/dist/collection/components/datepicker/test/datepicker.a11y.play.js +0 -32
  980. package/dist/collection/components/datepicker/test/datepicker.component.play.js +0 -158
  981. package/dist/collection/components/datepicker/test/datepicker.visual.play.js +0 -50
  982. package/dist/collection/components/divider/divider.js +0 -193
  983. package/dist/collection/components/divider/test/divider.a11y.play.js +0 -31
  984. package/dist/collection/components/divider/test/divider.component.play.js +0 -13
  985. package/dist/collection/components/divider/test/divider.visual.play.js +0 -29
  986. package/dist/collection/components/drawer/drawer.js +0 -492
  987. package/dist/collection/components/drawer/test/drawer.a11y.play.js +0 -39
  988. package/dist/collection/components/drawer/test/drawer.component.play.js +0 -131
  989. package/dist/collection/components/drawer/test/drawer.visual.play.js +0 -31
  990. package/dist/collection/components/file-upload/file-upload.js +0 -1040
  991. package/dist/collection/components/file-upload/test/file-upload.a11y.play.js +0 -52
  992. package/dist/collection/components/file-upload/test/file-upload.component.play.js +0 -128
  993. package/dist/collection/components/file-upload/test/file-upload.visual.play.js +0 -27
  994. package/dist/collection/components/form/test/form.visual.play.js +0 -28
  995. package/dist/collection/components/grid/test/grid.visual.play.js +0 -25
  996. package/dist/collection/components/heading/heading.js +0 -418
  997. package/dist/collection/components/heading/test/heading.a11y.play.js +0 -41
  998. package/dist/collection/components/heading/test/heading.component.play.js +0 -14
  999. package/dist/collection/components/heading/test/heading.visual.play.js +0 -29
  1000. package/dist/collection/components/hint/hint-text/hint-text.js +0 -32
  1001. package/dist/collection/components/hint/hint-title/hint-title.js +0 -35
  1002. package/dist/collection/components/hint/hint.js +0 -414
  1003. package/dist/collection/components/hint/test/hint.a11y.play.js +0 -41
  1004. package/dist/collection/components/hint/test/hint.component.play.js +0 -110
  1005. package/dist/collection/components/hint/test/hint.visual.play.js +0 -39
  1006. package/dist/collection/components/icon/icon.host.css +0 -1
  1007. package/dist/collection/components/icon/icon.js +0 -481
  1008. package/dist/collection/components/icon/test/icon.a11y.play.js +0 -8
  1009. package/dist/collection/components/icon/test/icon.component.play.js +0 -35
  1010. package/dist/collection/components/icon/test/icon.visual.play.js +0 -16
  1011. package/dist/collection/components/input/field.util.js +0 -14
  1012. package/dist/collection/components/input/input.js +0 -1360
  1013. package/dist/collection/components/input/masks/basic-contract-number.js +0 -58
  1014. package/dist/collection/components/input/masks/be-enterprise-number.js +0 -48
  1015. package/dist/collection/components/input/masks/be-iban.js +0 -55
  1016. package/dist/collection/components/input/masks/claim-number.js +0 -59
  1017. package/dist/collection/components/input/masks/contract-number.js +0 -59
  1018. package/dist/collection/components/input/masks/offer-number.js +0 -55
  1019. package/dist/collection/components/input/masks/vehicle-registration-number.js +0 -55
  1020. package/dist/collection/components/input/test/input.a11y.play.js +0 -32
  1021. package/dist/collection/components/input/test/input.component.play.js +0 -119
  1022. package/dist/collection/components/input/test/input.visual.play.js +0 -44
  1023. package/dist/collection/components/input-phone/input-phone.js +0 -1174
  1024. package/dist/collection/components/input-phone/test/input-phone.a11y.play.js +0 -80
  1025. package/dist/collection/components/input-phone/test/input-phone.component.play.js +0 -237
  1026. package/dist/collection/components/input-phone/test/input-phone.visual.play.js +0 -58
  1027. package/dist/collection/components/label/label.js +0 -356
  1028. package/dist/collection/components/label/test/label.a11y.play.js +0 -30
  1029. package/dist/collection/components/label/test/label.component.play.js +0 -14
  1030. package/dist/collection/components/label/test/label.visual.play.js +0 -31
  1031. package/dist/collection/components/link/test/link.a11y.play.js +0 -8
  1032. package/dist/collection/components/link/test/link.visual.play.js +0 -16
  1033. package/dist/collection/components/list/item/item.js +0 -733
  1034. package/dist/collection/components/list/list.js +0 -145
  1035. package/dist/collection/components/list/test/list-native.visual.play.js +0 -15
  1036. package/dist/collection/components/list/test/list.component.play.js +0 -61
  1037. package/dist/collection/components/list/test/list.visual.play.js +0 -30
  1038. package/dist/collection/components/logo/logo.js +0 -347
  1039. package/dist/collection/components/logo/test/logo.a11y.play.js +0 -8
  1040. package/dist/collection/components/logo/test/logo.component.play.js +0 -13
  1041. package/dist/collection/components/logo/test/logo.visual.play.js +0 -16
  1042. package/dist/collection/components/modal/modal-body/modal-body.js +0 -45
  1043. package/dist/collection/components/modal/modal-header/modal-header.js +0 -36
  1044. package/dist/collection/components/modal/modal.controller.js +0 -35
  1045. package/dist/collection/components/modal/modal.js +0 -463
  1046. package/dist/collection/components/modal/test/modal.a11y.play.js +0 -59
  1047. package/dist/collection/components/modal/test/modal.component.play.js +0 -196
  1048. package/dist/collection/components/modal/test/modal.visual.play.js +0 -36
  1049. package/dist/collection/components/notification/notification.js +0 -361
  1050. package/dist/collection/components/notification/test/notification.a11y.play.js +0 -28
  1051. package/dist/collection/components/notification/test/notification.component.play.js +0 -23
  1052. package/dist/collection/components/notification/test/notification.visual.play.js +0 -29
  1053. package/dist/collection/components/number-input/number-input.js +0 -1093
  1054. package/dist/collection/components/number-input/number-input.utils.js +0 -109
  1055. package/dist/collection/components/number-input/test/number-input.a11y.play.js +0 -32
  1056. package/dist/collection/components/number-input/test/number-input.component.play.js +0 -97
  1057. package/dist/collection/components/number-input/test/number-input.visual.play.js +0 -18
  1058. package/dist/collection/components/pagination/pagination.js +0 -625
  1059. package/dist/collection/components/pagination/test/pagination.a11y.play.js +0 -32
  1060. package/dist/collection/components/pagination/test/pagination.component.play.js +0 -98
  1061. package/dist/collection/components/pagination/test/pagination.visual.play.js +0 -18
  1062. package/dist/collection/components/popup/popup.js +0 -869
  1063. package/dist/collection/components/popup/test/popup.a11y.play.js +0 -50
  1064. package/dist/collection/components/popup/test/popup.component.play.js +0 -168
  1065. package/dist/collection/components/popup/test/popup.visual.play.js +0 -33
  1066. package/dist/collection/components/progress-bar/progress-bar.js +0 -274
  1067. package/dist/collection/components/progress-bar/test/progress-bar.a11y.play.js +0 -8
  1068. package/dist/collection/components/progress-bar/test/progress-bar.visual.play.js +0 -16
  1069. package/dist/collection/components/radio/radio-group/radio-group.js +0 -1076
  1070. package/dist/collection/components/radio/radio.js +0 -886
  1071. package/dist/collection/components/radio/test/radio.a11y.play.js +0 -37
  1072. package/dist/collection/components/radio/test/radio.component.play.js +0 -158
  1073. package/dist/collection/components/radio/test/radio.visual.play.js +0 -62
  1074. package/dist/collection/components/root/root.js +0 -876
  1075. package/dist/collection/components/root/test/root.component.play.js +0 -238
  1076. package/dist/collection/components/segment/segment/segment.js +0 -883
  1077. package/dist/collection/components/segment/segment-item.js +0 -216
  1078. package/dist/collection/components/segment/test/segment.a11y.play.js +0 -37
  1079. package/dist/collection/components/segment/test/segment.component.play.js +0 -117
  1080. package/dist/collection/components/segment/test/segment.visual.play.js +0 -51
  1081. package/dist/collection/components/select/select-optgroup.js +0 -82
  1082. package/dist/collection/components/select/select-option.js +0 -112
  1083. package/dist/collection/components/select/select.js +0 -1043
  1084. package/dist/collection/components/select/test/select.a11y.play.js +0 -81
  1085. package/dist/collection/components/select/test/select.component.play.js +0 -197
  1086. package/dist/collection/components/select/test/select.visual.play.js +0 -70
  1087. package/dist/collection/components/shape/shape.js +0 -160
  1088. package/dist/collection/components/shape/test/shape.component.play.js +0 -13
  1089. package/dist/collection/components/shape/test/shape.visual.play.js +0 -16
  1090. package/dist/collection/components/sheet/sheet.js +0 -85
  1091. package/dist/collection/components/sheet/test/sheet.a11y.play.js +0 -32
  1092. package/dist/collection/components/sheet/test/sheet.component.play.js +0 -65
  1093. package/dist/collection/components/sheet/test/sheet.visual.play.js +0 -18
  1094. package/dist/collection/components/slider/slider.js +0 -974
  1095. package/dist/collection/components/slider/test/slider.a11y.play.js +0 -36
  1096. package/dist/collection/components/slider/test/slider.component.play.js +0 -104
  1097. package/dist/collection/components/slider/test/slider.visual.play.js +0 -28
  1098. package/dist/collection/components/spinner/spinner.js +0 -430
  1099. package/dist/collection/components/spinner/test/spinner.a11y.play.js +0 -8
  1100. package/dist/collection/components/spinner/test/spinner.visual.play.js +0 -16
  1101. package/dist/collection/components/stack/stack.js +0 -411
  1102. package/dist/collection/components/stack/test/stack.component.play.js +0 -14
  1103. package/dist/collection/components/stack/test/stack.visual.play.js +0 -44
  1104. package/dist/collection/components/steps/step/step.js +0 -431
  1105. package/dist/collection/components/steps/step-panel/step-panel.js +0 -104
  1106. package/dist/collection/components/steps/steps/steps.js +0 -343
  1107. package/dist/collection/components/steps/test/steps.a11y.play.js +0 -73
  1108. package/dist/collection/components/steps/test/steps.component.play.js +0 -210
  1109. package/dist/collection/components/steps/test/steps.visual.play.js +0 -18
  1110. package/dist/collection/components/table/test/table.visual.play.js +0 -16
  1111. package/dist/collection/components/tabs/tab/tab.js +0 -278
  1112. package/dist/collection/components/tabs/tab-panel/tab-panel.js +0 -104
  1113. package/dist/collection/components/tabs/tabs/tabs.js +0 -551
  1114. package/dist/collection/components/tabs/test/tabs.a11y.play.js +0 -60
  1115. package/dist/collection/components/tabs/test/tabs.component.play.js +0 -129
  1116. package/dist/collection/components/tabs/test/tabs.visual.play.js +0 -31
  1117. package/dist/collection/components/tag/tag-group/tag-group.js +0 -42
  1118. package/dist/collection/components/tag/tag.js +0 -268
  1119. package/dist/collection/components/tag/test/tag.a11y.play.js +0 -42
  1120. package/dist/collection/components/tag/test/tag.component.play.js +0 -22
  1121. package/dist/collection/components/tag/test/tag.visual.play.js +0 -29
  1122. package/dist/collection/components/text/test/text.a11y.play.js +0 -40
  1123. package/dist/collection/components/text/test/text.component.play.js +0 -14
  1124. package/dist/collection/components/text/test/text.visual.play.js +0 -40
  1125. package/dist/collection/components/text/text.js +0 -439
  1126. package/dist/collection/components/textarea/test/textarea.a11y.play.js +0 -32
  1127. package/dist/collection/components/textarea/test/textarea.component.play.js +0 -58
  1128. package/dist/collection/components/textarea/test/textarea.visual.play.js +0 -29
  1129. package/dist/collection/components/textarea/textarea.js +0 -1028
  1130. package/dist/collection/components/time-input/test/time-input.visual.play.js +0 -18
  1131. package/dist/collection/components/toggle/test/toggle.a11y.play.js +0 -28
  1132. package/dist/collection/components/toggle/test/toggle.component.play.js +0 -90
  1133. package/dist/collection/components/toggle/test/toggle.visual.play.js +0 -30
  1134. package/dist/collection/components/toggle/toggle.js +0 -514
  1135. package/dist/collection/components/tooltip/test/tooltip.a11y.play.js +0 -32
  1136. package/dist/collection/components/tooltip/test/tooltip.component.play.js +0 -51
  1137. package/dist/collection/components/tooltip/test/tooltip.visual.play.js +0 -16
  1138. package/dist/collection/components/tooltip/tooltip.host.css +0 -1
  1139. package/dist/collection/components/tooltip/tooltip.js +0 -423
  1140. package/dist/design-system/p-0a4c1fa238.entry.js +0 -4
  1141. package/dist/design-system/p-0efa6b85e8.entry.js +0 -4
  1142. package/dist/design-system/p-1130753733.entry.js +0 -4
  1143. package/dist/design-system/p-150f4aee94.entry.js +0 -4
  1144. package/dist/design-system/p-15c65a1368.entry.js +0 -4
  1145. package/dist/design-system/p-1603a5f4fc.entry.js +0 -4
  1146. package/dist/design-system/p-1663ac0fb3.entry.js +0 -4
  1147. package/dist/design-system/p-17b905bc35.entry.js +0 -4
  1148. package/dist/design-system/p-196aa0563e.entry.js +0 -4
  1149. package/dist/design-system/p-1af37354b1.entry.js +0 -4
  1150. package/dist/design-system/p-1efcd0e46b.entry.js +0 -4
  1151. package/dist/design-system/p-22a8fbfd2a.entry.js +0 -4
  1152. package/dist/design-system/p-2ba7d84911.entry.js +0 -4
  1153. package/dist/design-system/p-2c5430a940.entry.js +0 -4
  1154. package/dist/design-system/p-2df13895a5.entry.js +0 -4
  1155. package/dist/design-system/p-2fa04f2aa9.entry.js +0 -4
  1156. package/dist/design-system/p-30b07d6ae1.entry.js +0 -4
  1157. package/dist/design-system/p-33d0feba27.entry.js +0 -4
  1158. package/dist/design-system/p-3a70005c1b.entry.js +0 -4
  1159. package/dist/design-system/p-3e960e6ff6.entry.js +0 -4
  1160. package/dist/design-system/p-4482255e0f.entry.js +0 -4
  1161. package/dist/design-system/p-467f95729e.entry.js +0 -4
  1162. package/dist/design-system/p-50dad0ad77.entry.js +0 -4
  1163. package/dist/design-system/p-55a071b493.entry.js +0 -4
  1164. package/dist/design-system/p-5cd306954a.entry.js +0 -4
  1165. package/dist/design-system/p-5d47fc1dcb.entry.js +0 -4
  1166. package/dist/design-system/p-5e8c5af9ea.entry.js +0 -4
  1167. package/dist/design-system/p-6d701d53b3.entry.js +0 -4
  1168. package/dist/design-system/p-717be53e81.entry.js +0 -4
  1169. package/dist/design-system/p-768e889caa.entry.js +0 -4
  1170. package/dist/design-system/p-79e5407448.entry.js +0 -4
  1171. package/dist/design-system/p-7bf3536935.entry.js +0 -4
  1172. package/dist/design-system/p-80486431d5.entry.js +0 -4
  1173. package/dist/design-system/p-86405bdd61.entry.js +0 -4
  1174. package/dist/design-system/p-8757e623be.entry.js +0 -4
  1175. package/dist/design-system/p-909e8b7db8.entry.js +0 -4
  1176. package/dist/design-system/p-982608a54f.entry.js +0 -4
  1177. package/dist/design-system/p-9b5fa7a537.entry.js +0 -4
  1178. package/dist/design-system/p-B4bB-8Lq.js +0 -4
  1179. package/dist/design-system/p-B9D2VplI.js +0 -4
  1180. package/dist/design-system/p-BK97Jg7L.js +0 -4
  1181. package/dist/design-system/p-BKkzYTNY.js +0 -4
  1182. package/dist/design-system/p-BMmZbxT4.js +0 -4
  1183. package/dist/design-system/p-BrbRN-6L.js +0 -4
  1184. package/dist/design-system/p-BtmS73m_.js +0 -4
  1185. package/dist/design-system/p-C-_fWfFO.js +0 -4
  1186. package/dist/design-system/p-C8QRVzNq.js +0 -4
  1187. package/dist/design-system/p-CJSVPuWq.js +0 -4
  1188. package/dist/design-system/p-CiMViiz4.js +0 -4
  1189. package/dist/design-system/p-DEbrSr7x.js +0 -4
  1190. package/dist/design-system/p-DIovmg8W.js +0 -4
  1191. package/dist/design-system/p-DSgT3f2g.js +0 -4
  1192. package/dist/design-system/p-DTldskay.js +0 -5
  1193. package/dist/design-system/p-DYOV_tWc.js +0 -6
  1194. package/dist/design-system/p-Dcf7YMP0.js +0 -4
  1195. package/dist/design-system/p-DyWEj7Or.js +0 -4
  1196. package/dist/design-system/p-T1Ewg5ym.js +0 -14
  1197. package/dist/design-system/p-Ympglpu_.js +0 -4
  1198. package/dist/design-system/p-a952ed860d.entry.js +0 -4
  1199. package/dist/design-system/p-b0180f72e4.entry.js +0 -4
  1200. package/dist/design-system/p-b1563acdea.entry.js +0 -4
  1201. package/dist/design-system/p-b19083d986.entry.js +0 -4
  1202. package/dist/design-system/p-b2304dcfd2.entry.js +0 -4
  1203. package/dist/design-system/p-b6ecd22632.entry.js +0 -4
  1204. package/dist/design-system/p-bfb99341f7.entry.js +0 -4
  1205. package/dist/design-system/p-c099d505e2.entry.js +0 -4
  1206. package/dist/design-system/p-c3b3f63016.entry.js +0 -4
  1207. package/dist/design-system/p-c597957af4.entry.js +0 -4
  1208. package/dist/design-system/p-c5d377644b.entry.js +0 -4
  1209. package/dist/design-system/p-ce3e8bc11a.entry.js +0 -4
  1210. package/dist/design-system/p-cf79b14f03.entry.js +0 -4
  1211. package/dist/design-system/p-d077f23dda.entry.js +0 -4
  1212. package/dist/design-system/p-d66d4aa600.entry.js +0 -4
  1213. package/dist/design-system/p-d6ab4fdeba.entry.js +0 -4
  1214. package/dist/design-system/p-d7eacac620.entry.js +0 -4
  1215. package/dist/design-system/p-d87c44f51d.entry.js +0 -4
  1216. package/dist/design-system/p-da32308de9.entry.js +0 -4
  1217. package/dist/design-system/p-dbc783ce57.entry.js +0 -4
  1218. package/dist/design-system/p-dc415e93f2.entry.js +0 -4
  1219. package/dist/design-system/p-e41c41c269.entry.js +0 -4
  1220. package/dist/design-system/p-e7ae812af1.entry.js +0 -4
  1221. package/dist/design-system/p-ea03c44f9b.entry.js +0 -4
  1222. package/dist/design-system/p-ebe252153f.entry.js +0 -4
  1223. package/dist/design-system/p-f20bc1fa8e.entry.js +0 -4
  1224. package/dist/design-system/p-f2f862fd54.entry.js +0 -4
  1225. package/dist/design-system/p-f3bd12395f.entry.js +0 -4
  1226. package/dist/design-system/p-fafd8d27f5.entry.js +0 -4
  1227. package/dist/design-system/p-fce74bb14f.entry.js +0 -4
  1228. package/dist/design-system/p-ffc55d2851.entry.js +0 -4
  1229. package/dist/design-system/p-jvumIDnw.js +0 -4
  1230. package/dist/design-system/p-r7oAZGh2.js +0 -4
  1231. package/dist/design-system/p-vnGKyX-U.js +0 -4
  1232. package/dist/design-system/p-w-N17JIZ.js +0 -4
  1233. package/dist/design-system/p-yoIuxldv.js +0 -4
  1234. package/dist/esm/array-DomMhGJQ.js +0 -23
  1235. package/dist/esm/breakpoints.decorator-CTZphYok.js +0 -20
  1236. package/dist/esm/breakpoints.subject-CgNq7C9X.js +0 -269
  1237. package/dist/esm/config.utils-CB-CXrKY.js +0 -129
  1238. package/dist/esm/create-validator-decorator-ZDmCDTEb.js +0 -208
  1239. package/dist/esm/device-ckOLnxX9.js +0 -54
  1240. package/dist/esm/field.util-OTyuJ6iL.js +0 -17
  1241. package/dist/esm/focus-54mwcmD9.js +0 -1956
  1242. package/dist/esm/form-control-g2Cf81YC.js +0 -117
  1243. package/dist/esm/has-value-D7lYQNBK.js +0 -10
  1244. package/dist/esm/index-DYOV_tWc.js +0 -7794
  1245. package/dist/esm/invalid-text-slot-Dcf7YMP0.js +0 -33
  1246. package/dist/esm/isNaN-DxqUQhlF.js +0 -103
  1247. package/dist/esm/isNil-DWALHtG8.js +0 -44
  1248. package/dist/esm/listener-nZ8kL6Qe.js +0 -88
  1249. package/dist/esm/logo.animation-CqFA7bc6.js +0 -2608
  1250. package/dist/esm/lottie_light_html-BKRQNrVy.js +0 -13648
  1251. package/dist/esm/one-of-BExTRiXT.js +0 -28
  1252. package/dist/esm/required-DIwBjh81.js +0 -36
  1253. package/dist/esm/resize.decorator-ByMsffGa.js +0 -96
  1254. package/dist/esm/scroll-DsSOuPzW.js +0 -87
  1255. package/dist/esm/spinner.animation-CP1wfHUl.js +0 -2603
  1256. package/dist/esm/svg-DTldskay.js +0 -2737
  1257. package/dist/esm/tslib.es6-Byu4BzG4.js +0 -113
  1258. package/dist/esm/type-CZBrLp5X.js +0 -31
  1259. package/dist/types/components/accordion/accordion.d.ts +0 -128
  1260. package/dist/types/components/alert/alert-container.d.ts +0 -61
  1261. package/dist/types/components/alert/alert-container.interfaces.d.ts +0 -24
  1262. package/dist/types/components/alert/snackbar/snackbar.d.ts +0 -133
  1263. package/dist/types/components/alert/toast/toast.d.ts +0 -146
  1264. package/dist/types/components/app-footer/app-footer.d.ts +0 -84
  1265. package/dist/types/components/app-footer/app-footer.i18n.d.ts +0 -7
  1266. package/dist/types/components/app-navbar/app-navbar.d.ts +0 -128
  1267. package/dist/types/components/app-navbar/app-navbar.i18n.d.ts +0 -9
  1268. package/dist/types/components/badge/badge.d.ts +0 -45
  1269. package/dist/types/components/brand-icon/brand-icon.d.ts +0 -64
  1270. package/dist/types/components/button/button-group/button-group.d.ts +0 -41
  1271. package/dist/types/components/button/button.d.ts +0 -192
  1272. package/dist/types/components/button/button.interfaces.d.ts +0 -35
  1273. package/dist/types/components/card/card-actions/card-actions.d.ts +0 -28
  1274. package/dist/types/components/card/card-content/card-content.d.ts +0 -19
  1275. package/dist/types/components/card/card-header/card-header.d.ts +0 -28
  1276. package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +0 -36
  1277. package/dist/types/components/card/card-title/card-title.d.ts +0 -38
  1278. package/dist/types/components/card/card.d.ts +0 -72
  1279. package/dist/types/components/card/card.interfaces.d.ts +0 -17
  1280. package/dist/types/components/carousel/carousel/carousel.d.ts +0 -123
  1281. package/dist/types/components/carousel/carousel/carousel.i18n.d.ts +0 -9
  1282. package/dist/types/components/carousel/carousel-item/carousel-item.d.ts +0 -66
  1283. package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +0 -173
  1284. package/dist/types/components/checkbox/checkbox.d.ts +0 -137
  1285. package/dist/types/components/close/close.d.ts +0 -59
  1286. package/dist/types/components/close/close.i18n.d.ts +0 -6
  1287. package/dist/types/components/content/content.d.ts +0 -52
  1288. package/dist/types/components/counter/counter.d.ts +0 -190
  1289. package/dist/types/components/counter/counter.i18n.d.ts +0 -6
  1290. package/dist/types/components/data/data-item.d.ts +0 -43
  1291. package/dist/types/components/data/data-item.i18n.d.ts +0 -6
  1292. package/dist/types/components/data/data-label.d.ts +0 -19
  1293. package/dist/types/components/data/data-value.d.ts +0 -15
  1294. package/dist/types/components/data/data.d.ts +0 -19
  1295. package/dist/types/components/datepicker/datepicker.d.ts +0 -234
  1296. package/dist/types/components/datepicker/datepicker.i18n.d.ts +0 -13
  1297. package/dist/types/components/datepicker/datepicker.mask.d.ts +0 -43
  1298. package/dist/types/components/datepicker/datepicker.picker.d.ts +0 -67
  1299. package/dist/types/components/divider/divider.d.ts +0 -40
  1300. package/dist/types/components/drawer/drawer.d.ts +0 -102
  1301. package/dist/types/components/file-upload/file-upload.d.ts +0 -196
  1302. package/dist/types/components/file-upload/file-upload.i18n.d.ts +0 -8
  1303. package/dist/types/components/heading/heading.d.ts +0 -85
  1304. package/dist/types/components/hint/hint-text/hint-text.d.ts +0 -19
  1305. package/dist/types/components/hint/hint-title/hint-title.d.ts +0 -20
  1306. package/dist/types/components/hint/hint.d.ts +0 -91
  1307. package/dist/types/components/hint/hint.i18n.d.ts +0 -6
  1308. package/dist/types/components/icon/icon.d.ts +0 -90
  1309. package/dist/types/components/input/clear-button.i18n.d.ts +0 -6
  1310. package/dist/types/components/input/clear-button.util.d.ts +0 -10
  1311. package/dist/types/components/input/field.util.d.ts +0 -22
  1312. package/dist/types/components/input/input.d.ts +0 -251
  1313. package/dist/types/components/input/trigger-button.i18n.d.ts +0 -7
  1314. package/dist/types/components/input-phone/input-phone.d.ts +0 -213
  1315. package/dist/types/components/input-phone/input-phone.i18n.d.ts +0 -9
  1316. package/dist/types/components/label/label.d.ts +0 -72
  1317. package/dist/types/components/label/label.i18n.d.ts +0 -6
  1318. package/dist/types/components/list/item/item.d.ts +0 -132
  1319. package/dist/types/components/list/list.d.ts +0 -41
  1320. package/dist/types/components/logo/logo.d.ts +0 -78
  1321. package/dist/types/components/logo/logo.icons.d.ts +0 -9
  1322. package/dist/types/components/modal/modal-body/modal-body.d.ts +0 -19
  1323. package/dist/types/components/modal/modal-header/modal-header.d.ts +0 -21
  1324. package/dist/types/components/modal/modal.d.ts +0 -99
  1325. package/dist/types/components/notification/notification.d.ts +0 -85
  1326. package/dist/types/components/number-input/number-input.d.ts +0 -203
  1327. package/dist/types/components/pagination/pagination.d.ts +0 -111
  1328. package/dist/types/components/pagination/pagination.i18n.d.ts +0 -8
  1329. package/dist/types/components/popup/popup.d.ts +0 -152
  1330. package/dist/types/components/progress-bar/progress-bar.d.ts +0 -64
  1331. package/dist/types/components/progress-bar/progress-bar.i18n.d.ts +0 -6
  1332. package/dist/types/components/radio/radio-group/radio-group.d.ts +0 -185
  1333. package/dist/types/components/radio/radio.d.ts +0 -168
  1334. package/dist/types/components/root/root.d.ts +0 -152
  1335. package/dist/types/components/segment/segment/segment.d.ts +0 -168
  1336. package/dist/types/components/segment/segment-item.d.ts +0 -63
  1337. package/dist/types/components/select/select-optgroup.d.ts +0 -28
  1338. package/dist/types/components/select/select-option.d.ts +0 -34
  1339. package/dist/types/components/select/select.d.ts +0 -202
  1340. package/dist/types/components/select/select.i18n.d.ts +0 -7
  1341. package/dist/types/components/select/select.picker.d.ts +0 -63
  1342. package/dist/types/components/shape/shape.d.ts +0 -36
  1343. package/dist/types/components/sheet/sheet.d.ts +0 -30
  1344. package/dist/types/components/slider/slider.d.ts +0 -191
  1345. package/dist/types/components/spinner/spinner.d.ts +0 -80
  1346. package/dist/types/components/spinner/spinner.i18n.d.ts +0 -6
  1347. package/dist/types/components/stack/stack.d.ts +0 -72
  1348. package/dist/types/components/steps/step/step.d.ts +0 -89
  1349. package/dist/types/components/steps/step-panel/step-panel.d.ts +0 -34
  1350. package/dist/types/components/steps/steps/steps.d.ts +0 -77
  1351. package/dist/types/components/tabs/tab/tab.d.ts +0 -67
  1352. package/dist/types/components/tabs/tab-panel/tab-panel.d.ts +0 -34
  1353. package/dist/types/components/tabs/tabs/tabs.d.ts +0 -105
  1354. package/dist/types/components/tabs/tabs/tabs.i18n.d.ts +0 -7
  1355. package/dist/types/components/tag/tag-group/tag-group.d.ts +0 -18
  1356. package/dist/types/components/tag/tag.d.ts +0 -59
  1357. package/dist/types/components/text/text.d.ts +0 -78
  1358. package/dist/types/components/textarea/textarea.d.ts +0 -195
  1359. package/dist/types/components/toggle/toggle.d.ts +0 -110
  1360. package/dist/types/components/tooltip/tooltip.d.ts +0 -85
  1361. /package/dist/collection/components/{button → actions/button}/button-group/button-group.host.css +0 -0
  1362. /package/dist/collection/components/{button → actions/button}/button.host.css +0 -0
  1363. /package/dist/collection/components/{close → actions/close}/close.host.css +0 -0
  1364. /package/dist/collection/components/{close → actions/close}/close.i18n.js +0 -0
  1365. /package/dist/collection/components/{close → actions/close}/close.interfaces.js +0 -0
  1366. /package/dist/collection/components/{checkbox → forms/checkbox}/checkbox-group/checkbox-group.host.css +0 -0
  1367. /package/dist/collection/components/{checkbox → forms/checkbox}/checkbox.host.css +0 -0
  1368. /package/dist/collection/components/{checkbox → forms/checkbox}/checkbox.interfaces.js +0 -0
  1369. /package/dist/collection/components/{counter → forms/counter}/counter.i18n.js +0 -0
  1370. /package/dist/collection/components/{counter → forms/counter}/counter.interfaces.js +0 -0
  1371. /package/dist/collection/components/{counter → forms/counter}/counter.utils.js +0 -0
  1372. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.host.css +0 -0
  1373. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.i18n.js +0 -0
  1374. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.interfaces.js +0 -0
  1375. /package/dist/collection/components/{datepicker → forms/datepicker}/datepicker.mask.js +0 -0
  1376. /package/dist/collection/components/{file-upload → forms/file-upload}/file-upload.host.css +0 -0
  1377. /package/dist/collection/components/{file-upload → forms/file-upload}/file-upload.i18n.js +0 -0
  1378. /package/dist/collection/components/{file-upload → forms/file-upload}/file-upload.interfaces.js +0 -0
  1379. /package/dist/collection/components/{file-upload → forms/file-upload}/utils/file-list.util.js +0 -0
  1380. /package/dist/collection/components/{file-upload → forms/file-upload}/utils/file-size.util.js +0 -0
  1381. /package/dist/collection/components/{file-upload → forms/file-upload}/utils/file-validation.util.js +0 -0
  1382. /package/dist/collection/components/{input → forms/input}/clear-button.i18n.js +0 -0
  1383. /package/dist/collection/components/{input → forms/input}/clear-button.util.js +0 -0
  1384. /package/dist/collection/components/{input → forms/input}/input.host.css +0 -0
  1385. /package/dist/collection/components/{input → forms/input}/input.interfaces.js +0 -0
  1386. /package/dist/collection/components/{input → forms/input}/input.mask.js +0 -0
  1387. /package/dist/collection/components/{input → forms/input}/masks/index.js +0 -0
  1388. /package/dist/collection/components/{input → forms/input}/trigger-button.i18n.js +0 -0
  1389. /package/dist/collection/components/{input-phone → forms/input-phone}/country-data.js +0 -0
  1390. /package/dist/collection/components/{input-phone → forms/input-phone}/flag.js +0 -0
  1391. /package/dist/collection/components/{input-phone → forms/input-phone}/formatting.js +0 -0
  1392. /package/dist/collection/components/{input-phone → forms/input-phone}/input-phone.host.css +0 -0
  1393. /package/dist/collection/components/{input-phone → forms/input-phone}/input-phone.i18n.js +0 -0
  1394. /package/dist/collection/components/{input-phone → forms/input-phone}/input-phone.interfaces.js +0 -0
  1395. /package/dist/collection/components/{label → forms/label}/label.host.css +0 -0
  1396. /package/dist/collection/components/{label → forms/label}/label.i18n.js +0 -0
  1397. /package/dist/collection/components/{label → forms/label}/label.interfaces.js +0 -0
  1398. /package/dist/collection/components/{number-input → forms/number-input}/number-input.host.css +0 -0
  1399. /package/dist/collection/components/{number-input → forms/number-input}/number-input.interfaces.js +0 -0
  1400. /package/dist/collection/components/{radio → forms/radio}/radio-group/radio-group.host.css +0 -0
  1401. /package/dist/collection/components/{radio → forms/radio}/radio.host.css +0 -0
  1402. /package/dist/collection/components/{radio → forms/radio}/radio.interfaces.js +0 -0
  1403. /package/dist/collection/components/{segment → forms/segment}/segment/segment.host.css +0 -0
  1404. /package/dist/collection/components/{segment → forms/segment}/segment-item.host.css +0 -0
  1405. /package/dist/collection/components/{segment → forms/segment}/segment-item.interfaces.js +0 -0
  1406. /package/dist/collection/components/{segment → forms/segment}/segment-item.type.js +0 -0
  1407. /package/dist/collection/components/{select → forms/select}/select-optgroup.host.css +0 -0
  1408. /package/dist/collection/components/{select → forms/select}/select-option.host.css +0 -0
  1409. /package/dist/collection/components/{select → forms/select}/select.host.css +0 -0
  1410. /package/dist/collection/components/{select → forms/select}/select.i18n.js +0 -0
  1411. /package/dist/collection/components/{select → forms/select}/select.interfaces.js +0 -0
  1412. /package/dist/collection/components/{select → forms/select}/select.picker.js +0 -0
  1413. /package/dist/collection/components/{slider → forms/slider}/slider.host.css +0 -0
  1414. /package/dist/collection/components/{slider → forms/slider}/slider.interfaces.js +0 -0
  1415. /package/dist/collection/components/{slider → forms/slider}/slider.picker.js +0 -0
  1416. /package/dist/collection/components/{slider → forms/slider}/slider.utils.js +0 -0
  1417. /package/dist/collection/components/{textarea → forms/textarea}/textarea.host.css +0 -0
  1418. /package/dist/collection/components/{textarea → forms/textarea}/textarea.interfaces.js +0 -0
  1419. /package/dist/collection/components/{toggle → forms/toggle}/toggle.host.css +0 -0
  1420. /package/dist/collection/components/{toggle → forms/toggle}/toggle.interfaces.js +0 -0
  1421. /package/dist/collection/components/{badge → indicators/badge}/badge.host.css +0 -0
  1422. /package/dist/collection/components/{badge → indicators/badge}/badge.interfaces.js +0 -0
  1423. /package/dist/collection/components/{hint → indicators/hint}/hint.host.css +0 -0
  1424. /package/dist/collection/components/{hint → indicators/hint}/hint.i18n.js +0 -0
  1425. /package/dist/collection/components/{hint → indicators/hint}/hint.interfaces.js +0 -0
  1426. /package/dist/collection/components/{progress-bar → indicators/progress-bar}/progress-bar.host.css +0 -0
  1427. /package/dist/collection/components/{progress-bar → indicators/progress-bar}/progress-bar.i18n.js +0 -0
  1428. /package/dist/collection/components/{progress-bar → indicators/progress-bar}/progress-bar.interfaces.js +0 -0
  1429. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.animation.js +0 -0
  1430. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.data.js +0 -0
  1431. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.host.css +0 -0
  1432. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.i18n.js +0 -0
  1433. /package/dist/collection/components/{spinner → indicators/spinner}/spinner.interfaces.js +0 -0
  1434. /package/dist/collection/components/{tag → indicators/tag}/tag-group/tag-group.host.css +0 -0
  1435. /package/dist/collection/components/{tag → indicators/tag}/tag.host.css +0 -0
  1436. /package/dist/collection/components/{tag → indicators/tag}/tag.interfaces.js +0 -0
  1437. /package/dist/collection/components/{brand-icon → media/brand-icon}/brand-icon.host.css +0 -0
  1438. /package/dist/collection/components/{brand-icon → media/brand-icon}/brand-icon.interfaces.js +0 -0
  1439. /package/dist/collection/components/{icon → media/icon}/icon.interfaces.js +0 -0
  1440. /package/dist/collection/components/{logo → media/logo}/logo.animation.js +0 -0
  1441. /package/dist/collection/components/{logo → media/logo}/logo.data.js +0 -0
  1442. /package/dist/collection/components/{logo → media/logo}/logo.host.css +0 -0
  1443. /package/dist/collection/components/{logo → media/logo}/logo.icons.js +0 -0
  1444. /package/dist/collection/components/{logo → media/logo}/logo.interfaces.js +0 -0
  1445. /package/dist/collection/components/{shape → media/shape}/shape.data.js +0 -0
  1446. /package/dist/collection/components/{shape → media/shape}/shape.host.css +0 -0
  1447. /package/dist/collection/components/{shape → media/shape}/shape.interfaces.js +0 -0
  1448. /package/dist/collection/components/{app-navbar → navigation/app-navbar}/app-navbar.host.css +0 -0
  1449. /package/dist/collection/components/{app-navbar → navigation/app-navbar}/app-navbar.i18n.js +0 -0
  1450. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.host.css +0 -0
  1451. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.i18n.js +0 -0
  1452. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.interfaces.js +0 -0
  1453. /package/dist/collection/components/{pagination → navigation/pagination}/pagination.util.js +0 -0
  1454. /package/dist/collection/components/{steps → navigation/steps}/step/step.host.css +0 -0
  1455. /package/dist/collection/components/{steps → navigation/steps}/step-panel/step-panel.host.css +0 -0
  1456. /package/dist/collection/components/{steps → navigation/steps}/steps/steps.host.css +0 -0
  1457. /package/dist/collection/components/{steps → navigation/steps}/steps.interfaces.js +0 -0
  1458. /package/dist/collection/components/{tabs → navigation/tabs}/tab/tab.host.css +0 -0
  1459. /package/dist/collection/components/{tabs → navigation/tabs}/tab-panel/tab-panel.host.css +0 -0
  1460. /package/dist/collection/components/{tabs → navigation/tabs}/tabs/tabs.host.css +0 -0
  1461. /package/dist/collection/components/{tabs → navigation/tabs}/tabs/tabs.i18n.js +0 -0
  1462. /package/dist/collection/components/{tabs → navigation/tabs}/tabs.interfaces.js +0 -0
  1463. /package/dist/collection/components/{alert → overlays/alert}/alert-container.host.css +0 -0
  1464. /package/dist/collection/components/{alert → overlays/alert}/alert-container.interfaces.js +0 -0
  1465. /package/dist/collection/components/{alert → overlays/alert}/snackbar/snackbar.host.css +0 -0
  1466. /package/dist/collection/components/{alert → overlays/alert}/snackbar/snackbar.interfaces.js +0 -0
  1467. /package/dist/collection/components/{alert → overlays/alert}/toast/toast.host.css +0 -0
  1468. /package/dist/collection/components/{alert → overlays/alert}/toast/toast.interfaces.js +0 -0
  1469. /package/dist/collection/components/{drawer → overlays/drawer}/drawer.host.css +0 -0
  1470. /package/dist/collection/components/{drawer → overlays/drawer}/drawer.interfaces.js +0 -0
  1471. /package/dist/collection/components/{modal → overlays/modal}/modal-body/modal-body.host.css +0 -0
  1472. /package/dist/collection/components/{modal → overlays/modal}/modal.host.css +0 -0
  1473. /package/dist/collection/components/{modal → overlays/modal}/modal.interfaces.js +0 -0
  1474. /package/dist/collection/components/{notification → overlays/notification}/notification.host.css +0 -0
  1475. /package/dist/collection/components/{notification → overlays/notification}/notification.interfaces.js +0 -0
  1476. /package/dist/collection/components/{popup → overlays/popup}/popup.host.css +0 -0
  1477. /package/dist/collection/components/{popup → overlays/popup}/popup.interfaces.js +0 -0
  1478. /package/dist/collection/components/{sheet → overlays/sheet}/sheet.host.css +0 -0
  1479. /package/dist/collection/components/{sheet → overlays/sheet}/sheet.interfaces.js +0 -0
  1480. /package/dist/collection/components/{tooltip → overlays/tooltip}/tooltip.interfaces.js +0 -0
  1481. /package/dist/collection/components/{accordion → structure/accordion}/accordion.host.css +0 -0
  1482. /package/dist/collection/components/{accordion → structure/accordion}/accordion.interfaces.js +0 -0
  1483. /package/dist/collection/components/{app-footer → structure/app-footer}/app-footer.host.css +0 -0
  1484. /package/dist/collection/components/{app-footer → structure/app-footer}/app-footer.i18n.js +0 -0
  1485. /package/dist/collection/components/{app-footer → structure/app-footer}/app-footer.interfaces.js +0 -0
  1486. /package/dist/collection/components/{card → structure/card}/card-content/card-content.host.css +0 -0
  1487. /package/dist/collection/components/{card → structure/card}/card-header/card-header.host.css +0 -0
  1488. /package/dist/collection/components/{card → structure/card}/card-subtitle/card-subtitle.host.css +0 -0
  1489. /package/dist/collection/components/{card → structure/card}/card-title/card-title.host.css +0 -0
  1490. /package/dist/collection/components/{card → structure/card}/card.host.css +0 -0
  1491. /package/dist/collection/components/{card → structure/card}/card.interfaces.js +0 -0
  1492. /package/dist/collection/components/{carousel → structure/carousel}/carousel/carousel.host.css +0 -0
  1493. /package/dist/collection/components/{carousel → structure/carousel}/carousel/carousel.i18n.js +0 -0
  1494. /package/dist/collection/components/{carousel → structure/carousel}/carousel-item/carousel-item.host.css +0 -0
  1495. /package/dist/collection/components/{carousel → structure/carousel}/carousel.interfaces.js +0 -0
  1496. /package/dist/collection/components/{content → structure/content}/content.host.css +0 -0
  1497. /package/dist/collection/components/{content → structure/content}/content.interfaces.js +0 -0
  1498. /package/dist/collection/components/{data → structure/data}/data-item.host.css +0 -0
  1499. /package/dist/collection/components/{data → structure/data}/data-item.i18n.js +0 -0
  1500. /package/dist/collection/components/{data → structure/data}/data-item.interfaces.js +0 -0
  1501. /package/dist/collection/components/{data → structure/data}/data-label.host.css +0 -0
  1502. /package/dist/collection/components/{data → structure/data}/data-label.interfaces.js +0 -0
  1503. /package/dist/collection/components/{data → structure/data}/data-value.host.css +0 -0
  1504. /package/dist/collection/components/{data → structure/data}/data-value.interfaces.js +0 -0
  1505. /package/dist/collection/components/{data → structure/data}/data.host.css +0 -0
  1506. /package/dist/collection/components/{data → structure/data}/data.interfaces.js +0 -0
  1507. /package/dist/collection/components/{divider → structure/divider}/divider.host.css +0 -0
  1508. /package/dist/collection/components/{divider → structure/divider}/divider.interfaces.js +0 -0
  1509. /package/dist/collection/components/{heading → structure/heading}/heading.const.js +0 -0
  1510. /package/dist/collection/components/{heading → structure/heading}/heading.host.css +0 -0
  1511. /package/dist/collection/components/{heading → structure/heading}/heading.interfaces.js +0 -0
  1512. /package/dist/collection/components/{list → structure/list}/item/item.host.css +0 -0
  1513. /package/dist/collection/components/{list → structure/list}/item/item.interfaces.js +0 -0
  1514. /package/dist/collection/components/{list → structure/list}/list.host.css +0 -0
  1515. /package/dist/collection/components/{root → structure/root}/root.css +0 -0
  1516. /package/dist/collection/components/{root → structure/root}/root.focus.util.js +0 -0
  1517. /package/dist/collection/components/{root → structure/root}/root.interfaces.js +0 -0
  1518. /package/dist/collection/components/{stack → structure/stack}/stack.host.css +0 -0
  1519. /package/dist/collection/components/{stack → structure/stack}/stack.interfaces.js +0 -0
  1520. /package/dist/collection/components/{text → structure/text}/text.host.css +0 -0
  1521. /package/dist/collection/components/{text → structure/text}/text.interfaces.js +0 -0
  1522. /package/dist/types/components/{button → actions/button}/test/button-group.visual.play.d.ts +0 -0
  1523. /package/dist/types/components/{button → actions/button}/test/button.a11y.play.d.ts +0 -0
  1524. /package/dist/types/components/{button → actions/button}/test/button.component.play.d.ts +0 -0
  1525. /package/dist/types/components/{accordion/test/accordion.a11y.play.d.ts → actions/button/test/button.ssr.play.d.ts} +0 -0
  1526. /package/dist/types/components/{button → actions/button}/test/button.visual.play.d.ts +0 -0
  1527. /package/dist/types/components/{close → actions/close}/close.interfaces.d.ts +0 -0
  1528. /package/dist/types/components/{close → actions/close}/test/close.a11y.play.d.ts +0 -0
  1529. /package/dist/types/components/{close → actions/close}/test/close.component.play.d.ts +0 -0
  1530. /package/dist/types/components/{accordion/test/accordion.component.play.d.ts → actions/close/test/close.ssr.play.d.ts} +0 -0
  1531. /package/dist/types/components/{close → actions/close}/test/close.visual.play.d.ts +0 -0
  1532. /package/dist/types/components/{link → actions/link}/test/link.a11y.play.d.ts +0 -0
  1533. /package/dist/types/components/{link → actions/link}/test/link.visual.play.d.ts +0 -0
  1534. /package/dist/types/components/{checkbox → forms/checkbox}/checkbox.interfaces.d.ts +0 -0
  1535. /package/dist/types/components/{checkbox → forms/checkbox}/test/checkbox.a11y.play.d.ts +0 -0
  1536. /package/dist/types/components/{checkbox → forms/checkbox}/test/checkbox.component.play.d.ts +0 -0
  1537. /package/dist/types/components/{accordion/test/accordion.visual.play.d.ts → forms/checkbox/test/checkbox.ssr.play.d.ts} +0 -0
  1538. /package/dist/types/components/{checkbox → forms/checkbox}/test/checkbox.visual.play.d.ts +0 -0
  1539. /package/dist/types/components/{counter → forms/counter}/counter.interfaces.d.ts +0 -0
  1540. /package/dist/types/components/{counter → forms/counter}/counter.utils.d.ts +0 -0
  1541. /package/dist/types/components/{counter → forms/counter}/test/counter.a11y.play.d.ts +0 -0
  1542. /package/dist/types/components/{counter → forms/counter}/test/counter.component.play.d.ts +0 -0
  1543. /package/dist/types/components/{alert/test/alert.visual.play.d.ts → forms/counter/test/counter.ssr.play.d.ts} +0 -0
  1544. /package/dist/types/components/{counter → forms/counter}/test/counter.visual.play.d.ts +0 -0
  1545. /package/dist/types/components/{datepicker → forms/datepicker}/datepicker.interfaces.d.ts +0 -0
  1546. /package/dist/types/components/{datepicker → forms/datepicker}/test/datepicker.a11y.play.d.ts +0 -0
  1547. /package/dist/types/components/{datepicker → forms/datepicker}/test/datepicker.component.play.d.ts +0 -0
  1548. /package/dist/types/components/{alert/test/snackbar.a11y.play.d.ts → forms/datepicker/test/datepicker.ssr.play.d.ts} +0 -0
  1549. /package/dist/types/components/{datepicker → forms/datepicker}/test/datepicker.visual.play.d.ts +0 -0
  1550. /package/dist/types/components/{file-upload → forms/file-upload}/file-upload.interfaces.d.ts +0 -0
  1551. /package/dist/types/components/{file-upload → forms/file-upload}/test/file-upload.a11y.play.d.ts +0 -0
  1552. /package/dist/types/components/{file-upload → forms/file-upload}/test/file-upload.component.play.d.ts +0 -0
  1553. /package/dist/types/components/{alert/test/snackbar.component.play.d.ts → forms/file-upload/test/file-upload.ssr.play.d.ts} +0 -0
  1554. /package/dist/types/components/{file-upload → forms/file-upload}/test/file-upload.visual.play.d.ts +0 -0
  1555. /package/dist/types/components/{file-upload → forms/file-upload}/utils/file-list.util.d.ts +0 -0
  1556. /package/dist/types/components/{file-upload → forms/file-upload}/utils/file-size.util.d.ts +0 -0
  1557. /package/dist/types/components/{file-upload → forms/file-upload}/utils/file-validation.util.d.ts +0 -0
  1558. /package/dist/types/components/{form → forms/form}/test/form.visual.play.d.ts +0 -0
  1559. /package/dist/types/components/{input → forms/input}/input.interfaces.d.ts +0 -0
  1560. /package/dist/types/components/{input → forms/input}/input.mask.d.ts +0 -0
  1561. /package/dist/types/components/{input → forms/input}/masks/basic-contract-number.d.ts +0 -0
  1562. /package/dist/types/components/{input → forms/input}/masks/be-enterprise-number.d.ts +0 -0
  1563. /package/dist/types/components/{input → forms/input}/masks/be-iban.d.ts +0 -0
  1564. /package/dist/types/components/{input → forms/input}/masks/claim-number.d.ts +0 -0
  1565. /package/dist/types/components/{input → forms/input}/masks/contract-number.d.ts +0 -0
  1566. /package/dist/types/components/{input → forms/input}/masks/index.d.ts +0 -0
  1567. /package/dist/types/components/{input → forms/input}/masks/offer-number.d.ts +0 -0
  1568. /package/dist/types/components/{input → forms/input}/masks/vehicle-registration-number.d.ts +0 -0
  1569. /package/dist/types/components/{input → forms/input}/test/input.a11y.play.d.ts +0 -0
  1570. /package/dist/types/components/{input → forms/input}/test/input.component.play.d.ts +0 -0
  1571. /package/dist/types/components/{alert/test/toast.a11y.play.d.ts → forms/input/test/input.ssr.play.d.ts} +0 -0
  1572. /package/dist/types/components/{input → forms/input}/test/input.visual.play.d.ts +0 -0
  1573. /package/dist/types/components/{input-phone → forms/input-phone}/country-data.d.ts +0 -0
  1574. /package/dist/types/components/{input-phone → forms/input-phone}/flag.d.ts +0 -0
  1575. /package/dist/types/components/{input-phone → forms/input-phone}/formatting.d.ts +0 -0
  1576. /package/dist/types/components/{input-phone → forms/input-phone}/input-phone.interfaces.d.ts +0 -0
  1577. /package/dist/types/components/{input-phone → forms/input-phone}/test/input-phone.a11y.play.d.ts +0 -0
  1578. /package/dist/types/components/{input-phone → forms/input-phone}/test/input-phone.component.play.d.ts +0 -0
  1579. /package/dist/types/components/{alert/test/snackbar.visual.play.d.ts → forms/input-phone/test/input-phone.ssr.play.d.ts} +0 -0
  1580. /package/dist/types/components/{input-phone → forms/input-phone}/test/input-phone.visual.play.d.ts +0 -0
  1581. /package/dist/types/components/{label → forms/label}/label.interfaces.d.ts +0 -0
  1582. /package/dist/types/components/{label → forms/label}/test/label.a11y.play.d.ts +0 -0
  1583. /package/dist/types/components/{label → forms/label}/test/label.component.play.d.ts +0 -0
  1584. /package/dist/types/components/{alert/test/toast.visual.play.d.ts → forms/label/test/label.ssr.play.d.ts} +0 -0
  1585. /package/dist/types/components/{label → forms/label}/test/label.visual.play.d.ts +0 -0
  1586. /package/dist/types/components/{number-input → forms/number-input}/number-input.interfaces.d.ts +0 -0
  1587. /package/dist/types/components/{number-input → forms/number-input}/number-input.utils.d.ts +0 -0
  1588. /package/dist/types/components/{number-input → forms/number-input}/test/number-input.a11y.play.d.ts +0 -0
  1589. /package/dist/types/components/{number-input → forms/number-input}/test/number-input.component.play.d.ts +0 -0
  1590. /package/dist/types/components/{app-footer/test/app-footer.a11y.play.d.ts → forms/number-input/test/number-input.ssr.play.d.ts} +0 -0
  1591. /package/dist/types/components/{number-input → forms/number-input}/test/number-input.visual.play.d.ts +0 -0
  1592. /package/dist/types/components/{radio → forms/radio}/radio.interfaces.d.ts +0 -0
  1593. /package/dist/types/components/{radio → forms/radio}/test/radio.a11y.play.d.ts +0 -0
  1594. /package/dist/types/components/{radio → forms/radio}/test/radio.component.play.d.ts +0 -0
  1595. /package/dist/types/components/{app-footer/test/app-footer.component.play.d.ts → forms/radio/test/radio.ssr.play.d.ts} +0 -0
  1596. /package/dist/types/components/{radio → forms/radio}/test/radio.visual.play.d.ts +0 -0
  1597. /package/dist/types/components/{segment → forms/segment}/segment-item.interfaces.d.ts +0 -0
  1598. /package/dist/types/components/{segment → forms/segment}/segment-item.type.d.ts +0 -0
  1599. /package/dist/types/components/{segment → forms/segment}/test/segment.a11y.play.d.ts +0 -0
  1600. /package/dist/types/components/{segment → forms/segment}/test/segment.component.play.d.ts +0 -0
  1601. /package/dist/types/components/{app-footer/test/app-footer.visual.play.d.ts → forms/segment/test/segment.ssr.play.d.ts} +0 -0
  1602. /package/dist/types/components/{segment → forms/segment}/test/segment.visual.play.d.ts +0 -0
  1603. /package/dist/types/components/{select → forms/select}/select.interfaces.d.ts +0 -0
  1604. /package/dist/types/components/{select → forms/select}/test/select.a11y.play.d.ts +0 -0
  1605. /package/dist/types/components/{select → forms/select}/test/select.component.play.d.ts +0 -0
  1606. /package/dist/types/components/{app-navbar/test/app-navbar.a11y.play.d.ts → forms/select/test/select.ssr.play.d.ts} +0 -0
  1607. /package/dist/types/components/{select → forms/select}/test/select.visual.play.d.ts +0 -0
  1608. /package/dist/types/components/{slider → forms/slider}/slider.interfaces.d.ts +0 -0
  1609. /package/dist/types/components/{slider → forms/slider}/slider.picker.d.ts +0 -0
  1610. /package/dist/types/components/{slider → forms/slider}/slider.utils.d.ts +0 -0
  1611. /package/dist/types/components/{slider → forms/slider}/test/slider.a11y.play.d.ts +0 -0
  1612. /package/dist/types/components/{slider → forms/slider}/test/slider.component.play.d.ts +0 -0
  1613. /package/dist/types/components/{app-navbar/test/app-navbar.component.play.d.ts → forms/slider/test/slider.ssr.play.d.ts} +0 -0
  1614. /package/dist/types/components/{slider → forms/slider}/test/slider.visual.play.d.ts +0 -0
  1615. /package/dist/types/components/{textarea → forms/textarea}/test/textarea.a11y.play.d.ts +0 -0
  1616. /package/dist/types/components/{textarea → forms/textarea}/test/textarea.component.play.d.ts +0 -0
  1617. /package/dist/types/components/{app-navbar/test/app-navbar.visual.play.d.ts → forms/textarea/test/textarea.ssr.play.d.ts} +0 -0
  1618. /package/dist/types/components/{textarea → forms/textarea}/test/textarea.visual.play.d.ts +0 -0
  1619. /package/dist/types/components/{textarea → forms/textarea}/textarea.interfaces.d.ts +0 -0
  1620. /package/dist/types/components/{time-input → forms/time-input}/test/time-input.visual.play.d.ts +0 -0
  1621. /package/dist/types/components/{toggle → forms/toggle}/test/toggle.a11y.play.d.ts +0 -0
  1622. /package/dist/types/components/{toggle → forms/toggle}/test/toggle.component.play.d.ts +0 -0
  1623. /package/dist/types/components/{badge/test/badge.a11y.play.d.ts → forms/toggle/test/toggle.ssr.play.d.ts} +0 -0
  1624. /package/dist/types/components/{toggle → forms/toggle}/test/toggle.visual.play.d.ts +0 -0
  1625. /package/dist/types/components/{toggle → forms/toggle}/toggle.interfaces.d.ts +0 -0
  1626. /package/dist/types/components/{badge → indicators/badge}/badge.interfaces.d.ts +0 -0
  1627. /package/dist/types/components/{badge/test/badge.component.play.d.ts → indicators/badge/test/badge.a11y.play.d.ts} +0 -0
  1628. /package/dist/types/components/{badge/test/badge.visual.play.d.ts → indicators/badge/test/badge.component.play.d.ts} +0 -0
  1629. /package/dist/types/components/{brand-icon/test/brand-icon.component.play.d.ts → indicators/badge/test/badge.ssr.play.d.ts} +0 -0
  1630. /package/dist/types/components/{brand-icon/test/brand-icon.visual.play.d.ts → indicators/badge/test/badge.visual.play.d.ts} +0 -0
  1631. /package/dist/types/components/{hint → indicators/hint}/hint.interfaces.d.ts +0 -0
  1632. /package/dist/types/components/{hint → indicators/hint}/test/hint.a11y.play.d.ts +0 -0
  1633. /package/dist/types/components/{hint → indicators/hint}/test/hint.component.play.d.ts +0 -0
  1634. /package/dist/types/components/{card/test/card.a11y.play.d.ts → indicators/hint/test/hint.ssr.play.d.ts} +0 -0
  1635. /package/dist/types/components/{hint → indicators/hint}/test/hint.visual.play.d.ts +0 -0
  1636. /package/dist/types/components/{progress-bar → indicators/progress-bar}/progress-bar.interfaces.d.ts +0 -0
  1637. /package/dist/types/components/{progress-bar → indicators/progress-bar}/test/progress-bar.a11y.play.d.ts +0 -0
  1638. /package/dist/types/components/{card/test/card.component.play.d.ts → indicators/progress-bar/test/progress-bar.ssr.play.d.ts} +0 -0
  1639. /package/dist/types/components/{progress-bar → indicators/progress-bar}/test/progress-bar.visual.play.d.ts +0 -0
  1640. /package/dist/types/components/{spinner → indicators/spinner}/spinner.animation.d.ts +0 -0
  1641. /package/dist/types/components/{spinner → indicators/spinner}/spinner.data.d.ts +0 -0
  1642. /package/dist/types/components/{spinner → indicators/spinner}/spinner.interfaces.d.ts +0 -0
  1643. /package/dist/types/components/{spinner → indicators/spinner}/test/spinner.a11y.play.d.ts +0 -0
  1644. /package/dist/types/components/{card/test/card.visual.play.d.ts → indicators/spinner/test/spinner.ssr.play.d.ts} +0 -0
  1645. /package/dist/types/components/{spinner → indicators/spinner}/test/spinner.visual.play.d.ts +0 -0
  1646. /package/dist/types/components/{tag → indicators/tag}/tag.interfaces.d.ts +0 -0
  1647. /package/dist/types/components/{tag → indicators/tag}/test/tag.a11y.play.d.ts +0 -0
  1648. /package/dist/types/components/{tag → indicators/tag}/test/tag.component.play.d.ts +0 -0
  1649. /package/dist/types/components/{carousel/test/carousel.a11y.play.d.ts → indicators/tag/test/tag.ssr.play.d.ts} +0 -0
  1650. /package/dist/types/components/{tag → indicators/tag}/test/tag.visual.play.d.ts +0 -0
  1651. /package/dist/types/components/{brand-icon → media/brand-icon}/brand-icon.interfaces.d.ts +0 -0
  1652. /package/dist/types/components/{carousel/test/carousel.component.play.d.ts → media/brand-icon/test/brand-icon.component.play.d.ts} +0 -0
  1653. /package/dist/types/components/{carousel/test/carousel.visual.play.d.ts → media/brand-icon/test/brand-icon.ssr.play.d.ts} +0 -0
  1654. /package/dist/types/components/{container/test/container.visual.play.d.ts → media/brand-icon/test/brand-icon.visual.play.d.ts} +0 -0
  1655. /package/dist/types/components/{icon → media/icon}/icon.interfaces.d.ts +0 -0
  1656. /package/dist/types/components/{icon → media/icon}/test/icon.a11y.play.d.ts +0 -0
  1657. /package/dist/types/components/{icon → media/icon}/test/icon.component.play.d.ts +0 -0
  1658. /package/dist/types/components/{content/test/content.component.play.d.ts → media/icon/test/icon.ssr.play.d.ts} +0 -0
  1659. /package/dist/types/components/{icon → media/icon}/test/icon.visual.play.d.ts +0 -0
  1660. /package/dist/types/components/{logo → media/logo}/logo.animation.d.ts +0 -0
  1661. /package/dist/types/components/{logo → media/logo}/logo.data.d.ts +0 -0
  1662. /package/dist/types/components/{logo → media/logo}/logo.interfaces.d.ts +0 -0
  1663. /package/dist/types/components/{logo → media/logo}/test/logo.a11y.play.d.ts +0 -0
  1664. /package/dist/types/components/{logo → media/logo}/test/logo.component.play.d.ts +0 -0
  1665. /package/dist/types/components/{content/test/content.visual.play.d.ts → media/logo/test/logo.ssr.play.d.ts} +0 -0
  1666. /package/dist/types/components/{logo → media/logo}/test/logo.visual.play.d.ts +0 -0
  1667. /package/dist/types/components/{shape → media/shape}/shape.data.d.ts +0 -0
  1668. /package/dist/types/components/{shape → media/shape}/shape.interfaces.d.ts +0 -0
  1669. /package/dist/types/components/{shape → media/shape}/test/shape.component.play.d.ts +0 -0
  1670. /package/dist/types/components/{data/test/data.a11y.play.d.ts → media/shape/test/shape.ssr.play.d.ts} +0 -0
  1671. /package/dist/types/components/{shape → media/shape}/test/shape.visual.play.d.ts +0 -0
  1672. /package/dist/types/components/{app-navbar → navigation/app-navbar}/app-navbar.interfaces.d.ts +0 -0
  1673. /package/dist/types/components/{data/test/data.component.play.d.ts → navigation/app-navbar/test/app-navbar.a11y.play.d.ts} +0 -0
  1674. /package/dist/types/components/{data/test/data.visual.play.d.ts → navigation/app-navbar/test/app-navbar.component.play.d.ts} +0 -0
  1675. /package/dist/types/components/{divider/test/divider.a11y.play.d.ts → navigation/app-navbar/test/app-navbar.ssr.play.d.ts} +0 -0
  1676. /package/dist/types/components/{divider/test/divider.component.play.d.ts → navigation/app-navbar/test/app-navbar.visual.play.d.ts} +0 -0
  1677. /package/dist/types/components/{pagination → navigation/pagination}/pagination.interfaces.d.ts +0 -0
  1678. /package/dist/types/components/{pagination → navigation/pagination}/pagination.util.d.ts +0 -0
  1679. /package/dist/types/components/{pagination → navigation/pagination}/test/pagination.a11y.play.d.ts +0 -0
  1680. /package/dist/types/components/{pagination → navigation/pagination}/test/pagination.component.play.d.ts +0 -0
  1681. /package/dist/types/components/{divider/test/divider.visual.play.d.ts → navigation/pagination/test/pagination.ssr.play.d.ts} +0 -0
  1682. /package/dist/types/components/{pagination → navigation/pagination}/test/pagination.visual.play.d.ts +0 -0
  1683. /package/dist/types/components/{steps → navigation/steps}/steps.interfaces.d.ts +0 -0
  1684. /package/dist/types/components/{steps → navigation/steps}/test/steps.a11y.play.d.ts +0 -0
  1685. /package/dist/types/components/{steps → navigation/steps}/test/steps.component.play.d.ts +0 -0
  1686. /package/dist/types/components/{drawer/test/drawer.a11y.play.d.ts → navigation/steps/test/steps.ssr.play.d.ts} +0 -0
  1687. /package/dist/types/components/{steps → navigation/steps}/test/steps.visual.play.d.ts +0 -0
  1688. /package/dist/types/components/{tabs → navigation/tabs}/tabs.interfaces.d.ts +0 -0
  1689. /package/dist/types/components/{tabs → navigation/tabs}/test/tabs.a11y.play.d.ts +0 -0
  1690. /package/dist/types/components/{tabs → navigation/tabs}/test/tabs.component.play.d.ts +0 -0
  1691. /package/dist/types/components/{drawer/test/drawer.component.play.d.ts → navigation/tabs/test/tabs.ssr.play.d.ts} +0 -0
  1692. /package/dist/types/components/{tabs → navigation/tabs}/test/tabs.visual.play.d.ts +0 -0
  1693. /package/dist/types/components/{alert → overlays/alert}/alert.controller.d.ts +0 -0
  1694. /package/dist/types/components/{alert → overlays/alert}/snackbar/snackbar.interfaces.d.ts +0 -0
  1695. /package/dist/types/components/{drawer/test/drawer.visual.play.d.ts → overlays/alert/test/alert.visual.play.d.ts} +0 -0
  1696. /package/dist/types/components/{grid/test/grid.visual.play.d.ts → overlays/alert/test/snackbar.a11y.play.d.ts} +0 -0
  1697. /package/dist/types/components/{heading/test/heading.a11y.play.d.ts → overlays/alert/test/snackbar.component.play.d.ts} +0 -0
  1698. /package/dist/types/components/{heading/test/heading.component.play.d.ts → overlays/alert/test/snackbar.ssr.play.d.ts} +0 -0
  1699. /package/dist/types/components/{heading/test/heading.visual.play.d.ts → overlays/alert/test/snackbar.visual.play.d.ts} +0 -0
  1700. /package/dist/types/components/{list/test/list-native.visual.play.d.ts → overlays/alert/test/toast.a11y.play.d.ts} +0 -0
  1701. /package/dist/types/components/{list/test/list.component.play.d.ts → overlays/alert/test/toast.visual.play.d.ts} +0 -0
  1702. /package/dist/types/components/{alert → overlays/alert}/toast/toast.interfaces.d.ts +0 -0
  1703. /package/dist/types/components/{drawer → overlays/drawer}/drawer.interfaces.d.ts +0 -0
  1704. /package/dist/types/components/{list/test/list.visual.play.d.ts → overlays/drawer/test/drawer.a11y.play.d.ts} +0 -0
  1705. /package/dist/types/components/{modal/test/modal.a11y.play.d.ts → overlays/drawer/test/drawer.component.play.d.ts} +0 -0
  1706. /package/dist/types/components/{modal/test/modal.component.play.d.ts → overlays/drawer/test/drawer.ssr.play.d.ts} +0 -0
  1707. /package/dist/types/components/{modal/test/modal.visual.play.d.ts → overlays/drawer/test/drawer.visual.play.d.ts} +0 -0
  1708. /package/dist/types/components/{modal → overlays/modal}/modal.controller.d.ts +0 -0
  1709. /package/dist/types/components/{modal → overlays/modal}/modal.interfaces.d.ts +0 -0
  1710. /package/dist/types/components/{notification/test/notification.a11y.play.d.ts → overlays/modal/test/modal.a11y.play.d.ts} +0 -0
  1711. /package/dist/types/components/{notification/test/notification.component.play.d.ts → overlays/modal/test/modal.component.play.d.ts} +0 -0
  1712. /package/dist/types/components/{notification/test/notification.visual.play.d.ts → overlays/modal/test/modal.ssr.play.d.ts} +0 -0
  1713. /package/dist/types/components/{popup/test/popup.a11y.play.d.ts → overlays/modal/test/modal.visual.play.d.ts} +0 -0
  1714. /package/dist/types/components/{notification → overlays/notification}/notification.interfaces.d.ts +0 -0
  1715. /package/dist/types/components/{popup/test/popup.component.play.d.ts → overlays/notification/test/notification.a11y.play.d.ts} +0 -0
  1716. /package/dist/types/components/{popup/test/popup.visual.play.d.ts → overlays/notification/test/notification.component.play.d.ts} +0 -0
  1717. /package/dist/types/components/{root/test/root.component.play.d.ts → overlays/notification/test/notification.ssr.play.d.ts} +0 -0
  1718. /package/dist/types/components/{sheet/test/sheet.a11y.play.d.ts → overlays/notification/test/notification.visual.play.d.ts} +0 -0
  1719. /package/dist/types/components/{popup → overlays/popup}/popup.interfaces.d.ts +0 -0
  1720. /package/dist/types/components/{sheet/test/sheet.component.play.d.ts → overlays/popup/test/popup.a11y.play.d.ts} +0 -0
  1721. /package/dist/types/components/{sheet/test/sheet.visual.play.d.ts → overlays/popup/test/popup.component.play.d.ts} +0 -0
  1722. /package/dist/types/components/{stack/test/stack.component.play.d.ts → overlays/popup/test/popup.ssr.play.d.ts} +0 -0
  1723. /package/dist/types/components/{stack/test/stack.visual.play.d.ts → overlays/popup/test/popup.visual.play.d.ts} +0 -0
  1724. /package/dist/types/components/{sheet → overlays/sheet}/sheet.interfaces.d.ts +0 -0
  1725. /package/dist/types/components/{table/test/table.visual.play.d.ts → overlays/sheet/test/sheet.a11y.play.d.ts} +0 -0
  1726. /package/dist/types/components/{text/test/text.a11y.play.d.ts → overlays/sheet/test/sheet.component.play.d.ts} +0 -0
  1727. /package/dist/types/components/{text/test/text.component.play.d.ts → overlays/sheet/test/sheet.ssr.play.d.ts} +0 -0
  1728. /package/dist/types/components/{text/test/text.visual.play.d.ts → overlays/sheet/test/sheet.visual.play.d.ts} +0 -0
  1729. /package/dist/types/components/{tooltip → overlays/tooltip}/test/tooltip.a11y.play.d.ts +0 -0
  1730. /package/dist/types/components/{tooltip → overlays/tooltip}/test/tooltip.component.play.d.ts +0 -0
  1731. /package/dist/types/components/{tooltip/test/tooltip.visual.play.d.ts → overlays/tooltip/test/tooltip.ssr.play.d.ts} +0 -0
  1732. /package/dist/types/components/{tooltip → overlays/tooltip}/tooltip.interfaces.d.ts +0 -0
  1733. /package/dist/types/components/{accordion → structure/accordion}/accordion.interfaces.d.ts +0 -0
  1734. /package/dist/types/components/{app-footer → structure/app-footer}/app-footer.interfaces.d.ts +0 -0
  1735. /package/dist/types/components/{carousel → structure/carousel}/carousel.interfaces.d.ts +0 -0
  1736. /package/dist/types/components/{content → structure/content}/content.interfaces.d.ts +0 -0
  1737. /package/dist/types/components/{data → structure/data}/data-item.interfaces.d.ts +0 -0
  1738. /package/dist/types/components/{data → structure/data}/data-label.interfaces.d.ts +0 -0
  1739. /package/dist/types/components/{data → structure/data}/data-value.interfaces.d.ts +0 -0
  1740. /package/dist/types/components/{data → structure/data}/data.interfaces.d.ts +0 -0
  1741. /package/dist/types/components/{divider → structure/divider}/divider.interfaces.d.ts +0 -0
  1742. /package/dist/types/components/{heading → structure/heading}/heading.const.d.ts +0 -0
  1743. /package/dist/types/components/{heading → structure/heading}/heading.interfaces.d.ts +0 -0
  1744. /package/dist/types/components/{list → structure/list}/item/item.interfaces.d.ts +0 -0
  1745. /package/dist/types/components/{root → structure/root}/root.focus.util.d.ts +0 -0
  1746. /package/dist/types/components/{root → structure/root}/root.interfaces.d.ts +0 -0
  1747. /package/dist/types/components/{stack → structure/stack}/stack.interfaces.d.ts +0 -0
  1748. /package/dist/types/components/{text → structure/text}/text.interfaces.d.ts +0 -0
@@ -0,0 +1,2741 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
5
+
6
+ function _arrayLikeToArray(r, a) {
7
+ (null == a || a > r.length) && (a = r.length);
8
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
9
+ return n;
10
+ }
11
+ function _arrayWithHoles(r) {
12
+ if (Array.isArray(r)) return r;
13
+ }
14
+ function _iterableToArrayLimit(r, l) {
15
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
16
+ if (null != t) {
17
+ var e,
18
+ n,
19
+ i,
20
+ u,
21
+ a = [],
22
+ f = true,
23
+ o = false;
24
+ try {
25
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true);
26
+ } catch (r) {
27
+ o = true, n = r;
28
+ } finally {
29
+ try {
30
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
31
+ } finally {
32
+ if (o) throw n;
33
+ }
34
+ }
35
+ return a;
36
+ }
37
+ }
38
+ function _nonIterableRest() {
39
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
40
+ }
41
+ function _slicedToArray(r, e) {
42
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
43
+ }
44
+ function _unsupportedIterableToArray(r, a) {
45
+ if (r) {
46
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
47
+ var t = {}.toString.call(r).slice(8, -1);
48
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
49
+ }
50
+ }
51
+
52
+ const entries = Object.entries,
53
+ setPrototypeOf = Object.setPrototypeOf,
54
+ isFrozen = Object.isFrozen,
55
+ getPrototypeOf = Object.getPrototypeOf,
56
+ getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
57
+ let freeze = Object.freeze,
58
+ seal = Object.seal,
59
+ create = Object.create; // eslint-disable-line import/no-mutable-exports
60
+ let _ref = typeof Reflect !== 'undefined' && Reflect,
61
+ apply = _ref.apply,
62
+ construct = _ref.construct;
63
+ if (!freeze) {
64
+ freeze = function freeze(x) {
65
+ return x;
66
+ };
67
+ }
68
+ if (!seal) {
69
+ seal = function seal(x) {
70
+ return x;
71
+ };
72
+ }
73
+ if (!apply) {
74
+ apply = function apply(func, thisArg) {
75
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
76
+ args[_key - 2] = arguments[_key];
77
+ }
78
+ return func.apply(thisArg, args);
79
+ };
80
+ }
81
+ if (!construct) {
82
+ construct = function construct(Func) {
83
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
84
+ args[_key2 - 1] = arguments[_key2];
85
+ }
86
+ return new Func(...args);
87
+ };
88
+ }
89
+ const arrayForEach = unapply(Array.prototype.forEach);
90
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
91
+ const arrayPop = unapply(Array.prototype.pop);
92
+ const arrayPush = unapply(Array.prototype.push);
93
+ const arraySplice = unapply(Array.prototype.splice);
94
+ const arrayIsArray = Array.isArray;
95
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
96
+ const stringToString = unapply(String.prototype.toString);
97
+ const stringMatch = unapply(String.prototype.match);
98
+ const stringReplace = unapply(String.prototype.replace);
99
+ const stringIndexOf = unapply(String.prototype.indexOf);
100
+ const stringTrim = unapply(String.prototype.trim);
101
+ const numberToString = unapply(Number.prototype.toString);
102
+ const booleanToString = unapply(Boolean.prototype.toString);
103
+ const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
104
+ const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
105
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
106
+ const objectToString = unapply(Object.prototype.toString);
107
+ const regExpTest = unapply(RegExp.prototype.test);
108
+ const typeErrorCreate = unconstruct(TypeError);
109
+ /**
110
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
111
+ *
112
+ * @param func - The function to be wrapped and called.
113
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
114
+ */
115
+ function unapply(func) {
116
+ return function (thisArg) {
117
+ if (thisArg instanceof RegExp) {
118
+ thisArg.lastIndex = 0;
119
+ }
120
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
121
+ args[_key3 - 1] = arguments[_key3];
122
+ }
123
+ return apply(func, thisArg, args);
124
+ };
125
+ }
126
+ /**
127
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
128
+ *
129
+ * @param func - The constructor function to be wrapped and called.
130
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
131
+ */
132
+ function unconstruct(Func) {
133
+ return function () {
134
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
135
+ args[_key4] = arguments[_key4];
136
+ }
137
+ return construct(Func, args);
138
+ };
139
+ }
140
+ /**
141
+ * Add properties to a lookup table
142
+ *
143
+ * @param set - The set to which elements will be added.
144
+ * @param array - The array containing elements to be added to the set.
145
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
146
+ * @returns The modified set with added elements.
147
+ */
148
+ function addToSet(set, array) {
149
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
150
+ if (setPrototypeOf) {
151
+ // Make 'in' and truthy checks like Boolean(set.constructor)
152
+ // independent of any properties defined on Object.prototype.
153
+ // Prevent prototype setters from intercepting set as a this value.
154
+ setPrototypeOf(set, null);
155
+ }
156
+ if (!arrayIsArray(array)) {
157
+ return set;
158
+ }
159
+ let l = array.length;
160
+ while (l--) {
161
+ let element = array[l];
162
+ if (typeof element === 'string') {
163
+ const lcElement = transformCaseFunc(element);
164
+ if (lcElement !== element) {
165
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
166
+ if (!isFrozen(array)) {
167
+ array[l] = lcElement;
168
+ }
169
+ element = lcElement;
170
+ }
171
+ }
172
+ set[element] = true;
173
+ }
174
+ return set;
175
+ }
176
+ /**
177
+ * Clean up an array to harden against CSPP
178
+ *
179
+ * @param array - The array to be cleaned.
180
+ * @returns The cleaned version of the array
181
+ */
182
+ function cleanArray(array) {
183
+ for (let index = 0; index < array.length; index++) {
184
+ const isPropertyExist = objectHasOwnProperty(array, index);
185
+ if (!isPropertyExist) {
186
+ array[index] = null;
187
+ }
188
+ }
189
+ return array;
190
+ }
191
+ /**
192
+ * Shallow clone an object
193
+ *
194
+ * @param object - The object to be cloned.
195
+ * @returns A new object that copies the original.
196
+ */
197
+ function clone(object) {
198
+ const newObject = create(null);
199
+ for (const _ref2 of entries(object)) {
200
+ var _ref3 = _slicedToArray(_ref2, 2);
201
+ const property = _ref3[0];
202
+ const value = _ref3[1];
203
+ const isPropertyExist = objectHasOwnProperty(object, property);
204
+ if (isPropertyExist) {
205
+ if (arrayIsArray(value)) {
206
+ newObject[property] = cleanArray(value);
207
+ } else if (value && typeof value === 'object' && value.constructor === Object) {
208
+ newObject[property] = clone(value);
209
+ } else {
210
+ newObject[property] = value;
211
+ }
212
+ }
213
+ }
214
+ return newObject;
215
+ }
216
+ /**
217
+ * Convert non-node values into strings without depending on direct property access.
218
+ *
219
+ * @param value - The value to stringify.
220
+ * @returns A string representation of the provided value.
221
+ */
222
+ function stringifyValue(value) {
223
+ switch (typeof value) {
224
+ case 'string':
225
+ {
226
+ return value;
227
+ }
228
+ case 'number':
229
+ {
230
+ return numberToString(value);
231
+ }
232
+ case 'boolean':
233
+ {
234
+ return booleanToString(value);
235
+ }
236
+ case 'bigint':
237
+ {
238
+ return bigintToString ? bigintToString(value) : '0';
239
+ }
240
+ case 'symbol':
241
+ {
242
+ return symbolToString ? symbolToString(value) : 'Symbol()';
243
+ }
244
+ case 'undefined':
245
+ {
246
+ return objectToString(value);
247
+ }
248
+ case 'function':
249
+ case 'object':
250
+ {
251
+ if (value === null) {
252
+ return objectToString(value);
253
+ }
254
+ const valueAsRecord = value;
255
+ const valueToString = lookupGetter(valueAsRecord, 'toString');
256
+ if (typeof valueToString === 'function') {
257
+ const stringified = valueToString(valueAsRecord);
258
+ return typeof stringified === 'string' ? stringified : objectToString(stringified);
259
+ }
260
+ return objectToString(value);
261
+ }
262
+ default:
263
+ {
264
+ return objectToString(value);
265
+ }
266
+ }
267
+ }
268
+ /**
269
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
270
+ *
271
+ * @param object - The object to look up the getter function in its prototype chain.
272
+ * @param prop - The property name for which to find the getter function.
273
+ * @returns The getter function found in the prototype chain or a fallback function.
274
+ */
275
+ function lookupGetter(object, prop) {
276
+ while (object !== null) {
277
+ const desc = getOwnPropertyDescriptor(object, prop);
278
+ if (desc) {
279
+ if (desc.get) {
280
+ return unapply(desc.get);
281
+ }
282
+ if (typeof desc.value === 'function') {
283
+ return unapply(desc.value);
284
+ }
285
+ }
286
+ object = getPrototypeOf(object);
287
+ }
288
+ function fallbackValue() {
289
+ return null;
290
+ }
291
+ return fallbackValue;
292
+ }
293
+ function isRegex(value) {
294
+ try {
295
+ regExpTest(value, '');
296
+ return true;
297
+ } catch (_unused) {
298
+ return false;
299
+ }
300
+ }
301
+
302
+ const html$1 = 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', 'search', 'section', 'select', 'shadow', 'slot', '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']);
303
+ const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
304
+ const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
305
+ // List of SVG elements that are disallowed by default.
306
+ // We still need to know them so that we can do namespace
307
+ // checks properly in case one wants to add them to
308
+ // allow-list.
309
+ const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', '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']);
310
+ const mathMl$1 = 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', 'mprescripts']);
311
+ // Similarly to SVG, we want to know all MathML elements,
312
+ // even those that we disallow by default.
313
+ const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
314
+ const text = freeze(['#text']);
315
+
316
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'command', 'commandfor', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns']);
317
+ const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', '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', 'dominant-baseline', 'dur', 'edgemode', 'elevation', 'end', 'exponent', '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', 'intercept', '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', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'pointer-events', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', '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', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-orientation', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'vector-effect', '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']);
318
+ const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', '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']);
319
+ const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
320
+
321
+ const MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
322
+ const ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
323
+ const TMPLIT_EXPR = seal(/\${[\w\W]*/g);
324
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
325
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
326
+ const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
327
+ );
328
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
329
+ const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
330
+ );
331
+ const DOCTYPE_NAME = seal(/^html$/i);
332
+ const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
333
+ // Markup-significant character probes used by _sanitizeElements.
334
+ // Shared module-level instances are safe despite the sticky /g flags:
335
+ // unapply() resets lastIndex for RegExp receivers before every call.
336
+ const ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
337
+ const COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
338
+ const FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
339
+ const SELF_CLOSING_TAG = seal(/\/>/i);
340
+
341
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
342
+ const NODE_TYPE = {
343
+ element: 1,
344
+ text: 3,
345
+ // Deprecated
346
+ processingInstruction: 7,
347
+ comment: 8,
348
+ document: 9,
349
+ documentFragment: 11};
350
+ /* HTML-namespace elements whose child text nodes are serialized *literally*
351
+ (unescaped) by the HTML fragment-serialization algorithm. Two reparse-mXSS
352
+ shapes ride on that literal serialization:
353
+ (a) an element child - a tree the HTML parser can never build, but the DOM
354
+ API and an XML/XHTML parse can - after which a `</tag>`-bearing text
355
+ sibling breaks the element open on reparse; and
356
+ (b) text-only content that already carries the element's OWN end tag, e.g.
357
+ `<style>...</style><img onerror=x>` built as a node, which the literal
358
+ serializer emits verbatim for the HTML parser to re-open.
359
+ Shape (a) is handled by the firstElementChild branch in _isUnsafeNode; shape
360
+ (b) by the LITERAL_TEXT_CLOSE probe. Both read textContent (the raw-serialized
361
+ form for these elements) rather than innerHTML, because an XML/XHTML working
362
+ document serializes innerHTML with `<` escaped, which silently blinds the
363
+ innerHTML-based probes (rule 1's second probe and FALLBACK_TAG_CLOSE) there.
364
+ `script` is never allow-listed, but is kept here so the guard matches the
365
+ serializer's own literal-text list exactly. */
366
+ const LITERAL_TEXT_ELEMENT_NAMES = ['style', 'script', 'xmp', 'iframe', 'noembed', 'noframes', 'plaintext', 'noscript'];
367
+ const LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));
368
+ /* Per-element end-tag matcher. On an HTML reparse the ONLY token that
369
+ terminates a literal-text element's raw content is its own end tag; a foreign
370
+ literal-text close (e.g. `</xmp>` sitting inside `<style>`) does not break
371
+ out, so matching is per-element, not a shared alternation. The lookahead
372
+ requires an HTML tag-name terminator (whitespace, `/` or `>`) so a longer
373
+ name such as `</styles` is not mistaken for `</style`. */
374
+ const LITERAL_TEXT_CLOSE = function () {
375
+ const map = {};
376
+ arrayForEach(LITERAL_TEXT_ELEMENT_NAMES, name => {
377
+ map[name] = seal(new RegExp('</' + name + '(?=[\\t\\n\\f\\r />])', 'i'));
378
+ });
379
+ return freeze(map);
380
+ }();
381
+ const getGlobal = function getGlobal() {
382
+ return typeof window === 'undefined' ? null : window;
383
+ };
384
+ /**
385
+ * Creates a no-op policy for internal use only.
386
+ * Don't export this function outside this module!
387
+ * @param trustedTypes The policy factory.
388
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
389
+ * @return The policy created (or null, if Trusted Types
390
+ * are not supported or creating the policy failed).
391
+ */
392
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
393
+ if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
394
+ return null;
395
+ }
396
+ // Allow the callers to control the unique policy name
397
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
398
+ // Policy creation with duplicate names throws in Trusted Types.
399
+ let suffix = null;
400
+ const ATTR_NAME = 'data-tt-policy-suffix';
401
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
402
+ suffix = purifyHostElement.getAttribute(ATTR_NAME);
403
+ }
404
+ const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
405
+ try {
406
+ return trustedTypes.createPolicy(policyName, {
407
+ createHTML(html) {
408
+ return html;
409
+ },
410
+ createScriptURL(scriptUrl) {
411
+ return scriptUrl;
412
+ }
413
+ });
414
+ } catch (_) {
415
+ // Policy creation failed (most likely another DOMPurify script has
416
+ // already run). Skip creating the policy, as this will only cause errors
417
+ // if TT are enforced.
418
+ console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
419
+ return null;
420
+ }
421
+ };
422
+ const _createHooksMap = function _createHooksMap() {
423
+ return {
424
+ afterSanitizeAttributes: [],
425
+ afterSanitizeElements: [],
426
+ afterSanitizeShadowDOM: [],
427
+ beforeSanitizeAttributes: [],
428
+ beforeSanitizeElements: [],
429
+ beforeSanitizeShadowDOM: [],
430
+ uponSanitizeAttribute: [],
431
+ uponSanitizeElement: [],
432
+ uponSanitizeShadowNode: []
433
+ };
434
+ };
435
+ /**
436
+ * Resolve a set-valued configuration option: a fresh set built from
437
+ * cfg[key] when it is an own array property (seeded with a clone of
438
+ * options.base when given, case-normalized via options.transform),
439
+ * the fallback set otherwise.
440
+ *
441
+ * @param cfg the cloned, prototype-free configuration object
442
+ * @param key the configuration property to read
443
+ * @param fallback the set to use when the option is absent or not an array
444
+ * @param options transform and optional base set to merge into
445
+ * @returns the resolved set
446
+ */
447
+ const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
448
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
449
+ };
450
+ /**
451
+ * Resolve an object-valued configuration option: a prototype-free clone
452
+ * of cfg[key] when it is an own, truthy object property, else a fresh
453
+ * fallback built by makeFallback (fresh on every parse, so a previous
454
+ * parse can never leak state into the next one).
455
+ *
456
+ * @param cfg the cloned, prototype-free configuration object
457
+ * @param key the configuration property to read
458
+ * @param makeFallback builds the fallback value when the option is absent
459
+ * @returns the resolved object
460
+ */
461
+ const _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {
462
+ const value = objectHasOwnProperty(cfg, key) ? cfg[key] : undefined;
463
+ return value && typeof value === 'object' ? clone(value) : makeFallback();
464
+ };
465
+ function createDOMPurify() {
466
+ let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
467
+ const DOMPurify = root => createDOMPurify(root);
468
+ DOMPurify.version = '3.4.15';
469
+ DOMPurify.removed = [];
470
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
471
+ // Not running in a browser, provide a factory function
472
+ // so that you can pass your own Window
473
+ DOMPurify.isSupported = false;
474
+ return DOMPurify;
475
+ }
476
+ let document = window.document;
477
+ const originalDocument = document;
478
+ const currentScript = originalDocument.currentScript;
479
+ const HTMLTemplateElement = window.HTMLTemplateElement,
480
+ Node = window.Node,
481
+ Element = window.Element,
482
+ NodeFilter = window.NodeFilter;
483
+ const DOMParser = window.DOMParser,
484
+ trustedTypes = window.trustedTypes;
485
+ const ElementPrototype = Element.prototype;
486
+ const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
487
+ const remove = lookupGetter(ElementPrototype, 'remove');
488
+ // Clobber-safe Attr-node removal. On an HTMLFormElement a descendant named
489
+ // "removeAttributeNode" shadows the prototype method via
490
+ // [LegacyOverrideBuiltIns], so element.removeAttributeNode(attr) throws.
491
+ // Calling the cached Element.prototype method with the element as the
492
+ // receiver removes the exact live Attr node regardless of the shadowing.
493
+ const removeAttributeNode = lookupGetter(ElementPrototype, 'removeAttributeNode');
494
+ const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
495
+ const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
496
+ const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
497
+ const getShadowRoot = lookupGetter(ElementPrototype, 'shadowRoot');
498
+ const getAttributes = lookupGetter(ElementPrototype, 'attributes');
499
+ const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeType') : null;
500
+ const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeName') : null;
501
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, 'ownerDocument') : null;
502
+ /* Clobber-safe nodeType / nodeName reads through the cached Node.prototype
503
+ getters, with a direct-property fallback for environments that lack
504
+ Node.prototype. Sites that need a different fallback (e.g. _isClobbered
505
+ returns early on a null name) intentionally keep their own reads. */
506
+ const _readNodeType = function _readNodeType(node) {
507
+ return getNodeType ? getNodeType(node) : node.nodeType;
508
+ };
509
+ const _readNodeName = function _readNodeName(node) {
510
+ return getNodeName ? getNodeName(node) : node.nodeName;
511
+ };
512
+ // As per issue #47, the web-components registry is inherited by a
513
+ // new document created via createHTMLDocument. As per the spec
514
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
515
+ // a new empty registry is used when creating a template contents owner
516
+ // document, so we use that as our parent document to ensure nothing
517
+ // is inherited.
518
+ if (typeof HTMLTemplateElement === 'function') {
519
+ const template = document.createElement('template');
520
+ if (template.content && template.content.ownerDocument) {
521
+ document = template.content.ownerDocument;
522
+ }
523
+ }
524
+ let trustedTypesPolicy;
525
+ let emptyHTML = '';
526
+ // The instance's own internal Trusted Types policy. Unlike a caller-supplied
527
+ // `TRUSTED_TYPES_POLICY`, this is created at most once — Trusted Types throws
528
+ // on duplicate policy names — and is the only policy allowed to persist
529
+ // across configurations and survive `clearConfig()`.
530
+ let defaultTrustedTypesPolicy;
531
+ let defaultTrustedTypesPolicyResolved = false;
532
+ // Tracks whether we are already inside a call to the configured Trusted Types
533
+ // policy (`createHTML` or `createScriptURL`). If a supplied policy callback
534
+ // itself calls `DOMPurify.sanitize` (the cause of #1422), `sanitize` would
535
+ // re-enter the policy and recurse until the stack overflows. We detect that
536
+ // re-entry and throw a clear, actionable error instead. The guard is shared
537
+ // across both callbacks, because either one re-entering `sanitize` triggers
538
+ // the same unbounded recursion.
539
+ let IN_TRUSTED_TYPES_POLICY = 0;
540
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
541
+ if (IN_TRUSTED_TYPES_POLICY > 0) {
542
+ throw typeErrorCreate('A configured TRUSTED_TYPES_POLICY callback (createHTML or ' + 'createScriptURL) must not call DOMPurify.sanitize, as that causes ' + 'infinite recursion. Do not pass a policy whose callbacks wrap ' + 'DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted ' + 'Types" section of the README.');
543
+ }
544
+ };
545
+ const _createTrustedHTML = function _createTrustedHTML(html) {
546
+ _assertNotInTrustedTypesPolicy();
547
+ IN_TRUSTED_TYPES_POLICY++;
548
+ try {
549
+ return trustedTypesPolicy.createHTML(html);
550
+ } finally {
551
+ IN_TRUSTED_TYPES_POLICY--;
552
+ }
553
+ };
554
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
555
+ _assertNotInTrustedTypesPolicy();
556
+ IN_TRUSTED_TYPES_POLICY++;
557
+ try {
558
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
559
+ } finally {
560
+ IN_TRUSTED_TYPES_POLICY--;
561
+ }
562
+ };
563
+ // Lazily resolve (and cache) the instance's internal default policy.
564
+ // Resolution is attempted at most once: a successful `createPolicy` cannot be
565
+ // repeated (Trusted Types throws on duplicate names), and a failed or
566
+ // unsupported attempt must not be retried on every parse.
567
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
568
+ if (!defaultTrustedTypesPolicyResolved) {
569
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
570
+ defaultTrustedTypesPolicyResolved = true;
571
+ }
572
+ return defaultTrustedTypesPolicy;
573
+ };
574
+ const _document = document,
575
+ implementation = _document.implementation,
576
+ createNodeIterator = _document.createNodeIterator,
577
+ createDocumentFragment = _document.createDocumentFragment,
578
+ getElementsByTagName = _document.getElementsByTagName;
579
+ const importNode = originalDocument.importNode;
580
+ let hooks = _createHooksMap();
581
+ /**
582
+ * Expose whether this browser supports running the full DOMPurify.
583
+ */
584
+ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
585
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR,
586
+ ERB_EXPR$1 = ERB_EXPR,
587
+ TMPLIT_EXPR$1 = TMPLIT_EXPR,
588
+ DATA_ATTR$1 = DATA_ATTR,
589
+ ARIA_ATTR$1 = ARIA_ATTR,
590
+ IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,
591
+ ATTR_WHITESPACE$1 = ATTR_WHITESPACE,
592
+ CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
593
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
594
+ /**
595
+ * We consider the elements and attributes below to be safe. Ideally
596
+ * don't add any new ones but feel free to remove unwanted ones.
597
+ */
598
+ /* allowed element names */
599
+ let ALLOWED_TAGS = null;
600
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
601
+ /* Allowed attribute names */
602
+ let ALLOWED_ATTR = null;
603
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
604
+ /*
605
+ * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
606
+ * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
607
+ * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
608
+ * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
609
+ */
610
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
611
+ tagNameCheck: {
612
+ writable: true,
613
+ configurable: false,
614
+ enumerable: true,
615
+ value: null
616
+ },
617
+ attributeNameCheck: {
618
+ writable: true,
619
+ configurable: false,
620
+ enumerable: true,
621
+ value: null
622
+ },
623
+ allowCustomizedBuiltInElements: {
624
+ writable: true,
625
+ configurable: false,
626
+ enumerable: true,
627
+ value: false
628
+ }
629
+ }));
630
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
631
+ let FORBID_TAGS = null;
632
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
633
+ let FORBID_ATTR = null;
634
+ /* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
635
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
636
+ tagCheck: {
637
+ writable: true,
638
+ configurable: false,
639
+ enumerable: true,
640
+ value: null
641
+ },
642
+ attributeCheck: {
643
+ writable: true,
644
+ configurable: false,
645
+ enumerable: true,
646
+ value: null
647
+ }
648
+ }));
649
+ /* Decide if ARIA attributes are okay */
650
+ let ALLOW_ARIA_ATTR = true;
651
+ /* Decide if custom data attributes are okay */
652
+ let ALLOW_DATA_ATTR = true;
653
+ /* Decide if unknown protocols are okay */
654
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
655
+ /* Decide if self-closing tags in attributes are allowed.
656
+ * Usually removed due to a mXSS issue in jQuery 3.0 */
657
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
658
+ /* Output should be safe for common template engines.
659
+ * This means, DOMPurify removes data attributes, mustaches and ERB
660
+ */
661
+ let SAFE_FOR_TEMPLATES = false;
662
+ /* Output should be safe even for XML used within HTML and alike.
663
+ * This means, DOMPurify removes comments when containing risky content.
664
+ */
665
+ let SAFE_FOR_XML = true;
666
+ /* Decide if document with <html>... should be returned */
667
+ let WHOLE_DOCUMENT = false;
668
+ /* Track whether config is already set on this instance of DOMPurify. */
669
+ let SET_CONFIG = false;
670
+ /* Pristine allowlist bindings captured at setConfig() time. On the
671
+ * persistent-config path sanitize() restores the sets from these before
672
+ * the per-walk hook clone-guard, so a hook's in-call widening cannot
673
+ * carry across calls. Null until setConfig() is called; reset by
674
+ * clearConfig(). */
675
+ let SET_CONFIG_ALLOWED_TAGS = null;
676
+ let SET_CONFIG_ALLOWED_ATTR = null;
677
+ /* Decide if all elements (e.g. style, script) must be children of
678
+ * document.body. By default, browsers might move them to document.head */
679
+ let FORCE_BODY = false;
680
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
681
+ * string (or a TrustedHTML object if Trusted Types are supported).
682
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
683
+ */
684
+ let RETURN_DOM = false;
685
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
686
+ * string (or a TrustedHTML object if Trusted Types are supported) */
687
+ let RETURN_DOM_FRAGMENT = false;
688
+ /* Try to return a Trusted Type object instead of a string, return a string in
689
+ * case Trusted Types are not supported */
690
+ let RETURN_TRUSTED_TYPE = false;
691
+ /* Output should be free from DOM clobbering attacks?
692
+ * This sanitizes markups named with colliding, clobberable built-in DOM APIs.
693
+ */
694
+ let SANITIZE_DOM = true;
695
+ /* Achieve full DOM Clobbering protection by isolating the namespace of named
696
+ * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
697
+ *
698
+ * HTML/DOM spec rules that enable DOM Clobbering:
699
+ * - Named Access on Window (§7.3.3)
700
+ * - DOM Tree Accessors (§3.1.5)
701
+ * - Form Element Parent-Child Relations (§4.10.3)
702
+ * - Iframe srcdoc / Nested WindowProxies (§4.8.5)
703
+ * - HTMLCollection (§4.2.10.2)
704
+ *
705
+ * Namespace isolation is implemented by prefixing `id` and `name` attributes
706
+ * with a constant string, i.e., `user-content-`
707
+ */
708
+ let SANITIZE_NAMED_PROPS = false;
709
+ const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
710
+ /* Keep element content when removing element? */
711
+ let KEEP_CONTENT = true;
712
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
713
+ * of importing it into a new Document and returning a sanitized copy */
714
+ let IN_PLACE = false;
715
+ /* Allow usage of profiles like html, svg and mathMl */
716
+ let USE_PROFILES = {};
717
+ /* Tags to ignore content of when KEEP_CONTENT is true */
718
+ let FORBID_CONTENTS = null;
719
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
720
+ // <selectedcontent> mirrors the selected <option>'s subtree, cloned by
721
+ // the UA (customizable <select>) — including any on* handlers — and the
722
+ // engine re-mirrors synchronously whenever a removal changes which
723
+ // option/selectedcontent is current, even inside DOMPurify's inert
724
+ // DOMParser document. Hoisting its children on removal re-inserts a fresh
725
+ // mirror target ahead of the walk, which the engine refills, looping
726
+ // forever (DoS) and amplifying output. Dropping its content on removal
727
+ // (rather than hoisting) breaks that cascade; the content is a duplicate
728
+ // of the option, which is sanitized on its own. See campaign-3 F1/F6.
729
+ 'selectedcontent', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
730
+ /* Tags that are safe for data: URIs */
731
+ let DATA_URI_TAGS = null;
732
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
733
+ /* Attributes safe for values like "javascript:" */
734
+ let URI_SAFE_ATTRIBUTES = null;
735
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
736
+ const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
737
+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
738
+ const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
739
+ /* Document namespace */
740
+ let NAMESPACE = HTML_NAMESPACE;
741
+ let IS_EMPTY_INPUT = false;
742
+ /* Allowed XHTML+XML namespaces */
743
+ let ALLOWED_NAMESPACES = null;
744
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
745
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze(['mi', 'mo', 'mn', 'ms', 'mtext']);
746
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
747
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(['annotation-xml']);
748
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
749
+ // Certain elements are allowed in both SVG and HTML
750
+ // namespace. We need to specify them explicitly
751
+ // so that they don't get erroneously deleted from
752
+ // HTML namespace.
753
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
754
+ /* Parsing of strict XHTML documents */
755
+ let PARSER_MEDIA_TYPE = null;
756
+ const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
757
+ const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
758
+ let transformCaseFunc = null;
759
+ /* Keep a reference to config to pass to hooks */
760
+ let CONFIG = null;
761
+ /* Ideally, do not touch anything below this line */
762
+ /* ______________________________________________ */
763
+ const formElement = document.createElement('form');
764
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
765
+ return testValue instanceof RegExp || testValue instanceof Function;
766
+ };
767
+ /**
768
+ * _parseConfig
769
+ *
770
+ * @param cfg optional config literal
771
+ */
772
+ // eslint-disable-next-line complexity
773
+ const _parseConfig = function _parseConfig() {
774
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
775
+ if (CONFIG && CONFIG === cfg) {
776
+ return;
777
+ }
778
+ /* Shield configuration object from tampering */
779
+ if (!cfg || typeof cfg !== 'object') {
780
+ cfg = {};
781
+ }
782
+ /* Shield configuration object from prototype pollution */
783
+ cfg = clone(cfg);
784
+ PARSER_MEDIA_TYPE =
785
+ // eslint-disable-next-line unicorn/prefer-includes
786
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
787
+ // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
788
+ transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
789
+ /* Set configuration parameters */
790
+ ALLOWED_TAGS = _resolveSetOption(cfg, 'ALLOWED_TAGS', DEFAULT_ALLOWED_TAGS, {
791
+ transform: transformCaseFunc
792
+ });
793
+ ALLOWED_ATTR = _resolveSetOption(cfg, 'ALLOWED_ATTR', DEFAULT_ALLOWED_ATTR, {
794
+ transform: transformCaseFunc
795
+ });
796
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, 'ALLOWED_NAMESPACES', DEFAULT_ALLOWED_NAMESPACES, {
797
+ transform: stringToString
798
+ });
799
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, 'ADD_URI_SAFE_ATTR', DEFAULT_URI_SAFE_ATTRIBUTES, {
800
+ transform: transformCaseFunc,
801
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
802
+ });
803
+ DATA_URI_TAGS = _resolveSetOption(cfg, 'ADD_DATA_URI_TAGS', DEFAULT_DATA_URI_TAGS, {
804
+ transform: transformCaseFunc,
805
+ base: DEFAULT_DATA_URI_TAGS
806
+ });
807
+ FORBID_CONTENTS = _resolveSetOption(cfg, 'FORBID_CONTENTS', DEFAULT_FORBID_CONTENTS, {
808
+ transform: transformCaseFunc
809
+ });
810
+ FORBID_TAGS = _resolveSetOption(cfg, 'FORBID_TAGS', clone({}), {
811
+ transform: transformCaseFunc
812
+ });
813
+ FORBID_ATTR = _resolveSetOption(cfg, 'FORBID_ATTR', clone({}), {
814
+ transform: transformCaseFunc
815
+ });
816
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
817
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
818
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
819
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
820
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
821
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
822
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
823
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
824
+ RETURN_DOM = cfg.RETURN_DOM || false; // Default false
825
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
826
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
827
+ FORCE_BODY = cfg.FORCE_BODY || false; // Default false
828
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
829
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
830
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
831
+ IN_PLACE = cfg.IN_PLACE || false; // Default false
832
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
833
+ NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
834
+ MATHML_TEXT_INTEGRATION_POINTS = _resolveObjectOption(cfg, 'MATHML_TEXT_INTEGRATION_POINTS', () => addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS) // Default built-in map
835
+ );
836
+ HTML_INTEGRATION_POINTS = _resolveObjectOption(cfg, 'HTML_INTEGRATION_POINTS', () => addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS) // Default built-in map
837
+ );
838
+ const customElementHandling = _resolveObjectOption(cfg, 'CUSTOM_ELEMENT_HANDLING', () => create(null));
839
+ CUSTOM_ELEMENT_HANDLING = create(null);
840
+ if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
841
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
842
+ }
843
+ if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
844
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
845
+ }
846
+ if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
847
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
848
+ }
849
+ seal(CUSTOM_ELEMENT_HANDLING);
850
+ if (SAFE_FOR_TEMPLATES) {
851
+ ALLOW_DATA_ATTR = false;
852
+ }
853
+ if (RETURN_DOM_FRAGMENT) {
854
+ RETURN_DOM = true;
855
+ }
856
+ /* Parse profile info */
857
+ if (USE_PROFILES) {
858
+ ALLOWED_TAGS = addToSet({}, text);
859
+ ALLOWED_ATTR = create(null);
860
+ if (USE_PROFILES.html === true) {
861
+ addToSet(ALLOWED_TAGS, html$1);
862
+ addToSet(ALLOWED_ATTR, html);
863
+ }
864
+ if (USE_PROFILES.svg === true) {
865
+ addToSet(ALLOWED_TAGS, svg$1);
866
+ addToSet(ALLOWED_ATTR, svg);
867
+ addToSet(ALLOWED_ATTR, xml);
868
+ }
869
+ if (USE_PROFILES.svgFilters === true) {
870
+ addToSet(ALLOWED_TAGS, svgFilters);
871
+ addToSet(ALLOWED_ATTR, svg);
872
+ addToSet(ALLOWED_ATTR, xml);
873
+ }
874
+ if (USE_PROFILES.mathMl === true) {
875
+ addToSet(ALLOWED_TAGS, mathMl$1);
876
+ addToSet(ALLOWED_ATTR, mathMl);
877
+ addToSet(ALLOWED_ATTR, xml);
878
+ }
879
+ }
880
+ /* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
881
+ * leaking across calls when switching from function to array config */
882
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
883
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
884
+ /* Merge configuration parameters */
885
+ if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
886
+ if (typeof cfg.ADD_TAGS === 'function') {
887
+ EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
888
+ } else if (arrayIsArray(cfg.ADD_TAGS)) {
889
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
890
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
891
+ }
892
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
893
+ }
894
+ }
895
+ if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
896
+ if (typeof cfg.ADD_ATTR === 'function') {
897
+ EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
898
+ } else if (arrayIsArray(cfg.ADD_ATTR)) {
899
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
900
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
901
+ }
902
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
903
+ }
904
+ }
905
+ if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
906
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
907
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
908
+ }
909
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
910
+ }
911
+ /* Add #text in case KEEP_CONTENT is set to true */
912
+ if (KEEP_CONTENT) {
913
+ ALLOWED_TAGS['#text'] = true;
914
+ }
915
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
916
+ if (WHOLE_DOCUMENT) {
917
+ addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
918
+ }
919
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
920
+ if (ALLOWED_TAGS.table) {
921
+ addToSet(ALLOWED_TAGS, ['tbody']);
922
+ delete FORBID_TAGS.tbody;
923
+ }
924
+ // Re-derive the active Trusted Types policy from this configuration on
925
+ // every parse. The active policy must never be sticky closure state that
926
+ // outlives the config that set it: a caller-supplied policy left in place
927
+ // after `clearConfig()` — or after a later call that supplied none, or
928
+ // `TRUSTED_TYPES_POLICY: null` — could sign a subsequent "default"
929
+ // `RETURN_TRUSTED_TYPE` result with a foreign, possibly unsafe policy.
930
+ // See GHSA-vxr8-fq34-vvx9.
931
+ if (cfg.TRUSTED_TYPES_POLICY) {
932
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
933
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
934
+ }
935
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
936
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
937
+ }
938
+ // A caller-supplied policy applies to this configuration only.
939
+ const previousTrustedTypesPolicy = trustedTypesPolicy;
940
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
941
+ // Sign local variables required by `sanitize`. If the supplied policy's
942
+ // `createHTML` is circular (i.e. it calls `DOMPurify.sanitize`), this
943
+ // throws via the re-entrancy guard. Restore the previous policy first so
944
+ // the instance is not left in a poisoned state. See #1422.
945
+ try {
946
+ emptyHTML = _createTrustedHTML('');
947
+ } catch (error) {
948
+ trustedTypesPolicy = previousTrustedTypesPolicy;
949
+ throw error;
950
+ }
951
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
952
+ // Explicit opt-out for this call: perform no Trusted Types signing and
953
+ // create nothing (so a strict `trusted-types` CSP that disallows a
954
+ // `dompurify` policy can still call `sanitize` from inside its own
955
+ // policy — see #1422). Resetting to `undefined` rather than a sticky
956
+ // `null` also drops any previously retained caller policy, so it cannot
957
+ // resurface on a later call, while still allowing the next config-less
958
+ // call to restore the internal default policy. See GHSA-vxr8-fq34-vvx9.
959
+ trustedTypesPolicy = undefined;
960
+ emptyHTML = '';
961
+ } else {
962
+ // No policy supplied: keep the currently active policy if one is set — a
963
+ // previously supplied policy is intentionally sticky across config-less
964
+ // calls — otherwise fall back to the instance's own internal policy,
965
+ // created at most once. (A policy supplied for a *single* call still
966
+ // lingers by design; what must not linger is a policy whose configuration
967
+ // has been torn down via `clearConfig()`, which restores the default.)
968
+ if (trustedTypesPolicy === undefined) {
969
+ trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
970
+ }
971
+ // Sign internal variables only when a policy is active. A falsy policy
972
+ // (Trusted Types unsupported, creation failed, or an explicit opt-out)
973
+ // leaves `emptyHTML` as a plain string, so we never call `.createHTML` on
974
+ // a non-policy and throw. See #1422.
975
+ if (trustedTypesPolicy && typeof emptyHTML === 'string') {
976
+ emptyHTML = _createTrustedHTML('');
977
+ }
978
+ }
979
+ // Prevent further manipulation of configuration.
980
+ // Not available in IE8, Safari 5, etc.
981
+ if (freeze) {
982
+ freeze(cfg);
983
+ }
984
+ CONFIG = cfg;
985
+ };
986
+ /* Keep track of all possible SVG and MathML tags
987
+ * so that we can perform the namespace checks
988
+ * correctly. */
989
+ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
990
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
991
+ /**
992
+ * Namespace rules for an element in the SVG namespace.
993
+ *
994
+ * @param tagName the element's lowercase tag name
995
+ * @param parent the (possibly simulated) parent node
996
+ * @param parentTagName the parent's lowercase tag name
997
+ * @returns true if a spec-compliant parser could produce this element
998
+ */
999
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
1000
+ // The only way to switch from HTML namespace to SVG
1001
+ // is via <svg>. If it happens via any other tag, then
1002
+ // it should be killed.
1003
+ if (parent.namespaceURI === HTML_NAMESPACE) {
1004
+ return tagName === 'svg';
1005
+ }
1006
+ // The only way to switch from MathML to SVG is via <svg>
1007
+ // if the parent is either <annotation-xml> or a MathML
1008
+ // text integration point.
1009
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
1010
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
1011
+ }
1012
+ // We only allow elements that are defined in SVG
1013
+ // spec. All others are disallowed in SVG namespace.
1014
+ return Boolean(ALL_SVG_TAGS[tagName]);
1015
+ };
1016
+ /**
1017
+ * Namespace rules for an element in the MathML namespace.
1018
+ *
1019
+ * @param tagName the element's lowercase tag name
1020
+ * @param parent the (possibly simulated) parent node
1021
+ * @param parentTagName the parent's lowercase tag name
1022
+ * @returns true if a spec-compliant parser could produce this element
1023
+ */
1024
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
1025
+ // The only way to switch from HTML namespace to MathML
1026
+ // is via <math>. If it happens via any other tag, then
1027
+ // it should be killed.
1028
+ if (parent.namespaceURI === HTML_NAMESPACE) {
1029
+ return tagName === 'math';
1030
+ }
1031
+ // The only way to switch from SVG to MathML is via
1032
+ // <math> and HTML integration points
1033
+ if (parent.namespaceURI === SVG_NAMESPACE) {
1034
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
1035
+ }
1036
+ // We only allow elements that are defined in MathML
1037
+ // spec. All others are disallowed in MathML namespace.
1038
+ return Boolean(ALL_MATHML_TAGS[tagName]);
1039
+ };
1040
+ /**
1041
+ * Namespace rules for an element in the HTML namespace.
1042
+ *
1043
+ * @param tagName the element's lowercase tag name
1044
+ * @param parent the (possibly simulated) parent node
1045
+ * @param parentTagName the parent's lowercase tag name
1046
+ * @returns true if a spec-compliant parser could produce this element
1047
+ */
1048
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
1049
+ // The only way to switch from SVG to HTML is via
1050
+ // HTML integration points, and from MathML to HTML
1051
+ // is via MathML text integration points
1052
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
1053
+ return false;
1054
+ }
1055
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
1056
+ return false;
1057
+ }
1058
+ // We disallow tags that are specific for MathML
1059
+ // or SVG and should never appear in HTML namespace
1060
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1061
+ };
1062
+ /**
1063
+ * @param element a DOM element whose namespace is being checked
1064
+ * @returns Return false if the element has a
1065
+ * namespace that a spec-compliant parser would never
1066
+ * return. Return true otherwise.
1067
+ */
1068
+ const _checkValidNamespace = function _checkValidNamespace(element) {
1069
+ let parent = getParentNode(element);
1070
+ // In JSDOM, if we're inside shadow DOM, then parentNode
1071
+ // can be null. We just simulate parent in this case.
1072
+ if (!parent || !parent.tagName) {
1073
+ parent = {
1074
+ namespaceURI: NAMESPACE,
1075
+ tagName: 'template'
1076
+ };
1077
+ }
1078
+ const tagName = stringToLowerCase(element.tagName);
1079
+ const parentTagName = stringToLowerCase(parent.tagName);
1080
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
1081
+ return false;
1082
+ }
1083
+ if (element.namespaceURI === SVG_NAMESPACE) {
1084
+ return _checkSvgNamespace(tagName, parent, parentTagName);
1085
+ }
1086
+ if (element.namespaceURI === MATHML_NAMESPACE) {
1087
+ return _checkMathMlNamespace(tagName, parent, parentTagName);
1088
+ }
1089
+ if (element.namespaceURI === HTML_NAMESPACE) {
1090
+ return _checkHtmlNamespace(tagName, parent, parentTagName);
1091
+ }
1092
+ // For XHTML and XML documents that support custom namespaces
1093
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
1094
+ return true;
1095
+ }
1096
+ // The code should never reach this place (this means
1097
+ // that the element somehow got namespace that is not
1098
+ // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
1099
+ // Return false just in case.
1100
+ return false;
1101
+ };
1102
+ /**
1103
+ * _forceRemove
1104
+ *
1105
+ * @param node a DOM node
1106
+ */
1107
+ const _forceRemove = function _forceRemove(node) {
1108
+ arrayPush(DOMPurify.removed, {
1109
+ element: node
1110
+ });
1111
+ try {
1112
+ // eslint-disable-next-line unicorn/prefer-dom-node-remove
1113
+ getParentNode(node).removeChild(node);
1114
+ } catch (_) {
1115
+ /* The normal detach failed — this is reached for a parentless node
1116
+ (getParentNode() is null, so .removeChild throws). Element.prototype
1117
+ .remove() is itself a spec no-op on a parentless node, so a recorded
1118
+ "removal" would otherwise hand the caller back an intact,
1119
+ payload-bearing node (e.g. a detached IN_PLACE root the mXSS canary or
1120
+ the style-with-element-child rule decided to kill). Fail closed by
1121
+ throwing — exactly as a clobbered root does at the IN_PLACE entry —
1122
+ rather than trying to "neutralize" the node via its own methods.
1123
+ Neutralizing would mean calling getAttributeNames()/removeAttribute()
1124
+ on the node, both of which a <form> root can clobber via a named child
1125
+ (and _isClobbered does not even probe getAttributeNames), so the
1126
+ neutralize step could itself be silently defeated, leaving the payload
1127
+ intact. A throw touches only the cached, clobber-safe remove() and
1128
+ getParentNode(). Generalizes GHSA-r47g-fvhr-h676 (clobbered-form root)
1129
+ to every root-kill reason. REPORT-3.
1130
+ This lives inside the catch, so it never fires for a normally-removed
1131
+ in-tree node: those have a parent, removeChild() succeeds, and the
1132
+ catch is not entered. Only a kept (parentless) root reaches here. */
1133
+ remove(node);
1134
+ if (!getParentNode(node)) {
1135
+ throw typeErrorCreate('a node selected for removal could not be detached from its tree ' + 'and cannot be safely returned; refusing to sanitize in place');
1136
+ }
1137
+ }
1138
+ };
1139
+ /**
1140
+ * _stripAttributeNode
1141
+ *
1142
+ * Remove a single Attr node case/namespace-exactly on an attribute-teardown
1143
+ * path. Name-based removeAttribute() ASCII-lowercases its lookup key for an
1144
+ * HTML element in an HTML document and so silently misses a case-preserved
1145
+ * handler (e.g. `ONERROR` off an XML/XHTML import) - the same defect
1146
+ * _removeAttribute() was fixed for, which a name-based call would reintroduce
1147
+ * on these IN_PLACE teardown paths. Unlike _removeAttribute this does not
1148
+ * record into DOMPurify.removed: the neutralize passes intentionally do not
1149
+ * book-keep. A clobbered/detached node falls back to best-effort name-based
1150
+ * removal.
1151
+ *
1152
+ * @param element the element to strip the attribute from
1153
+ * @param attribute the Attr node to remove
1154
+ * @param name the attribute's name, for the fallback path
1155
+ */
1156
+ const _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {
1157
+ try {
1158
+ removeAttributeNode(element, attribute);
1159
+ } catch (_) {
1160
+ try {
1161
+ element.removeAttribute(name);
1162
+ } catch (_) {}
1163
+ }
1164
+ };
1165
+ /**
1166
+ * _neutralizeRoot
1167
+ *
1168
+ * Fail-closed teardown of an in-place root after the sanitize walk aborts
1169
+ * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
1170
+ * custom element's reaction detaches a node so `_forceRemove`'s deliberate
1171
+ * parentless guard throws, or any other re-entrant engine mutation — would
1172
+ * otherwise leave the caller's *live* tree half-sanitized, with everything
1173
+ * after the abort point still carrying its handlers. There is no safe way
1174
+ * to resume the walk (the tree mutated under us), so we strip the root bare:
1175
+ * remove every child and every attribute, then let the caller's catch see
1176
+ * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
1177
+ * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
1178
+ *
1179
+ * @param root the in-place root to empty
1180
+ */
1181
+ const _neutralizeRoot = function _neutralizeRoot(root) {
1182
+ /* Strip every disallowed attribute (on* handlers included) off the whole
1183
+ subtree BEFORE detaching anything. Detaching first would hand back
1184
+ handler-bearing originals (e.g. an already-loading `<img onerror>`)
1185
+ whose queued resource event still fires in page scope after we throw.
1186
+ Clobber-safe reads; a doomed clobbered node's own attributes are
1187
+ irrelevant while its non-clobbered descendants are reached and scrubbed. */
1188
+ _neutralizeSubtree(root);
1189
+ const childNodes = getChildNodes(root);
1190
+ if (childNodes) {
1191
+ const snapshot = [];
1192
+ arrayForEach(childNodes, child => {
1193
+ arrayPush(snapshot, child);
1194
+ });
1195
+ arrayForEach(snapshot, child => {
1196
+ try {
1197
+ remove(child);
1198
+ } catch (_) {
1199
+ /* Best-effort teardown; a still-attached child is handled below */
1200
+ }
1201
+ });
1202
+ }
1203
+ const attributes = getAttributes(root);
1204
+ if (attributes) {
1205
+ for (let i = attributes.length - 1; i >= 0; --i) {
1206
+ const attribute = attributes[i];
1207
+ const name = attribute && attribute.name;
1208
+ if (typeof name === 'string') {
1209
+ _stripAttributeNode(root, attribute, name);
1210
+ }
1211
+ }
1212
+ }
1213
+ };
1214
+ /**
1215
+ * _removeAttribute
1216
+ *
1217
+ * Name-based getAttributeNode()/removeAttribute() ASCII-lowercase their
1218
+ * lookup key for HTML elements in an HTML document, so they silently miss an
1219
+ * attribute whose stored qualified name still contains uppercase ASCII
1220
+ * letters. That happens when the node came from a case-preserving source
1221
+ * (an XML/XHTML document imported via importNode(), or createAttributeNS()),
1222
+ * where e.g. `ONERROR` survives the walk: the policy check lowercases to
1223
+ * `onerror` and rejects it, but `removeAttribute('ONERROR')` looks up
1224
+ * `onerror` and finds nothing. Remove the exact Attr node instead, which is
1225
+ * case- and namespace-exact, and fall back to name-based removal only when
1226
+ * the caller could not supply the node.
1227
+ *
1228
+ * @param name an Attribute name
1229
+ * @param element a DOM node
1230
+ * @param attr the exact Attr node to remove, when the caller has it
1231
+ */
1232
+ const _removeAttribute = function _removeAttribute(name, element, attr) {
1233
+ if (!attr) {
1234
+ try {
1235
+ attr = element.getAttributeNode(name);
1236
+ } catch (_) {
1237
+ attr = null;
1238
+ }
1239
+ }
1240
+ arrayPush(DOMPurify.removed, {
1241
+ attribute: attr || null,
1242
+ from: element
1243
+ });
1244
+ try {
1245
+ if (attr) {
1246
+ removeAttributeNode(element, attr);
1247
+ } else {
1248
+ element.removeAttribute(name);
1249
+ }
1250
+ } catch (_) {
1251
+ /* Clobbered or already-detached node - best-effort fall back to a
1252
+ name-based removal so the "is" handling below still runs. Note this
1253
+ fallback ASCII-lowercases its lookup key in an HTML document and so
1254
+ cannot reach a case-preserved attribute name; the cached
1255
+ removeAttributeNode() above is what removes those, and a clobbered
1256
+ form is already removed wholesale by _isClobbered() before reaching
1257
+ here. */
1258
+ try {
1259
+ element.removeAttribute(name);
1260
+ } catch (_) {}
1261
+ }
1262
+ // We void attribute values for unremovable "is" attributes
1263
+ if (name === 'is') {
1264
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
1265
+ try {
1266
+ _forceRemove(element);
1267
+ } catch (_) {}
1268
+ } else {
1269
+ try {
1270
+ element.setAttribute(name, '');
1271
+ } catch (_) {}
1272
+ }
1273
+ }
1274
+ };
1275
+ /**
1276
+ * _stripDisallowedAttributes
1277
+ *
1278
+ * Removes every attribute the active configuration does not allow from a
1279
+ * single element, using the same allowlist as the main attribute pass (so
1280
+ * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
1281
+ * neutralise nodes that are being discarded from an in-place tree.
1282
+ *
1283
+ * @param element the element to strip
1284
+ */
1285
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
1286
+ const attributes = getAttributes(element);
1287
+ if (!attributes) {
1288
+ return;
1289
+ }
1290
+ for (let i = attributes.length - 1; i >= 0; --i) {
1291
+ const attribute = attributes[i];
1292
+ const name = attribute && attribute.name;
1293
+ if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {
1294
+ continue;
1295
+ }
1296
+ _stripAttributeNode(element, attribute, name);
1297
+ }
1298
+ };
1299
+ /**
1300
+ * _neutralizeSubtree
1301
+ *
1302
+ * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
1303
+ * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
1304
+ * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
1305
+ * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
1306
+ * those dropped nodes are detached from the caller's LIVE tree but a
1307
+ * handler-bearing original among them (an `<img onerror>`/`<video>` that was
1308
+ * loading) keeps its queued resource event, which fires in page scope after
1309
+ * sanitize returns. This walks a removed subtree and strips every attribute
1310
+ * the active configuration does not allow — so `on*` handlers are cancelled
1311
+ * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
1312
+ * blocklist. Run synchronously before sanitize returns, i.e. before any
1313
+ * queued event can fire. Hook-free by design: these nodes leave the output,
1314
+ * so firing attribute hooks for them would be surprising. Clobber-safe reads;
1315
+ * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
1316
+ * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
1317
+ * the `<img>`, are reached and scrubbed).
1318
+ *
1319
+ * @param root the root of a removed subtree to neutralise
1320
+ */
1321
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
1322
+ const stack = [root];
1323
+ while (stack.length > 0) {
1324
+ const node = stack.pop();
1325
+ const nodeType = _readNodeType(node);
1326
+ if (nodeType === NODE_TYPE.element) {
1327
+ _stripDisallowedAttributes(node);
1328
+ }
1329
+ const childNodes = getChildNodes(node);
1330
+ if (childNodes) {
1331
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1332
+ stack.push(childNodes[i]);
1333
+ }
1334
+ }
1335
+ }
1336
+ };
1337
+ /**
1338
+ * _neutralizePatchLinkage
1339
+ *
1340
+ * IN_PLACE entry pre-pass (declarative-partial-updates / streaming
1341
+ * hardening, https://github.com/WICG/declarative-partial-updates).
1342
+ *
1343
+ * The main walk strips patch linkage (`for`/`patchsrc`) and removes range
1344
+ * markers (PIs / markup comments) node-by-node, in document order, AS it
1345
+ * reaches each node. On a live in-place root that leaves a window: from the
1346
+ * moment the root is connected until the walk arrives at a given node, that
1347
+ * node's linkage is live. A patch applied on connection/stream can fire as
1348
+ * a microtask during the walk and inject or teleport an unsanitized DOM
1349
+ * range into a region the iterator has already passed and will not revisit,
1350
+ * so the post-return "tree is sanitized" contract is violated. Sweep the
1351
+ * whole tree once up front and sever every linkage before the walk begins,
1352
+ * closing that window.
1353
+ *
1354
+ * This CANNOT undo a patch that already fired before sanitize ran — that is
1355
+ * the irreducible "do not IN_PLACE a live-connected attacker tree" caveat —
1356
+ * but it closes everything from sanitize-start onward. Gated on SAFE_FOR_XML
1357
+ * to group with the rest of the declarative-partial-updates handling and
1358
+ * stay overridable, consistent with the codebase.
1359
+ *
1360
+ * Clobber-safe traversal (cached childNodes getter); per-node try/catch so a
1361
+ * clobbered root cannot defeat the sweep of its non-clobbered descendants.
1362
+ *
1363
+ * NOTE (pending real-Chrome confirmation, see test/declarative-patch-probe
1364
+ * .html Q1): this mirrors the existing policy of keeping `for` on
1365
+ * <label>/<output>. If the shipping feature can drive a patch through a
1366
+ * surviving `for`-on-label/output + `id` pair, this pre-pass and the
1367
+ * attribute check at _isBasicCustomElement's caller must additionally drop
1368
+ * that pair on the IN_PLACE path. Left as-is until the taxonomy is verified.
1369
+ *
1370
+ * @param root the in-place root to sweep
1371
+ */
1372
+ /**
1373
+ * Central policy for declarative-partial-updates patch-linkage attributes,
1374
+ * shared by the _neutralizePatchLinkage pre-pass and _isValidAttribute so
1375
+ * the two sites cannot drift: `patchsrc` always links, `for` links
1376
+ * everywhere except on <label>/<output>, and the whole policy is gated on
1377
+ * SAFE_FOR_XML (see the rationale block in _isValidAttribute).
1378
+ *
1379
+ * @param lcName the transformCaseFunc'd attribute name
1380
+ * @param lcTag the transformCaseFunc'd tag name of the carrying element
1381
+ * @return true if the attribute is patch linkage and must be dropped
1382
+ */
1383
+ const _isPatchLinkageAttribute = function _isPatchLinkageAttribute(lcName, lcTag) {
1384
+ if (!SAFE_FOR_XML) {
1385
+ return false;
1386
+ }
1387
+ if (lcName === 'patchsrc') {
1388
+ return true;
1389
+ }
1390
+ return lcName === 'for' && lcTag !== 'label' && lcTag !== 'output';
1391
+ };
1392
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
1393
+ if (!SAFE_FOR_XML) {
1394
+ return;
1395
+ }
1396
+ const stack = [root];
1397
+ while (stack.length > 0) {
1398
+ const node = stack.pop();
1399
+ const nodeType = _readNodeType(node);
1400
+ /* Remove range markers (the target side of a patch linkage): every
1401
+ processing instruction, and any markup-bearing comment. */
1402
+ if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
1403
+ try {
1404
+ remove(node);
1405
+ } catch (_) {
1406
+ /* Best-effort */
1407
+ }
1408
+ continue;
1409
+ }
1410
+ /* Strip patch-source attributes (the source side) off elements. */
1411
+ if (nodeType === NODE_TYPE.element) {
1412
+ const element = node;
1413
+ const lcTag = transformCaseFunc(_readNodeName(node));
1414
+ try {
1415
+ if (element.hasAttribute && element.hasAttribute('patchsrc')) {
1416
+ element.removeAttribute('patchsrc');
1417
+ }
1418
+ if (element.hasAttribute && element.hasAttribute('for') && _isPatchLinkageAttribute('for', lcTag)) {
1419
+ element.removeAttribute('for');
1420
+ }
1421
+ } catch (_) {
1422
+ /* Clobbered removeAttribute/hasAttribute on a doomed node — ignore */
1423
+ }
1424
+ }
1425
+ const childNodes = getChildNodes(node);
1426
+ if (childNodes) {
1427
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1428
+ stack.push(childNodes[i]);
1429
+ }
1430
+ }
1431
+ }
1432
+ };
1433
+ /**
1434
+ * _initDocument
1435
+ *
1436
+ * @param dirty - a string of dirty markup
1437
+ * @return a DOM, filled with the dirty markup
1438
+ */
1439
+ const _initDocument = function _initDocument(dirty) {
1440
+ /* Create a HTML document */
1441
+ let doc = null;
1442
+ let leadingWhitespace = null;
1443
+ if (FORCE_BODY) {
1444
+ dirty = '<remove></remove>' + dirty;
1445
+ } else {
1446
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
1447
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
1448
+ leadingWhitespace = matches && matches[0];
1449
+ }
1450
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
1451
+ // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
1452
+ dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
1453
+ }
1454
+ const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
1455
+ /*
1456
+ * Use the DOMParser API by default, fallback later if needs be
1457
+ * DOMParser not work for svg when has multiple root element.
1458
+ */
1459
+ if (NAMESPACE === HTML_NAMESPACE) {
1460
+ try {
1461
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
1462
+ } catch (_) {}
1463
+ }
1464
+ /* Use createHTMLDocument in case DOMParser is not available */
1465
+ if (!doc || !doc.documentElement) {
1466
+ doc = implementation.createDocument(NAMESPACE, 'template', null);
1467
+ try {
1468
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
1469
+ } catch (_) {
1470
+ // Syntax error if dirtyPayload is invalid xml
1471
+ }
1472
+ }
1473
+ const body = doc.body || doc.documentElement;
1474
+ if (dirty && leadingWhitespace) {
1475
+ body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1476
+ }
1477
+ /* Work on whole document or just its body */
1478
+ if (NAMESPACE === HTML_NAMESPACE) {
1479
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
1480
+ }
1481
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
1482
+ };
1483
+ /**
1484
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
1485
+ *
1486
+ * @param root The root element or node to start traversing on.
1487
+ * @return The created NodeIterator
1488
+ */
1489
+ const _createNodeIterator = function _createNodeIterator(root) {
1490
+ /* Read ownerDocument through the cached Node.prototype getter, never the
1491
+ direct property. HTMLFormElement has [LegacyOverrideBuiltIns], so a
1492
+ clobbering child (<input name="ownerDocument"> or a form-associated
1493
+ external input) shadows the prototype getter and makes a direct read
1494
+ return that <input>. createNodeIterator.call(<input>, ...) then throws
1495
+ "Illegal invocation", and on the IN_PLACE path that throw lands before
1496
+ the walk's fail-closed barrier - leaving the caller's live tree, with
1497
+ any already-armed handler in it, un-neutralized. The cached getter
1498
+ returns the real Document regardless of the clobber. */
1499
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1500
+ return createNodeIterator.call(doc || root, root,
1501
+ // eslint-disable-next-line no-bitwise
1502
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1503
+ };
1504
+ /**
1505
+ * Replace template expression syntax (mustache, ERB, template
1506
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
1507
+ * sites. Order matters: mustache, then ERB, then template literal.
1508
+ *
1509
+ * @param value the string to scrub
1510
+ * @returns the scrubbed string
1511
+ */
1512
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1513
+ value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
1514
+ value = stringReplace(value, ERB_EXPR$1, ' ');
1515
+ value = stringReplace(value, TMPLIT_EXPR$1, ' ');
1516
+ return value;
1517
+ };
1518
+ /**
1519
+ * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
1520
+ * character data of an element subtree. Used as the final safety net for
1521
+ * SAFE_FOR_TEMPLATES on every DOM-returning code path so that expressions
1522
+ * which only form after text-node normalization (e.g. fragments split across
1523
+ * stripped elements) cannot survive into a template-evaluating framework.
1524
+ *
1525
+ * Walks text/comment/CDATA/processing-instruction nodes and mutates `.data`
1526
+ * in place rather than round-tripping through innerHTML. This preserves
1527
+ * descendant node references (important for IN_PLACE callers), avoids a
1528
+ * serialize/reparse cycle, and reads literal character data — which means
1529
+ * `<%...%>` in text content matches the ERB regex against its real bytes
1530
+ * instead of the HTML-entity-escaped form innerHTML would produce.
1531
+ *
1532
+ * Attribute values are not visited here; SAFE_FOR_TEMPLATES handling for
1533
+ * attributes is performed during the per-node `_sanitizeAttributes` pass.
1534
+ *
1535
+ * @param node The root element whose character data should be scrubbed.
1536
+ */
1537
+ const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1538
+ var _node$querySelectorAl;
1539
+ node.normalize();
1540
+ /* Clobber-safe ownerDocument read, same reasoning as _createNodeIterator:
1541
+ under SAFE_FOR_TEMPLATES this runs on the live IN_PLACE root, which may
1542
+ carry a form-named-getter override of ownerDocument. */
1543
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
1544
+ const walker = createNodeIterator.call(doc || node, node,
1545
+ // eslint-disable-next-line no-bitwise
1546
+ NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1547
+ let currentNode = walker.nextNode();
1548
+ while (currentNode) {
1549
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
1550
+ currentNode = walker.nextNode();
1551
+ }
1552
+ // NodeIterator does not descend into <template>.content per the DOM spec,
1553
+ // so we must explicitly recurse into each template's content fragment,
1554
+ // mirroring the approach used by _sanitizeShadowDOM.
1555
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, 'template');
1556
+ if (templates) {
1557
+ arrayForEach(templates, tmpl => {
1558
+ if (_isDocumentFragment(tmpl.content)) {
1559
+ _scrubTemplateExpressions2(tmpl.content);
1560
+ }
1561
+ });
1562
+ }
1563
+ };
1564
+ /**
1565
+ * _isClobbered
1566
+ *
1567
+ * Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
1568
+ * interface with [LegacyOverrideBuiltIns]; a descendant element with a
1569
+ * `name` attribute matching a prototype property shadows that property
1570
+ * on direct reads. We use this check at the IN_PLACE entry-point and
1571
+ * during attribute sanitization to refuse clobbered forms.
1572
+ *
1573
+ * @param element element to check for clobbering attacks
1574
+ * @return true if clobbered, false if safe
1575
+ */
1576
+ const _isClobbered = function _isClobbered(element) {
1577
+ // Realm-independent tag-name probe. If we can't determine the tag
1578
+ // name at all, we can't reason about clobbering — return false
1579
+ // (the caller's other defences still apply).
1580
+ const realTagName = getNodeName ? getNodeName(element) : null;
1581
+ if (typeof realTagName !== 'string') {
1582
+ return false;
1583
+ }
1584
+ if (transformCaseFunc(realTagName) !== 'form') {
1585
+ return false;
1586
+ }
1587
+ return typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' ||
1588
+ // Realm-safe NamedNodeMap detection: equality against the cached
1589
+ // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
1590
+ // makes the direct read diverge from the cached read; a clean form
1591
+ // (same-realm OR foreign-realm) has both reads pointing at the same
1592
+ // canonical NamedNodeMap.
1593
+ element.attributes !== getAttributes(element) || typeof element.removeAttribute !== 'function' ||
1594
+ // A form descendant named "removeAttributeNode" or "getAttributeNode"
1595
+ // shadows these Attr-node methods via [LegacyOverrideBuiltIns].
1596
+ // _removeAttribute() / _stripAttributeNode() reach for
1597
+ // element.removeAttributeNode(attr) first; when it is shadowed the call
1598
+ // throws and the name-based fallback element.removeAttribute(name)
1599
+ // ASCII-lowercases its lookup key in an HTML document, silently missing
1600
+ // a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
1601
+ // that reached the sanitizer through an XML/XHTML parse). Flag the form
1602
+ // so it is removed wholesale, exactly as for the other shadowed methods.
1603
+ typeof element.removeAttributeNode !== 'function' || typeof element.getAttributeNode !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function' ||
1604
+ // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1605
+ // returns the integer 1 for any Element regardless of realm; direct
1606
+ // read on a clobbered form (e.g. <input name="nodeType">) returns
1607
+ // the named child element. Cheap addition — nodeType is read from
1608
+ // an internal slot, no serialization cost — and removes a residual
1609
+ // clobbering surface used by several mXSS / PI / comment branches
1610
+ // in _sanitizeElements that compare currentNode.nodeType directly.
1611
+ element.nodeType !== getNodeType(element) ||
1612
+ // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
1613
+ // "childNodes" shadows the prototype getter. Direct reads of
1614
+ // form.childNodes from a clobbered form return the named child
1615
+ // instead of the real NodeList, so any walk that reads it directly
1616
+ // skips the form's real children. Compare the direct read to the
1617
+ // cached Node.prototype getter — when the form's named-property
1618
+ // getter intercepts the read, the two values differ and we flag
1619
+ // the form. This catches every clobbering child type (input,
1620
+ // select, etc.) regardless of whether the named child happens to
1621
+ // carry a numeric .length, which a typeof-based probe would miss
1622
+ // (e.g. HTMLSelectElement.length is a defined unsigned-long).
1623
+ element.childNodes !== getChildNodes(element);
1624
+ };
1625
+ /**
1626
+ * Checks whether the given value is a DocumentFragment from any realm.
1627
+ *
1628
+ * The realm-independent replacement reads `nodeType` through the cached
1629
+ * Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
1630
+ * constant (11). nodeType is a numeric value resolved from the node's
1631
+ * internal slot, identical across realms for the same kind of node.
1632
+ *
1633
+ * @param value object to check
1634
+ * @return true if value is a DocumentFragment-shaped node from any realm
1635
+ */
1636
+ const _isDocumentFragment = function _isDocumentFragment(value) {
1637
+ if (!getNodeType || typeof value !== 'object' || value === null) {
1638
+ return false;
1639
+ }
1640
+ try {
1641
+ return getNodeType(value) === NODE_TYPE.documentFragment;
1642
+ } catch (_) {
1643
+ return false;
1644
+ }
1645
+ };
1646
+ /**
1647
+ * Checks whether the given object is a DOM node, including nodes that
1648
+ * originate from a different window/realm (e.g. an iframe's
1649
+ * contentDocument). The previous `value instanceof Node` check was
1650
+ * realm-bound: nodes from a different window failed it, causing
1651
+ * sanitize() to silently stringify them and reset IN_PLACE to false,
1652
+ * returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
1653
+ *
1654
+ * @param value object to check whether it's a DOM node
1655
+ * @return true if value is a DOM node from any realm
1656
+ */
1657
+ const _isNode = function _isNode(value) {
1658
+ if (!getNodeType || typeof value !== 'object' || value === null) {
1659
+ return false;
1660
+ }
1661
+ try {
1662
+ return typeof getNodeType(value) === 'number';
1663
+ } catch (_) {
1664
+ return false;
1665
+ }
1666
+ };
1667
+ function _executeHooks(hooks, currentNode, data) {
1668
+ if (hooks.length === 0) {
1669
+ return;
1670
+ }
1671
+ arrayForEach(hooks, hook => {
1672
+ hook.call(DOMPurify, currentNode, data, CONFIG);
1673
+ });
1674
+ }
1675
+ /**
1676
+ * Structural-threat checks that condemn a node regardless of the
1677
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
1678
+ * processing instructions, markup-bearing comments. Pure predicate;
1679
+ * the caller removes. Check order is load-bearing.
1680
+ *
1681
+ * @param currentNode the node to inspect
1682
+ * @param tagName the node's transformCaseFunc'd tag name
1683
+ * @return true if the node must be removed
1684
+ */
1685
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1686
+ /* Detect mXSS attempts abusing namespace confusion */
1687
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
1688
+ return true;
1689
+ }
1690
+ /* Remove rawtext/literal-text elements whose literal serialization
1691
+ re-opens markup on an HTML reparse - shapes (a) and (b) documented at
1692
+ LITERAL_TEXT_ELEMENTS. Both are invisible to rule 1 above (which
1693
+ self-disables once there is an element child, and whose second probe
1694
+ reads the innerHTML an XML/XHTML document serializes escaped), which
1695
+ is why both probes here read textContent instead. Previously only
1696
+ `style`-with-element-child was covered; every element in
1697
+ LITERAL_TEXT_ELEMENTS shares this literal serialization and is
1698
+ equally affected. */
1699
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && LITERAL_TEXT_ELEMENTS[tagName] && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === 'string' && regExpTest(LITERAL_TEXT_CLOSE[tagName], currentNode.textContent))) {
1700
+ return true;
1701
+ }
1702
+ /* Remove any occurrence of processing instructions */
1703
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) {
1704
+ return true;
1705
+ }
1706
+ /* Remove any kind of possibly harmful comments */
1707
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) {
1708
+ return true;
1709
+ }
1710
+ return false;
1711
+ };
1712
+ /**
1713
+ * Evaluate a CUSTOM_ELEMENT_HANDLING check (a RegExp or a predicate
1714
+ * function, per the validation in _parseConfig) against a name.
1715
+ * Additional arguments are forwarded to predicate functions - the
1716
+ * attributeNameCheck predicate receives the tag name as its second
1717
+ * argument. A null/absent check never matches.
1718
+ *
1719
+ * @param check the configured tagNameCheck / attributeNameCheck value
1720
+ * @param name the name to test
1721
+ * @param args extra arguments forwarded to a predicate function
1722
+ * @return true if the check matches the name
1723
+ */
1724
+ const _matchesNameCheck = function _matchesNameCheck(check, name) {
1725
+ if (check instanceof RegExp) {
1726
+ return regExpTest(check, name);
1727
+ }
1728
+ if (check instanceof Function) {
1729
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1730
+ args[_key - 2] = arguments[_key];
1731
+ }
1732
+ return Boolean(check(name, ...args));
1733
+ }
1734
+ return false;
1735
+ };
1736
+ /**
1737
+ * Handle a node whose tag is forbidden or not allowlisted: keep
1738
+ * allowed custom elements (false return exits _sanitizeElements
1739
+ * early - the namespace and fallback-tag removal checks are
1740
+ * intentionally skipped for kept custom elements), else hoist
1741
+ * content per KEEP_CONTENT and remove.
1742
+ *
1743
+ * A kept custom element is the ONLY case in which this function
1744
+ * returns false, so the caller uses that return value to run the
1745
+ * afterSanitizeElements hook on the kept element and keep the
1746
+ * element-hook lifecycle consistent with normal allowlisted
1747
+ * elements (GHSA-c2j3-45gr-mqc4).
1748
+ *
1749
+ * @param currentNode the disallowed node
1750
+ * @param tagName the node's transformCaseFunc'd tag name
1751
+ * @return true if the node was removed, false if kept
1752
+ */
1753
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1754
+ /* Check if we have a custom element to handle */
1755
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1756
+ return false;
1757
+ }
1758
+ /* Keep content except for bad-listed elements.
1759
+ Use the cached prototype getters exclusively — the previous code
1760
+ had `|| currentNode.parentNode` / `|| currentNode.childNodes`
1761
+ fallbacks, but the cached getters always return the canonical
1762
+ value (or null for a real parent-less node), so the fallback
1763
+ path was dead in safe cases and a clobbering surface in unsafe
1764
+ ones. Falsy cached results stay falsy; the `if (childNodes &&
1765
+ parentNode)` check already gates correctly. */
1766
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1767
+ const parentNode = getParentNode(currentNode);
1768
+ const childNodes = getChildNodes(currentNode);
1769
+ if (childNodes && parentNode) {
1770
+ const childCount = childNodes.length;
1771
+ /* Hoist by moving each child up one level rather than deep-cloning
1772
+ it. Moving transfers every descendant exactly once, so a chain of
1773
+ nested disallowed elements costs O(n) instead of the O(n^2) that
1774
+ re-cloning the shrinking subtree at each level produced; it also
1775
+ empties the removed original, so `DOMPurify.removed` no longer
1776
+ pins whole subtrees. Moving preserves the in-place guarantee too:
1777
+ an original carrying already-queued resource events (`<img
1778
+ onerror>`, `<video>`/`<audio>` error, lazy/`onload`, …) is
1779
+ relocated and sanitised rather than left detached but still armed.
1780
+ The sole case that must clone is removing the walk root itself.
1781
+ The result is serialised from the root's subtree, so a restrictive
1782
+ ALLOWED_TAGS that strips the root (`body` on the string path) must
1783
+ leave the content inside it, which only cloning does. In IN_PLACE
1784
+ the root is pre-validated as an allowed tag and so is never removed
1785
+ here, so that path always takes the move branch.
1786
+ `childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
1787
+ valid whether we move (drops the trailing entry) or clone (leaves
1788
+ the list intact). */
1789
+ for (let i = childCount - 1; i >= 0; --i) {
1790
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
1791
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1792
+ }
1793
+ }
1794
+ }
1795
+ _forceRemove(currentNode);
1796
+ return true;
1797
+ };
1798
+ /**
1799
+ * Fork a hook-mutable allowlist off its shared binding the first time a
1800
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
1801
+ * hook cannot widen the per-instance default or the setConfig binding by
1802
+ * reference and leak past the call. Returns the set unchanged once it is
1803
+ * already call-local, so repeated calls across elements are idempotent.
1804
+ *
1805
+ * @param hookList the uponSanitize* hook array for this event
1806
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
1807
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
1808
+ * @param setConfigSet the captured setConfig() binding, or null
1809
+ * @return a call-local clone if a hook is present and set is still shared,
1810
+ * else set unchanged
1811
+ */
1812
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
1813
+ if (hookList.length === 0) {
1814
+ return set;
1815
+ }
1816
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
1817
+ };
1818
+ /**
1819
+ * Shared guard for a node that a hook has detached from the walk tree,
1820
+ * used after each element-hook site in _sanitizeElements. Detaching is a
1821
+ * long-standing user pattern (issue #469; draw.io-style foreignObject
1822
+ * filtering). Per the cached, unclobberable parentNode getter the node is
1823
+ * genuinely out of the tree, so it can reach neither the serialized
1824
+ * output nor an IN_PLACE live tree; treat it as removed and stop
1825
+ * processing it. Without this guard, the unsafe-node / namespace checks
1826
+ * would call _forceRemove on a parentless node and hit the REPORT-3
1827
+ * fail-closed throw — which exists for nodes DOMPurify wants gone but
1828
+ * *cannot* detach (clobbered / parentless roots), the opposite of a node
1829
+ * that is already safely gone. The walk root is exempt: a detached
1830
+ * IN_PLACE root is legitimate input and must still be fully sanitized,
1831
+ * and a kill-decision on it must keep hitting the REPORT-3 throw.
1832
+ *
1833
+ * Nodes detached by hooks stay the hook's responsibility for placement:
1834
+ * they are not recorded in DOMPurify.removed, so the post-walk IN_PLACE
1835
+ * pass (which iterates DOMPurify.removed) does not reach them. But a
1836
+ * hook-detached subtree can still hold a queued resource-event handler -
1837
+ * e.g. an <img onload> that began loading when the caller built the live
1838
+ * tree - which fires in page scope after sanitize returns even though the
1839
+ * handler never reached the returned tree. That is the audit-5 F1 hazard,
1840
+ * and the documented node.remove() hook pattern walks straight into it.
1841
+ * So on the IN_PLACE path we neutralize the detached subtree inline,
1842
+ * stripping its non-allow-listed attributes before returning, exactly as
1843
+ * the post-walk pass does for _forceRemove'd subtrees.
1844
+ *
1845
+ * @param currentNode the node a hook may have detached
1846
+ * @param root the current walk root
1847
+ * @return true if the node is detached and now handled, false otherwise
1848
+ */
1849
+ const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
1850
+ if (currentNode === root || getParentNode(currentNode) !== null) {
1851
+ return false;
1852
+ }
1853
+ if (IN_PLACE) {
1854
+ _neutralizeSubtree(currentNode);
1855
+ }
1856
+ return true;
1857
+ };
1858
+ /**
1859
+ * _sanitizeElements
1860
+ *
1861
+ * @protect nodeName
1862
+ * @protect textContent
1863
+ * @protect removeChild
1864
+ * @param currentNode to check for permission to exist
1865
+ * @return true if node was killed, false if left alive
1866
+ */
1867
+ const _sanitizeElements = function _sanitizeElements(currentNode, root) {
1868
+ /* Execute a hook if present */
1869
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1870
+ /* A hook may have detached the node - treat it as removed (see
1871
+ _handleHookDetachedNode for the full rationale). */
1872
+ if (_handleHookDetachedNode(currentNode, root)) {
1873
+ return true;
1874
+ }
1875
+ /* Check if element is clobbered or can clobber */
1876
+ if (_isClobbered(currentNode)) {
1877
+ _forceRemove(currentNode);
1878
+ return true;
1879
+ }
1880
+ /* Now let's check the element's type and name */
1881
+ const tagName = transformCaseFunc(_readNodeName(currentNode));
1882
+ /* Close the pre-walk clone-guard's timing gap: an uponSanitizeElement
1883
+ hook may have been installed after that guard sampled the hook arrays
1884
+ (e.g. lazily from beforeSanitizeElements), leaving ALLOWED_TAGS still
1885
+ aliasing a shared binding that a widening hook would mutate by
1886
+ reference. Fork it before exposing it to the hook. */
1887
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
1888
+ /* Execute a hook if present */
1889
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
1890
+ tagName,
1891
+ allowedTags: ALLOWED_TAGS
1892
+ });
1893
+ /* The uponSanitizeElement hook may have detached the node, exactly as
1894
+ above (see _handleHookDetachedNode for the full rationale). */
1895
+ if (_handleHookDetachedNode(currentNode, root)) {
1896
+ return true;
1897
+ }
1898
+ /* Remove mXSS vectors, processing instructions and risky comments */
1899
+ if (_isUnsafeNode(currentNode, tagName)) {
1900
+ _forceRemove(currentNode);
1901
+ return true;
1902
+ }
1903
+ /* Remove element if anything forbids its presence */
1904
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1905
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
1906
+ /* A false return means the node is a custom element kept via
1907
+ CUSTOM_ELEMENT_HANDLING - the only keep path through
1908
+ _sanitizeDisallowedNode. Run afterSanitizeElements on it so the
1909
+ element-hook lifecycle matches normal allowlisted elements: a
1910
+ security policy applied in this hook (e.g. stripping an attribute
1911
+ from every surviving element) must not silently skip kept custom
1912
+ elements (GHSA-c2j3-45gr-mqc4). This mirrors the normal-element
1913
+ tail below - the hook runs, then the walker's subsequent
1914
+ _sanitizeAttributes pass sanitizes the element's attributes. The
1915
+ deliberately skipped namespace and fallback-tag removal checks stay
1916
+ skipped; they are removal decisions, not the hook contract. */
1917
+ if (removed === false) {
1918
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1919
+ }
1920
+ return removed;
1921
+ }
1922
+ /* Check whether element has a valid namespace.
1923
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
1924
+ nodeType getter rather than `instanceof Element`, which is realm-
1925
+ bound and short-circuits to false for any node minted in a different
1926
+ realm — letting a foreign-realm element with a forbidden namespace
1927
+ slip past the namespace check entirely. */
1928
+ const nt = _readNodeType(currentNode);
1929
+ if (nt === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
1930
+ _forceRemove(currentNode);
1931
+ return true;
1932
+ }
1933
+ /* Make sure that older browsers don't get fallback-tag mXSS */
1934
+ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
1935
+ _forceRemove(currentNode);
1936
+ return true;
1937
+ }
1938
+ /* Sanitize element content to be template-safe */
1939
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1940
+ /* Get the element's text content */
1941
+ const content = _stripTemplateExpressions(currentNode.textContent);
1942
+ if (currentNode.textContent !== content) {
1943
+ arrayPush(DOMPurify.removed, {
1944
+ element: currentNode.cloneNode()
1945
+ });
1946
+ currentNode.textContent = content;
1947
+ }
1948
+ }
1949
+ /* Execute a hook if present */
1950
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1951
+ return false;
1952
+ };
1953
+ /**
1954
+ * _isValidAttribute
1955
+ *
1956
+ * @param lcTag Lowercase tag name of containing element.
1957
+ * @param lcName Lowercase attribute name.
1958
+ * @param value Attribute value.
1959
+ * @return Returns true if `value` is valid, otherwise false.
1960
+ */
1961
+ // eslint-disable-next-line complexity
1962
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
1963
+ /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
1964
+ if (FORBID_ATTR[lcName]) {
1965
+ return false;
1966
+ }
1967
+ /* Reject declarative-partial-updates patch-linkage attributes
1968
+ (https://github.com/WICG/declarative-partial-updates).
1969
+ Empirical note (Chrome 150, verified — see
1970
+ test/declarative-patch-probe-v3.html): expansion is NOT applied after
1971
+ sanitization. For the string path it fires during sanitize()'s own
1972
+ parse, so the walk sees and sanitizes the fully materialized expanded
1973
+ tree — teleports into MathML/SVG integration points included; a
1974
+ weaponized `<template for>`->`<img onerror>` comes back with the handler
1975
+ stripped. For the IN_PLACE path it fires on connection, before the walk.
1976
+ Either way DOMPurify is NOT blind to the patch.
1977
+ This removal is therefore defense-in-depth rather than the sole barrier:
1978
+ it prevents live linkage from surviving into the OUTPUT and re-expanding
1979
+ in the caller's context, and keeps behaviour deterministic if a future
1980
+ engine defers expansion. `for` is legitimate only on <label>/<output>;
1981
+ anywhere else (notably <template for>) it links the element to a patch
1982
+ target and teleports or removes an arbitrary DOM range by id/marker name.
1983
+ `patchsrc` fetches remote markup and is treated as a script-loading
1984
+ mechanism (CSP). Gated on SAFE_FOR_XML so the removal groups with the
1985
+ other structural-threat checks and stays overridable, consistent with
1986
+ the rest of the codebase. PI range markers are already removed by
1987
+ _isUnsafeNode. */
1988
+ if (_isPatchLinkageAttribute(lcName, lcTag)) {
1989
+ return false;
1990
+ }
1991
+ /* Make sure attribute cannot clobber */
1992
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
1993
+ return false;
1994
+ }
1995
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
1996
+ /* Allow valid data-* attributes: At least one character after "-"
1997
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
1998
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
1999
+ We don't need to check the value; it's always URI safe. */
2000
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) {
2001
+ return true;
2002
+ }
2003
+ /* Allow valid aria-* attributes, the value is always URI safe */
2004
+ if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) {
2005
+ return true;
2006
+ }
2007
+ /* A name outside the allowlist is acceptable on custom-element terms
2008
+ only. The value checks below are intentionally skipped in that case:
2009
+ if the user supplied a tagNameCheck we also allow derived custom
2010
+ elements using the same test, and attributes passing the configured
2011
+ attributeNameCheck are allowed as custom elements define these at
2012
+ their own discretion. */
2013
+ if (!nameIsPermitted) {
2014
+ return (
2015
+ // Condition a) covers a basically valid custom element tag name whose
2016
+ // tag passes the configured tagNameCheck and whose attribute name
2017
+ // passes the configured attributeNameCheck ...
2018
+ _isBasicCustomElement(lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName, lcTag) ||
2019
+ // Condition b) covers an `is` attribute whose value passes the
2020
+ // configured tagNameCheck while customized built-in elements are
2021
+ // allowed.
2022
+ lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value)
2023
+ );
2024
+ }
2025
+ /* Check value is safe. First, is attr inert? If so, is safe */
2026
+ if (URI_SAFE_ATTRIBUTES[lcName]) {
2027
+ return true;
2028
+ }
2029
+ /* Check no script, data or unknown possibly unsafe URI
2030
+ unless we know URI values are safe for that attribute */
2031
+ if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) {
2032
+ return true;
2033
+ }
2034
+ /* Keep image data URIs alive if src/xlink:href is allowed */
2035
+ /* Further prevent gadget XSS for dynamically built script tags */
2036
+ if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) {
2037
+ return true;
2038
+ }
2039
+ /* Allow unknown protocols: This provides support for links that
2040
+ are handled by protocol handlers which may be unknown ahead of
2041
+ time, e.g. fb:, spotify: */
2042
+ if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) {
2043
+ return true;
2044
+ }
2045
+ /* Only an empty (binary) value remains safe at this point;
2046
+ anything else is presumed unsafe, do not add it back */
2047
+ return !value;
2048
+ };
2049
+ /* Names the HTML spec reserves from valid-custom-element-name; these must
2050
+ * never be treated as basic custom elements even when a permissive
2051
+ * CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
2052
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ['annotation-xml', 'color-profile', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'missing-glyph']);
2053
+ /**
2054
+ * _isBasicCustomElement
2055
+ * checks if at least one dash is included in tagName, and it's not the first char
2056
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
2057
+ *
2058
+ * @param tagName name of the tag of the node to sanitize
2059
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
2060
+ */
2061
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
2062
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
2063
+ };
2064
+ /**
2065
+ * Wrap an attribute value in the matching Trusted Types object when
2066
+ * the active policy requires it. Namespaced attributes pass through
2067
+ * unchanged (no TT support yet, see
2068
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
2069
+ *
2070
+ * @param lcTag lowercase tag name of the containing element
2071
+ * @param lcName lowercase attribute name
2072
+ * @param namespaceURI the attribute's namespace, if any
2073
+ * @param value the attribute value to wrap
2074
+ * @return the value, wrapped when Trusted Types demand it
2075
+ */
2076
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
2077
+ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function' && !namespaceURI) {
2078
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
2079
+ case 'TrustedHTML':
2080
+ {
2081
+ return _createTrustedHTML(value);
2082
+ }
2083
+ case 'TrustedScriptURL':
2084
+ {
2085
+ return _createTrustedScriptURL(value);
2086
+ }
2087
+ }
2088
+ }
2089
+ return value;
2090
+ };
2091
+ /**
2092
+ * Write a modified attribute value back onto the element. On
2093
+ * success, re-probe for clobbering introduced by the new value and
2094
+ * remove the element when found; otherwise, when this writeback is the
2095
+ * recreate half of the SANITIZE_NAMED_PROPS remove-and-recreate, pop the
2096
+ * removal entry that path recorded so it does not show as removed. On
2097
+ * failure, remove the attribute instead.
2098
+ *
2099
+ * Returns true only on a clean write (the value was set and the new value
2100
+ * introduced no clobbering). The caller uses that, together with its own
2101
+ * knowledge of whether this attribute pushed a DOMPurify.removed record, to
2102
+ * decide whether to pop that record. The pop must happen ONLY for the
2103
+ * named-prop remove-and-recreate; popping on any other value change (trim,
2104
+ * template scrubbing, Trusted Types) would consume an unrelated _forceRemove
2105
+ * subtree-cleanup record and let that detached subtree keep a live event
2106
+ * handler through the IN_PLACE neutralization pass (SO-001).
2107
+ *
2108
+ * @param currentNode the element carrying the attribute
2109
+ * @param name the attribute name as present on the element
2110
+ * @param namespaceURI the attribute's namespace, if any
2111
+ * @param value the new attribute value
2112
+ * @return true if the value was written without introducing clobbering
2113
+ */
2114
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
2115
+ try {
2116
+ if (namespaceURI) {
2117
+ currentNode.setAttributeNS(namespaceURI, name, value);
2118
+ } else {
2119
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
2120
+ currentNode.setAttribute(name, value);
2121
+ }
2122
+ if (_isClobbered(currentNode)) {
2123
+ _forceRemove(currentNode);
2124
+ return false;
2125
+ }
2126
+ return true;
2127
+ } catch (_) {
2128
+ _removeAttribute(name, currentNode);
2129
+ return false;
2130
+ }
2131
+ };
2132
+ /**
2133
+ * _sanitizeAttributes
2134
+ *
2135
+ * @protect attributes
2136
+ * @protect nodeName
2137
+ * @protect removeAttribute
2138
+ * @protect setAttribute
2139
+ *
2140
+ * @param currentNode to sanitize
2141
+ */
2142
+ // eslint-disable-next-line complexity
2143
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
2144
+ /* Execute a hook if present */
2145
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
2146
+ const attributes = currentNode.attributes;
2147
+ /* Check if we have attributes; if not we might have a text node */
2148
+ if (!attributes || _isClobbered(currentNode)) {
2149
+ return;
2150
+ }
2151
+ /* Same lazy-install guard as uponSanitizeElement (see there): fork the
2152
+ attribute allowlist off its shared binding before a hook can see it. */
2153
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
2154
+ const hookEvent = {
2155
+ attrName: '',
2156
+ attrValue: '',
2157
+ keepAttr: true,
2158
+ allowedAttributes: ALLOWED_ATTR,
2159
+ forceKeepAttr: undefined
2160
+ };
2161
+ let l = attributes.length;
2162
+ const lcTag = transformCaseFunc(currentNode.nodeName);
2163
+ /* Go backwards over all attributes; safely remove bad ones */
2164
+ while (l--) {
2165
+ const attr = attributes[l];
2166
+ const name = attr.name,
2167
+ namespaceURI = attr.namespaceURI,
2168
+ attrValue = attr.value;
2169
+ const lcName = transformCaseFunc(name);
2170
+ const initValue = attrValue;
2171
+ let value = name === 'value' ? initValue : stringTrim(initValue);
2172
+ /* Tracks whether this specific attribute pushed a DOMPurify.removed
2173
+ record that a later _setAttributeValue() writeback is expected to pop
2174
+ back off (the SANITIZE_NAMED_PROPS remove-and-recreate below is the
2175
+ only path that does). A value that merely changed via trim, template
2176
+ scrubbing, or Trusted Types pushes no such record, so its writeback
2177
+ must NOT pop — otherwise it consumes an unrelated _forceRemove subtree
2178
+ record and that detached subtree escapes the IN_PLACE handler-
2179
+ neutralization pass (SO-001). */
2180
+ let recreatedNamedProp = false;
2181
+ /* Execute a hook if present */
2182
+ hookEvent.attrName = lcName;
2183
+ hookEvent.attrValue = value;
2184
+ hookEvent.keepAttr = true;
2185
+ hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
2186
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
2187
+ value = hookEvent.attrValue;
2188
+ /* Full DOM Clobbering protection via namespace isolation,
2189
+ * Prefix id and name attributes with `user-content-`
2190
+ */
2191
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
2192
+ // Remove the attribute with this value
2193
+ _removeAttribute(name, currentNode, attr);
2194
+ // Prefix the value and later re-create the attribute with the sanitized value
2195
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
2196
+ // This attribute owns the record just pushed; its recreate writeback
2197
+ // is the one allowed to pop it back off.
2198
+ recreatedNamedProp = true;
2199
+ }
2200
+ // Else: already prefixed, leave the attribute alone — the prefix is
2201
+ // itself the clobbering protection, and re-applying it is incorrect.
2202
+ /* Work around a security issue with comments inside attributes */
2203
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
2204
+ _removeAttribute(name, currentNode, attr);
2205
+ continue;
2206
+ }
2207
+ /* Make sure we cannot easily use animated hrefs, even if animations are allowed */
2208
+ if (lcName === 'attributename' && stringMatch(value, 'href')) {
2209
+ _removeAttribute(name, currentNode, attr);
2210
+ continue;
2211
+ }
2212
+ /* Did the hooks force-keep the attribute? */
2213
+ if (hookEvent.forceKeepAttr) {
2214
+ continue;
2215
+ }
2216
+ /* Did the hooks approve of the attribute? */
2217
+ if (!hookEvent.keepAttr) {
2218
+ _removeAttribute(name, currentNode, attr);
2219
+ continue;
2220
+ }
2221
+ /* Work around a security issue in jQuery 3.0 */
2222
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
2223
+ _removeAttribute(name, currentNode, attr);
2224
+ continue;
2225
+ }
2226
+ /* Sanitize attribute content to be template-safe */
2227
+ if (SAFE_FOR_TEMPLATES) {
2228
+ value = _stripTemplateExpressions(value);
2229
+ }
2230
+ /* Is `value` valid for this attribute? */
2231
+ if (!_isValidAttribute(lcTag, lcName, value)) {
2232
+ _removeAttribute(name, currentNode, attr);
2233
+ continue;
2234
+ }
2235
+ /* Handle attributes that require Trusted Types */
2236
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
2237
+ /* Handle invalid data-* attribute set by try-catching it */
2238
+ if (value !== initValue) {
2239
+ const cleanWrite = _setAttributeValue(currentNode, name, namespaceURI, value);
2240
+ /* Only the named-prop remove-and-recreate owns a DOMPurify.removed
2241
+ record to pop; a plain trim/template/Trusted-Types writeback owns
2242
+ none, so popping here would drop an unrelated subtree's cleanup
2243
+ record (SO-001). */
2244
+ if (cleanWrite && recreatedNamedProp) {
2245
+ arrayPop(DOMPurify.removed);
2246
+ }
2247
+ }
2248
+ }
2249
+ /* Execute a hook if present */
2250
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
2251
+ };
2252
+ /**
2253
+ * _sanitizeShadowDOM
2254
+ *
2255
+ * @param fragment to iterate over recursively
2256
+ */
2257
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
2258
+ let shadowNode = null;
2259
+ const shadowIterator = _createNodeIterator(fragment);
2260
+ /* Execute a hook if present */
2261
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
2262
+ while (shadowNode = shadowIterator.nextNode()) {
2263
+ /* Execute a hook if present */
2264
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2265
+ /* Sanitize tags and elements */
2266
+ _sanitizeElements(shadowNode, fragment);
2267
+ /* Check attributes next */
2268
+ _sanitizeAttributes(shadowNode);
2269
+ /* Deep shadow DOM detected.
2270
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): use nodeType against the
2271
+ DOCUMENT_FRAGMENT_NODE constant rather than instanceof, so we
2272
+ recurse into <template>.content from foreign realms too. */
2273
+ if (_isDocumentFragment(shadowNode.content)) {
2274
+ _sanitizeShadowDOM2(shadowNode.content);
2275
+ }
2276
+ /* An element iterated here may itself host an attached
2277
+ shadow root. The default NodeIterator does not enter shadow
2278
+ trees, so a shadow root nested inside template.content was
2279
+ previously reached by no walk at all (the pre-pass at
2280
+ _sanitizeAttachedShadowRoots descends via childNodes, which
2281
+ doesn't enter template.content; the template-content recursion
2282
+ above iterates the content but never inspected shadowRoot).
2283
+ Walk it explicitly. The nodeType guard avoids reading
2284
+ shadowRoot off text / comment / CDATA / PI nodes that the
2285
+ iterator also surfaces. */
2286
+ if (_readNodeType(shadowNode) === NODE_TYPE.element) {
2287
+ const innerSr = getShadowRoot(shadowNode);
2288
+ if (_isDocumentFragment(innerSr)) {
2289
+ _sanitizeAttachedShadowRoots(innerSr);
2290
+ _sanitizeShadowDOM2(innerSr);
2291
+ }
2292
+ }
2293
+ }
2294
+ /* Execute a hook if present */
2295
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
2296
+ };
2297
+ /**
2298
+ * _sanitizeAttachedShadowRoots
2299
+ *
2300
+ * Walks `root` and feeds every attached shadow root we encounter into
2301
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
2302
+ * does not descend into shadow trees, so nodes inside an attached
2303
+ * shadow root would otherwise be skipped entirely.
2304
+ *
2305
+ * Two real input paths put attached shadow roots in front of us:
2306
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
2307
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
2308
+ * shadow root because it was created with `clonable: true`.
2309
+ *
2310
+ * This pass runs once, up front, so the main iteration loop (and the
2311
+ * existing _sanitizeShadowDOM template-content recursion) stay
2312
+ * untouched — string-input paths are not affected.
2313
+ *
2314
+ * @param root the subtree root to walk for attached shadow roots
2315
+ */
2316
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
2317
+ /* Iterative (explicit stack) rather than per-child recursion. DOM APIs
2318
+ impose no depth cap, so an attacker-shaped tree (JSON/CRDT/editor data
2319
+ built straight into the DOM — the IN_PLACE surface) deeper than the JS
2320
+ call-stack budget would otherwise overflow native recursion here and
2321
+ throw at the IN_PLACE entry pre-pass, before a single node is
2322
+ sanitized, leaving the caller's live tree untouched (fail-open). See
2323
+ campaign-3 F4. A heap stack keeps depth off the call stack.
2324
+ Each work item is either a node to descend into, or a deferred
2325
+ `_sanitizeShadowDOM` for an already-walked shadow root. The deferred
2326
+ form preserves the original post-order discipline: a shadow root's
2327
+ nested shadow roots are discovered before the outer shadow is
2328
+ sanitized (which may remove hosts). Pushes are in reverse of the
2329
+ desired processing order (LIFO): template content, then children, then
2330
+ the shadow-sanitize, then the shadow walk — so the order matches the
2331
+ previous recursion exactly. */
2332
+ const stack = [{
2333
+ node: root,
2334
+ shadow: null
2335
+ }];
2336
+ while (stack.length > 0) {
2337
+ const item = stack.pop();
2338
+ /* Deferred shadow-DOM sanitisation: runs after its subtree was walked. */
2339
+ if (item.shadow) {
2340
+ _sanitizeShadowDOM2(item.shadow);
2341
+ continue;
2342
+ }
2343
+ const node = item.node;
2344
+ const nodeType = _readNodeType(node);
2345
+ const isElement = nodeType === NODE_TYPE.element;
2346
+ /* (pushed last → processed first) Children, snapshotted in reverse so
2347
+ the first child is processed first. Snapshotting matters because a
2348
+ hook may detach siblings mid-walk. */
2349
+ const childNodes = getChildNodes(node);
2350
+ if (childNodes) {
2351
+ for (let i = childNodes.length - 1; i >= 0; --i) {
2352
+ stack.push({
2353
+ node: childNodes[i],
2354
+ shadow: null
2355
+ });
2356
+ }
2357
+ }
2358
+ /* (pushed before children → processed after them, matching the old
2359
+ "template content last" order) When the node is a <template>,
2360
+ descend into its content. */
2361
+ if (isElement) {
2362
+ const rootName = getNodeName ? getNodeName(node) : null;
2363
+ if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
2364
+ const content = node.content;
2365
+ if (_isDocumentFragment(content)) {
2366
+ stack.push({
2367
+ node: content,
2368
+ shadow: null
2369
+ });
2370
+ }
2371
+ }
2372
+ }
2373
+ /* Shadow root (processed first): walk its subtree, then sanitise it.
2374
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2375
+ rather than `instanceof DocumentFragment`, which is realm-bound and
2376
+ silently skipped foreign-realm shadow roots (e.g.
2377
+ iframe.contentDocument attachShadow). */
2378
+ if (isElement) {
2379
+ const sr = getShadowRoot(node);
2380
+ if (_isDocumentFragment(sr)) {
2381
+ /* Push the deferred sanitise first so it pops after the shadow
2382
+ walk we push next, i.e. nested shadow roots are discovered
2383
+ before this one is sanitised. */
2384
+ stack.push({
2385
+ node: null,
2386
+ shadow: sr
2387
+ }, {
2388
+ node: sr,
2389
+ shadow: null
2390
+ });
2391
+ }
2392
+ }
2393
+ }
2394
+ };
2395
+ // eslint-disable-next-line complexity
2396
+ DOMPurify.sanitize = function (dirty) {
2397
+ let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2398
+ let body = null;
2399
+ let importedNode = null;
2400
+ let currentNode = null;
2401
+ let returnNode = null;
2402
+ /* Make sure we have a string to sanitize.
2403
+ DO NOT return early, as this will return the wrong type if
2404
+ the user has requested a DOM object rather than a string */
2405
+ IS_EMPTY_INPUT = !dirty;
2406
+ if (IS_EMPTY_INPUT) {
2407
+ dirty = '<!-->';
2408
+ }
2409
+ /* Stringify, in case dirty is an object */
2410
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
2411
+ dirty = stringifyValue(dirty);
2412
+ if (typeof dirty !== 'string') {
2413
+ throw typeErrorCreate('dirty is not a string, aborting');
2414
+ }
2415
+ }
2416
+ /* Return dirty HTML if DOMPurify cannot run */
2417
+ if (!DOMPurify.isSupported) {
2418
+ return dirty;
2419
+ }
2420
+ /* Assign config vars */
2421
+ if (SET_CONFIG) {
2422
+ /* Persistent setConfig() path: _parseConfig is skipped, so the sets are
2423
+ * not re-derived per call. Restore them from the pristine bindings
2424
+ * captured at setConfig() time so a previous call's hook clone (mutated
2425
+ * below) does not carry over. */
2426
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
2427
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
2428
+ } else {
2429
+ _parseConfig(cfg);
2430
+ }
2431
+ /* Clone the hook-mutable allowlists before the walk whenever an
2432
+ * uponSanitize* hook is registered. The hook event exposes ALLOWED_TAGS
2433
+ * and ALLOWED_ATTR by reference (as allowedTags / allowedAttributes), so
2434
+ * a hook that widens them would otherwise mutate the shared set
2435
+ * permanently: across later calls and across every element. Cloning per
2436
+ * walk keeps documented in-call widening working while scoping it to the
2437
+ * call. A single guard for both config paths - the per-call path rebinds
2438
+ * the sets in _parseConfig each call, the persistent path restores them
2439
+ * from the captured bindings just above - so the two cannot diverge. */
2440
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) {
2441
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
2442
+ }
2443
+ if (hooks.uponSanitizeAttribute.length > 0) {
2444
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
2445
+ }
2446
+ /* Clean up removed elements */
2447
+ DOMPurify.removed = [];
2448
+ /* Resolve IN_PLACE for this call without mutating persistent config.
2449
+ Writing the IN_PLACE closure variable here leaks under setConfig(),
2450
+ where _parseConfig is skipped on later calls: a single string call would
2451
+ disable in-place mode for every subsequent node call, returning a
2452
+ sanitized copy while leaving the caller's node — which in-place callers
2453
+ keep using and whose return value they ignore — unsanitized. REPORT-2. */
2454
+ const inPlace = IN_PLACE && typeof dirty !== 'string' && _isNode(dirty);
2455
+ if (inPlace) {
2456
+ /* Declarative-partial-updates / streaming pre-pass: sever every patch
2457
+ linkage across the live tree BEFORE the walk, so no patch can fire
2458
+ mid-walk and inject into an already-processed region. Runs first, so
2459
+ it also covers the forbidden/clobbered roots that throw below. */
2460
+ _neutralizePatchLinkage(dirty);
2461
+ /* Do some early pre-sanitization to avoid unsafe root nodes.
2462
+ Read nodeName through the cached prototype getter — a clobbering
2463
+ child named "nodeName" on the form root would otherwise shadow
2464
+ the property and let this check skip the root-allowlist
2465
+ validation entirely. */
2466
+ const nn = _readNodeName(dirty);
2467
+ if (typeof nn === 'string') {
2468
+ const tagName = transformCaseFunc(nn);
2469
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2470
+ /* Fail closed on a live root: neutralize handlers/children before
2471
+ throwing, exactly as the mid-walk abort path does. */
2472
+ _neutralizeRoot(dirty);
2473
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
2474
+ }
2475
+ }
2476
+ /* Pre-flight the root through _isClobbered. The iterator-driven
2477
+ removal path can not detach a parent-less root: _forceRemove
2478
+ falls through to Element.prototype.remove(), which per spec
2479
+ is a no-op on a node with no parent. A clobbered root would
2480
+ then survive the main loop with its attributes uninspected,
2481
+ because _sanitizeAttributes early-returns on _isClobbered. The
2482
+ result would be an attacker-controlled form, complete with any
2483
+ event-handler attributes the caller passed in, handed back to
2484
+ the application unsanitized. Refuse to sanitize such a root
2485
+ the same way we refuse a forbidden tag. GHSA-r47g-fvhr-h676. */
2486
+ if (_isClobbered(dirty)) {
2487
+ /* Fail closed on a live clobbered root before throwing.
2488
+ _neutralizeRoot's reads are clobber-safe (cached getters); the
2489
+ form's non-clobbered descendants, e.g. an armed <img>, are scrubbed. */
2490
+ _neutralizeRoot(dirty);
2491
+ throw typeErrorCreate('root node is clobbered and cannot be sanitized in-place');
2492
+ }
2493
+ /* Sanitize attached shadow roots before the main iterator runs.
2494
+ The iterator does not descend into shadow trees. Same fail-closed
2495
+ barrier as the main walk (campaign-3 F2): a custom-element reaction
2496
+ inside a shadow root could abort this pre-pass before the walk runs,
2497
+ which would otherwise leave the entire live tree unsanitized. */
2498
+ try {
2499
+ _sanitizeAttachedShadowRoots(dirty);
2500
+ } catch (error) {
2501
+ _neutralizeRoot(dirty);
2502
+ throw error;
2503
+ }
2504
+ } else if (_isNode(dirty)) {
2505
+ /* If dirty is a DOM element, append to an empty document to avoid
2506
+ elements being stripped by the parser */
2507
+ body = _initDocument('<!---->');
2508
+ importedNode = body.ownerDocument.importNode(dirty, true);
2509
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
2510
+ /* Node is already a body, use as is */
2511
+ body = importedNode;
2512
+ } else if (importedNode.nodeName === 'HTML') {
2513
+ body = importedNode;
2514
+ } else {
2515
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
2516
+ body.appendChild(importedNode);
2517
+ }
2518
+ /* Clonable shadow roots are deep-cloned by importNode(); sanitize
2519
+ them before the main iterator runs, since the iterator does not
2520
+ descend into shadow trees. The walk routes every read through a
2521
+ cached prototype getter so clobbering descendants on a form root
2522
+ cannot hide a shadow host from this pass.
2523
+ Traverse from `body`, not `importedNode`: when importedNode is a
2524
+ DocumentFragment, the appendChild() above moves its children into
2525
+ `body` and leaves the fragment empty, so walking importedNode would
2526
+ scan nothing and miss every attached shadow host now under `body`
2527
+ (SO-003). In the BODY/HTML branches `body === importedNode`, so this
2528
+ is equivalent there; in the element branch `body` contains the
2529
+ appended element and its descendants. `body` covers all three. */
2530
+ _sanitizeAttachedShadowRoots(body);
2531
+ } else {
2532
+ /* Exit directly if we have nothing to do */
2533
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
2534
+ // eslint-disable-next-line unicorn/prefer-includes
2535
+ dirty.indexOf('<') === -1) {
2536
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
2537
+ }
2538
+ /* Initialize the document to work on */
2539
+ body = _initDocument(dirty);
2540
+ /* Check we have a DOM node from the data */
2541
+ if (!body) {
2542
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
2543
+ }
2544
+ }
2545
+ /* Remove first element node (ours) if FORCE_BODY is set */
2546
+ if (body && FORCE_BODY) {
2547
+ _forceRemove(body.firstChild);
2548
+ }
2549
+ /* Get node iterator */
2550
+ const walkRoot = inPlace ? dirty : body;
2551
+ /* Now start iterating over the created document.
2552
+ The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
2553
+ engine/custom-element mutation can detach a node mid-walk so
2554
+ `_forceRemove`'s parentless guard throws, aborting the loop. Without the
2555
+ barrier the caller's in-place tree would be left half-sanitized with the
2556
+ unvisited tail still armed. _createNodeIterator itself is inside the
2557
+ barrier too: constructing the iterator dereferences the root's document,
2558
+ and any failure there (e.g. an exotic/clobbered root) must still fail
2559
+ closed rather than skip the neutralize. On any throw we fail closed -
2560
+ strip the in-place root bare - then rethrow so the existing throw
2561
+ contract is preserved. (String/DOM-copy paths never return the partial
2562
+ body, so the propagating throw is already fail-closed there.) */
2563
+ try {
2564
+ const nodeIterator = _createNodeIterator(walkRoot);
2565
+ while (currentNode = nodeIterator.nextNode()) {
2566
+ /* Sanitize tags and elements */
2567
+ _sanitizeElements(currentNode, walkRoot);
2568
+ /* Check attributes next */
2569
+ _sanitizeAttributes(currentNode);
2570
+ /* Shadow DOM detected, sanitize it.
2571
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2572
+ instead of instanceof, so foreign-realm <template>.content is
2573
+ walked correctly. */
2574
+ if (_isDocumentFragment(currentNode.content)) {
2575
+ _sanitizeShadowDOM2(currentNode.content);
2576
+ }
2577
+ }
2578
+ } catch (error) {
2579
+ if (inPlace) {
2580
+ _neutralizeRoot(dirty);
2581
+ /* Nodes _forceRemove'd earlier in the aborted walk are already
2582
+ detached from the root, so _neutralizeRoot's subtree pass does not
2583
+ reach them. Defuse them too, mirroring the success-path loop below. */
2584
+ arrayForEach(DOMPurify.removed, entry => {
2585
+ if (entry.element) {
2586
+ _neutralizeSubtree(entry.element);
2587
+ }
2588
+ });
2589
+ }
2590
+ throw error;
2591
+ }
2592
+ /* If we sanitized `dirty` in-place, return it. */
2593
+ if (inPlace) {
2594
+ /* Fail-closed completion of the audit-5 F1 fix: every node removed from
2595
+ the caller's live tree is detached but may still hold a queued
2596
+ resource-event handler that fires in page scope after we return. The
2597
+ move-hoist covers only disallowed-tag KEEP_CONTENT removals; strip the
2598
+ non-allow-listed attributes off every other removed subtree (clobber,
2599
+ mXSS, namespace, comments, KEEP_CONTENT:false, …) so those handlers are
2600
+ cancelled before any event can fire. Runs synchronously, pre-return. */
2601
+ arrayForEach(DOMPurify.removed, entry => {
2602
+ if (entry.element) {
2603
+ _neutralizeSubtree(entry.element);
2604
+ }
2605
+ });
2606
+ if (SAFE_FOR_TEMPLATES) {
2607
+ _scrubTemplateExpressions2(dirty);
2608
+ }
2609
+ return dirty;
2610
+ }
2611
+ /* Return sanitized string or DOM */
2612
+ if (RETURN_DOM) {
2613
+ if (SAFE_FOR_TEMPLATES) {
2614
+ _scrubTemplateExpressions2(body);
2615
+ }
2616
+ if (RETURN_DOM_FRAGMENT) {
2617
+ returnNode = createDocumentFragment.call(body.ownerDocument);
2618
+ while (body.firstChild) {
2619
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
2620
+ returnNode.appendChild(body.firstChild);
2621
+ }
2622
+ } else {
2623
+ returnNode = body;
2624
+ }
2625
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
2626
+ /*
2627
+ AdoptNode() is not used because internal state is not reset
2628
+ (e.g. the past names map of a HTMLFormElement), this is safe
2629
+ in theory but we would rather not risk another attack vector.
2630
+ The state that is cloned by importNode() is explicitly defined
2631
+ by the specs.
2632
+ */
2633
+ returnNode = importNode.call(originalDocument, returnNode, true);
2634
+ }
2635
+ return returnNode;
2636
+ }
2637
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
2638
+ /* Serialize doctype if allowed */
2639
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
2640
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
2641
+ }
2642
+ /* Sanitize final string template-safe */
2643
+ if (SAFE_FOR_TEMPLATES) {
2644
+ serializedHTML = _stripTemplateExpressions(serializedHTML);
2645
+ }
2646
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
2647
+ };
2648
+ DOMPurify.setConfig = function () {
2649
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2650
+ _parseConfig(cfg);
2651
+ SET_CONFIG = true;
2652
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
2653
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
2654
+ };
2655
+ DOMPurify.clearConfig = function () {
2656
+ CONFIG = null;
2657
+ SET_CONFIG = false;
2658
+ SET_CONFIG_ALLOWED_TAGS = null;
2659
+ SET_CONFIG_ALLOWED_ATTR = null;
2660
+ // Drop any caller-supplied Trusted Types policy so it cannot poison later
2661
+ // `RETURN_TRUSTED_TYPE` output. The internal default policy (cached, and
2662
+ // never recreated — Trusted Types throws on duplicate names) is restored by
2663
+ // the next `_parseConfig`. See GHSA-vxr8-fq34-vvx9.
2664
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2665
+ emptyHTML = '';
2666
+ };
2667
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
2668
+ /* Initialize shared config vars if necessary. */
2669
+ if (!CONFIG) {
2670
+ _parseConfig({});
2671
+ }
2672
+ const lcTag = transformCaseFunc(tag);
2673
+ const lcName = transformCaseFunc(attr);
2674
+ return _isValidAttribute(lcTag, lcName, value);
2675
+ };
2676
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
2677
+ if (typeof hookFunction !== 'function') {
2678
+ return;
2679
+ }
2680
+ /* Reject unknown entry points. Without this, a non-hook key (e.g.
2681
+ * '__proto__') indexes off the prototype chain rather than a real
2682
+ * hook array, and arrayPush then writes to Object.prototype. Guard
2683
+ * with an own-property check against the known hook names. */
2684
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2685
+ return;
2686
+ }
2687
+ arrayPush(hooks[entryPoint], hookFunction);
2688
+ };
2689
+ DOMPurify.removeHook = function (entryPoint, hookFunction) {
2690
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2691
+ return undefined;
2692
+ }
2693
+ if (hookFunction !== undefined) {
2694
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
2695
+ return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
2696
+ }
2697
+ return arrayPop(hooks[entryPoint]);
2698
+ };
2699
+ DOMPurify.removeHooks = function (entryPoint) {
2700
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2701
+ return;
2702
+ }
2703
+ hooks[entryPoint] = [];
2704
+ };
2705
+ DOMPurify.removeAllHooks = function () {
2706
+ hooks = _createHooksMap();
2707
+ };
2708
+ return DOMPurify;
2709
+ }
2710
+ var purify = createDOMPurify();
2711
+
2712
+ const sanitizeSvg = (svg) => {
2713
+ return purify.sanitize(svg, {
2714
+ USE_PROFILES: { svg: true },
2715
+ FORBID_ATTR: ['height', 'width'],
2716
+ });
2717
+ };
2718
+ const svgCache = new Map();
2719
+ const fetchSvg = (url) => {
2720
+ if (!svgCache.has(url)) {
2721
+ // Resolve against the document's base URL: browsers already do this for relative fetches,
2722
+ // but Node's fetch (used during SSR) has no notion of a "current page" and throws on a bare
2723
+ // path like "/assets/icon.svg".
2724
+ const resolvedUrl = new URL(url, document.baseURI).href;
2725
+ svgCache.set(url, fetch(resolvedUrl)
2726
+ .then(r => {
2727
+ if (!r.ok)
2728
+ throw new Error(`ds-icon: failed to fetch SVG "${url}" (${r.status})`);
2729
+ return r.text();
2730
+ })
2731
+ .then(text => sanitizeSvg(text))
2732
+ .catch(err => {
2733
+ console.error(err);
2734
+ svgCache.delete(url);
2735
+ return '';
2736
+ }));
2737
+ }
2738
+ return svgCache.get(url);
2739
+ };
2740
+
2741
+ export { fetchSvg as f, sanitizeSvg as s };