@sankhyalabs/ezui 7.1.9 → 7.1.10

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 (656) hide show
  1. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  2. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  3. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  4. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  5. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  6. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  7. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  8. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  9. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  10. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  11. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  12. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  13. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  14. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  16. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  17. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  21. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  23. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  29. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js.gz +0 -0
  31. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  33. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  35. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  36. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  38. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  39. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  40. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  41. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  42. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  43. package/dist/cjs/ez-grid.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  46. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  50. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  52. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  56. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  58. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  63. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  70. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  75. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  77. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  78. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  84. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  88. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  89. package/dist/cjs/ezui.cjs.js.gz +0 -0
  90. package/dist/cjs/filter-column.cjs.entry.js +6 -1
  91. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/floating-ui.dom.esm-f4d87617.js.gz +0 -0
  93. package/dist/cjs/index-1be40f19.js.gz +0 -0
  94. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  95. package/dist/cjs/index.cjs.js.gz +0 -0
  96. package/dist/cjs/loader.cjs.js.gz +0 -0
  97. package/dist/cjs/{purify-ca9603eb.js → purify-db11ac44.js} +677 -245
  98. package/dist/cjs/purify-db11ac44.js.gz +0 -0
  99. package/dist/cjs/search-column-316e2c59.js.gz +0 -0
  100. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  101. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  102. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  103. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  104. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  105. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  106. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  107. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  108. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  109. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  110. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  111. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  112. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  113. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  114. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  115. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  116. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  117. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  118. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  119. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  120. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  121. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  122. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  123. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  124. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  125. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  126. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  127. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  128. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  129. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  130. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  131. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  132. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  133. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  134. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  135. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  136. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  137. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  138. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  139. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  140. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  141. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  142. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  143. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  144. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  145. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  146. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  147. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  148. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  149. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  150. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  151. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  152. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  153. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  154. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  155. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  156. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  157. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  158. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  159. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  160. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  161. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  162. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  163. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  164. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  165. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  166. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  167. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  168. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  169. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  170. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  171. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  172. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  173. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  174. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  175. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  176. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  177. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  178. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  179. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  180. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  181. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  182. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  183. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  184. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  185. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  186. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  187. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  188. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  189. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  190. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  191. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  192. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  193. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  194. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  195. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  196. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  197. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  198. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  199. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  200. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  201. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  202. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  203. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  204. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  205. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  206. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  207. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  208. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  209. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  210. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  211. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  212. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  213. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  214. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  215. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  216. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  217. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  218. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  219. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  220. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  221. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  222. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  223. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  224. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  225. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  226. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  227. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  228. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  229. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  230. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  231. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  232. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  233. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  234. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  235. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  236. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  237. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  238. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  239. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +6 -1
  240. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  241. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  242. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  243. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  244. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  245. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  246. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  247. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  248. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  249. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  250. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  251. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  252. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  253. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  254. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  255. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  256. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  257. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  258. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  259. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  260. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  261. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  262. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  263. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  264. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  265. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  266. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  267. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  268. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  269. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  270. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  271. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  272. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  273. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  274. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  275. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  276. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  277. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  278. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  279. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  280. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  281. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  282. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  283. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  284. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  285. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  286. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  287. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  288. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  289. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  290. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  291. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  292. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  293. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  294. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  295. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  296. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  297. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  298. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  299. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  300. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  301. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  302. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  303. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  304. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  305. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  306. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  307. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  308. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  309. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  310. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  311. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  312. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  313. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  314. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  315. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  316. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  317. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  318. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  319. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  320. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  321. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  322. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  323. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  324. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  325. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  326. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  327. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  328. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  329. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  330. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  331. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  332. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  333. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  334. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  335. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  336. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  337. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  338. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  339. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  340. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  341. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  342. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  343. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  344. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  345. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  346. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  347. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  348. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  349. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  350. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  351. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  352. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  353. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  354. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  355. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  356. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  357. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  358. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  359. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  360. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  361. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  362. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  363. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  364. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  365. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  366. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  367. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  368. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  369. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  370. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  371. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  372. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  373. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  374. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  375. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  376. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  377. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  378. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  379. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  380. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  381. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  382. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  383. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  384. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  385. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  386. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  387. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  388. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  389. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  390. package/dist/collection/global/app-init.js.gz +0 -0
  391. package/dist/collection/index.js.gz +0 -0
  392. package/dist/collection/servidor.js.gz +0 -0
  393. package/dist/collection/setupTests.js.gz +0 -0
  394. package/dist/collection/sw.js.gz +0 -0
  395. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  396. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  397. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  398. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  399. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  400. package/dist/collection/utils/constants.js.gz +0 -0
  401. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  402. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  403. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  404. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  405. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  406. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  407. package/dist/collection/utils/form/index.js.gz +0 -0
  408. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  409. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  410. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  411. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  412. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  413. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  414. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  415. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  416. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  417. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  418. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  419. package/dist/collection/utils/i18n/index.js.gz +0 -0
  420. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  421. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  422. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  423. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  424. package/dist/collection/utils/index.js.gz +0 -0
  425. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  426. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  427. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  428. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  429. package/dist/collection/utils/search/types.js.gz +0 -0
  430. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  431. package/dist/collection/utils/utils.js.gz +0 -0
  432. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  433. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  434. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  435. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  436. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  437. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  438. package/dist/custom-elements/index.js +683 -246
  439. package/dist/custom-elements/index.js.gz +0 -0
  440. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  441. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  442. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  443. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  444. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  445. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  446. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  447. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  448. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  449. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  450. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  451. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  452. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  453. package/dist/esm/ez-alert.entry.js.gz +0 -0
  454. package/dist/esm/ez-application.entry.js.gz +0 -0
  455. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  456. package/dist/esm/ez-badge.entry.js.gz +0 -0
  457. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  458. package/dist/esm/ez-button.entry.js.gz +0 -0
  459. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  460. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  461. package/dist/esm/ez-chart.entry.js.gz +0 -0
  462. package/dist/esm/ez-check.entry.js.gz +0 -0
  463. package/dist/esm/ez-chip.entry.js.gz +0 -0
  464. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  465. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  466. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  467. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  468. package/dist/esm/ez-combo-box-list_4.entry.js +1 -1
  469. package/dist/esm/ez-combo-box-list_4.entry.js.gz +0 -0
  470. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  471. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  472. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  473. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  474. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  475. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  476. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  477. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  478. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  479. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  480. package/dist/esm/ez-form.entry.js.gz +0 -0
  481. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  482. package/dist/esm/ez-grid.entry.js +1 -1
  483. package/dist/esm/ez-grid.entry.js.gz +0 -0
  484. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  485. package/dist/esm/ez-icon.entry.js.gz +0 -0
  486. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  487. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  488. package/dist/esm/ez-list.entry.js.gz +0 -0
  489. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  490. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  491. package/dist/esm/ez-modal.entry.js.gz +0 -0
  492. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  493. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  494. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  495. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  496. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  497. package/dist/esm/ez-popover.entry.js.gz +0 -0
  498. package/dist/esm/ez-popup.entry.js.gz +0 -0
  499. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  500. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  501. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  502. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  503. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  504. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  505. package/dist/esm/ez-search.entry.js.gz +0 -0
  506. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  507. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  508. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  509. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  510. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  511. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  512. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  513. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  514. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  515. package/dist/esm/ez-tag.entry.js.gz +0 -0
  516. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  517. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  518. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  519. package/dist/esm/ez-tile.entry.js.gz +0 -0
  520. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  521. package/dist/esm/ez-toast.entry.js.gz +0 -0
  522. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  523. package/dist/esm/ez-tree.entry.js.gz +0 -0
  524. package/dist/esm/ez-underface.entry.js.gz +0 -0
  525. package/dist/esm/ez-upload.entry.js.gz +0 -0
  526. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  527. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  528. package/dist/esm/ezui.js.gz +0 -0
  529. package/dist/esm/filter-column.entry.js +6 -1
  530. package/dist/esm/filter-column.entry.js.gz +0 -0
  531. package/dist/esm/floating-ui.dom.esm-ad30f2f0.js.gz +0 -0
  532. package/dist/esm/index-41363fa6.js.gz +0 -0
  533. package/dist/esm/index-baa5e267.js.gz +0 -0
  534. package/dist/esm/index.js.gz +0 -0
  535. package/dist/esm/loader.js.gz +0 -0
  536. package/dist/esm/polyfills/core-js.js.gz +0 -0
  537. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  538. package/dist/esm/polyfills/dom.js.gz +0 -0
  539. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  540. package/dist/esm/polyfills/index.js.gz +0 -0
  541. package/dist/esm/polyfills/system.js.gz +0 -0
  542. package/dist/esm/{purify-a818ad63.js → purify-d55d1f11.js} +677 -245
  543. package/dist/esm/purify-d55d1f11.js.gz +0 -0
  544. package/dist/esm/search-column-c20d2b01.js.gz +0 -0
  545. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  546. package/dist/ezui/ezui.esm.js +1 -1
  547. package/dist/ezui/ezui.esm.js.gz +0 -0
  548. package/dist/ezui/index.esm.js.gz +0 -0
  549. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  550. package/dist/ezui/p-04126429.js.gz +0 -0
  551. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  552. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  553. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  554. package/dist/ezui/p-112455b1.js.gz +0 -0
  555. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  556. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  557. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  558. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  559. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  560. package/dist/ezui/p-2528e988.entry.js.gz +0 -0
  561. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  562. package/dist/ezui/p-2a806303.js.gz +0 -0
  563. package/dist/ezui/{p-183db57c.entry.js → p-2cc07392.entry.js} +1 -1
  564. package/dist/ezui/p-2cc07392.entry.js.gz +0 -0
  565. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  566. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  567. package/dist/ezui/p-351fb12f.entry.js.gz +0 -0
  568. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  569. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  570. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  571. package/dist/ezui/p-3e767a74.js.gz +0 -0
  572. package/dist/ezui/p-40a60148.js.gz +0 -0
  573. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  574. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  575. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  576. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  577. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  578. package/dist/ezui/p-5554704c.js.gz +0 -0
  579. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  580. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  581. package/dist/ezui/p-62a362b4.js +3 -0
  582. package/dist/ezui/p-62a362b4.js.gz +0 -0
  583. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  584. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  585. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  586. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  587. package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
  588. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  589. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  590. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  591. package/dist/ezui/p-7f37ee99.entry.js.gz +0 -0
  592. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  593. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  594. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  595. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  596. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  597. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  598. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  599. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  600. package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
  601. package/dist/ezui/p-967ed829.entry.js +1 -0
  602. package/dist/ezui/p-967ed829.entry.js.gz +0 -0
  603. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  604. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  605. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  606. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  607. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  608. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  609. package/dist/ezui/p-a278f26e.entry.js.gz +0 -0
  610. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  611. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  612. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  613. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  614. package/dist/ezui/p-a63b20a0.entry.js.gz +0 -0
  615. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  616. package/dist/ezui/p-ab574d59.js.gz +0 -0
  617. package/dist/ezui/p-b1e45320.js.gz +0 -0
  618. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  619. package/dist/ezui/p-b853763b.js.gz +0 -0
  620. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  621. package/dist/ezui/p-baec56c9.js.gz +0 -0
  622. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  623. package/dist/ezui/{p-c9ef8551.entry.js → p-c2d1f276.entry.js} +1 -1
  624. package/dist/ezui/p-c2d1f276.entry.js.gz +0 -0
  625. package/dist/ezui/p-cde41310.entry.js.gz +0 -0
  626. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  627. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  628. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  629. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  630. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  631. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  632. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  633. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  634. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  635. package/dist/ezui/p-dee18824.entry.js.gz +0 -0
  636. package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
  637. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  638. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  639. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  640. package/dist/ezui/p-ec7db713.js.gz +0 -0
  641. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  642. package/dist/ezui/p-ef8bd3e8.entry.js.gz +0 -0
  643. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  644. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  645. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  646. package/dist/index.cjs.js.gz +0 -0
  647. package/dist/index.js.gz +0 -0
  648. package/package.json +1 -1
  649. package/dist/cjs/purify-ca9603eb.js.gz +0 -0
  650. package/dist/esm/purify-a818ad63.js.gz +0 -0
  651. package/dist/ezui/p-183db57c.entry.js.gz +0 -0
  652. package/dist/ezui/p-197eb577.js +0 -3
  653. package/dist/ezui/p-197eb577.js.gz +0 -0
  654. package/dist/ezui/p-2b49aa22.entry.js +0 -1
  655. package/dist/ezui/p-2b49aa22.entry.js.gz +0 -0
  656. package/dist/ezui/p-c9ef8551.entry.js.gz +0 -0
@@ -3,7 +3,7 @@
3
3
  const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
4
4
 
5
5
  var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
6
- /*! @license DOMPurify 3.4.8 | (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.8/LICENSE */
6
+ /*! @license DOMPurify 3.4.10 | (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.10/LICENSE */
7
7
 
8
8
  (function (global, factory) {
9
9
  module.exports = factory() ;
@@ -335,6 +335,13 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
335
335
  );
336
336
  const DOCTYPE_NAME = seal(/^html$/i);
337
337
  const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
338
+ // Markup-significant character probes used by _sanitizeElements.
339
+ // Shared module-level instances are safe despite the sticky /g flags:
340
+ // unapply() resets lastIndex for RegExp receivers before every call.
341
+ const ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
342
+ const COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
343
+ const FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
344
+ const SELF_CLOSING_TAG = seal(/\/>/i);
338
345
 
339
346
  /* eslint-disable @typescript-eslint/indent */
340
347
  // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
@@ -347,7 +354,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
347
354
  // Deprecated
348
355
  entityNode: 6,
349
356
  // Deprecated
350
- progressingInstruction: 7,
357
+ processingInstruction: 7,
351
358
  comment: 8,
352
359
  document: 9,
353
360
  documentType: 10,
@@ -407,10 +414,25 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
407
414
  uponSanitizeShadowNode: []
408
415
  };
409
416
  };
417
+ /**
418
+ * Resolve a set-valued configuration option: a fresh set built from
419
+ * cfg[key] when it is an own array property (seeded with a clone of
420
+ * options.base when given, case-normalized via options.transform),
421
+ * the fallback set otherwise.
422
+ *
423
+ * @param cfg the cloned, prototype-free configuration object
424
+ * @param key the configuration property to read
425
+ * @param fallback the set to use when the option is absent or not an array
426
+ * @param options transform and optional base set to merge into
427
+ * @returns the resolved set
428
+ */
429
+ const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
430
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
431
+ };
410
432
  function createDOMPurify() {
411
433
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
412
434
  const DOMPurify = root => createDOMPurify(root);
413
- DOMPurify.version = '3.4.8';
435
+ DOMPurify.version = '3.4.10';
414
436
  DOMPurify.removed = [];
415
437
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
416
438
  // Not running in a browser, provide a factory function
@@ -451,23 +473,54 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
451
473
  }
452
474
  let trustedTypesPolicy;
453
475
  let emptyHTML = '';
476
+ // The instance's own internal Trusted Types policy. Unlike a caller-supplied
477
+ // `TRUSTED_TYPES_POLICY`, this is created at most once — Trusted Types throws
478
+ // on duplicate policy names — and is the only policy allowed to persist
479
+ // across configurations and survive `clearConfig()`.
480
+ let defaultTrustedTypesPolicy;
481
+ let defaultTrustedTypesPolicyResolved = false;
454
482
  // Tracks whether we are already inside a call to the configured Trusted Types
455
- // policy's `createHTML`. If the supplied `TRUSTED_TYPES_POLICY.createHTML`
483
+ // policy (`createHTML` or `createScriptURL`). If a supplied policy callback
456
484
  // itself calls `DOMPurify.sanitize` (the cause of #1422), `sanitize` would
457
485
  // re-enter the policy and recurse until the stack overflows. We detect that
458
- // re-entry and throw a clear, actionable error instead.
459
- let IN_POLICY_CREATE_HTML = 0;
460
- const _createTrustedHTML = function _createTrustedHTML(html) {
461
- if (IN_POLICY_CREATE_HTML > 0) {
462
- throw typeErrorCreate('The configured TRUSTED_TYPES_POLICY.createHTML must not call ' + 'DOMPurify.sanitize, as that causes infinite recursion. Do not pass ' + 'a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; ' + 'see the "DOMPurify and Trusted Types" section of the README.');
486
+ // re-entry and throw a clear, actionable error instead. The guard is shared
487
+ // across both callbacks, because either one re-entering `sanitize` triggers
488
+ // the same unbounded recursion.
489
+ let IN_TRUSTED_TYPES_POLICY = 0;
490
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
491
+ if (IN_TRUSTED_TYPES_POLICY > 0) {
492
+ 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.');
463
493
  }
464
- IN_POLICY_CREATE_HTML++;
494
+ };
495
+ const _createTrustedHTML = function _createTrustedHTML(html) {
496
+ _assertNotInTrustedTypesPolicy();
497
+ IN_TRUSTED_TYPES_POLICY++;
465
498
  try {
466
499
  return trustedTypesPolicy.createHTML(html);
467
500
  } finally {
468
- IN_POLICY_CREATE_HTML--;
501
+ IN_TRUSTED_TYPES_POLICY--;
469
502
  }
470
503
  };
504
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
505
+ _assertNotInTrustedTypesPolicy();
506
+ IN_TRUSTED_TYPES_POLICY++;
507
+ try {
508
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
509
+ } finally {
510
+ IN_TRUSTED_TYPES_POLICY--;
511
+ }
512
+ };
513
+ // Lazily resolve (and cache) the instance's internal default policy.
514
+ // Resolution is attempted at most once: a successful `createPolicy` cannot be
515
+ // repeated (Trusted Types throws on duplicate names), and a failed or
516
+ // unsupported attempt must not be retried on every parse.
517
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
518
+ if (!defaultTrustedTypesPolicyResolved) {
519
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
520
+ defaultTrustedTypesPolicyResolved = true;
521
+ }
522
+ return defaultTrustedTypesPolicy;
523
+ };
471
524
  const _document = document,
472
525
  implementation = _document.implementation,
473
526
  createNodeIterator = _document.createNodeIterator,
@@ -606,7 +659,17 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
606
659
  let USE_PROFILES = {};
607
660
  /* Tags to ignore content of when KEEP_CONTENT is true */
608
661
  let FORBID_CONTENTS = null;
609
- const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
662
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
663
+ // <selectedcontent> mirrors the selected <option>'s subtree, cloned by
664
+ // the UA (customizable <select>) — including any on* handlers — and the
665
+ // engine re-mirrors synchronously whenever a removal changes which
666
+ // option/selectedcontent is current, even inside DOMPurify's inert
667
+ // DOMParser document. Hoisting its children on removal re-inserts a fresh
668
+ // mirror target ahead of the walk, which the engine refills, looping
669
+ // forever (DoS) and amplifying output. Dropping its content on removal
670
+ // (rather than hoisting) breaks that cascade; the content is a duplicate
671
+ // of the option, which is sanitized on its own. See campaign-3 F1/F6.
672
+ 'selectedcontent', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
610
673
  /* Tags that are safe for data: URIs */
611
674
  let DATA_URI_TAGS = null;
612
675
  const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
@@ -622,8 +685,10 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
622
685
  /* Allowed XHTML+XML namespaces */
623
686
  let ALLOWED_NAMESPACES = null;
624
687
  const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
625
- let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
626
- let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
688
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze(['mi', 'mo', 'mn', 'ms', 'mtext']);
689
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
690
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(['annotation-xml']);
691
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
627
692
  // Certain elements are allowed in both SVG and HTML
628
693
  // namespace. We need to specify them explicitly
629
694
  // so that they don't get erroneously deleted from
@@ -665,14 +730,32 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
665
730
  // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
666
731
  transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
667
732
  /* Set configuration parameters */
668
- ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') && arrayIsArray(cfg.ALLOWED_TAGS) ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
669
- ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') && arrayIsArray(cfg.ALLOWED_ATTR) ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
670
- ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') && arrayIsArray(cfg.ALLOWED_NAMESPACES) ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
671
- URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR) ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
672
- DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') && arrayIsArray(cfg.ADD_DATA_URI_TAGS) ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
673
- FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS) ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
674
- FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') && arrayIsArray(cfg.FORBID_TAGS) ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
675
- FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') && arrayIsArray(cfg.FORBID_ATTR) ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
733
+ ALLOWED_TAGS = _resolveSetOption(cfg, 'ALLOWED_TAGS', DEFAULT_ALLOWED_TAGS, {
734
+ transform: transformCaseFunc
735
+ });
736
+ ALLOWED_ATTR = _resolveSetOption(cfg, 'ALLOWED_ATTR', DEFAULT_ALLOWED_ATTR, {
737
+ transform: transformCaseFunc
738
+ });
739
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, 'ALLOWED_NAMESPACES', DEFAULT_ALLOWED_NAMESPACES, {
740
+ transform: stringToString
741
+ });
742
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, 'ADD_URI_SAFE_ATTR', DEFAULT_URI_SAFE_ATTRIBUTES, {
743
+ transform: transformCaseFunc,
744
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
745
+ });
746
+ DATA_URI_TAGS = _resolveSetOption(cfg, 'ADD_DATA_URI_TAGS', DEFAULT_DATA_URI_TAGS, {
747
+ transform: transformCaseFunc,
748
+ base: DEFAULT_DATA_URI_TAGS
749
+ });
750
+ FORBID_CONTENTS = _resolveSetOption(cfg, 'FORBID_CONTENTS', DEFAULT_FORBID_CONTENTS, {
751
+ transform: transformCaseFunc
752
+ });
753
+ FORBID_TAGS = _resolveSetOption(cfg, 'FORBID_TAGS', clone({}), {
754
+ transform: transformCaseFunc
755
+ });
756
+ FORBID_ATTR = _resolveSetOption(cfg, 'FORBID_ATTR', clone({}), {
757
+ transform: transformCaseFunc
758
+ });
676
759
  USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
677
760
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
678
761
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
@@ -691,8 +774,8 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
691
774
  IN_PLACE = cfg.IN_PLACE || false; // Default false
692
775
  IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
693
776
  NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
694
- MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); // Default built-in map
695
- HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, ['annotation-xml']); // Default built-in map
777
+ MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS); // Default built-in map
778
+ HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS); // Default built-in map
696
779
  const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
697
780
  CUSTOM_ELEMENT_HANDLING = create(null);
698
781
  if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
@@ -704,6 +787,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
704
787
  if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
705
788
  CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
706
789
  }
790
+ seal(CUSTOM_ELEMENT_HANDLING);
707
791
  if (SAFE_FOR_TEMPLATES) {
708
792
  ALLOW_DATA_ATTR = false;
709
793
  }
@@ -787,6 +871,13 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
787
871
  addToSet(ALLOWED_TAGS, ['tbody']);
788
872
  delete FORBID_TAGS.tbody;
789
873
  }
874
+ // Re-derive the active Trusted Types policy from this configuration on
875
+ // every parse. The active policy must never be sticky closure state that
876
+ // outlives the config that set it: a caller-supplied policy left in place
877
+ // after `clearConfig()` — or after a later call that supplied none, or
878
+ // `TRUSTED_TYPES_POLICY: null` — could sign a subsequent "default"
879
+ // `RETURN_TRUSTED_TYPE` result with a foreign, possibly unsafe policy.
880
+ // See GHSA-vxr8-fq34-vvx9.
790
881
  if (cfg.TRUSTED_TYPES_POLICY) {
791
882
  if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
792
883
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
@@ -794,7 +885,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
794
885
  if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
795
886
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
796
887
  }
797
- // Overwrite existing TrustedTypes policy.
888
+ // A caller-supplied policy applies to this configuration only.
798
889
  const previousTrustedTypesPolicy = trustedTypesPolicy;
799
890
  trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
800
891
  // Sign local variables required by `sanitize`. If the supplied policy's
@@ -807,16 +898,30 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
807
898
  trustedTypesPolicy = previousTrustedTypesPolicy;
808
899
  throw error;
809
900
  }
901
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
902
+ // Explicit opt-out for this call: perform no Trusted Types signing and
903
+ // create nothing (so a strict `trusted-types` CSP that disallows a
904
+ // `dompurify` policy can still call `sanitize` from inside its own
905
+ // policy — see #1422). Resetting to `undefined` rather than a sticky
906
+ // `null` also drops any previously retained caller policy, so it cannot
907
+ // resurface on a later call, while still allowing the next config-less
908
+ // call to restore the internal default policy. See GHSA-vxr8-fq34-vvx9.
909
+ trustedTypesPolicy = undefined;
910
+ emptyHTML = '';
810
911
  } else {
811
- // Uninitialized policy, attempt to initialize the internal dompurify policy.
812
- if (trustedTypesPolicy === undefined && cfg.TRUSTED_TYPES_POLICY !== null) {
813
- trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
814
- }
815
- // If creating the internal policy succeeded sign internal variables.
816
- // Note: a falsy `trustedTypesPolicy` (null when policy creation failed or
817
- // was skipped via `TRUSTED_TYPES_POLICY: null`, or undefined when no
818
- // policy has been initialized yet) must be excluded here, otherwise we
819
- // would call `.createHTML` on a non-policy and throw. See #1422.
912
+ // No policy supplied: keep the currently active policy if one is set — a
913
+ // previously supplied policy is intentionally sticky across config-less
914
+ // calls — otherwise fall back to the instance's own internal policy,
915
+ // created at most once. (A policy supplied for a *single* call still
916
+ // lingers by design; what must not linger is a policy whose configuration
917
+ // has been torn down via `clearConfig()`, which restores the default.)
918
+ if (trustedTypesPolicy === undefined) {
919
+ trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
920
+ }
921
+ // Sign internal variables only when a policy is active. A falsy policy
922
+ // (Trusted Types unsupported, creation failed, or an explicit opt-out)
923
+ // leaves `emptyHTML` as a plain string, so we never call `.createHTML` on
924
+ // a non-policy and throw. See #1422.
820
925
  if (trustedTypesPolicy && typeof emptyHTML === 'string') {
821
926
  emptyHTML = _createTrustedHTML('');
822
927
  }
@@ -848,6 +953,77 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
848
953
  * correctly. */
849
954
  const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
850
955
  const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
956
+ /**
957
+ * Namespace rules for an element in the SVG namespace.
958
+ *
959
+ * @param tagName the element's lowercase tag name
960
+ * @param parent the (possibly simulated) parent node
961
+ * @param parentTagName the parent's lowercase tag name
962
+ * @returns true if a spec-compliant parser could produce this element
963
+ */
964
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
965
+ // The only way to switch from HTML namespace to SVG
966
+ // is via <svg>. If it happens via any other tag, then
967
+ // it should be killed.
968
+ if (parent.namespaceURI === HTML_NAMESPACE) {
969
+ return tagName === 'svg';
970
+ }
971
+ // The only way to switch from MathML to SVG is via <svg>
972
+ // if the parent is either <annotation-xml> or a MathML
973
+ // text integration point.
974
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
975
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
976
+ }
977
+ // We only allow elements that are defined in SVG
978
+ // spec. All others are disallowed in SVG namespace.
979
+ return Boolean(ALL_SVG_TAGS[tagName]);
980
+ };
981
+ /**
982
+ * Namespace rules for an element in the MathML namespace.
983
+ *
984
+ * @param tagName the element's lowercase tag name
985
+ * @param parent the (possibly simulated) parent node
986
+ * @param parentTagName the parent's lowercase tag name
987
+ * @returns true if a spec-compliant parser could produce this element
988
+ */
989
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
990
+ // The only way to switch from HTML namespace to MathML
991
+ // is via <math>. If it happens via any other tag, then
992
+ // it should be killed.
993
+ if (parent.namespaceURI === HTML_NAMESPACE) {
994
+ return tagName === 'math';
995
+ }
996
+ // The only way to switch from SVG to MathML is via
997
+ // <math> and HTML integration points
998
+ if (parent.namespaceURI === SVG_NAMESPACE) {
999
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
1000
+ }
1001
+ // We only allow elements that are defined in MathML
1002
+ // spec. All others are disallowed in MathML namespace.
1003
+ return Boolean(ALL_MATHML_TAGS[tagName]);
1004
+ };
1005
+ /**
1006
+ * Namespace rules for an element in the HTML namespace.
1007
+ *
1008
+ * @param tagName the element's lowercase tag name
1009
+ * @param parent the (possibly simulated) parent node
1010
+ * @param parentTagName the parent's lowercase tag name
1011
+ * @returns true if a spec-compliant parser could produce this element
1012
+ */
1013
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
1014
+ // The only way to switch from SVG to HTML is via
1015
+ // HTML integration points, and from MathML to HTML
1016
+ // is via MathML text integration points
1017
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
1018
+ return false;
1019
+ }
1020
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
1021
+ return false;
1022
+ }
1023
+ // We disallow tags that are specific for MathML
1024
+ // or SVG and should never appear in HTML namespace
1025
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1026
+ };
851
1027
  /**
852
1028
  * @param element a DOM element whose namespace is being checked
853
1029
  * @returns Return false if the element has a
@@ -870,51 +1046,13 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
870
1046
  return false;
871
1047
  }
872
1048
  if (element.namespaceURI === SVG_NAMESPACE) {
873
- // The only way to switch from HTML namespace to SVG
874
- // is via <svg>. If it happens via any other tag, then
875
- // it should be killed.
876
- if (parent.namespaceURI === HTML_NAMESPACE) {
877
- return tagName === 'svg';
878
- }
879
- // The only way to switch from MathML to SVG is via`
880
- // svg if parent is either <annotation-xml> or MathML
881
- // text integration points.
882
- if (parent.namespaceURI === MATHML_NAMESPACE) {
883
- return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
884
- }
885
- // We only allow elements that are defined in SVG
886
- // spec. All others are disallowed in SVG namespace.
887
- return Boolean(ALL_SVG_TAGS[tagName]);
1049
+ return _checkSvgNamespace(tagName, parent, parentTagName);
888
1050
  }
889
1051
  if (element.namespaceURI === MATHML_NAMESPACE) {
890
- // The only way to switch from HTML namespace to MathML
891
- // is via <math>. If it happens via any other tag, then
892
- // it should be killed.
893
- if (parent.namespaceURI === HTML_NAMESPACE) {
894
- return tagName === 'math';
895
- }
896
- // The only way to switch from SVG to MathML is via
897
- // <math> and HTML integration points
898
- if (parent.namespaceURI === SVG_NAMESPACE) {
899
- return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
900
- }
901
- // We only allow elements that are defined in MathML
902
- // spec. All others are disallowed in MathML namespace.
903
- return Boolean(ALL_MATHML_TAGS[tagName]);
1052
+ return _checkMathMlNamespace(tagName, parent, parentTagName);
904
1053
  }
905
1054
  if (element.namespaceURI === HTML_NAMESPACE) {
906
- // The only way to switch from SVG to HTML is via
907
- // HTML integration points, and from MathML to HTML
908
- // is via MathML text integration points
909
- if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
910
- return false;
911
- }
912
- if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
913
- return false;
914
- }
915
- // We disallow tags that are specific for MathML
916
- // or SVG and should never appear in HTML namespace
917
- return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1055
+ return _checkHtmlNamespace(tagName, parent, parentTagName);
918
1056
  }
919
1057
  // For XHTML and XML documents that support custom namespaces
920
1058
  if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
@@ -939,7 +1077,74 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
939
1077
  // eslint-disable-next-line unicorn/prefer-dom-node-remove
940
1078
  getParentNode(node).removeChild(node);
941
1079
  } catch (_) {
1080
+ /* The normal detach failed — this is reached for a parentless node
1081
+ (getParentNode() is null, so .removeChild throws). Element.prototype
1082
+ .remove() is itself a spec no-op on a parentless node, so a recorded
1083
+ "removal" would otherwise hand the caller back an intact,
1084
+ payload-bearing node (e.g. a detached IN_PLACE root the mXSS canary or
1085
+ the style-with-element-child rule decided to kill). Fail closed by
1086
+ throwing — exactly as a clobbered root does at the IN_PLACE entry —
1087
+ rather than trying to "neutralize" the node via its own methods.
1088
+ Neutralizing would mean calling getAttributeNames()/removeAttribute()
1089
+ on the node, both of which a <form> root can clobber via a named child
1090
+ (and _isClobbered does not even probe getAttributeNames), so the
1091
+ neutralize step could itself be silently defeated, leaving the payload
1092
+ intact. A throw touches only the cached, clobber-safe remove() and
1093
+ getParentNode(). Generalizes GHSA-r47g-fvhr-h676 (clobbered-form root)
1094
+ to every root-kill reason. REPORT-3.
1095
+ This lives inside the catch, so it never fires for a normally-removed
1096
+ in-tree node: those have a parent, removeChild() succeeds, and the
1097
+ catch is not entered. Only a kept (parentless) root reaches here. */
942
1098
  remove(node);
1099
+ if (!getParentNode(node)) {
1100
+ throw typeErrorCreate('a node selected for removal could not be detached from its tree ' + 'and cannot be safely returned; refusing to sanitize in place');
1101
+ }
1102
+ }
1103
+ };
1104
+ /**
1105
+ * _neutralizeRoot
1106
+ *
1107
+ * Fail-closed teardown of an in-place root after the sanitize walk aborts
1108
+ * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
1109
+ * custom element's reaction detaches a node so `_forceRemove`'s deliberate
1110
+ * parentless guard throws, or any other re-entrant engine mutation — would
1111
+ * otherwise leave the caller's *live* tree half-sanitized, with everything
1112
+ * after the abort point still carrying its handlers. There is no safe way
1113
+ * to resume the walk (the tree mutated under us), so we strip the root bare:
1114
+ * remove every child and every attribute, then let the caller's catch see
1115
+ * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
1116
+ * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
1117
+ *
1118
+ * @param root the in-place root to empty
1119
+ */
1120
+ const _neutralizeRoot = function _neutralizeRoot(root) {
1121
+ const childNodes = getChildNodes(root);
1122
+ if (childNodes) {
1123
+ const snapshot = [];
1124
+ arrayForEach(childNodes, child => {
1125
+ arrayPush(snapshot, child);
1126
+ });
1127
+ arrayForEach(snapshot, child => {
1128
+ try {
1129
+ remove(child);
1130
+ } catch (_) {
1131
+ /* Best-effort teardown; a still-attached child is handled below */
1132
+ }
1133
+ });
1134
+ }
1135
+ const attributes = getAttributes(root);
1136
+ if (attributes) {
1137
+ for (let i = attributes.length - 1; i >= 0; --i) {
1138
+ const attribute = attributes[i];
1139
+ const name = attribute && attribute.name;
1140
+ if (typeof name === 'string') {
1141
+ try {
1142
+ root.removeAttribute(name);
1143
+ } catch (_) {
1144
+ /* Clobbered removeAttribute — ignore (fail-closed best effort) */
1145
+ }
1146
+ }
1147
+ }
943
1148
  }
944
1149
  };
945
1150
  /**
@@ -974,6 +1179,72 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
974
1179
  }
975
1180
  }
976
1181
  };
1182
+ /**
1183
+ * _stripDisallowedAttributes
1184
+ *
1185
+ * Removes every attribute the active configuration does not allow from a
1186
+ * single element, using the same allowlist as the main attribute pass (so
1187
+ * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
1188
+ * neutralise nodes that are being discarded from an in-place tree.
1189
+ *
1190
+ * @param element the element to strip
1191
+ */
1192
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
1193
+ const attributes = getAttributes(element);
1194
+ if (!attributes) {
1195
+ return;
1196
+ }
1197
+ for (let i = attributes.length - 1; i >= 0; --i) {
1198
+ const attribute = attributes[i];
1199
+ const name = attribute && attribute.name;
1200
+ if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {
1201
+ continue;
1202
+ }
1203
+ try {
1204
+ element.removeAttribute(name);
1205
+ } catch (_) {
1206
+ /* Clobbered removeAttribute on a doomed node — ignore */
1207
+ }
1208
+ }
1209
+ };
1210
+ /**
1211
+ * _neutralizeSubtree
1212
+ *
1213
+ * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
1214
+ * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
1215
+ * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
1216
+ * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
1217
+ * those dropped nodes are detached from the caller's LIVE tree but a
1218
+ * handler-bearing original among them (an `<img onerror>`/`<video>` that was
1219
+ * loading) keeps its queued resource event, which fires in page scope after
1220
+ * sanitize returns. This walks a removed subtree and strips every attribute
1221
+ * the active configuration does not allow — so `on*` handlers are cancelled
1222
+ * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
1223
+ * blocklist. Run synchronously before sanitize returns, i.e. before any
1224
+ * queued event can fire. Hook-free by design: these nodes leave the output,
1225
+ * so firing attribute hooks for them would be surprising. Clobber-safe reads;
1226
+ * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
1227
+ * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
1228
+ * the `<img>`, are reached and scrubbed).
1229
+ *
1230
+ * @param root the root of a removed subtree to neutralise
1231
+ */
1232
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
1233
+ const stack = [root];
1234
+ while (stack.length > 0) {
1235
+ const node = stack.pop();
1236
+ const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
1237
+ if (nodeType === NODE_TYPE.element) {
1238
+ _stripDisallowedAttributes(node);
1239
+ }
1240
+ const childNodes = getChildNodes(node);
1241
+ if (childNodes) {
1242
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1243
+ stack.push(childNodes[i]);
1244
+ }
1245
+ }
1246
+ }
1247
+ };
977
1248
  /**
978
1249
  * _initDocument
979
1250
  *
@@ -1035,6 +1306,20 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1035
1306
  // eslint-disable-next-line no-bitwise
1036
1307
  NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1037
1308
  };
1309
+ /**
1310
+ * Replace template expression syntax (mustache, ERB, template
1311
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
1312
+ * sites. Order matters: mustache, then ERB, then template literal.
1313
+ *
1314
+ * @param value the string to scrub
1315
+ * @returns the scrubbed string
1316
+ */
1317
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1318
+ value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
1319
+ value = stringReplace(value, ERB_EXPR$1, ' ');
1320
+ value = stringReplace(value, TMPLIT_EXPR$1, ' ');
1321
+ return value;
1322
+ };
1038
1323
  /**
1039
1324
  * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
1040
1325
  * character data of an element subtree. Used as the final safety net for
@@ -1055,29 +1340,27 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1055
1340
  * @param node The root element whose character data should be scrubbed.
1056
1341
  */
1057
1342
  const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1058
- var _node$querySelectorAl, _node$querySelectorAl2;
1343
+ var _node$querySelectorAl;
1059
1344
  node.normalize();
1060
1345
  const walker = createNodeIterator.call(node.ownerDocument || node, node,
1061
1346
  // eslint-disable-next-line no-bitwise
1062
1347
  NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1063
1348
  let currentNode = walker.nextNode();
1064
1349
  while (currentNode) {
1065
- let data = currentNode.data;
1066
- arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1067
- data = stringReplace(data, expr, ' ');
1068
- });
1069
- currentNode.data = data;
1350
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
1070
1351
  currentNode = walker.nextNode();
1071
1352
  }
1072
1353
  // NodeIterator does not descend into <template>.content per the DOM spec,
1073
1354
  // so we must explicitly recurse into each template's content fragment,
1074
1355
  // mirroring the approach used by _sanitizeShadowDOM.
1075
- const templates = (_node$querySelectorAl = (_node$querySelectorAl2 = node.querySelectorAll) === null || _node$querySelectorAl2 === void 0 ? void 0 : _node$querySelectorAl2.call(node, 'template')) !== null && _node$querySelectorAl !== void 0 ? _node$querySelectorAl : [];
1076
- arrayForEach(Array.from(templates), tmpl => {
1077
- if (_isDocumentFragment(tmpl.content)) {
1078
- _scrubTemplateExpressions2(tmpl.content);
1079
- }
1080
- });
1356
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, 'template');
1357
+ if (templates) {
1358
+ arrayForEach(templates, tmpl => {
1359
+ if (_isDocumentFragment(tmpl.content)) {
1360
+ _scrubTemplateExpressions2(tmpl.content);
1361
+ }
1362
+ });
1363
+ }
1081
1364
  };
1082
1365
  /**
1083
1366
  * _isClobbered
@@ -1173,10 +1456,104 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1173
1456
  }
1174
1457
  };
1175
1458
  function _executeHooks(hooks, currentNode, data) {
1459
+ if (hooks.length === 0) {
1460
+ return;
1461
+ }
1176
1462
  arrayForEach(hooks, hook => {
1177
1463
  hook.call(DOMPurify, currentNode, data, CONFIG);
1178
1464
  });
1179
1465
  }
1466
+ /**
1467
+ * Structural-threat checks that condemn a node regardless of the
1468
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
1469
+ * processing instructions, markup-bearing comments. Pure predicate;
1470
+ * the caller removes. Check order is load-bearing.
1471
+ *
1472
+ * @param currentNode the node to inspect
1473
+ * @param tagName the node's transformCaseFunc'd tag name
1474
+ * @return true if the node must be removed
1475
+ */
1476
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1477
+ /* Detect mXSS attempts abusing namespace confusion */
1478
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
1479
+ return true;
1480
+ }
1481
+ /* Remove risky CSS construction leading to mXSS */
1482
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
1483
+ return true;
1484
+ }
1485
+ /* Remove any occurrence of processing instructions */
1486
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) {
1487
+ return true;
1488
+ }
1489
+ /* Remove any kind of possibly harmful comments */
1490
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) {
1491
+ return true;
1492
+ }
1493
+ return false;
1494
+ };
1495
+ /**
1496
+ * Handle a node whose tag is forbidden or not allowlisted: keep
1497
+ * allowed custom elements (false return exits _sanitizeElements
1498
+ * early - namespace/fallback checks and the afterSanitizeElements
1499
+ * hook are intentionally skipped for kept custom elements), else
1500
+ * hoist content per KEEP_CONTENT and remove.
1501
+ *
1502
+ * @param currentNode the disallowed node
1503
+ * @param tagName the node's transformCaseFunc'd tag name
1504
+ * @return true if the node was removed, false if kept
1505
+ */
1506
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
1507
+ /* Check if we have a custom element to handle */
1508
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1509
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1510
+ return false;
1511
+ }
1512
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1513
+ return false;
1514
+ }
1515
+ }
1516
+ /* Keep content except for bad-listed elements.
1517
+ Use the cached prototype getters exclusively — the previous code
1518
+ had `|| currentNode.parentNode` / `|| currentNode.childNodes`
1519
+ fallbacks, but the cached getters always return the canonical
1520
+ value (or null for a real parent-less node), so the fallback
1521
+ path was dead in safe cases and a clobbering surface in unsafe
1522
+ ones. Falsy cached results stay falsy; the `if (childNodes &&
1523
+ parentNode)` check already gates correctly. */
1524
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1525
+ const parentNode = getParentNode(currentNode);
1526
+ const childNodes = getChildNodes(currentNode);
1527
+ if (childNodes && parentNode) {
1528
+ const childCount = childNodes.length;
1529
+ /* In-place: hoist the *original* children so the iterator visits
1530
+ and sanitises them through the same allowlist pass as every other
1531
+ node. The caller built the tree in the live document, so the
1532
+ originals carry already-queued resource events (`<img onerror>`,
1533
+ `<video>`/`<audio>` error, lazy/`onload`, …); cloning would leave
1534
+ those originals detached but still armed, firing in page scope
1535
+ while the returned tree looked clean. Moving is safe in-place: the
1536
+ root is pre-validated as an allowed tag and so is never the node
1537
+ being removed, which keeps `parentNode` inside the iterator root
1538
+ and the relocated child inside the serialised tree.
1539
+ Otherwise (string / DOM-copy paths): clone. The iterator is rooted
1540
+ at — and the result serialised from — `body`, so a restrictive
1541
+ ALLOWED_TAGS that removes `body` itself must leave its content in
1542
+ place, which only cloning does; and those paths parse into an
1543
+ inert document, so their discarded originals never had a queued
1544
+ event to neutralise.
1545
+ `childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
1546
+ valid whether we move (drops the trailing entry) or clone (leaves
1547
+ the list intact). */
1548
+ for (let i = childCount - 1; i >= 0; --i) {
1549
+ const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
1550
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1551
+ }
1552
+ }
1553
+ }
1554
+ _forceRemove(currentNode);
1555
+ return true;
1556
+ };
1180
1557
  /**
1181
1558
  * _sanitizeElements
1182
1559
  *
@@ -1187,7 +1564,6 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1187
1564
  * @return true if node was killed, false if left alive
1188
1565
  */
1189
1566
  const _sanitizeElements = function _sanitizeElements(currentNode) {
1190
- let content = null;
1191
1567
  /* Execute a hook if present */
1192
1568
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1193
1569
  /* Check if element is clobbered or can clobber */
@@ -1202,58 +1578,14 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1202
1578
  tagName,
1203
1579
  allowedTags: ALLOWED_TAGS
1204
1580
  });
1205
- /* Detect mXSS attempts abusing namespace confusion */
1206
- if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1207
- _forceRemove(currentNode);
1208
- return true;
1209
- }
1210
- /* Remove risky CSS construction leading to mXSS */
1211
- if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
1212
- _forceRemove(currentNode);
1213
- return true;
1214
- }
1215
- /* Remove any occurrence of processing instructions */
1216
- if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
1217
- _forceRemove(currentNode);
1218
- return true;
1219
- }
1220
- /* Remove any kind of possibly harmful comments */
1221
- if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
1581
+ /* Remove mXSS vectors, processing instructions and risky comments */
1582
+ if (_isUnsafeNode(currentNode, tagName)) {
1222
1583
  _forceRemove(currentNode);
1223
1584
  return true;
1224
1585
  }
1225
1586
  /* Remove element if anything forbids its presence */
1226
1587
  if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1227
- /* Check if we have a custom element to handle */
1228
- if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1229
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1230
- return false;
1231
- }
1232
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1233
- return false;
1234
- }
1235
- }
1236
- /* Keep content except for bad-listed elements.
1237
- Use the cached prototype getters exclusively — the previous code
1238
- had `|| currentNode.parentNode` / `|| currentNode.childNodes`
1239
- fallbacks, but the cached getters always return the canonical
1240
- value (or null for a real parent-less node), so the fallback
1241
- path was dead in safe cases and a clobbering surface in unsafe
1242
- ones. Falsy cached results stay falsy; the `if (childNodes &&
1243
- parentNode)` check already gates correctly. */
1244
- if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1245
- const parentNode = getParentNode(currentNode);
1246
- const childNodes = getChildNodes(currentNode);
1247
- if (childNodes && parentNode) {
1248
- const childCount = childNodes.length;
1249
- for (let i = childCount - 1; i >= 0; --i) {
1250
- const childClone = cloneNode(childNodes[i], true);
1251
- parentNode.insertBefore(childClone, getNextSibling(currentNode));
1252
- }
1253
- }
1254
- }
1255
- _forceRemove(currentNode);
1256
- return true;
1588
+ return _sanitizeDisallowedNode(currentNode, tagName);
1257
1589
  }
1258
1590
  /* Check whether element has a valid namespace.
1259
1591
  Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
@@ -1267,17 +1599,14 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1267
1599
  return true;
1268
1600
  }
1269
1601
  /* Make sure that older browsers don't get fallback-tag mXSS */
1270
- if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
1602
+ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
1271
1603
  _forceRemove(currentNode);
1272
1604
  return true;
1273
1605
  }
1274
1606
  /* Sanitize element content to be template-safe */
1275
1607
  if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1276
1608
  /* Get the element's text content */
1277
- content = currentNode.textContent;
1278
- arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1279
- content = stringReplace(content, expr, ' ');
1280
- });
1609
+ const content = _stripTemplateExpressions(currentNode.textContent);
1281
1610
  if (currentNode.textContent !== content) {
1282
1611
  arrayPush(DOMPurify.removed, {
1283
1612
  element: currentNode.cloneNode()
@@ -1312,7 +1641,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1312
1641
  (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
1313
1642
  XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
1314
1643
  We don't need to check the value; it's always URI safe. */
1315
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!nameIsPermitted || FORBID_ATTR[lcName]) {
1644
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!nameIsPermitted) {
1316
1645
  if (
1317
1646
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1318
1647
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -1344,6 +1673,63 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1344
1673
  const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1345
1674
  return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
1346
1675
  };
1676
+ /**
1677
+ * Wrap an attribute value in the matching Trusted Types object when
1678
+ * the active policy requires it. Namespaced attributes pass through
1679
+ * unchanged (no TT support yet, see
1680
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
1681
+ *
1682
+ * @param lcTag lowercase tag name of the containing element
1683
+ * @param lcName lowercase attribute name
1684
+ * @param namespaceURI the attribute's namespace, if any
1685
+ * @param value the attribute value to wrap
1686
+ * @return the value, wrapped when Trusted Types demand it
1687
+ */
1688
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
1689
+ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function' && !namespaceURI) {
1690
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1691
+ case 'TrustedHTML':
1692
+ {
1693
+ return _createTrustedHTML(value);
1694
+ }
1695
+ case 'TrustedScriptURL':
1696
+ {
1697
+ return _createTrustedScriptURL(value);
1698
+ }
1699
+ }
1700
+ }
1701
+ return value;
1702
+ };
1703
+ /**
1704
+ * Write a modified attribute value back onto the element. On
1705
+ * success, re-probe for clobbering introduced by the new value and
1706
+ * remove the element when found; otherwise pop the removal entry
1707
+ * recorded by the earlier _removeAttribute (long-standing pairing
1708
+ * with the SANITIZE_NAMED_PROPS path - do not "fix" casually). On
1709
+ * failure, remove the attribute instead.
1710
+ *
1711
+ * @param currentNode the element carrying the attribute
1712
+ * @param name the attribute name as present on the element
1713
+ * @param namespaceURI the attribute's namespace, if any
1714
+ * @param value the new attribute value
1715
+ */
1716
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
1717
+ try {
1718
+ if (namespaceURI) {
1719
+ currentNode.setAttributeNS(namespaceURI, name, value);
1720
+ } else {
1721
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1722
+ currentNode.setAttribute(name, value);
1723
+ }
1724
+ if (_isClobbered(currentNode)) {
1725
+ _forceRemove(currentNode);
1726
+ } else {
1727
+ arrayPop(DOMPurify.removed);
1728
+ }
1729
+ } catch (_) {
1730
+ _removeAttribute(name, currentNode);
1731
+ }
1732
+ };
1347
1733
  /**
1348
1734
  * _sanitizeAttributes
1349
1735
  *
@@ -1370,6 +1756,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1370
1756
  forceKeepAttr: undefined
1371
1757
  };
1372
1758
  let l = attributes.length;
1759
+ const lcTag = transformCaseFunc(currentNode.nodeName);
1373
1760
  /* Go backwards over all attributes; safely remove bad ones */
1374
1761
  while (l--) {
1375
1762
  const attr = attributes[l];
@@ -1407,7 +1794,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1407
1794
  _removeAttribute(name, currentNode);
1408
1795
  continue;
1409
1796
  }
1410
- /* Did the hooks approve of the attribute? */
1797
+ /* Did the hooks force-keep the attribute? */
1411
1798
  if (hookEvent.forceKeepAttr) {
1412
1799
  continue;
1413
1800
  }
@@ -1417,56 +1804,24 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1417
1804
  continue;
1418
1805
  }
1419
1806
  /* Work around a security issue in jQuery 3.0 */
1420
- if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
1807
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
1421
1808
  _removeAttribute(name, currentNode);
1422
1809
  continue;
1423
1810
  }
1424
1811
  /* Sanitize attribute content to be template-safe */
1425
1812
  if (SAFE_FOR_TEMPLATES) {
1426
- arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1427
- value = stringReplace(value, expr, ' ');
1428
- });
1813
+ value = _stripTemplateExpressions(value);
1429
1814
  }
1430
1815
  /* Is `value` valid for this attribute? */
1431
- const lcTag = transformCaseFunc(currentNode.nodeName);
1432
1816
  if (!_isValidAttribute(lcTag, lcName, value)) {
1433
1817
  _removeAttribute(name, currentNode);
1434
1818
  continue;
1435
1819
  }
1436
1820
  /* Handle attributes that require Trusted Types */
1437
- if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
1438
- if (namespaceURI) ; else {
1439
- switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1440
- case 'TrustedHTML':
1441
- {
1442
- value = _createTrustedHTML(value);
1443
- break;
1444
- }
1445
- case 'TrustedScriptURL':
1446
- {
1447
- value = trustedTypesPolicy.createScriptURL(value);
1448
- break;
1449
- }
1450
- }
1451
- }
1452
- }
1821
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
1453
1822
  /* Handle invalid data-* attribute set by try-catching it */
1454
1823
  if (value !== initValue) {
1455
- try {
1456
- if (namespaceURI) {
1457
- currentNode.setAttributeNS(namespaceURI, name, value);
1458
- } else {
1459
- /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1460
- currentNode.setAttribute(name, value);
1461
- }
1462
- if (_isClobbered(currentNode)) {
1463
- _forceRemove(currentNode);
1464
- } else {
1465
- arrayPop(DOMPurify.removed);
1466
- }
1467
- } catch (_) {
1468
- _removeAttribute(name, currentNode);
1469
- }
1824
+ _setAttributeValue(currentNode, name, namespaceURI, value);
1470
1825
  }
1471
1826
  }
1472
1827
  /* Execute a hook if present */
@@ -1508,9 +1863,9 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1508
1863
  iterator also surfaces. */
1509
1864
  const shadowNodeType = getNodeType ? getNodeType(shadowNode) : shadowNode.nodeType;
1510
1865
  if (shadowNodeType === NODE_TYPE.element) {
1511
- const innerSr = getShadowRoot ? getShadowRoot(shadowNode) : shadowNode.shadowRoot;
1866
+ const innerSr = getShadowRoot(shadowNode);
1512
1867
  if (_isDocumentFragment(innerSr)) {
1513
- _sanitizeAttachedShadowRoots2(innerSr);
1868
+ _sanitizeAttachedShadowRoots(innerSr);
1514
1869
  _sanitizeShadowDOM2(innerSr);
1515
1870
  }
1516
1871
  }
@@ -1537,46 +1892,81 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1537
1892
  *
1538
1893
  * @param root the subtree root to walk for attached shadow roots
1539
1894
  */
1540
- const _sanitizeAttachedShadowRoots2 = function _sanitizeAttachedShadowRoots(root) {
1541
- const nodeType = getNodeType ? getNodeType(root) : root.nodeType;
1542
- if (nodeType === NODE_TYPE.element) {
1543
- const sr = getShadowRoot ? getShadowRoot(root) : root.shadowRoot;
1544
- // Realm-safe check (GHSA-hpcv-96wg-7vj8): use nodeType-based
1545
- // detection rather than `instanceof DocumentFragment`, which is
1546
- // realm-bound and silently skipped shadow roots whose host element
1547
- // belonged to a foreign realm (e.g. iframe.contentDocument
1548
- // attachShadow). A foreign-realm ShadowRoot extends the foreign
1549
- // realm's DocumentFragment, not ours, so the old instanceof check
1550
- // returned false and the shadow subtree was never walked.
1551
- if (_isDocumentFragment(sr)) {
1552
- // Recurse first so that nested shadow roots are reached even if
1553
- // _sanitizeShadowDOM removes hosts at this level.
1554
- _sanitizeAttachedShadowRoots2(sr);
1555
- _sanitizeShadowDOM2(sr);
1556
- }
1557
- }
1558
- // Snapshot children before recursing. Sanitization of one subtree
1559
- // (e.g. via an uponSanitizeShadowNode hook) may detach siblings,
1560
- // and naive nextSibling traversal would silently skip the rest of
1561
- // the list once a node is detached.
1562
- const childNodes = getChildNodes ? getChildNodes(root) : root.childNodes;
1563
- if (!childNodes) {
1564
- return;
1565
- }
1566
- const snapshot = [];
1567
- arrayForEach(childNodes, child => {
1568
- arrayPush(snapshot, child);
1569
- });
1570
- for (const child of snapshot) {
1571
- _sanitizeAttachedShadowRoots2(child);
1572
- }
1573
- /* When the root is a <template>, also descend into root.content */
1574
- if (nodeType === NODE_TYPE.element) {
1575
- const rootName = getNodeName ? getNodeName(root) : null;
1576
- if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
1577
- const content = root.content;
1578
- if (_isDocumentFragment(content)) {
1579
- _sanitizeAttachedShadowRoots2(content);
1895
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
1896
+ /* Iterative (explicit stack) rather than per-child recursion. DOM APIs
1897
+ impose no depth cap, so an attacker-shaped tree (JSON/CRDT/editor data
1898
+ built straight into the DOM — the IN_PLACE surface) deeper than the JS
1899
+ call-stack budget would otherwise overflow native recursion here and
1900
+ throw at the IN_PLACE entry pre-pass, before a single node is
1901
+ sanitized, leaving the caller's live tree untouched (fail-open). See
1902
+ campaign-3 F4. A heap stack keeps depth off the call stack.
1903
+ Each work item is either a node to descend into, or a deferred
1904
+ `_sanitizeShadowDOM` for an already-walked shadow root. The deferred
1905
+ form preserves the original post-order discipline: a shadow root's
1906
+ nested shadow roots are discovered before the outer shadow is
1907
+ sanitized (which may remove hosts). Pushes are in reverse of the
1908
+ desired processing order (LIFO): template content, then children, then
1909
+ the shadow-sanitize, then the shadow walk — so the order matches the
1910
+ previous recursion exactly. */
1911
+ const stack = [{
1912
+ node: root,
1913
+ shadow: null
1914
+ }];
1915
+ while (stack.length > 0) {
1916
+ const item = stack.pop();
1917
+ /* Deferred shadow-DOM sanitisation: runs after its subtree was walked. */
1918
+ if (item.shadow) {
1919
+ _sanitizeShadowDOM2(item.shadow);
1920
+ continue;
1921
+ }
1922
+ const node = item.node;
1923
+ const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
1924
+ const isElement = nodeType === NODE_TYPE.element;
1925
+ /* (pushed last processed first) Children, snapshotted in reverse so
1926
+ the first child is processed first. Snapshotting matters because a
1927
+ hook may detach siblings mid-walk. */
1928
+ const childNodes = getChildNodes(node);
1929
+ if (childNodes) {
1930
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1931
+ stack.push({
1932
+ node: childNodes[i],
1933
+ shadow: null
1934
+ });
1935
+ }
1936
+ }
1937
+ /* (pushed before children → processed after them, matching the old
1938
+ "template content last" order) When the node is a <template>,
1939
+ descend into its content. */
1940
+ if (isElement) {
1941
+ const rootName = getNodeName ? getNodeName(node) : null;
1942
+ if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
1943
+ const content = node.content;
1944
+ if (_isDocumentFragment(content)) {
1945
+ stack.push({
1946
+ node: content,
1947
+ shadow: null
1948
+ });
1949
+ }
1950
+ }
1951
+ }
1952
+ /* Shadow root (processed first): walk its subtree, then sanitise it.
1953
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
1954
+ rather than `instanceof DocumentFragment`, which is realm-bound and
1955
+ silently skipped foreign-realm shadow roots (e.g.
1956
+ iframe.contentDocument attachShadow). */
1957
+ if (isElement) {
1958
+ const sr = getShadowRoot(node);
1959
+ if (_isDocumentFragment(sr)) {
1960
+ /* Push the deferred sanitise first so it pops after the shadow
1961
+ walk we push next, i.e. nested shadow roots are discovered
1962
+ before this one is sanitised. */
1963
+ stack.push({
1964
+ node: null,
1965
+ shadow: sr
1966
+ }, {
1967
+ node: sr,
1968
+ shadow: null
1969
+ });
1580
1970
  }
1581
1971
  }
1582
1972
  }
@@ -1612,11 +2002,14 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1612
2002
  }
1613
2003
  /* Clean up removed elements */
1614
2004
  DOMPurify.removed = [];
1615
- /* Check if dirty is correctly typed for IN_PLACE */
1616
- if (typeof dirty === 'string') {
1617
- IN_PLACE = false;
1618
- }
1619
- if (IN_PLACE) {
2005
+ /* Resolve IN_PLACE for this call without mutating persistent config.
2006
+ Writing the IN_PLACE closure variable here leaks under setConfig(),
2007
+ where _parseConfig is skipped on later calls: a single string call would
2008
+ disable in-place mode for every subsequent node call, returning a
2009
+ sanitized copy while leaving the caller's node — which in-place callers
2010
+ keep using and whose return value they ignore — unsanitized. REPORT-2. */
2011
+ const inPlace = IN_PLACE && typeof dirty !== 'string' && _isNode(dirty);
2012
+ if (inPlace) {
1620
2013
  /* Do some early pre-sanitization to avoid unsafe root nodes.
1621
2014
  Read nodeName through the cached prototype getter — a clobbering
1622
2015
  child named "nodeName" on the form root would otherwise shadow
@@ -1643,8 +2036,16 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1643
2036
  throw typeErrorCreate('root node is clobbered and cannot be sanitized in-place');
1644
2037
  }
1645
2038
  /* Sanitize attached shadow roots before the main iterator runs.
1646
- The iterator does not descend into shadow trees. */
1647
- _sanitizeAttachedShadowRoots2(dirty);
2039
+ The iterator does not descend into shadow trees. Same fail-closed
2040
+ barrier as the main walk (campaign-3 F2): a custom-element reaction
2041
+ inside a shadow root could abort this pre-pass before the walk runs,
2042
+ which would otherwise leave the entire live tree unsanitized. */
2043
+ try {
2044
+ _sanitizeAttachedShadowRoots(dirty);
2045
+ } catch (error) {
2046
+ _neutralizeRoot(dirty);
2047
+ throw error;
2048
+ }
1648
2049
  } else if (_isNode(dirty)) {
1649
2050
  /* If dirty is a DOM element, append to an empty document to avoid
1650
2051
  elements being stripped by the parser */
@@ -1664,7 +2065,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1664
2065
  descend into shadow trees. The walk routes every read through a
1665
2066
  cached prototype getter so clobbering descendants on a form root
1666
2067
  cannot hide a shadow host from this pass. */
1667
- _sanitizeAttachedShadowRoots2(importedNode);
2068
+ _sanitizeAttachedShadowRoots(importedNode);
1668
2069
  } else {
1669
2070
  /* Exit directly if we have nothing to do */
1670
2071
  if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
@@ -1684,23 +2085,50 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1684
2085
  _forceRemove(body.firstChild);
1685
2086
  }
1686
2087
  /* Get node iterator */
1687
- const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
1688
- /* Now start iterating over the created document */
1689
- while (currentNode = nodeIterator.nextNode()) {
1690
- /* Sanitize tags and elements */
1691
- _sanitizeElements(currentNode);
1692
- /* Check attributes next */
1693
- _sanitizeAttributes(currentNode);
1694
- /* Shadow DOM detected, sanitize it.
1695
- Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
1696
- instead of instanceof, so foreign-realm <template>.content is
1697
- walked correctly. */
1698
- if (_isDocumentFragment(currentNode.content)) {
1699
- _sanitizeShadowDOM2(currentNode.content);
2088
+ const nodeIterator = _createNodeIterator(inPlace ? dirty : body);
2089
+ /* Now start iterating over the created document.
2090
+ The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
2091
+ engine/custom-element mutation can detach a node mid-walk so
2092
+ `_forceRemove`'s parentless guard throws, aborting the loop. Without the
2093
+ barrier the caller's in-place tree would be left half-sanitized with the
2094
+ unvisited tail still armed. On any throw we fail closed — strip the
2095
+ in-place root bare then rethrow so the existing throw contract is
2096
+ preserved. (String/DOM-copy paths never return the partial body, so the
2097
+ propagating throw is already fail-closed there.) */
2098
+ try {
2099
+ while (currentNode = nodeIterator.nextNode()) {
2100
+ /* Sanitize tags and elements */
2101
+ _sanitizeElements(currentNode);
2102
+ /* Check attributes next */
2103
+ _sanitizeAttributes(currentNode);
2104
+ /* Shadow DOM detected, sanitize it.
2105
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2106
+ instead of instanceof, so foreign-realm <template>.content is
2107
+ walked correctly. */
2108
+ if (_isDocumentFragment(currentNode.content)) {
2109
+ _sanitizeShadowDOM2(currentNode.content);
2110
+ }
2111
+ }
2112
+ } catch (error) {
2113
+ if (inPlace) {
2114
+ _neutralizeRoot(dirty);
1700
2115
  }
2116
+ throw error;
1701
2117
  }
1702
2118
  /* If we sanitized `dirty` in-place, return it. */
1703
- if (IN_PLACE) {
2119
+ if (inPlace) {
2120
+ /* Fail-closed completion of the audit-5 F1 fix: every node removed from
2121
+ the caller's live tree is detached but may still hold a queued
2122
+ resource-event handler that fires in page scope after we return. The
2123
+ move-hoist covers only disallowed-tag KEEP_CONTENT removals; strip the
2124
+ non-allow-listed attributes off every other removed subtree (clobber,
2125
+ mXSS, namespace, comments, KEEP_CONTENT:false, …) so those handlers are
2126
+ cancelled before any event can fire. Runs synchronously, pre-return. */
2127
+ arrayForEach(DOMPurify.removed, entry => {
2128
+ if (entry.element) {
2129
+ _neutralizeSubtree(entry.element);
2130
+ }
2131
+ });
1704
2132
  if (SAFE_FOR_TEMPLATES) {
1705
2133
  _scrubTemplateExpressions2(dirty);
1706
2134
  }
@@ -1739,9 +2167,7 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1739
2167
  }
1740
2168
  /* Sanitize final string template-safe */
1741
2169
  if (SAFE_FOR_TEMPLATES) {
1742
- arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1743
- serializedHTML = stringReplace(serializedHTML, expr, ' ');
1744
- });
2170
+ serializedHTML = _stripTemplateExpressions(serializedHTML);
1745
2171
  }
1746
2172
  return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
1747
2173
  };
@@ -1753,6 +2179,12 @@ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
1753
2179
  DOMPurify.clearConfig = function () {
1754
2180
  CONFIG = null;
1755
2181
  SET_CONFIG = false;
2182
+ // Drop any caller-supplied Trusted Types policy so it cannot poison later
2183
+ // `RETURN_TRUSTED_TYPE` output. The internal default policy (cached, and
2184
+ // never recreated — Trusted Types throws on duplicate names) is restored by
2185
+ // the next `_parseConfig`. See GHSA-vxr8-fq34-vvx9.
2186
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2187
+ emptyHTML = '';
1756
2188
  };
1757
2189
  DOMPurify.isValidAttribute = function (tag, attr, value) {
1758
2190
  /* Initialize shared config vars if necessary. */