@sankhyalabs/ezui 7.2.0 → 7.3.0

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 (1139) hide show
  1. package/dist/cjs/{ApplicationUtils-9a9185fc.js → ApplicationUtils-5cc05979.js} +1 -1
  2. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  3. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  4. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  5. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  6. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  7. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  8. package/dist/cjs/{types-6a5df0c7.js → FormLayout-18853e70.js} +6 -0
  9. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  10. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  11. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  12. package/dist/cjs/{app-globals-27a943d9.js → app-globals-2fbe4b17.js} +1 -1
  13. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  14. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  15. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -4
  16. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  17. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  21. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  23. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/{ez-multi-selection-list_5.cjs.entry.js → ez-card-item_5.cjs.entry.js} +56 -222
  29. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  31. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  33. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +15 -38
  34. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  35. package/dist/cjs/ez-classic-input.cjs.entry.js +18 -144
  36. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/ez-classic-text-area.cjs.entry.js +2 -13
  38. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  39. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
  40. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  41. package/dist/cjs/{classic-search-list_8.cjs.entry.js → ez-combo-box-list_5.cjs.entry.js} +5 -364
  42. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  43. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -4
  44. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  53. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/ez-form-view.cjs.entry.js +37 -130
  61. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/ez-form.cjs.entry.js +81 -144
  63. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/ez-grid.cjs.entry.js +160 -216
  66. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  68. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  70. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  72. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  75. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  77. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  78. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  79. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  80. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  82. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  84. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/ez-popover-core.cjs.entry.js +227 -0
  86. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/ez-popover.cjs.entry.js +0 -8
  88. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  89. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  90. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  91. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  92. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  93. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  94. package/dist/cjs/ez-scroller_2.cjs.entry.js +14 -81
  95. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  96. package/dist/cjs/ez-search-plus.cjs.entry.js +8 -18
  97. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  98. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  99. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  100. package/dist/cjs/ez-search.cjs.entry.js +11 -49
  101. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  102. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  103. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  104. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  105. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  106. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  107. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  108. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  109. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  110. package/dist/cjs/ez-split-button.cjs.entry.js +17 -16
  111. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/ez-split-item.cjs.entry.js +3 -4
  113. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  115. package/dist/cjs/ez-tabselector.cjs.entry.js +61 -209
  116. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  117. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  119. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/ez-text-input.cjs.entry.js +0 -37
  121. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  123. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  124. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  125. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  127. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  128. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  129. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  130. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  132. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  133. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  136. package/dist/cjs/ezui.cjs.js +3 -3
  137. package/dist/cjs/ezui.cjs.js.gz +0 -0
  138. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  139. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/{floating-ui.dom.esm-9c8bfebb.js → floating-ui.dom.esm-f1e4e440.js} +120 -166
  141. package/dist/cjs/floating-ui.dom.esm-f1e4e440.js.gz +0 -0
  142. package/dist/cjs/{index-d4a1cad8.js → index-1be40f19.js} +30 -175
  143. package/dist/cjs/index-1be40f19.js.gz +0 -0
  144. package/dist/cjs/index-a7b0c73d.js +26 -58
  145. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  146. package/dist/cjs/index.cjs.js.gz +0 -0
  147. package/dist/cjs/loader.cjs.js +3 -3
  148. package/dist/cjs/loader.cjs.js.gz +0 -0
  149. package/dist/cjs/purify-417f092d.js +2433 -0
  150. package/dist/cjs/purify-417f092d.js.gz +0 -0
  151. package/dist/cjs/{search-column-c04897a9.js → search-column-316e2c59.js} +10 -12
  152. package/dist/cjs/search-column-316e2c59.js.gz +0 -0
  153. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  154. package/dist/collection/collection-manifest.json +3 -64
  155. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  156. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  157. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  158. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  159. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  160. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  161. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  162. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  163. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  164. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  165. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  166. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  167. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  168. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  169. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  170. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  171. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  172. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  173. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  174. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  175. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  176. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  177. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  178. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  179. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  180. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  181. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  182. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  183. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  184. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  185. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  186. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  187. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  188. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  189. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  190. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  191. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  192. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  193. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  194. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  195. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  196. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  197. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  198. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  199. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  200. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  201. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +0 -5
  202. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  203. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +18 -96
  204. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  205. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  206. package/dist/collection/components/ez-classic-input/ez-classic-input.css +5 -33
  207. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  208. package/dist/collection/components/ez-classic-input/ez-classic-input.js +19 -200
  209. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  210. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  211. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  212. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +0 -1
  213. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  214. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +1 -32
  215. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  216. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  217. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  218. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  219. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  220. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  221. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  222. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  223. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  224. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  225. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  226. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  227. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  228. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  229. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  230. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  231. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  232. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  233. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  234. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  235. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  236. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  237. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  238. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  239. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  240. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  241. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  242. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  243. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  244. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  245. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  246. package/dist/collection/components/ez-form/ez-form.js +4 -30
  247. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  248. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  249. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  250. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -27
  251. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  252. package/dist/collection/components/ez-form-view/ez-form-view.js +4 -62
  253. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  254. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +4 -9
  255. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  256. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +6 -9
  257. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  258. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -8
  259. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  260. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +6 -30
  261. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  262. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  263. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  264. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  265. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +5 -12
  266. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  267. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  268. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  269. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -9
  270. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  271. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +1 -8
  272. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  273. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -7
  274. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  275. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -8
  276. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  277. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  278. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  279. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  280. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  281. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  282. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +13 -138
  283. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  284. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +1 -11
  285. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  286. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  287. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  288. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  289. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  290. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  291. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  292. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  293. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  294. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  295. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  296. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  297. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  298. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  299. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  300. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  301. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  302. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  303. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  304. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  305. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  306. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  307. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  308. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  309. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  310. package/dist/collection/components/ez-grid/ez-grid.css +60 -5
  311. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  312. package/dist/collection/components/ez-grid/ez-grid.js +150 -52
  313. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  314. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  315. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  316. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  317. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  318. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  319. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  320. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  321. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  322. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  323. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  324. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  325. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  326. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  327. package/dist/collection/components/ez-grid/utils/index.js +0 -1
  328. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  329. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  330. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  331. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  332. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  333. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  334. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  335. package/dist/collection/components/ez-icon/ez-icon.css +1147 -1157
  336. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  337. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  338. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  339. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  340. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  341. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  342. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  343. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  344. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  345. package/dist/collection/components/ez-modal/ez-modal.css +0 -3
  346. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  347. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  348. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  349. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  350. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  351. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  352. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  353. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  354. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  355. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  356. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  357. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  358. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  359. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  360. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  361. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  362. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  363. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  364. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  365. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  366. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  367. package/dist/collection/components/ez-popover/ez-popover.js +0 -27
  368. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  369. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  370. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  371. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  372. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  373. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  374. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  375. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  376. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  377. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  378. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  379. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  380. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  381. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  382. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  383. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  384. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  385. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  386. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  387. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  388. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  389. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  390. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  391. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  392. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  393. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  394. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  395. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  396. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  397. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  398. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  399. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  400. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  401. package/dist/collection/components/ez-scroller/ez-scroller.css +11 -117
  402. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  403. package/dist/collection/components/ez-scroller/ez-scroller.js +13 -118
  404. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  405. package/dist/collection/components/ez-search/ez-search.css +0 -4
  406. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  407. package/dist/collection/components/ez-search/ez-search.js +3 -75
  408. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  409. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  410. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  411. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  412. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  413. package/dist/collection/components/ez-search-plus/ez-search-plus.js +2 -11
  414. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  415. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  416. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  417. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  418. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  419. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  420. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  421. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  422. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  423. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  424. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  425. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  426. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  427. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  428. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  429. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  430. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  431. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  432. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  433. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  434. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  435. package/dist/collection/components/ez-split-button/ez-split-button.js +15 -20
  436. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  437. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  438. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  439. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  440. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  441. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  442. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  443. package/dist/collection/components/ez-tabselector/ez-tabselector.css +1 -29
  444. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  445. package/dist/collection/components/ez-tabselector/ez-tabselector.js +62 -254
  446. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  447. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  448. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  449. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  450. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  451. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  452. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  453. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  454. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  455. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  456. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  457. package/dist/collection/components/ez-text-input/ez-text-input.js +1 -38
  458. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  459. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  460. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  461. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  462. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  463. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  464. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  465. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  466. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  467. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  468. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  469. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  470. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  471. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  472. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  473. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  474. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  475. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  476. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  477. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  478. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  479. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  480. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  481. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  482. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  483. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  484. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  485. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  486. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  487. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  488. package/dist/collection/global/app-init.js.gz +0 -0
  489. package/dist/collection/index.js.gz +0 -0
  490. package/dist/collection/servidor.js.gz +0 -0
  491. package/dist/collection/setupTests.js.gz +0 -0
  492. package/dist/collection/sw.js.gz +0 -0
  493. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  494. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  495. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  496. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  497. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  498. package/dist/collection/utils/constants.js.gz +0 -0
  499. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  500. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  501. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  502. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  503. package/dist/collection/utils/form/DataBinder.js +2 -2
  504. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  505. package/dist/collection/utils/form/FormMetadata.js +74 -132
  506. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  507. package/dist/collection/utils/form/index.js.gz +0 -0
  508. package/dist/collection/utils/form/interfaces/FormLayout.js +1 -3
  509. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  510. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  511. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  512. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  513. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  514. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  515. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  516. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  517. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  518. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  519. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  520. package/dist/collection/utils/i18n/index.js.gz +0 -0
  521. package/dist/collection/utils/i18n/locales/en-us.js +4 -55
  522. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  523. package/dist/collection/utils/i18n/locales/es-es.js +4 -55
  524. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  525. package/dist/collection/utils/i18n/locales/pt-br.js +4 -55
  526. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  527. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  528. package/dist/collection/utils/index.js.gz +0 -0
  529. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  530. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  531. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  532. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  533. package/dist/collection/utils/search/types.js.gz +0 -0
  534. package/dist/collection/utils/searchColumn/search-column.js +6 -8
  535. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  536. package/dist/collection/utils/utils.js.gz +0 -0
  537. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  538. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  539. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  540. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  541. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  542. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  543. package/dist/custom-elements/index.d.ts +0 -66
  544. package/dist/custom-elements/index.js +1919 -4485
  545. package/dist/custom-elements/index.js.gz +0 -0
  546. package/dist/esm/{ApplicationUtils-29d2709c.js → ApplicationUtils-1569f757.js} +1 -1
  547. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  548. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  549. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  550. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  551. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  552. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  553. package/dist/esm/{types-6f6b2650.js → FormLayout-071d324c.js} +7 -1
  554. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  555. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  556. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  557. package/dist/esm/{app-globals-44bdc4c4.js → app-globals-c0ac93c0.js} +1 -1
  558. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  559. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  560. package/dist/esm/ez-actions-button.entry.js +3 -4
  561. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  562. package/dist/esm/ez-alert-list.entry.js +1 -1
  563. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  564. package/dist/esm/ez-alert.entry.js.gz +0 -0
  565. package/dist/esm/ez-application.entry.js.gz +0 -0
  566. package/dist/esm/ez-avatar.entry.js +1 -1
  567. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  568. package/dist/esm/ez-badge.entry.js.gz +0 -0
  569. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  570. package/dist/esm/ez-button.entry.js.gz +0 -0
  571. package/dist/esm/ez-calendar.entry.js +1 -1
  572. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  573. package/dist/esm/{ez-multi-selection-list_5.entry.js → ez-card-item_5.entry.js} +58 -224
  574. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  575. package/dist/esm/ez-chart.entry.js.gz +0 -0
  576. package/dist/esm/ez-check.entry.js.gz +0 -0
  577. package/dist/esm/ez-chip.entry.js.gz +0 -0
  578. package/dist/esm/ez-classic-combo-box.entry.js +15 -38
  579. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  580. package/dist/esm/ez-classic-input.entry.js +19 -145
  581. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  582. package/dist/esm/ez-classic-text-area.entry.js +2 -13
  583. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  584. package/dist/esm/ez-collapsible-box.entry.js +3 -4
  585. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  586. package/dist/esm/{classic-search-list_8.entry.js → ez-combo-box-list_5.entry.js} +7 -363
  587. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  588. package/dist/esm/ez-combo-box.entry.js +3 -4
  589. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  590. package/dist/esm/ez-date-input.entry.js +1 -1
  591. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  592. package/dist/esm/ez-date-time-input.entry.js +1 -1
  593. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  594. package/dist/esm/ez-dialog.entry.js +1 -1
  595. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  596. package/dist/esm/ez-double-list.entry.js +1 -1
  597. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  598. package/dist/esm/ez-dropdown.entry.js +1 -1
  599. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  600. package/dist/esm/ez-empty-card.entry.js +1 -1
  601. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  602. package/dist/esm/ez-file-item.entry.js +1 -1
  603. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  604. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  605. package/dist/esm/ez-form-view.entry.js +37 -130
  606. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  607. package/dist/esm/ez-form.entry.js +81 -144
  608. package/dist/esm/ez-form.entry.js.gz +0 -0
  609. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  610. package/dist/esm/ez-grid.entry.js +159 -215
  611. package/dist/esm/ez-grid.entry.js.gz +0 -0
  612. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  613. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  614. package/dist/esm/ez-icon.entry.js +1 -1
  615. package/dist/esm/ez-icon.entry.js.gz +0 -0
  616. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  617. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  618. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  619. package/dist/esm/ez-list.entry.js +1 -1
  620. package/dist/esm/ez-list.entry.js.gz +0 -0
  621. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  622. package/dist/esm/ez-modal-container.entry.js +1 -1
  623. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  624. package/dist/esm/ez-modal.entry.js +2 -2
  625. package/dist/esm/ez-modal.entry.js.gz +0 -0
  626. package/dist/esm/ez-number-input.entry.js +1 -1
  627. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  628. package/dist/esm/ez-pagination.entry.js +1 -1
  629. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  630. package/dist/esm/ez-popover-core.entry.js +223 -0
  631. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  632. package/dist/esm/ez-popover.entry.js +0 -8
  633. package/dist/esm/ez-popover.entry.js.gz +0 -0
  634. package/dist/esm/ez-popup.entry.js +1 -1
  635. package/dist/esm/ez-popup.entry.js.gz +0 -0
  636. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  637. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  638. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  639. package/dist/esm/ez-scroller_2.entry.js +14 -81
  640. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  641. package/dist/esm/ez-search-plus.entry.js +5 -15
  642. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  643. package/dist/esm/ez-search-result-list.entry.js +1 -1
  644. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  645. package/dist/esm/ez-search.entry.js +6 -44
  646. package/dist/esm/ez-search.entry.js.gz +0 -0
  647. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  648. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  649. package/dist/esm/ez-skeleton.entry.js +1 -1
  650. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  651. package/dist/esm/ez-sortable-list.entry.js +2 -2
  652. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  653. package/dist/esm/ez-spinner.entry.js +1 -1
  654. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  655. package/dist/esm/ez-split-button.entry.js +17 -16
  656. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  657. package/dist/esm/ez-split-item.entry.js +3 -4
  658. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  659. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  660. package/dist/esm/ez-tabselector.entry.js +61 -209
  661. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  662. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  663. package/dist/esm/ez-tag.entry.js.gz +0 -0
  664. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  665. package/dist/esm/ez-text-input.entry.js +0 -37
  666. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  667. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  668. package/dist/esm/ez-tile.entry.js.gz +0 -0
  669. package/dist/esm/ez-time-input.entry.js +1 -1
  670. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  671. package/dist/esm/ez-toast.entry.js.gz +0 -0
  672. package/dist/esm/ez-tooltip.entry.js +1 -1
  673. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  674. package/dist/esm/ez-tree.entry.js +1 -1
  675. package/dist/esm/ez-tree.entry.js.gz +0 -0
  676. package/dist/esm/ez-underface.entry.js.gz +0 -0
  677. package/dist/esm/ez-upload.entry.js +2 -2
  678. package/dist/esm/ez-upload.entry.js.gz +0 -0
  679. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  680. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  681. package/dist/esm/ezui.js +3 -3
  682. package/dist/esm/ezui.js.gz +0 -0
  683. package/dist/esm/filter-column.entry.js +1 -1
  684. package/dist/esm/filter-column.entry.js.gz +0 -0
  685. package/dist/esm/{floating-ui.dom.esm-0c464cef.js → floating-ui.dom.esm-c94d4011.js} +120 -166
  686. package/dist/esm/floating-ui.dom.esm-c94d4011.js.gz +0 -0
  687. package/dist/esm/{index-b5a15d4b.js → index-41363fa6.js} +30 -175
  688. package/dist/esm/index-41363fa6.js.gz +0 -0
  689. package/dist/esm/index-baa5e267.js +26 -58
  690. package/dist/esm/index-baa5e267.js.gz +0 -0
  691. package/dist/esm/index.js.gz +0 -0
  692. package/dist/esm/loader.js +3 -3
  693. package/dist/esm/loader.js.gz +0 -0
  694. package/dist/esm/polyfills/core-js.js.gz +0 -0
  695. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  696. package/dist/esm/polyfills/dom.js.gz +0 -0
  697. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  698. package/dist/esm/polyfills/index.js.gz +0 -0
  699. package/dist/esm/polyfills/system.js.gz +0 -0
  700. package/dist/esm/purify-055bfb9f.js +2431 -0
  701. package/dist/esm/purify-055bfb9f.js.gz +0 -0
  702. package/dist/esm/{search-column-9414ad22.js → search-column-c20d2b01.js} +10 -12
  703. package/dist/esm/search-column-c20d2b01.js.gz +0 -0
  704. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  705. package/dist/ezui/ezui.esm.js +1 -1
  706. package/dist/ezui/ezui.esm.js.gz +0 -0
  707. package/dist/ezui/index.esm.js.gz +0 -0
  708. package/dist/ezui/{p-2c1c9ec6.entry.js → p-02d448bb.entry.js} +1 -1
  709. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  710. package/dist/ezui/{p-58fa7883.js → p-04126429.js} +1 -1
  711. package/dist/ezui/p-04126429.js.gz +0 -0
  712. package/dist/ezui/{p-c547f48f.entry.js → p-05c32903.entry.js} +1 -1
  713. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  714. package/dist/ezui/{p-5a217a52.entry.js → p-0f7971cf.entry.js} +1 -1
  715. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  716. package/dist/ezui/{p-381570d2.entry.js → p-110cfb7d.entry.js} +1 -1
  717. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  718. package/dist/ezui/p-112455b1.js.gz +0 -0
  719. package/dist/ezui/p-18384b91.entry.js +1 -0
  720. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  721. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  722. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  723. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  724. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  725. package/dist/ezui/p-24460bb2.js +1 -0
  726. package/dist/ezui/p-24460bb2.js.gz +0 -0
  727. package/dist/ezui/p-288631d1.entry.js +1 -0
  728. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  729. package/dist/ezui/p-30ffb9ed.js +1 -0
  730. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  731. package/dist/ezui/{p-73bae77e.entry.js → p-34a476a9.entry.js} +1 -1
  732. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  733. package/dist/ezui/{p-83ffba67.entry.js → p-39761eca.entry.js} +1 -1
  734. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  735. package/dist/ezui/{p-0fbf5842.entry.js → p-3afa1c6e.entry.js} +1 -1
  736. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  737. package/dist/ezui/p-3ce867cf.entry.js +1 -0
  738. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  739. package/dist/ezui/p-3e767a74.js.gz +0 -0
  740. package/dist/ezui/p-40a60148.js.gz +0 -0
  741. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  742. package/dist/ezui/p-4314f87a.entry.js +1 -0
  743. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  744. package/dist/ezui/p-48effc69.entry.js +1 -0
  745. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  746. package/dist/ezui/{p-b50289bb.entry.js → p-4d30b703.entry.js} +1 -1
  747. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  748. package/dist/ezui/{p-1160c33a.entry.js → p-4fe123b6.entry.js} +1 -1
  749. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  750. package/dist/ezui/p-5554704c.js +1 -0
  751. package/dist/ezui/p-5554704c.js.gz +0 -0
  752. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  753. package/dist/ezui/p-6020f3d5.entry.js +1 -0
  754. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  755. package/dist/ezui/p-6bd430b8.entry.js +1 -0
  756. package/dist/ezui/p-6bd430b8.entry.js.gz +0 -0
  757. package/dist/ezui/{p-97545f8e.entry.js → p-6c51ccd1.entry.js} +1 -1
  758. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  759. package/dist/ezui/p-6ca0815e.entry.js +1 -0
  760. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  761. package/dist/ezui/p-6cb82d33.entry.js +1 -0
  762. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  763. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  764. package/dist/ezui/p-6de4cae1.entry.js +1 -0
  765. package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
  766. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  767. package/dist/ezui/{p-52122022.entry.js → p-721fd999.entry.js} +1 -1
  768. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  769. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  770. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  771. package/dist/ezui/p-7fe97ef5.entry.js +1 -0
  772. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  773. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  774. package/dist/ezui/{p-1222e1b6.entry.js → p-82b0afe7.entry.js} +1 -1
  775. package/dist/ezui/p-82b0afe7.entry.js.gz +0 -0
  776. package/dist/ezui/{p-27236a0f.entry.js → p-859e3134.entry.js} +1 -1
  777. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  778. package/dist/ezui/p-8bf077ea.entry.js +1 -0
  779. package/dist/ezui/p-8bf077ea.entry.js.gz +0 -0
  780. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  781. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  782. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  783. package/dist/ezui/{p-a62bbd49.entry.js → p-948f0fb2.entry.js} +1 -1
  784. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  785. package/dist/ezui/p-94deb71e.entry.js +1 -0
  786. package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
  787. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  788. package/dist/ezui/p-98c42bbc.entry.js +1 -0
  789. package/dist/ezui/p-98c42bbc.entry.js.gz +0 -0
  790. package/dist/ezui/{p-afb2f145.entry.js → p-9ab2add9.entry.js} +1 -1
  791. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  792. package/dist/ezui/{p-f7fb2587.entry.js → p-9b215871.entry.js} +1 -1
  793. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  794. package/dist/ezui/{p-6c24ab67.entry.js → p-9b3f3c02.entry.js} +1 -1
  795. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  796. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  797. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  798. package/dist/ezui/p-a278f26e.entry.js +1 -0
  799. package/dist/ezui/p-a278f26e.entry.js.gz +0 -0
  800. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  801. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  802. package/dist/ezui/{p-e60aa084.entry.js → p-a4083a7a.entry.js} +1 -1
  803. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  804. package/dist/ezui/p-a61fdd20.js +1 -0
  805. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  806. package/dist/ezui/p-a80b1287.entry.js +1 -0
  807. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  808. package/dist/ezui/{p-7ecac0c4.entry.js → p-a80e6b24.entry.js} +1 -1
  809. package/dist/ezui/p-a80e6b24.entry.js.gz +0 -0
  810. package/dist/ezui/p-ab574d59.js.gz +0 -0
  811. package/dist/ezui/p-b1e45320.js.gz +0 -0
  812. package/dist/ezui/{p-40c92fc7.entry.js → p-b3d8034b.entry.js} +1 -1
  813. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  814. package/dist/ezui/p-b853763b.js.gz +0 -0
  815. package/dist/ezui/{p-ade1c43b.entry.js → p-b989a33e.entry.js} +1 -1
  816. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  817. package/dist/ezui/{p-320c401f.js → p-baec56c9.js} +1 -1
  818. package/dist/ezui/p-baec56c9.js.gz +0 -0
  819. package/dist/ezui/p-bbeafaa1.entry.js +1 -0
  820. package/dist/ezui/p-bbeafaa1.entry.js.gz +0 -0
  821. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  822. package/dist/ezui/{p-93d0f1aa.entry.js → p-c03ee0d4.entry.js} +46 -46
  823. package/dist/ezui/p-c03ee0d4.entry.js.gz +0 -0
  824. package/dist/ezui/p-cde41310.entry.js +1 -0
  825. package/dist/ezui/p-cde41310.entry.js.gz +0 -0
  826. package/dist/ezui/{p-664b9f4c.entry.js → p-ce0b36d7.entry.js} +1 -1
  827. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  828. package/dist/ezui/p-d2645bdf.entry.js +1 -0
  829. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  830. package/dist/ezui/{p-3b9ccdb7.entry.js → p-d5eb2fad.entry.js} +1 -1
  831. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  832. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  833. package/dist/ezui/{p-852d6133.entry.js → p-d6bb930d.entry.js} +1 -1
  834. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  835. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  836. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  837. package/dist/ezui/p-de862af4.entry.js +1 -0
  838. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  839. package/dist/ezui/p-dee18824.entry.js +1 -0
  840. package/dist/ezui/p-dee18824.entry.js.gz +0 -0
  841. package/dist/ezui/{p-ef3cd4ef.entry.js → p-e5de42e7.entry.js} +1 -1
  842. package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
  843. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  844. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  845. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  846. package/dist/ezui/p-ec5a5d85.js +3 -0
  847. package/dist/ezui/p-ec5a5d85.js.gz +0 -0
  848. package/dist/ezui/p-ec7db713.js.gz +0 -0
  849. package/dist/ezui/{p-c6b9a72a.entry.js → p-ecd6409d.entry.js} +2 -2
  850. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  851. package/dist/ezui/p-f00c9dc2.entry.js +1 -0
  852. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  853. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  854. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  855. package/dist/index.cjs.js.gz +0 -0
  856. package/dist/index.js.gz +0 -0
  857. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +3 -11
  858. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +1 -24
  859. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +0 -3
  860. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  861. package/dist/types/components/ez-form/ez-form.d.ts +0 -6
  862. package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -11
  863. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +2 -3
  864. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +1 -2
  865. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +4 -5
  866. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +1 -2
  867. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +2 -3
  868. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +1 -2
  869. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -2
  870. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +1 -2
  871. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +1 -2
  872. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -2
  873. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -2
  874. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +0 -14
  875. package/dist/types/components/ez-grid/ez-grid.d.ts +27 -10
  876. package/dist/types/components/ez-grid/utils/index.d.ts +0 -1
  877. package/dist/types/components/ez-popover/ez-popover.d.ts +0 -9
  878. package/dist/types/components/ez-scroller/ez-scroller.d.ts +2 -16
  879. package/dist/types/components/ez-search/ez-search.d.ts +1 -12
  880. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +0 -1
  881. package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -1
  882. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +20 -41
  883. package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -4
  884. package/dist/types/components.d.ts +2064 -3511
  885. package/dist/types/utils/form/FormMetadata.d.ts +1 -2
  886. package/dist/types/utils/form/interfaces/FormLayout.d.ts +1 -3
  887. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +0 -3
  888. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +0 -3
  889. package/dist/types/utils/i18n/locales/en-us.d.ts +3 -54
  890. package/dist/types/utils/i18n/locales/es-es.d.ts +3 -54
  891. package/dist/types/utils/i18n/locales/pt-br.d.ts +3 -54
  892. package/dist/types/utils/i18n/translations.d.ts +9 -162
  893. package/package.json +5 -5
  894. package/react/components.d.ts +0 -11
  895. package/react/components.js +0 -11
  896. package/react/components.js.map +1 -1
  897. package/dist/cjs/ApplicationUtils-9a9185fc.js.gz +0 -0
  898. package/dist/cjs/FormLayout-fe8da83c.js +0 -9
  899. package/dist/cjs/FormLayout-fe8da83c.js.gz +0 -0
  900. package/dist/cjs/app-globals-27a943d9.js.gz +0 -0
  901. package/dist/cjs/classic-search-list_8.cjs.entry.js.gz +0 -0
  902. package/dist/cjs/ez-card-item.cjs.entry.js +0 -62
  903. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  904. package/dist/cjs/ez-classic-date-input.cjs.entry.js +0 -201
  905. package/dist/cjs/ez-classic-date-input.cjs.entry.js.gz +0 -0
  906. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +0 -246
  907. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js.gz +0 -0
  908. package/dist/cjs/ez-classic-number-input.cjs.entry.js +0 -205
  909. package/dist/cjs/ez-classic-number-input.cjs.entry.js.gz +0 -0
  910. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +0 -420
  911. package/dist/cjs/ez-classic-search-plus.cjs.entry.js.gz +0 -0
  912. package/dist/cjs/ez-classic-search.cjs.entry.js +0 -683
  913. package/dist/cjs/ez-classic-search.cjs.entry.js.gz +0 -0
  914. package/dist/cjs/ez-classic-time-input.cjs.entry.js +0 -198
  915. package/dist/cjs/ez-classic-time-input.cjs.entry.js.gz +0 -0
  916. package/dist/cjs/ez-grid-pagination.cjs.entry.js +0 -331
  917. package/dist/cjs/ez-grid-pagination.cjs.entry.js.gz +0 -0
  918. package/dist/cjs/ez-multi-selection-list_5.cjs.entry.js.gz +0 -0
  919. package/dist/cjs/ez-record-navigation.cjs.entry.js +0 -121
  920. package/dist/cjs/ez-record-navigation.cjs.entry.js.gz +0 -0
  921. package/dist/cjs/floating-ui.dom.esm-9c8bfebb.js.gz +0 -0
  922. package/dist/cjs/index-d4a1cad8.js.gz +0 -0
  923. package/dist/cjs/purify-8c74770b.js +0 -1398
  924. package/dist/cjs/purify-8c74770b.js.gz +0 -0
  925. package/dist/cjs/search-column-c04897a9.js.gz +0 -0
  926. package/dist/cjs/searchFormatters-051f8677.js +0 -23
  927. package/dist/cjs/searchFormatters-051f8677.js.gz +0 -0
  928. package/dist/cjs/types-6a5df0c7.js.gz +0 -0
  929. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +0 -44
  930. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css.gz +0 -0
  931. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +0 -541
  932. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js.gz +0 -0
  933. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +0 -44
  934. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css.gz +0 -0
  935. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +0 -586
  936. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js.gz +0 -0
  937. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +0 -16
  938. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css.gz +0 -0
  939. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +0 -583
  940. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js.gz +0 -0
  941. package/dist/collection/components/ez-classic-search/ez-classic-search.css +0 -126
  942. package/dist/collection/components/ez-classic-search/ez-classic-search.css.gz +0 -0
  943. package/dist/collection/components/ez-classic-search/ez-classic-search.js +0 -1330
  944. package/dist/collection/components/ez-classic-search/ez-classic-search.js.gz +0 -0
  945. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +0 -227
  946. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css.gz +0 -0
  947. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +0 -316
  948. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js.gz +0 -0
  949. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +0 -18
  950. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js.gz +0 -0
  951. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +0 -428
  952. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css.gz +0 -0
  953. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +0 -1003
  954. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js.gz +0 -0
  955. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +0 -221
  956. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css.gz +0 -0
  957. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +0 -298
  958. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js.gz +0 -0
  959. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +0 -14
  960. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css.gz +0 -0
  961. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +0 -512
  962. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js.gz +0 -0
  963. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +0 -4
  964. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js.gz +0 -0
  965. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +0 -23
  966. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js.gz +0 -0
  967. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +0 -24
  968. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js.gz +0 -0
  969. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +0 -1
  970. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js.gz +0 -0
  971. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +0 -217
  972. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css.gz +0 -0
  973. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +0 -516
  974. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js.gz +0 -0
  975. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +0 -1
  976. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js.gz +0 -0
  977. package/dist/collection/components/ez-image-input/ez-image-input.css +0 -189
  978. package/dist/collection/components/ez-image-input/ez-image-input.css.gz +0 -0
  979. package/dist/collection/components/ez-image-input/ez-image-input.js +0 -329
  980. package/dist/collection/components/ez-image-input/ez-image-input.js.gz +0 -0
  981. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +0 -51
  982. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css.gz +0 -0
  983. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +0 -246
  984. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js.gz +0 -0
  985. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +0 -5
  986. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js.gz +0 -0
  987. package/dist/esm/ApplicationUtils-29d2709c.js.gz +0 -0
  988. package/dist/esm/FormLayout-bda67973.js +0 -9
  989. package/dist/esm/FormLayout-bda67973.js.gz +0 -0
  990. package/dist/esm/app-globals-44bdc4c4.js.gz +0 -0
  991. package/dist/esm/classic-search-list_8.entry.js.gz +0 -0
  992. package/dist/esm/ez-card-item.entry.js +0 -58
  993. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  994. package/dist/esm/ez-classic-date-input.entry.js +0 -197
  995. package/dist/esm/ez-classic-date-input.entry.js.gz +0 -0
  996. package/dist/esm/ez-classic-date-time-input.entry.js +0 -242
  997. package/dist/esm/ez-classic-date-time-input.entry.js.gz +0 -0
  998. package/dist/esm/ez-classic-number-input.entry.js +0 -201
  999. package/dist/esm/ez-classic-number-input.entry.js.gz +0 -0
  1000. package/dist/esm/ez-classic-search-plus.entry.js +0 -416
  1001. package/dist/esm/ez-classic-search-plus.entry.js.gz +0 -0
  1002. package/dist/esm/ez-classic-search.entry.js +0 -679
  1003. package/dist/esm/ez-classic-search.entry.js.gz +0 -0
  1004. package/dist/esm/ez-classic-time-input.entry.js +0 -194
  1005. package/dist/esm/ez-classic-time-input.entry.js.gz +0 -0
  1006. package/dist/esm/ez-grid-pagination.entry.js +0 -327
  1007. package/dist/esm/ez-grid-pagination.entry.js.gz +0 -0
  1008. package/dist/esm/ez-multi-selection-list_5.entry.js.gz +0 -0
  1009. package/dist/esm/ez-record-navigation.entry.js +0 -117
  1010. package/dist/esm/ez-record-navigation.entry.js.gz +0 -0
  1011. package/dist/esm/floating-ui.dom.esm-0c464cef.js.gz +0 -0
  1012. package/dist/esm/index-b5a15d4b.js.gz +0 -0
  1013. package/dist/esm/purify-ff423562.js +0 -1396
  1014. package/dist/esm/purify-ff423562.js.gz +0 -0
  1015. package/dist/esm/search-column-9414ad22.js.gz +0 -0
  1016. package/dist/esm/searchFormatters-6d9b06e4.js +0 -20
  1017. package/dist/esm/searchFormatters-6d9b06e4.js.gz +0 -0
  1018. package/dist/esm/types-6f6b2650.js.gz +0 -0
  1019. package/dist/ezui/p-08e3184d.entry.js +0 -1
  1020. package/dist/ezui/p-08e3184d.entry.js.gz +0 -0
  1021. package/dist/ezui/p-0ca765f4.entry.js +0 -1
  1022. package/dist/ezui/p-0ca765f4.entry.js.gz +0 -0
  1023. package/dist/ezui/p-0d80e3ec.entry.js +0 -1
  1024. package/dist/ezui/p-0d80e3ec.entry.js.gz +0 -0
  1025. package/dist/ezui/p-0ddb9a95.entry.js +0 -1
  1026. package/dist/ezui/p-0ddb9a95.entry.js.gz +0 -0
  1027. package/dist/ezui/p-0fbf5842.entry.js.gz +0 -0
  1028. package/dist/ezui/p-1160c33a.entry.js.gz +0 -0
  1029. package/dist/ezui/p-1222e1b6.entry.js.gz +0 -0
  1030. package/dist/ezui/p-178cb9df.entry.js +0 -1
  1031. package/dist/ezui/p-178cb9df.entry.js.gz +0 -0
  1032. package/dist/ezui/p-1c7aa5af.entry.js +0 -1
  1033. package/dist/ezui/p-1c7aa5af.entry.js.gz +0 -0
  1034. package/dist/ezui/p-27236a0f.entry.js.gz +0 -0
  1035. package/dist/ezui/p-2c1c9ec6.entry.js.gz +0 -0
  1036. package/dist/ezui/p-320c401f.js.gz +0 -0
  1037. package/dist/ezui/p-381570d2.entry.js.gz +0 -0
  1038. package/dist/ezui/p-3b7d9f30.js +0 -1
  1039. package/dist/ezui/p-3b7d9f30.js.gz +0 -0
  1040. package/dist/ezui/p-3b9ccdb7.entry.js.gz +0 -0
  1041. package/dist/ezui/p-40a0a773.entry.js +0 -1
  1042. package/dist/ezui/p-40a0a773.entry.js.gz +0 -0
  1043. package/dist/ezui/p-40c92fc7.entry.js.gz +0 -0
  1044. package/dist/ezui/p-41954f37.entry.js +0 -1
  1045. package/dist/ezui/p-41954f37.entry.js.gz +0 -0
  1046. package/dist/ezui/p-45d09b32.entry.js +0 -1
  1047. package/dist/ezui/p-45d09b32.entry.js.gz +0 -0
  1048. package/dist/ezui/p-46188bfe.entry.js +0 -1
  1049. package/dist/ezui/p-46188bfe.entry.js.gz +0 -0
  1050. package/dist/ezui/p-47e4a8ce.js +0 -1
  1051. package/dist/ezui/p-47e4a8ce.js.gz +0 -0
  1052. package/dist/ezui/p-49bc0b59.entry.js +0 -1
  1053. package/dist/ezui/p-49bc0b59.entry.js.gz +0 -0
  1054. package/dist/ezui/p-5124ba43.entry.js +0 -1
  1055. package/dist/ezui/p-5124ba43.entry.js.gz +0 -0
  1056. package/dist/ezui/p-52122022.entry.js.gz +0 -0
  1057. package/dist/ezui/p-5895e687.js +0 -1
  1058. package/dist/ezui/p-5895e687.js.gz +0 -0
  1059. package/dist/ezui/p-58fa7883.js.gz +0 -0
  1060. package/dist/ezui/p-5a217a52.entry.js.gz +0 -0
  1061. package/dist/ezui/p-5c440899.js +0 -3
  1062. package/dist/ezui/p-5c440899.js.gz +0 -0
  1063. package/dist/ezui/p-664b9f4c.entry.js.gz +0 -0
  1064. package/dist/ezui/p-6791d05f.entry.js +0 -1
  1065. package/dist/ezui/p-6791d05f.entry.js.gz +0 -0
  1066. package/dist/ezui/p-6c24ab67.entry.js.gz +0 -0
  1067. package/dist/ezui/p-73bae77e.entry.js.gz +0 -0
  1068. package/dist/ezui/p-7df45688.entry.js +0 -1
  1069. package/dist/ezui/p-7df45688.entry.js.gz +0 -0
  1070. package/dist/ezui/p-7ecac0c4.entry.js.gz +0 -0
  1071. package/dist/ezui/p-83ffba67.entry.js.gz +0 -0
  1072. package/dist/ezui/p-852d6133.entry.js.gz +0 -0
  1073. package/dist/ezui/p-88a115b3.js +0 -1
  1074. package/dist/ezui/p-88a115b3.js.gz +0 -0
  1075. package/dist/ezui/p-90a0b52b.entry.js +0 -1
  1076. package/dist/ezui/p-90a0b52b.entry.js.gz +0 -0
  1077. package/dist/ezui/p-93d0f1aa.entry.js.gz +0 -0
  1078. package/dist/ezui/p-95fb50d1.entry.js +0 -1
  1079. package/dist/ezui/p-95fb50d1.entry.js.gz +0 -0
  1080. package/dist/ezui/p-97545f8e.entry.js.gz +0 -0
  1081. package/dist/ezui/p-9d06f315.entry.js +0 -1
  1082. package/dist/ezui/p-9d06f315.entry.js.gz +0 -0
  1083. package/dist/ezui/p-a62bbd49.entry.js.gz +0 -0
  1084. package/dist/ezui/p-a9ab6cb9.entry.js +0 -1
  1085. package/dist/ezui/p-a9ab6cb9.entry.js.gz +0 -0
  1086. package/dist/ezui/p-ade1c43b.entry.js.gz +0 -0
  1087. package/dist/ezui/p-afb2f145.entry.js.gz +0 -0
  1088. package/dist/ezui/p-b43fcdb6.js +0 -1
  1089. package/dist/ezui/p-b43fcdb6.js.gz +0 -0
  1090. package/dist/ezui/p-b50289bb.entry.js.gz +0 -0
  1091. package/dist/ezui/p-be4b042f.entry.js +0 -1
  1092. package/dist/ezui/p-be4b042f.entry.js.gz +0 -0
  1093. package/dist/ezui/p-c547f48f.entry.js.gz +0 -0
  1094. package/dist/ezui/p-c6b9a72a.entry.js.gz +0 -0
  1095. package/dist/ezui/p-ca4c015a.entry.js +0 -1
  1096. package/dist/ezui/p-ca4c015a.entry.js.gz +0 -0
  1097. package/dist/ezui/p-d6f50207.entry.js +0 -1
  1098. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  1099. package/dist/ezui/p-dcb7275b.entry.js +0 -1
  1100. package/dist/ezui/p-dcb7275b.entry.js.gz +0 -0
  1101. package/dist/ezui/p-dcd6a163.entry.js +0 -1
  1102. package/dist/ezui/p-dcd6a163.entry.js.gz +0 -0
  1103. package/dist/ezui/p-dcde2e69.entry.js +0 -1
  1104. package/dist/ezui/p-dcde2e69.entry.js.gz +0 -0
  1105. package/dist/ezui/p-ddf856db.entry.js +0 -1
  1106. package/dist/ezui/p-ddf856db.entry.js.gz +0 -0
  1107. package/dist/ezui/p-de14fe07.js +0 -1
  1108. package/dist/ezui/p-de14fe07.js.gz +0 -0
  1109. package/dist/ezui/p-df6173c8.entry.js +0 -1
  1110. package/dist/ezui/p-df6173c8.entry.js.gz +0 -0
  1111. package/dist/ezui/p-e60aa084.entry.js.gz +0 -0
  1112. package/dist/ezui/p-eb0cfd29.entry.js +0 -1
  1113. package/dist/ezui/p-eb0cfd29.entry.js.gz +0 -0
  1114. package/dist/ezui/p-ef3cd4ef.entry.js.gz +0 -0
  1115. package/dist/ezui/p-f7f7bb17.entry.js +0 -1
  1116. package/dist/ezui/p-f7f7bb17.entry.js.gz +0 -0
  1117. package/dist/ezui/p-f7fb2587.entry.js.gz +0 -0
  1118. package/dist/ezui/p-fed3f5fe.entry.js +0 -1
  1119. package/dist/ezui/p-fed3f5fe.entry.js.gz +0 -0
  1120. package/dist/ezui/p-feffb6a5.entry.js +0 -1
  1121. package/dist/ezui/p-feffb6a5.entry.js.gz +0 -0
  1122. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +0 -91
  1123. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +0 -95
  1124. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +0 -101
  1125. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +0 -219
  1126. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +0 -29
  1127. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +0 -2
  1128. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +0 -189
  1129. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +0 -29
  1130. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +0 -9
  1131. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +0 -2
  1132. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +0 -4
  1133. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +0 -2
  1134. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +0 -3
  1135. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +0 -91
  1136. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +0 -7
  1137. package/dist/types/components/ez-image-input/ez-image-input.d.ts +0 -43
  1138. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +0 -43
  1139. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +0 -4
@@ -0,0 +1,2433 @@
1
+ 'use strict';
2
+
3
+ const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
4
+
5
+ var purify = _commonjsHelpers.createCommonjsModule(function (module, exports) {
6
+ /*! @license DOMPurify 3.4.12 | (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.12/LICENSE */
7
+
8
+ (function (global, factory) {
9
+ module.exports = factory() ;
10
+ })(_commonjsHelpers.commonjsGlobal, (function () {
11
+ function _arrayLikeToArray(r, a) {
12
+ (null == a || a > r.length) && (a = r.length);
13
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
14
+ return n;
15
+ }
16
+ function _arrayWithHoles(r) {
17
+ if (Array.isArray(r)) return r;
18
+ }
19
+ function _iterableToArrayLimit(r, l) {
20
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
21
+ if (null != t) {
22
+ var e,
23
+ n,
24
+ i,
25
+ u,
26
+ a = [],
27
+ f = true,
28
+ o = false;
29
+ try {
30
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
31
+ } catch (r) {
32
+ o = true, n = r;
33
+ } finally {
34
+ try {
35
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
36
+ } finally {
37
+ if (o) throw n;
38
+ }
39
+ }
40
+ return a;
41
+ }
42
+ }
43
+ function _nonIterableRest() {
44
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
45
+ }
46
+ function _slicedToArray(r, e) {
47
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
48
+ }
49
+ function _unsupportedIterableToArray(r, a) {
50
+ if (r) {
51
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
52
+ var t = {}.toString.call(r).slice(8, -1);
53
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
54
+ }
55
+ }
56
+
57
+ const entries = Object.entries,
58
+ setPrototypeOf = Object.setPrototypeOf,
59
+ isFrozen = Object.isFrozen,
60
+ getPrototypeOf = Object.getPrototypeOf,
61
+ getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
62
+ let freeze = Object.freeze,
63
+ seal = Object.seal,
64
+ create = Object.create; // eslint-disable-line import/no-mutable-exports
65
+ let _ref = typeof Reflect !== 'undefined' && Reflect,
66
+ apply = _ref.apply,
67
+ construct = _ref.construct;
68
+ if (!freeze) {
69
+ freeze = function freeze(x) {
70
+ return x;
71
+ };
72
+ }
73
+ if (!seal) {
74
+ seal = function seal(x) {
75
+ return x;
76
+ };
77
+ }
78
+ if (!apply) {
79
+ apply = function apply(func, thisArg) {
80
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
81
+ args[_key - 2] = arguments[_key];
82
+ }
83
+ return func.apply(thisArg, args);
84
+ };
85
+ }
86
+ if (!construct) {
87
+ construct = function construct(Func) {
88
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
89
+ args[_key2 - 1] = arguments[_key2];
90
+ }
91
+ return new Func(...args);
92
+ };
93
+ }
94
+ const arrayForEach = unapply(Array.prototype.forEach);
95
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
96
+ const arrayPop = unapply(Array.prototype.pop);
97
+ const arrayPush = unapply(Array.prototype.push);
98
+ const arraySplice = unapply(Array.prototype.splice);
99
+ const arrayIsArray = Array.isArray;
100
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
101
+ const stringToString = unapply(String.prototype.toString);
102
+ const stringMatch = unapply(String.prototype.match);
103
+ const stringReplace = unapply(String.prototype.replace);
104
+ const stringIndexOf = unapply(String.prototype.indexOf);
105
+ const stringTrim = unapply(String.prototype.trim);
106
+ const numberToString = unapply(Number.prototype.toString);
107
+ const booleanToString = unapply(Boolean.prototype.toString);
108
+ const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
109
+ const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
110
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
111
+ const objectToString = unapply(Object.prototype.toString);
112
+ const regExpTest = unapply(RegExp.prototype.test);
113
+ const typeErrorCreate = unconstruct(TypeError);
114
+ /**
115
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
116
+ *
117
+ * @param func - The function to be wrapped and called.
118
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
119
+ */
120
+ function unapply(func) {
121
+ return function (thisArg) {
122
+ if (thisArg instanceof RegExp) {
123
+ thisArg.lastIndex = 0;
124
+ }
125
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
126
+ args[_key3 - 1] = arguments[_key3];
127
+ }
128
+ return apply(func, thisArg, args);
129
+ };
130
+ }
131
+ /**
132
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
133
+ *
134
+ * @param func - The constructor function to be wrapped and called.
135
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
136
+ */
137
+ function unconstruct(Func) {
138
+ return function () {
139
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
140
+ args[_key4] = arguments[_key4];
141
+ }
142
+ return construct(Func, args);
143
+ };
144
+ }
145
+ /**
146
+ * Add properties to a lookup table
147
+ *
148
+ * @param set - The set to which elements will be added.
149
+ * @param array - The array containing elements to be added to the set.
150
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
151
+ * @returns The modified set with added elements.
152
+ */
153
+ function addToSet(set, array) {
154
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
155
+ if (setPrototypeOf) {
156
+ // Make 'in' and truthy checks like Boolean(set.constructor)
157
+ // independent of any properties defined on Object.prototype.
158
+ // Prevent prototype setters from intercepting set as a this value.
159
+ setPrototypeOf(set, null);
160
+ }
161
+ if (!arrayIsArray(array)) {
162
+ return set;
163
+ }
164
+ let l = array.length;
165
+ while (l--) {
166
+ let element = array[l];
167
+ if (typeof element === 'string') {
168
+ const lcElement = transformCaseFunc(element);
169
+ if (lcElement !== element) {
170
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
171
+ if (!isFrozen(array)) {
172
+ array[l] = lcElement;
173
+ }
174
+ element = lcElement;
175
+ }
176
+ }
177
+ set[element] = true;
178
+ }
179
+ return set;
180
+ }
181
+ /**
182
+ * Clean up an array to harden against CSPP
183
+ *
184
+ * @param array - The array to be cleaned.
185
+ * @returns The cleaned version of the array
186
+ */
187
+ function cleanArray(array) {
188
+ for (let index = 0; index < array.length; index++) {
189
+ const isPropertyExist = objectHasOwnProperty(array, index);
190
+ if (!isPropertyExist) {
191
+ array[index] = null;
192
+ }
193
+ }
194
+ return array;
195
+ }
196
+ /**
197
+ * Shallow clone an object
198
+ *
199
+ * @param object - The object to be cloned.
200
+ * @returns A new object that copies the original.
201
+ */
202
+ function clone(object) {
203
+ const newObject = create(null);
204
+ for (const _ref2 of entries(object)) {
205
+ var _ref3 = _slicedToArray(_ref2, 2);
206
+ const property = _ref3[0];
207
+ const value = _ref3[1];
208
+ const isPropertyExist = objectHasOwnProperty(object, property);
209
+ if (isPropertyExist) {
210
+ if (arrayIsArray(value)) {
211
+ newObject[property] = cleanArray(value);
212
+ } else if (value && typeof value === 'object' && value.constructor === Object) {
213
+ newObject[property] = clone(value);
214
+ } else {
215
+ newObject[property] = value;
216
+ }
217
+ }
218
+ }
219
+ return newObject;
220
+ }
221
+ /**
222
+ * Convert non-node values into strings without depending on direct property access.
223
+ *
224
+ * @param value - The value to stringify.
225
+ * @returns A string representation of the provided value.
226
+ */
227
+ function stringifyValue(value) {
228
+ switch (typeof value) {
229
+ case 'string':
230
+ {
231
+ return value;
232
+ }
233
+ case 'number':
234
+ {
235
+ return numberToString(value);
236
+ }
237
+ case 'boolean':
238
+ {
239
+ return booleanToString(value);
240
+ }
241
+ case 'bigint':
242
+ {
243
+ return bigintToString ? bigintToString(value) : '0';
244
+ }
245
+ case 'symbol':
246
+ {
247
+ return symbolToString ? symbolToString(value) : 'Symbol()';
248
+ }
249
+ case 'undefined':
250
+ {
251
+ return objectToString(value);
252
+ }
253
+ case 'function':
254
+ case 'object':
255
+ {
256
+ if (value === null) {
257
+ return objectToString(value);
258
+ }
259
+ const valueAsRecord = value;
260
+ const valueToString = lookupGetter(valueAsRecord, 'toString');
261
+ if (typeof valueToString === 'function') {
262
+ const stringified = valueToString(valueAsRecord);
263
+ return typeof stringified === 'string' ? stringified : objectToString(stringified);
264
+ }
265
+ return objectToString(value);
266
+ }
267
+ default:
268
+ {
269
+ return objectToString(value);
270
+ }
271
+ }
272
+ }
273
+ /**
274
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
275
+ *
276
+ * @param object - The object to look up the getter function in its prototype chain.
277
+ * @param prop - The property name for which to find the getter function.
278
+ * @returns The getter function found in the prototype chain or a fallback function.
279
+ */
280
+ function lookupGetter(object, prop) {
281
+ while (object !== null) {
282
+ const desc = getOwnPropertyDescriptor(object, prop);
283
+ if (desc) {
284
+ if (desc.get) {
285
+ return unapply(desc.get);
286
+ }
287
+ if (typeof desc.value === 'function') {
288
+ return unapply(desc.value);
289
+ }
290
+ }
291
+ object = getPrototypeOf(object);
292
+ }
293
+ function fallbackValue() {
294
+ return null;
295
+ }
296
+ return fallbackValue;
297
+ }
298
+ function isRegex(value) {
299
+ try {
300
+ regExpTest(value, '');
301
+ return true;
302
+ } catch (_unused) {
303
+ return false;
304
+ }
305
+ }
306
+
307
+ const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
308
+ const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
309
+ const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
310
+ // List of SVG elements that are disallowed by default.
311
+ // We still need to know them so that we can do namespace
312
+ // checks properly in case one wants to add them to
313
+ // allow-list.
314
+ const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);
315
+ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);
316
+ // Similarly to SVG, we want to know all MathML elements,
317
+ // even those that we disallow by default.
318
+ const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
319
+ const text = freeze(['#text']);
320
+
321
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'command', 'commandfor', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns']);
322
+ const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dominant-baseline', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-orientation', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
323
+ const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
324
+ const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
325
+
326
+ const MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
327
+ const ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
328
+ const TMPLIT_EXPR = seal(/\${[\w\W]*/g);
329
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
330
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
331
+ const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
332
+ );
333
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
334
+ const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
335
+ );
336
+ const DOCTYPE_NAME = seal(/^html$/i);
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);
345
+
346
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
347
+ const NODE_TYPE = {
348
+ element: 1,
349
+ attribute: 2,
350
+ text: 3,
351
+ cdataSection: 4,
352
+ entityReference: 5,
353
+ // Deprecated
354
+ entityNode: 6,
355
+ // Deprecated
356
+ processingInstruction: 7,
357
+ comment: 8,
358
+ document: 9,
359
+ documentType: 10,
360
+ documentFragment: 11,
361
+ notation: 12 // Deprecated
362
+ };
363
+ const getGlobal = function getGlobal() {
364
+ return typeof window === 'undefined' ? null : window;
365
+ };
366
+ /**
367
+ * Creates a no-op policy for internal use only.
368
+ * Don't export this function outside this module!
369
+ * @param trustedTypes The policy factory.
370
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
371
+ * @return The policy created (or null, if Trusted Types
372
+ * are not supported or creating the policy failed).
373
+ */
374
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
375
+ if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
376
+ return null;
377
+ }
378
+ // Allow the callers to control the unique policy name
379
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
380
+ // Policy creation with duplicate names throws in Trusted Types.
381
+ let suffix = null;
382
+ const ATTR_NAME = 'data-tt-policy-suffix';
383
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
384
+ suffix = purifyHostElement.getAttribute(ATTR_NAME);
385
+ }
386
+ const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
387
+ try {
388
+ return trustedTypes.createPolicy(policyName, {
389
+ createHTML(html) {
390
+ return html;
391
+ },
392
+ createScriptURL(scriptUrl) {
393
+ return scriptUrl;
394
+ }
395
+ });
396
+ } catch (_) {
397
+ // Policy creation failed (most likely another DOMPurify script has
398
+ // already run). Skip creating the policy, as this will only cause errors
399
+ // if TT are enforced.
400
+ return null;
401
+ }
402
+ };
403
+ const _createHooksMap = function _createHooksMap() {
404
+ return {
405
+ afterSanitizeAttributes: [],
406
+ afterSanitizeElements: [],
407
+ afterSanitizeShadowDOM: [],
408
+ beforeSanitizeAttributes: [],
409
+ beforeSanitizeElements: [],
410
+ beforeSanitizeShadowDOM: [],
411
+ uponSanitizeAttribute: [],
412
+ uponSanitizeElement: [],
413
+ uponSanitizeShadowNode: []
414
+ };
415
+ };
416
+ /**
417
+ * Resolve a set-valued configuration option: a fresh set built from
418
+ * cfg[key] when it is an own array property (seeded with a clone of
419
+ * options.base when given, case-normalized via options.transform),
420
+ * the fallback set otherwise.
421
+ *
422
+ * @param cfg the cloned, prototype-free configuration object
423
+ * @param key the configuration property to read
424
+ * @param fallback the set to use when the option is absent or not an array
425
+ * @param options transform and optional base set to merge into
426
+ * @returns the resolved set
427
+ */
428
+ const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
429
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
430
+ };
431
+ function createDOMPurify() {
432
+ let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
433
+ const DOMPurify = root => createDOMPurify(root);
434
+ DOMPurify.version = '3.4.12';
435
+ DOMPurify.removed = [];
436
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
437
+ // Not running in a browser, provide a factory function
438
+ // so that you can pass your own Window
439
+ DOMPurify.isSupported = false;
440
+ return DOMPurify;
441
+ }
442
+ let document = window.document;
443
+ const originalDocument = document;
444
+ const currentScript = originalDocument.currentScript;
445
+ const HTMLTemplateElement = window.HTMLTemplateElement,
446
+ Node = window.Node,
447
+ Element = window.Element,
448
+ NodeFilter = window.NodeFilter;
449
+ const DOMParser = window.DOMParser,
450
+ trustedTypes = window.trustedTypes;
451
+ const ElementPrototype = Element.prototype;
452
+ const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
453
+ const remove = lookupGetter(ElementPrototype, 'remove');
454
+ const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
455
+ const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
456
+ const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
457
+ const getShadowRoot = lookupGetter(ElementPrototype, 'shadowRoot');
458
+ const getAttributes = lookupGetter(ElementPrototype, 'attributes');
459
+ const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeType') : null;
460
+ const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeName') : null;
461
+ // As per issue #47, the web-components registry is inherited by a
462
+ // new document created via createHTMLDocument. As per the spec
463
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
464
+ // a new empty registry is used when creating a template contents owner
465
+ // document, so we use that as our parent document to ensure nothing
466
+ // is inherited.
467
+ if (typeof HTMLTemplateElement === 'function') {
468
+ const template = document.createElement('template');
469
+ if (template.content && template.content.ownerDocument) {
470
+ document = template.content.ownerDocument;
471
+ }
472
+ }
473
+ let trustedTypesPolicy;
474
+ let emptyHTML = '';
475
+ // The instance's own internal Trusted Types policy. Unlike a caller-supplied
476
+ // `TRUSTED_TYPES_POLICY`, this is created at most once — Trusted Types throws
477
+ // on duplicate policy names — and is the only policy allowed to persist
478
+ // across configurations and survive `clearConfig()`.
479
+ let defaultTrustedTypesPolicy;
480
+ let defaultTrustedTypesPolicyResolved = false;
481
+ // Tracks whether we are already inside a call to the configured Trusted Types
482
+ // policy (`createHTML` or `createScriptURL`). If a supplied policy callback
483
+ // itself calls `DOMPurify.sanitize` (the cause of #1422), `sanitize` would
484
+ // re-enter the policy and recurse until the stack overflows. We detect that
485
+ // re-entry and throw a clear, actionable error instead. The guard is shared
486
+ // across both callbacks, because either one re-entering `sanitize` triggers
487
+ // the same unbounded recursion.
488
+ let IN_TRUSTED_TYPES_POLICY = 0;
489
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
490
+ if (IN_TRUSTED_TYPES_POLICY > 0) {
491
+ 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.');
492
+ }
493
+ };
494
+ const _createTrustedHTML = function _createTrustedHTML(html) {
495
+ _assertNotInTrustedTypesPolicy();
496
+ IN_TRUSTED_TYPES_POLICY++;
497
+ try {
498
+ return trustedTypesPolicy.createHTML(html);
499
+ } finally {
500
+ IN_TRUSTED_TYPES_POLICY--;
501
+ }
502
+ };
503
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
504
+ _assertNotInTrustedTypesPolicy();
505
+ IN_TRUSTED_TYPES_POLICY++;
506
+ try {
507
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
508
+ } finally {
509
+ IN_TRUSTED_TYPES_POLICY--;
510
+ }
511
+ };
512
+ // Lazily resolve (and cache) the instance's internal default policy.
513
+ // Resolution is attempted at most once: a successful `createPolicy` cannot be
514
+ // repeated (Trusted Types throws on duplicate names), and a failed or
515
+ // unsupported attempt must not be retried on every parse.
516
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
517
+ if (!defaultTrustedTypesPolicyResolved) {
518
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
519
+ defaultTrustedTypesPolicyResolved = true;
520
+ }
521
+ return defaultTrustedTypesPolicy;
522
+ };
523
+ const _document = document,
524
+ implementation = _document.implementation,
525
+ createNodeIterator = _document.createNodeIterator,
526
+ createDocumentFragment = _document.createDocumentFragment,
527
+ getElementsByTagName = _document.getElementsByTagName;
528
+ const importNode = originalDocument.importNode;
529
+ let hooks = _createHooksMap();
530
+ /**
531
+ * Expose whether this browser supports running the full DOMPurify.
532
+ */
533
+ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
534
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR,
535
+ ERB_EXPR$1 = ERB_EXPR,
536
+ TMPLIT_EXPR$1 = TMPLIT_EXPR,
537
+ DATA_ATTR$1 = DATA_ATTR,
538
+ ARIA_ATTR$1 = ARIA_ATTR,
539
+ IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,
540
+ ATTR_WHITESPACE$1 = ATTR_WHITESPACE,
541
+ CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
542
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
543
+ /**
544
+ * We consider the elements and attributes below to be safe. Ideally
545
+ * don't add any new ones but feel free to remove unwanted ones.
546
+ */
547
+ /* allowed element names */
548
+ let ALLOWED_TAGS = null;
549
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
550
+ /* Allowed attribute names */
551
+ let ALLOWED_ATTR = null;
552
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
553
+ /*
554
+ * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
555
+ * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
556
+ * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
557
+ * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
558
+ */
559
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
560
+ tagNameCheck: {
561
+ writable: true,
562
+ configurable: false,
563
+ enumerable: true,
564
+ value: null
565
+ },
566
+ attributeNameCheck: {
567
+ writable: true,
568
+ configurable: false,
569
+ enumerable: true,
570
+ value: null
571
+ },
572
+ allowCustomizedBuiltInElements: {
573
+ writable: true,
574
+ configurable: false,
575
+ enumerable: true,
576
+ value: false
577
+ }
578
+ }));
579
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
580
+ let FORBID_TAGS = null;
581
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
582
+ let FORBID_ATTR = null;
583
+ /* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
584
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
585
+ tagCheck: {
586
+ writable: true,
587
+ configurable: false,
588
+ enumerable: true,
589
+ value: null
590
+ },
591
+ attributeCheck: {
592
+ writable: true,
593
+ configurable: false,
594
+ enumerable: true,
595
+ value: null
596
+ }
597
+ }));
598
+ /* Decide if ARIA attributes are okay */
599
+ let ALLOW_ARIA_ATTR = true;
600
+ /* Decide if custom data attributes are okay */
601
+ let ALLOW_DATA_ATTR = true;
602
+ /* Decide if unknown protocols are okay */
603
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
604
+ /* Decide if self-closing tags in attributes are allowed.
605
+ * Usually removed due to a mXSS issue in jQuery 3.0 */
606
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
607
+ /* Output should be safe for common template engines.
608
+ * This means, DOMPurify removes data attributes, mustaches and ERB
609
+ */
610
+ let SAFE_FOR_TEMPLATES = false;
611
+ /* Output should be safe even for XML used within HTML and alike.
612
+ * This means, DOMPurify removes comments when containing risky content.
613
+ */
614
+ let SAFE_FOR_XML = true;
615
+ /* Decide if document with <html>... should be returned */
616
+ let WHOLE_DOCUMENT = false;
617
+ /* Track whether config is already set on this instance of DOMPurify. */
618
+ let SET_CONFIG = false;
619
+ /* Pristine allowlist bindings captured at setConfig() time. On the
620
+ * persistent-config path sanitize() restores the sets from these before
621
+ * the per-walk hook clone-guard, so a hook's in-call widening cannot
622
+ * carry across calls. Null until setConfig() is called; reset by
623
+ * clearConfig(). */
624
+ let SET_CONFIG_ALLOWED_TAGS = null;
625
+ let SET_CONFIG_ALLOWED_ATTR = null;
626
+ /* Decide if all elements (e.g. style, script) must be children of
627
+ * document.body. By default, browsers might move them to document.head */
628
+ let FORCE_BODY = false;
629
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
630
+ * string (or a TrustedHTML object if Trusted Types are supported).
631
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
632
+ */
633
+ let RETURN_DOM = false;
634
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
635
+ * string (or a TrustedHTML object if Trusted Types are supported) */
636
+ let RETURN_DOM_FRAGMENT = false;
637
+ /* Try to return a Trusted Type object instead of a string, return a string in
638
+ * case Trusted Types are not supported */
639
+ let RETURN_TRUSTED_TYPE = false;
640
+ /* Output should be free from DOM clobbering attacks?
641
+ * This sanitizes markups named with colliding, clobberable built-in DOM APIs.
642
+ */
643
+ let SANITIZE_DOM = true;
644
+ /* Achieve full DOM Clobbering protection by isolating the namespace of named
645
+ * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
646
+ *
647
+ * HTML/DOM spec rules that enable DOM Clobbering:
648
+ * - Named Access on Window (§7.3.3)
649
+ * - DOM Tree Accessors (§3.1.5)
650
+ * - Form Element Parent-Child Relations (§4.10.3)
651
+ * - Iframe srcdoc / Nested WindowProxies (§4.8.5)
652
+ * - HTMLCollection (§4.2.10.2)
653
+ *
654
+ * Namespace isolation is implemented by prefixing `id` and `name` attributes
655
+ * with a constant string, i.e., `user-content-`
656
+ */
657
+ let SANITIZE_NAMED_PROPS = false;
658
+ const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
659
+ /* Keep element content when removing element? */
660
+ let KEEP_CONTENT = true;
661
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
662
+ * of importing it into a new Document and returning a sanitized copy */
663
+ let IN_PLACE = false;
664
+ /* Allow usage of profiles like html, svg and mathMl */
665
+ let USE_PROFILES = {};
666
+ /* Tags to ignore content of when KEEP_CONTENT is true */
667
+ let FORBID_CONTENTS = null;
668
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
669
+ // <selectedcontent> mirrors the selected <option>'s subtree, cloned by
670
+ // the UA (customizable <select>) — including any on* handlers — and the
671
+ // engine re-mirrors synchronously whenever a removal changes which
672
+ // option/selectedcontent is current, even inside DOMPurify's inert
673
+ // DOMParser document. Hoisting its children on removal re-inserts a fresh
674
+ // mirror target ahead of the walk, which the engine refills, looping
675
+ // forever (DoS) and amplifying output. Dropping its content on removal
676
+ // (rather than hoisting) breaks that cascade; the content is a duplicate
677
+ // of the option, which is sanitized on its own. See campaign-3 F1/F6.
678
+ 'selectedcontent', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
679
+ /* Tags that are safe for data: URIs */
680
+ let DATA_URI_TAGS = null;
681
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
682
+ /* Attributes safe for values like "javascript:" */
683
+ let URI_SAFE_ATTRIBUTES = null;
684
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
685
+ const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
686
+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
687
+ const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
688
+ /* Document namespace */
689
+ let NAMESPACE = HTML_NAMESPACE;
690
+ let IS_EMPTY_INPUT = false;
691
+ /* Allowed XHTML+XML namespaces */
692
+ let ALLOWED_NAMESPACES = null;
693
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
694
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze(['mi', 'mo', 'mn', 'ms', 'mtext']);
695
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
696
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(['annotation-xml']);
697
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
698
+ // Certain elements are allowed in both SVG and HTML
699
+ // namespace. We need to specify them explicitly
700
+ // so that they don't get erroneously deleted from
701
+ // HTML namespace.
702
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
703
+ /* Parsing of strict XHTML documents */
704
+ let PARSER_MEDIA_TYPE = null;
705
+ const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
706
+ const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
707
+ let transformCaseFunc = null;
708
+ /* Keep a reference to config to pass to hooks */
709
+ let CONFIG = null;
710
+ /* Ideally, do not touch anything below this line */
711
+ /* ______________________________________________ */
712
+ const formElement = document.createElement('form');
713
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
714
+ return testValue instanceof RegExp || testValue instanceof Function;
715
+ };
716
+ /**
717
+ * _parseConfig
718
+ *
719
+ * @param cfg optional config literal
720
+ */
721
+ // eslint-disable-next-line complexity
722
+ const _parseConfig = function _parseConfig() {
723
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
724
+ if (CONFIG && CONFIG === cfg) {
725
+ return;
726
+ }
727
+ /* Shield configuration object from tampering */
728
+ if (!cfg || typeof cfg !== 'object') {
729
+ cfg = {};
730
+ }
731
+ /* Shield configuration object from prototype pollution */
732
+ cfg = clone(cfg);
733
+ PARSER_MEDIA_TYPE =
734
+ // eslint-disable-next-line unicorn/prefer-includes
735
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
736
+ // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
737
+ transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
738
+ /* Set configuration parameters */
739
+ ALLOWED_TAGS = _resolveSetOption(cfg, 'ALLOWED_TAGS', DEFAULT_ALLOWED_TAGS, {
740
+ transform: transformCaseFunc
741
+ });
742
+ ALLOWED_ATTR = _resolveSetOption(cfg, 'ALLOWED_ATTR', DEFAULT_ALLOWED_ATTR, {
743
+ transform: transformCaseFunc
744
+ });
745
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, 'ALLOWED_NAMESPACES', DEFAULT_ALLOWED_NAMESPACES, {
746
+ transform: stringToString
747
+ });
748
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, 'ADD_URI_SAFE_ATTR', DEFAULT_URI_SAFE_ATTRIBUTES, {
749
+ transform: transformCaseFunc,
750
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
751
+ });
752
+ DATA_URI_TAGS = _resolveSetOption(cfg, 'ADD_DATA_URI_TAGS', DEFAULT_DATA_URI_TAGS, {
753
+ transform: transformCaseFunc,
754
+ base: DEFAULT_DATA_URI_TAGS
755
+ });
756
+ FORBID_CONTENTS = _resolveSetOption(cfg, 'FORBID_CONTENTS', DEFAULT_FORBID_CONTENTS, {
757
+ transform: transformCaseFunc
758
+ });
759
+ FORBID_TAGS = _resolveSetOption(cfg, 'FORBID_TAGS', clone({}), {
760
+ transform: transformCaseFunc
761
+ });
762
+ FORBID_ATTR = _resolveSetOption(cfg, 'FORBID_ATTR', clone({}), {
763
+ transform: transformCaseFunc
764
+ });
765
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
766
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
767
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
768
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
769
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
770
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
771
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
772
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
773
+ RETURN_DOM = cfg.RETURN_DOM || false; // Default false
774
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
775
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
776
+ FORCE_BODY = cfg.FORCE_BODY || false; // Default false
777
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
778
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
779
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
780
+ IN_PLACE = cfg.IN_PLACE || false; // Default false
781
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
782
+ NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
783
+ 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
784
+ 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
785
+ const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
786
+ CUSTOM_ELEMENT_HANDLING = create(null);
787
+ if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
788
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
789
+ }
790
+ if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
791
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
792
+ }
793
+ if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
794
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
795
+ }
796
+ seal(CUSTOM_ELEMENT_HANDLING);
797
+ if (SAFE_FOR_TEMPLATES) {
798
+ ALLOW_DATA_ATTR = false;
799
+ }
800
+ if (RETURN_DOM_FRAGMENT) {
801
+ RETURN_DOM = true;
802
+ }
803
+ /* Parse profile info */
804
+ if (USE_PROFILES) {
805
+ ALLOWED_TAGS = addToSet({}, text);
806
+ ALLOWED_ATTR = create(null);
807
+ if (USE_PROFILES.html === true) {
808
+ addToSet(ALLOWED_TAGS, html$1);
809
+ addToSet(ALLOWED_ATTR, html);
810
+ }
811
+ if (USE_PROFILES.svg === true) {
812
+ addToSet(ALLOWED_TAGS, svg$1);
813
+ addToSet(ALLOWED_ATTR, svg);
814
+ addToSet(ALLOWED_ATTR, xml);
815
+ }
816
+ if (USE_PROFILES.svgFilters === true) {
817
+ addToSet(ALLOWED_TAGS, svgFilters);
818
+ addToSet(ALLOWED_ATTR, svg);
819
+ addToSet(ALLOWED_ATTR, xml);
820
+ }
821
+ if (USE_PROFILES.mathMl === true) {
822
+ addToSet(ALLOWED_TAGS, mathMl$1);
823
+ addToSet(ALLOWED_ATTR, mathMl);
824
+ addToSet(ALLOWED_ATTR, xml);
825
+ }
826
+ }
827
+ /* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
828
+ * leaking across calls when switching from function to array config */
829
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
830
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
831
+ /* Merge configuration parameters */
832
+ if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
833
+ if (typeof cfg.ADD_TAGS === 'function') {
834
+ EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
835
+ } else if (arrayIsArray(cfg.ADD_TAGS)) {
836
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
837
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
838
+ }
839
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
840
+ }
841
+ }
842
+ if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
843
+ if (typeof cfg.ADD_ATTR === 'function') {
844
+ EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
845
+ } else if (arrayIsArray(cfg.ADD_ATTR)) {
846
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
847
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
848
+ }
849
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
850
+ }
851
+ }
852
+ if (objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) {
853
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
854
+ }
855
+ if (objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS)) {
856
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
857
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
858
+ }
859
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
860
+ }
861
+ if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
862
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
863
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
864
+ }
865
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
866
+ }
867
+ /* Add #text in case KEEP_CONTENT is set to true */
868
+ if (KEEP_CONTENT) {
869
+ ALLOWED_TAGS['#text'] = true;
870
+ }
871
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
872
+ if (WHOLE_DOCUMENT) {
873
+ addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
874
+ }
875
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
876
+ if (ALLOWED_TAGS.table) {
877
+ addToSet(ALLOWED_TAGS, ['tbody']);
878
+ delete FORBID_TAGS.tbody;
879
+ }
880
+ // Re-derive the active Trusted Types policy from this configuration on
881
+ // every parse. The active policy must never be sticky closure state that
882
+ // outlives the config that set it: a caller-supplied policy left in place
883
+ // after `clearConfig()` — or after a later call that supplied none, or
884
+ // `TRUSTED_TYPES_POLICY: null` — could sign a subsequent "default"
885
+ // `RETURN_TRUSTED_TYPE` result with a foreign, possibly unsafe policy.
886
+ // See GHSA-vxr8-fq34-vvx9.
887
+ if (cfg.TRUSTED_TYPES_POLICY) {
888
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
889
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
890
+ }
891
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
892
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
893
+ }
894
+ // A caller-supplied policy applies to this configuration only.
895
+ const previousTrustedTypesPolicy = trustedTypesPolicy;
896
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
897
+ // Sign local variables required by `sanitize`. If the supplied policy's
898
+ // `createHTML` is circular (i.e. it calls `DOMPurify.sanitize`), this
899
+ // throws via the re-entrancy guard. Restore the previous policy first so
900
+ // the instance is not left in a poisoned state. See #1422.
901
+ try {
902
+ emptyHTML = _createTrustedHTML('');
903
+ } catch (error) {
904
+ trustedTypesPolicy = previousTrustedTypesPolicy;
905
+ throw error;
906
+ }
907
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
908
+ // Explicit opt-out for this call: perform no Trusted Types signing and
909
+ // create nothing (so a strict `trusted-types` CSP that disallows a
910
+ // `dompurify` policy can still call `sanitize` from inside its own
911
+ // policy — see #1422). Resetting to `undefined` rather than a sticky
912
+ // `null` also drops any previously retained caller policy, so it cannot
913
+ // resurface on a later call, while still allowing the next config-less
914
+ // call to restore the internal default policy. See GHSA-vxr8-fq34-vvx9.
915
+ trustedTypesPolicy = undefined;
916
+ emptyHTML = '';
917
+ } else {
918
+ // No policy supplied: keep the currently active policy if one is set — a
919
+ // previously supplied policy is intentionally sticky across config-less
920
+ // calls — otherwise fall back to the instance's own internal policy,
921
+ // created at most once. (A policy supplied for a *single* call still
922
+ // lingers by design; what must not linger is a policy whose configuration
923
+ // has been torn down via `clearConfig()`, which restores the default.)
924
+ if (trustedTypesPolicy === undefined) {
925
+ trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
926
+ }
927
+ // Sign internal variables only when a policy is active. A falsy policy
928
+ // (Trusted Types unsupported, creation failed, or an explicit opt-out)
929
+ // leaves `emptyHTML` as a plain string, so we never call `.createHTML` on
930
+ // a non-policy and throw. See #1422.
931
+ if (trustedTypesPolicy && typeof emptyHTML === 'string') {
932
+ emptyHTML = _createTrustedHTML('');
933
+ }
934
+ }
935
+ // Prevent further manipulation of configuration.
936
+ // Not available in IE8, Safari 5, etc.
937
+ if (freeze) {
938
+ freeze(cfg);
939
+ }
940
+ CONFIG = cfg;
941
+ };
942
+ /* Keep track of all possible SVG and MathML tags
943
+ * so that we can perform the namespace checks
944
+ * correctly. */
945
+ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
946
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
947
+ /**
948
+ * Namespace rules for an element in the SVG namespace.
949
+ *
950
+ * @param tagName the element's lowercase tag name
951
+ * @param parent the (possibly simulated) parent node
952
+ * @param parentTagName the parent's lowercase tag name
953
+ * @returns true if a spec-compliant parser could produce this element
954
+ */
955
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
956
+ // The only way to switch from HTML namespace to SVG
957
+ // is via <svg>. If it happens via any other tag, then
958
+ // it should be killed.
959
+ if (parent.namespaceURI === HTML_NAMESPACE) {
960
+ return tagName === 'svg';
961
+ }
962
+ // The only way to switch from MathML to SVG is via <svg>
963
+ // if the parent is either <annotation-xml> or a MathML
964
+ // text integration point.
965
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
966
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
967
+ }
968
+ // We only allow elements that are defined in SVG
969
+ // spec. All others are disallowed in SVG namespace.
970
+ return Boolean(ALL_SVG_TAGS[tagName]);
971
+ };
972
+ /**
973
+ * Namespace rules for an element in the MathML namespace.
974
+ *
975
+ * @param tagName the element's lowercase tag name
976
+ * @param parent the (possibly simulated) parent node
977
+ * @param parentTagName the parent's lowercase tag name
978
+ * @returns true if a spec-compliant parser could produce this element
979
+ */
980
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
981
+ // The only way to switch from HTML namespace to MathML
982
+ // is via <math>. If it happens via any other tag, then
983
+ // it should be killed.
984
+ if (parent.namespaceURI === HTML_NAMESPACE) {
985
+ return tagName === 'math';
986
+ }
987
+ // The only way to switch from SVG to MathML is via
988
+ // <math> and HTML integration points
989
+ if (parent.namespaceURI === SVG_NAMESPACE) {
990
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
991
+ }
992
+ // We only allow elements that are defined in MathML
993
+ // spec. All others are disallowed in MathML namespace.
994
+ return Boolean(ALL_MATHML_TAGS[tagName]);
995
+ };
996
+ /**
997
+ * Namespace rules for an element in the HTML namespace.
998
+ *
999
+ * @param tagName the element's lowercase tag name
1000
+ * @param parent the (possibly simulated) parent node
1001
+ * @param parentTagName the parent's lowercase tag name
1002
+ * @returns true if a spec-compliant parser could produce this element
1003
+ */
1004
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
1005
+ // The only way to switch from SVG to HTML is via
1006
+ // HTML integration points, and from MathML to HTML
1007
+ // is via MathML text integration points
1008
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
1009
+ return false;
1010
+ }
1011
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
1012
+ return false;
1013
+ }
1014
+ // We disallow tags that are specific for MathML
1015
+ // or SVG and should never appear in HTML namespace
1016
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
1017
+ };
1018
+ /**
1019
+ * @param element a DOM element whose namespace is being checked
1020
+ * @returns Return false if the element has a
1021
+ * namespace that a spec-compliant parser would never
1022
+ * return. Return true otherwise.
1023
+ */
1024
+ const _checkValidNamespace = function _checkValidNamespace(element) {
1025
+ let parent = getParentNode(element);
1026
+ // In JSDOM, if we're inside shadow DOM, then parentNode
1027
+ // can be null. We just simulate parent in this case.
1028
+ if (!parent || !parent.tagName) {
1029
+ parent = {
1030
+ namespaceURI: NAMESPACE,
1031
+ tagName: 'template'
1032
+ };
1033
+ }
1034
+ const tagName = stringToLowerCase(element.tagName);
1035
+ const parentTagName = stringToLowerCase(parent.tagName);
1036
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
1037
+ return false;
1038
+ }
1039
+ if (element.namespaceURI === SVG_NAMESPACE) {
1040
+ return _checkSvgNamespace(tagName, parent, parentTagName);
1041
+ }
1042
+ if (element.namespaceURI === MATHML_NAMESPACE) {
1043
+ return _checkMathMlNamespace(tagName, parent, parentTagName);
1044
+ }
1045
+ if (element.namespaceURI === HTML_NAMESPACE) {
1046
+ return _checkHtmlNamespace(tagName, parent, parentTagName);
1047
+ }
1048
+ // For XHTML and XML documents that support custom namespaces
1049
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
1050
+ return true;
1051
+ }
1052
+ // The code should never reach this place (this means
1053
+ // that the element somehow got namespace that is not
1054
+ // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
1055
+ // Return false just in case.
1056
+ return false;
1057
+ };
1058
+ /**
1059
+ * _forceRemove
1060
+ *
1061
+ * @param node a DOM node
1062
+ */
1063
+ const _forceRemove = function _forceRemove(node) {
1064
+ arrayPush(DOMPurify.removed, {
1065
+ element: node
1066
+ });
1067
+ try {
1068
+ // eslint-disable-next-line unicorn/prefer-dom-node-remove
1069
+ getParentNode(node).removeChild(node);
1070
+ } catch (_) {
1071
+ /* The normal detach failed — this is reached for a parentless node
1072
+ (getParentNode() is null, so .removeChild throws). Element.prototype
1073
+ .remove() is itself a spec no-op on a parentless node, so a recorded
1074
+ "removal" would otherwise hand the caller back an intact,
1075
+ payload-bearing node (e.g. a detached IN_PLACE root the mXSS canary or
1076
+ the style-with-element-child rule decided to kill). Fail closed by
1077
+ throwing — exactly as a clobbered root does at the IN_PLACE entry —
1078
+ rather than trying to "neutralize" the node via its own methods.
1079
+ Neutralizing would mean calling getAttributeNames()/removeAttribute()
1080
+ on the node, both of which a <form> root can clobber via a named child
1081
+ (and _isClobbered does not even probe getAttributeNames), so the
1082
+ neutralize step could itself be silently defeated, leaving the payload
1083
+ intact. A throw touches only the cached, clobber-safe remove() and
1084
+ getParentNode(). Generalizes GHSA-r47g-fvhr-h676 (clobbered-form root)
1085
+ to every root-kill reason. REPORT-3.
1086
+ This lives inside the catch, so it never fires for a normally-removed
1087
+ in-tree node: those have a parent, removeChild() succeeds, and the
1088
+ catch is not entered. Only a kept (parentless) root reaches here. */
1089
+ remove(node);
1090
+ if (!getParentNode(node)) {
1091
+ throw typeErrorCreate('a node selected for removal could not be detached from its tree ' + 'and cannot be safely returned; refusing to sanitize in place');
1092
+ }
1093
+ }
1094
+ };
1095
+ /**
1096
+ * _neutralizeRoot
1097
+ *
1098
+ * Fail-closed teardown of an in-place root after the sanitize walk aborts
1099
+ * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
1100
+ * custom element's reaction detaches a node so `_forceRemove`'s deliberate
1101
+ * parentless guard throws, or any other re-entrant engine mutation — would
1102
+ * otherwise leave the caller's *live* tree half-sanitized, with everything
1103
+ * after the abort point still carrying its handlers. There is no safe way
1104
+ * to resume the walk (the tree mutated under us), so we strip the root bare:
1105
+ * remove every child and every attribute, then let the caller's catch see
1106
+ * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
1107
+ * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
1108
+ *
1109
+ * @param root the in-place root to empty
1110
+ */
1111
+ const _neutralizeRoot = function _neutralizeRoot(root) {
1112
+ /* Strip every disallowed attribute (on* handlers included) off the whole
1113
+ subtree BEFORE detaching anything. Detaching first would hand back
1114
+ handler-bearing originals (e.g. an already-loading `<img onerror>`)
1115
+ whose queued resource event still fires in page scope after we throw.
1116
+ Clobber-safe reads; a doomed clobbered node's own attributes are
1117
+ irrelevant while its non-clobbered descendants are reached and scrubbed. */
1118
+ _neutralizeSubtree(root);
1119
+ const childNodes = getChildNodes(root);
1120
+ if (childNodes) {
1121
+ const snapshot = [];
1122
+ arrayForEach(childNodes, child => {
1123
+ arrayPush(snapshot, child);
1124
+ });
1125
+ arrayForEach(snapshot, child => {
1126
+ try {
1127
+ remove(child);
1128
+ } catch (_) {
1129
+ /* Best-effort teardown; a still-attached child is handled below */
1130
+ }
1131
+ });
1132
+ }
1133
+ const attributes = getAttributes(root);
1134
+ if (attributes) {
1135
+ for (let i = attributes.length - 1; i >= 0; --i) {
1136
+ const attribute = attributes[i];
1137
+ const name = attribute && attribute.name;
1138
+ if (typeof name === 'string') {
1139
+ try {
1140
+ root.removeAttribute(name);
1141
+ } catch (_) {
1142
+ /* Clobbered removeAttribute — ignore (fail-closed best effort) */
1143
+ }
1144
+ }
1145
+ }
1146
+ }
1147
+ };
1148
+ /**
1149
+ * _removeAttribute
1150
+ *
1151
+ * @param name an Attribute name
1152
+ * @param element a DOM node
1153
+ */
1154
+ const _removeAttribute = function _removeAttribute(name, element) {
1155
+ try {
1156
+ arrayPush(DOMPurify.removed, {
1157
+ attribute: element.getAttributeNode(name),
1158
+ from: element
1159
+ });
1160
+ } catch (_) {
1161
+ arrayPush(DOMPurify.removed, {
1162
+ attribute: null,
1163
+ from: element
1164
+ });
1165
+ }
1166
+ element.removeAttribute(name);
1167
+ // We void attribute values for unremovable "is" attributes
1168
+ if (name === 'is') {
1169
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
1170
+ try {
1171
+ _forceRemove(element);
1172
+ } catch (_) {}
1173
+ } else {
1174
+ try {
1175
+ element.setAttribute(name, '');
1176
+ } catch (_) {}
1177
+ }
1178
+ }
1179
+ };
1180
+ /**
1181
+ * _stripDisallowedAttributes
1182
+ *
1183
+ * Removes every attribute the active configuration does not allow from a
1184
+ * single element, using the same allowlist as the main attribute pass (so
1185
+ * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
1186
+ * neutralise nodes that are being discarded from an in-place tree.
1187
+ *
1188
+ * @param element the element to strip
1189
+ */
1190
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
1191
+ const attributes = getAttributes(element);
1192
+ if (!attributes) {
1193
+ return;
1194
+ }
1195
+ for (let i = attributes.length - 1; i >= 0; --i) {
1196
+ const attribute = attributes[i];
1197
+ const name = attribute && attribute.name;
1198
+ if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {
1199
+ continue;
1200
+ }
1201
+ try {
1202
+ element.removeAttribute(name);
1203
+ } catch (_) {
1204
+ /* Clobbered removeAttribute on a doomed node — ignore */
1205
+ }
1206
+ }
1207
+ };
1208
+ /**
1209
+ * _neutralizeSubtree
1210
+ *
1211
+ * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
1212
+ * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
1213
+ * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
1214
+ * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
1215
+ * those dropped nodes are detached from the caller's LIVE tree but a
1216
+ * handler-bearing original among them (an `<img onerror>`/`<video>` that was
1217
+ * loading) keeps its queued resource event, which fires in page scope after
1218
+ * sanitize returns. This walks a removed subtree and strips every attribute
1219
+ * the active configuration does not allow — so `on*` handlers are cancelled
1220
+ * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
1221
+ * blocklist. Run synchronously before sanitize returns, i.e. before any
1222
+ * queued event can fire. Hook-free by design: these nodes leave the output,
1223
+ * so firing attribute hooks for them would be surprising. Clobber-safe reads;
1224
+ * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
1225
+ * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
1226
+ * the `<img>`, are reached and scrubbed).
1227
+ *
1228
+ * @param root the root of a removed subtree to neutralise
1229
+ */
1230
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
1231
+ const stack = [root];
1232
+ while (stack.length > 0) {
1233
+ const node = stack.pop();
1234
+ const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
1235
+ if (nodeType === NODE_TYPE.element) {
1236
+ _stripDisallowedAttributes(node);
1237
+ }
1238
+ const childNodes = getChildNodes(node);
1239
+ if (childNodes) {
1240
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1241
+ stack.push(childNodes[i]);
1242
+ }
1243
+ }
1244
+ }
1245
+ };
1246
+ /**
1247
+ * _neutralizePatchLinkage
1248
+ *
1249
+ * IN_PLACE entry pre-pass (declarative-partial-updates / streaming
1250
+ * hardening, https://github.com/WICG/declarative-partial-updates).
1251
+ *
1252
+ * The main walk strips patch linkage (`for`/`patchsrc`) and removes range
1253
+ * markers (PIs / markup comments) node-by-node, in document order, AS it
1254
+ * reaches each node. On a live in-place root that leaves a window: from the
1255
+ * moment the root is connected until the walk arrives at a given node, that
1256
+ * node's linkage is live. A patch applied on connection/stream can fire as
1257
+ * a microtask during the walk and inject or teleport an unsanitized DOM
1258
+ * range into a region the iterator has already passed and will not revisit,
1259
+ * so the post-return "tree is sanitized" contract is violated. Sweep the
1260
+ * whole tree once up front and sever every linkage before the walk begins,
1261
+ * closing that window.
1262
+ *
1263
+ * This CANNOT undo a patch that already fired before sanitize ran — that is
1264
+ * the irreducible "do not IN_PLACE a live-connected attacker tree" caveat —
1265
+ * but it closes everything from sanitize-start onward. Gated on SAFE_FOR_XML
1266
+ * to group with the rest of the declarative-partial-updates handling and
1267
+ * stay overridable, consistent with the codebase.
1268
+ *
1269
+ * Clobber-safe traversal (cached childNodes getter); per-node try/catch so a
1270
+ * clobbered root cannot defeat the sweep of its non-clobbered descendants.
1271
+ *
1272
+ * NOTE (pending real-Chrome confirmation, see test/declarative-patch-probe
1273
+ * .html Q1): this mirrors the existing policy of keeping `for` on
1274
+ * <label>/<output>. If the shipping feature can drive a patch through a
1275
+ * surviving `for`-on-label/output + `id` pair, this pre-pass and the
1276
+ * attribute check at _isBasicCustomElement's caller must additionally drop
1277
+ * that pair on the IN_PLACE path. Left as-is until the taxonomy is verified.
1278
+ *
1279
+ * @param root the in-place root to sweep
1280
+ */
1281
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
1282
+ if (!SAFE_FOR_XML) {
1283
+ return;
1284
+ }
1285
+ const stack = [root];
1286
+ while (stack.length > 0) {
1287
+ const node = stack.pop();
1288
+ const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
1289
+ /* Remove range markers (the target side of a patch linkage): every
1290
+ processing instruction, and any markup-bearing comment. */
1291
+ if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
1292
+ try {
1293
+ remove(node);
1294
+ } catch (_) {
1295
+ /* Best-effort */
1296
+ }
1297
+ continue;
1298
+ }
1299
+ /* Strip patch-source attributes (the source side) off elements. */
1300
+ if (nodeType === NODE_TYPE.element) {
1301
+ const element = node;
1302
+ const lcTag = transformCaseFunc(getNodeName ? getNodeName(node) : node.nodeName);
1303
+ try {
1304
+ if (element.hasAttribute && element.hasAttribute('patchsrc')) {
1305
+ element.removeAttribute('patchsrc');
1306
+ }
1307
+ if (element.hasAttribute && element.hasAttribute('for') && lcTag !== 'label' && lcTag !== 'output') {
1308
+ element.removeAttribute('for');
1309
+ }
1310
+ } catch (_) {
1311
+ /* Clobbered removeAttribute/hasAttribute on a doomed node — ignore */
1312
+ }
1313
+ }
1314
+ const childNodes = getChildNodes(node);
1315
+ if (childNodes) {
1316
+ for (let i = childNodes.length - 1; i >= 0; --i) {
1317
+ stack.push(childNodes[i]);
1318
+ }
1319
+ }
1320
+ }
1321
+ };
1322
+ /**
1323
+ * _initDocument
1324
+ *
1325
+ * @param dirty - a string of dirty markup
1326
+ * @return a DOM, filled with the dirty markup
1327
+ */
1328
+ const _initDocument = function _initDocument(dirty) {
1329
+ /* Create a HTML document */
1330
+ let doc = null;
1331
+ let leadingWhitespace = null;
1332
+ if (FORCE_BODY) {
1333
+ dirty = '<remove></remove>' + dirty;
1334
+ } else {
1335
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
1336
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
1337
+ leadingWhitespace = matches && matches[0];
1338
+ }
1339
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
1340
+ // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
1341
+ dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
1342
+ }
1343
+ const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
1344
+ /*
1345
+ * Use the DOMParser API by default, fallback later if needs be
1346
+ * DOMParser not work for svg when has multiple root element.
1347
+ */
1348
+ if (NAMESPACE === HTML_NAMESPACE) {
1349
+ try {
1350
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
1351
+ } catch (_) {}
1352
+ }
1353
+ /* Use createHTMLDocument in case DOMParser is not available */
1354
+ if (!doc || !doc.documentElement) {
1355
+ doc = implementation.createDocument(NAMESPACE, 'template', null);
1356
+ try {
1357
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
1358
+ } catch (_) {
1359
+ // Syntax error if dirtyPayload is invalid xml
1360
+ }
1361
+ }
1362
+ const body = doc.body || doc.documentElement;
1363
+ if (dirty && leadingWhitespace) {
1364
+ body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1365
+ }
1366
+ /* Work on whole document or just its body */
1367
+ if (NAMESPACE === HTML_NAMESPACE) {
1368
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
1369
+ }
1370
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
1371
+ };
1372
+ /**
1373
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
1374
+ *
1375
+ * @param root The root element or node to start traversing on.
1376
+ * @return The created NodeIterator
1377
+ */
1378
+ const _createNodeIterator = function _createNodeIterator(root) {
1379
+ return createNodeIterator.call(root.ownerDocument || root, root,
1380
+ // eslint-disable-next-line no-bitwise
1381
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1382
+ };
1383
+ /**
1384
+ * Replace template expression syntax (mustache, ERB, template
1385
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
1386
+ * sites. Order matters: mustache, then ERB, then template literal.
1387
+ *
1388
+ * @param value the string to scrub
1389
+ * @returns the scrubbed string
1390
+ */
1391
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
1392
+ value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
1393
+ value = stringReplace(value, ERB_EXPR$1, ' ');
1394
+ value = stringReplace(value, TMPLIT_EXPR$1, ' ');
1395
+ return value;
1396
+ };
1397
+ /**
1398
+ * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
1399
+ * character data of an element subtree. Used as the final safety net for
1400
+ * SAFE_FOR_TEMPLATES on every DOM-returning code path so that expressions
1401
+ * which only form after text-node normalization (e.g. fragments split across
1402
+ * stripped elements) cannot survive into a template-evaluating framework.
1403
+ *
1404
+ * Walks text/comment/CDATA/processing-instruction nodes and mutates `.data`
1405
+ * in place rather than round-tripping through innerHTML. This preserves
1406
+ * descendant node references (important for IN_PLACE callers), avoids a
1407
+ * serialize/reparse cycle, and reads literal character data — which means
1408
+ * `<%...%>` in text content matches the ERB regex against its real bytes
1409
+ * instead of the HTML-entity-escaped form innerHTML would produce.
1410
+ *
1411
+ * Attribute values are not visited here; SAFE_FOR_TEMPLATES handling for
1412
+ * attributes is performed during the per-node `_sanitizeAttributes` pass.
1413
+ *
1414
+ * @param node The root element whose character data should be scrubbed.
1415
+ */
1416
+ const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1417
+ var _node$querySelectorAl;
1418
+ node.normalize();
1419
+ const walker = createNodeIterator.call(node.ownerDocument || node, node,
1420
+ // eslint-disable-next-line no-bitwise
1421
+ NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1422
+ let currentNode = walker.nextNode();
1423
+ while (currentNode) {
1424
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
1425
+ currentNode = walker.nextNode();
1426
+ }
1427
+ // NodeIterator does not descend into <template>.content per the DOM spec,
1428
+ // so we must explicitly recurse into each template's content fragment,
1429
+ // mirroring the approach used by _sanitizeShadowDOM.
1430
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, 'template');
1431
+ if (templates) {
1432
+ arrayForEach(templates, tmpl => {
1433
+ if (_isDocumentFragment(tmpl.content)) {
1434
+ _scrubTemplateExpressions2(tmpl.content);
1435
+ }
1436
+ });
1437
+ }
1438
+ };
1439
+ /**
1440
+ * _isClobbered
1441
+ *
1442
+ * Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
1443
+ * interface with [LegacyOverrideBuiltIns]; a descendant element with a
1444
+ * `name` attribute matching a prototype property shadows that property
1445
+ * on direct reads. We use this check at the IN_PLACE entry-point and
1446
+ * during attribute sanitization to refuse clobbered forms.
1447
+ *
1448
+ * @param element element to check for clobbering attacks
1449
+ * @return true if clobbered, false if safe
1450
+ */
1451
+ const _isClobbered = function _isClobbered(element) {
1452
+ // Realm-independent tag-name probe. If we can't determine the tag
1453
+ // name at all, we can't reason about clobbering — return false
1454
+ // (the caller's other defences still apply).
1455
+ const realTagName = getNodeName ? getNodeName(element) : null;
1456
+ if (typeof realTagName !== 'string') {
1457
+ return false;
1458
+ }
1459
+ if (transformCaseFunc(realTagName) !== 'form') {
1460
+ return false;
1461
+ }
1462
+ return typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' ||
1463
+ // Realm-safe NamedNodeMap detection: equality against the cached
1464
+ // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
1465
+ // makes the direct read diverge from the cached read; a clean form
1466
+ // (same-realm OR foreign-realm) has both reads pointing at the same
1467
+ // canonical NamedNodeMap.
1468
+ element.attributes !== getAttributes(element) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function' ||
1469
+ // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1470
+ // returns the integer 1 for any Element regardless of realm; direct
1471
+ // read on a clobbered form (e.g. <input name="nodeType">) returns
1472
+ // the named child element. Cheap addition — nodeType is read from
1473
+ // an internal slot, no serialization cost — and removes a residual
1474
+ // clobbering surface used by several mXSS / PI / comment branches
1475
+ // in _sanitizeElements that compare currentNode.nodeType directly.
1476
+ element.nodeType !== getNodeType(element) ||
1477
+ // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
1478
+ // "childNodes" shadows the prototype getter. Direct reads of
1479
+ // form.childNodes from a clobbered form return the named child
1480
+ // instead of the real NodeList, so any walk that reads it directly
1481
+ // skips the form's real children. Compare the direct read to the
1482
+ // cached Node.prototype getter — when the form's named-property
1483
+ // getter intercepts the read, the two values differ and we flag
1484
+ // the form. This catches every clobbering child type (input,
1485
+ // select, etc.) regardless of whether the named child happens to
1486
+ // carry a numeric .length, which a typeof-based probe would miss
1487
+ // (e.g. HTMLSelectElement.length is a defined unsigned-long).
1488
+ element.childNodes !== getChildNodes(element);
1489
+ };
1490
+ /**
1491
+ * Checks whether the given value is a DocumentFragment from any realm.
1492
+ *
1493
+ * The realm-independent replacement reads `nodeType` through the cached
1494
+ * Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
1495
+ * constant (11). nodeType is a numeric value resolved from the node's
1496
+ * internal slot, identical across realms for the same kind of node.
1497
+ *
1498
+ * @param value object to check
1499
+ * @return true if value is a DocumentFragment-shaped node from any realm
1500
+ */
1501
+ const _isDocumentFragment = function _isDocumentFragment(value) {
1502
+ if (!getNodeType || typeof value !== 'object' || value === null) {
1503
+ return false;
1504
+ }
1505
+ try {
1506
+ return getNodeType(value) === NODE_TYPE.documentFragment;
1507
+ } catch (_) {
1508
+ return false;
1509
+ }
1510
+ };
1511
+ /**
1512
+ * Checks whether the given object is a DOM node, including nodes that
1513
+ * originate from a different window/realm (e.g. an iframe's
1514
+ * contentDocument). The previous `value instanceof Node` check was
1515
+ * realm-bound: nodes from a different window failed it, causing
1516
+ * sanitize() to silently stringify them and reset IN_PLACE to false,
1517
+ * returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
1518
+ *
1519
+ * @param value object to check whether it's a DOM node
1520
+ * @return true if value is a DOM node from any realm
1521
+ */
1522
+ const _isNode = function _isNode(value) {
1523
+ if (!getNodeType || typeof value !== 'object' || value === null) {
1524
+ return false;
1525
+ }
1526
+ try {
1527
+ return typeof getNodeType(value) === 'number';
1528
+ } catch (_) {
1529
+ return false;
1530
+ }
1531
+ };
1532
+ function _executeHooks(hooks, currentNode, data) {
1533
+ if (hooks.length === 0) {
1534
+ return;
1535
+ }
1536
+ arrayForEach(hooks, hook => {
1537
+ hook.call(DOMPurify, currentNode, data, CONFIG);
1538
+ });
1539
+ }
1540
+ /**
1541
+ * Structural-threat checks that condemn a node regardless of the
1542
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
1543
+ * processing instructions, markup-bearing comments. Pure predicate;
1544
+ * the caller removes. Check order is load-bearing.
1545
+ *
1546
+ * @param currentNode the node to inspect
1547
+ * @param tagName the node's transformCaseFunc'd tag name
1548
+ * @return true if the node must be removed
1549
+ */
1550
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
1551
+ /* Detect mXSS attempts abusing namespace confusion */
1552
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
1553
+ return true;
1554
+ }
1555
+ /* Remove risky CSS construction leading to mXSS */
1556
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
1557
+ return true;
1558
+ }
1559
+ /* Remove any occurrence of processing instructions */
1560
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) {
1561
+ return true;
1562
+ }
1563
+ /* Remove any kind of possibly harmful comments */
1564
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) {
1565
+ return true;
1566
+ }
1567
+ return false;
1568
+ };
1569
+ /**
1570
+ * Handle a node whose tag is forbidden or not allowlisted: keep
1571
+ * allowed custom elements (false return exits _sanitizeElements
1572
+ * early - the namespace and fallback-tag removal checks are
1573
+ * intentionally skipped for kept custom elements), else hoist
1574
+ * content per KEEP_CONTENT and remove.
1575
+ *
1576
+ * A kept custom element is the ONLY case in which this function
1577
+ * returns false, so the caller uses that return value to run the
1578
+ * afterSanitizeElements hook on the kept element and keep the
1579
+ * element-hook lifecycle consistent with normal allowlisted
1580
+ * elements (GHSA-c2j3-45gr-mqc4).
1581
+ *
1582
+ * @param currentNode the disallowed node
1583
+ * @param tagName the node's transformCaseFunc'd tag name
1584
+ * @return true if the node was removed, false if kept
1585
+ */
1586
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
1587
+ /* Check if we have a custom element to handle */
1588
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1589
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1590
+ return false;
1591
+ }
1592
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1593
+ return false;
1594
+ }
1595
+ }
1596
+ /* Keep content except for bad-listed elements.
1597
+ Use the cached prototype getters exclusively — the previous code
1598
+ had `|| currentNode.parentNode` / `|| currentNode.childNodes`
1599
+ fallbacks, but the cached getters always return the canonical
1600
+ value (or null for a real parent-less node), so the fallback
1601
+ path was dead in safe cases and a clobbering surface in unsafe
1602
+ ones. Falsy cached results stay falsy; the `if (childNodes &&
1603
+ parentNode)` check already gates correctly. */
1604
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1605
+ const parentNode = getParentNode(currentNode);
1606
+ const childNodes = getChildNodes(currentNode);
1607
+ if (childNodes && parentNode) {
1608
+ const childCount = childNodes.length;
1609
+ /* In-place: hoist the *original* children so the iterator visits
1610
+ and sanitises them through the same allowlist pass as every other
1611
+ node. The caller built the tree in the live document, so the
1612
+ originals carry already-queued resource events (`<img onerror>`,
1613
+ `<video>`/`<audio>` error, lazy/`onload`, …); cloning would leave
1614
+ those originals detached but still armed, firing in page scope
1615
+ while the returned tree looked clean. Moving is safe in-place: the
1616
+ root is pre-validated as an allowed tag and so is never the node
1617
+ being removed, which keeps `parentNode` inside the iterator root
1618
+ and the relocated child inside the serialised tree.
1619
+ Otherwise (string / DOM-copy paths): clone. The iterator is rooted
1620
+ at — and the result serialised from — `body`, so a restrictive
1621
+ ALLOWED_TAGS that removes `body` itself must leave its content in
1622
+ place, which only cloning does; and those paths parse into an
1623
+ inert document, so their discarded originals never had a queued
1624
+ event to neutralise.
1625
+ `childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
1626
+ valid whether we move (drops the trailing entry) or clone (leaves
1627
+ the list intact). */
1628
+ for (let i = childCount - 1; i >= 0; --i) {
1629
+ const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
1630
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1631
+ }
1632
+ }
1633
+ }
1634
+ _forceRemove(currentNode);
1635
+ return true;
1636
+ };
1637
+ /**
1638
+ * _sanitizeElements
1639
+ *
1640
+ * @protect nodeName
1641
+ * @protect textContent
1642
+ * @protect removeChild
1643
+ * @param currentNode to check for permission to exist
1644
+ * @return true if node was killed, false if left alive
1645
+ */
1646
+ // eslint-disable-next-line complexity
1647
+ const _sanitizeElements = function _sanitizeElements(currentNode, root) {
1648
+ /* Execute a hook if present */
1649
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1650
+ /* A hook may have detached the node — treat it as removed (see the
1651
+ detached-node comment after the uponSanitizeElement hook below). */
1652
+ if (currentNode !== root && getParentNode(currentNode) === null) {
1653
+ return true;
1654
+ }
1655
+ /* Check if element is clobbered or can clobber */
1656
+ if (_isClobbered(currentNode)) {
1657
+ _forceRemove(currentNode);
1658
+ return true;
1659
+ }
1660
+ /* Now let's check the element's type and name */
1661
+ const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
1662
+ /* Execute a hook if present */
1663
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
1664
+ tagName,
1665
+ allowedTags: ALLOWED_TAGS
1666
+ });
1667
+ /* A hook may have detached the node from the tree — a long-standing
1668
+ user pattern (issue #469; draw.io-style foreignObject filtering).
1669
+ Per the cached, unclobberable parentNode getter the node is
1670
+ genuinely out of the tree, so it can reach neither the serialized
1671
+ output nor an IN_PLACE live tree; treat it as removed and stop
1672
+ processing it. Without this guard, the unsafe-node / namespace
1673
+ checks below would call _forceRemove on a parentless node and hit
1674
+ the REPORT-3 fail-closed throw — which exists for nodes DOMPurify
1675
+ wants gone but *cannot* detach (clobbered / parentless roots), the
1676
+ opposite of a node that is already safely gone. The walk root is
1677
+ exempt: a detached IN_PLACE root is legitimate input and must still
1678
+ be fully sanitized, and a kill-decision on it must keep hitting the
1679
+ REPORT-3 throw. Nodes detached by hooks are the hook's
1680
+ responsibility: they are not recorded in DOMPurify.removed and are
1681
+ not neutralized by the post-walk IN_PLACE pass. */
1682
+ if (currentNode !== root && getParentNode(currentNode) === null) {
1683
+ return true;
1684
+ }
1685
+ /* Remove mXSS vectors, processing instructions and risky comments */
1686
+ if (_isUnsafeNode(currentNode, tagName)) {
1687
+ _forceRemove(currentNode);
1688
+ return true;
1689
+ }
1690
+ /* Remove element if anything forbids its presence */
1691
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1692
+ const removed = _sanitizeDisallowedNode(currentNode, tagName);
1693
+ /* A false return means the node is a custom element kept via
1694
+ CUSTOM_ELEMENT_HANDLING - the only keep path through
1695
+ _sanitizeDisallowedNode. Run afterSanitizeElements on it so the
1696
+ element-hook lifecycle matches normal allowlisted elements: a
1697
+ security policy applied in this hook (e.g. stripping an attribute
1698
+ from every surviving element) must not silently skip kept custom
1699
+ elements (GHSA-c2j3-45gr-mqc4). This mirrors the normal-element
1700
+ tail below - the hook runs, then the walker's subsequent
1701
+ _sanitizeAttributes pass sanitizes the element's attributes. The
1702
+ deliberately skipped namespace and fallback-tag removal checks stay
1703
+ skipped; they are removal decisions, not the hook contract. */
1704
+ if (removed === false) {
1705
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1706
+ }
1707
+ return removed;
1708
+ }
1709
+ /* Check whether element has a valid namespace.
1710
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
1711
+ nodeType getter rather than `instanceof Element`, which is realm-
1712
+ bound and short-circuits to false for any node minted in a different
1713
+ realm — letting a foreign-realm element with a forbidden namespace
1714
+ slip past the namespace check entirely. */
1715
+ const nt = getNodeType ? getNodeType(currentNode) : currentNode.nodeType;
1716
+ if (nt === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
1717
+ _forceRemove(currentNode);
1718
+ return true;
1719
+ }
1720
+ /* Make sure that older browsers don't get fallback-tag mXSS */
1721
+ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
1722
+ _forceRemove(currentNode);
1723
+ return true;
1724
+ }
1725
+ /* Sanitize element content to be template-safe */
1726
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1727
+ /* Get the element's text content */
1728
+ const content = _stripTemplateExpressions(currentNode.textContent);
1729
+ if (currentNode.textContent !== content) {
1730
+ arrayPush(DOMPurify.removed, {
1731
+ element: currentNode.cloneNode()
1732
+ });
1733
+ currentNode.textContent = content;
1734
+ }
1735
+ }
1736
+ /* Execute a hook if present */
1737
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1738
+ return false;
1739
+ };
1740
+ /**
1741
+ * _isValidAttribute
1742
+ *
1743
+ * @param lcTag Lowercase tag name of containing element.
1744
+ * @param lcName Lowercase attribute name.
1745
+ * @param value Attribute value.
1746
+ * @return Returns true if `value` is valid, otherwise false.
1747
+ */
1748
+ // eslint-disable-next-line complexity
1749
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
1750
+ /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
1751
+ if (FORBID_ATTR[lcName]) {
1752
+ return false;
1753
+ }
1754
+ /* Reject declarative-partial-updates patch-linkage attributes
1755
+ (https://github.com/WICG/declarative-partial-updates).
1756
+ Empirical note (Chrome 150, verified — see
1757
+ test/declarative-patch-probe-v3.html): expansion is NOT applied after
1758
+ sanitization. For the string path it fires during sanitize()'s own
1759
+ parse, so the walk sees and sanitizes the fully materialized expanded
1760
+ tree — teleports into MathML/SVG integration points included; a
1761
+ weaponized `<template for>`->`<img onerror>` comes back with the handler
1762
+ stripped. For the IN_PLACE path it fires on connection, before the walk.
1763
+ Either way DOMPurify is NOT blind to the patch.
1764
+ This removal is therefore defense-in-depth rather than the sole barrier:
1765
+ it prevents live linkage from surviving into the OUTPUT and re-expanding
1766
+ in the caller's context, and keeps behaviour deterministic if a future
1767
+ engine defers expansion. `for` is legitimate only on <label>/<output>;
1768
+ anywhere else (notably <template for>) it links the element to a patch
1769
+ target and teleports or removes an arbitrary DOM range by id/marker name.
1770
+ `patchsrc` fetches remote markup and is treated as a script-loading
1771
+ mechanism (CSP). Gated on SAFE_FOR_XML so the removal groups with the
1772
+ other structural-threat checks and stays overridable, consistent with
1773
+ the rest of the codebase. PI range markers are already removed by
1774
+ _isUnsafeNode. */
1775
+ if (SAFE_FOR_XML && lcName === 'patchsrc') {
1776
+ return false;
1777
+ }
1778
+ if (SAFE_FOR_XML && lcName === 'for' && lcTag !== 'label' && lcTag !== 'output') {
1779
+ return false;
1780
+ }
1781
+ /* Make sure attribute cannot clobber */
1782
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
1783
+ return false;
1784
+ }
1785
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
1786
+ /* Allow valid data-* attributes: At least one character after "-"
1787
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
1788
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
1789
+ We don't need to check the value; it's always URI safe. */
1790
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!nameIsPermitted) {
1791
+ if (
1792
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1793
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1794
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1795
+ _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
1796
+ // Alternative, second condition checks if it's an `is`-attribute, AND
1797
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1798
+ lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
1799
+ return false;
1800
+ }
1801
+ /* Check value is safe. First, is attr inert? If so, is safe */
1802
+ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if (value) {
1803
+ return false;
1804
+ } else ;
1805
+ return true;
1806
+ };
1807
+ /* Names the HTML spec reserves from valid-custom-element-name; these must
1808
+ * never be treated as basic custom elements even when a permissive
1809
+ * CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
1810
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ['annotation-xml', 'color-profile', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'missing-glyph']);
1811
+ /**
1812
+ * _isBasicCustomElement
1813
+ * checks if at least one dash is included in tagName, and it's not the first char
1814
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
1815
+ *
1816
+ * @param tagName name of the tag of the node to sanitize
1817
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
1818
+ */
1819
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1820
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
1821
+ };
1822
+ /**
1823
+ * Wrap an attribute value in the matching Trusted Types object when
1824
+ * the active policy requires it. Namespaced attributes pass through
1825
+ * unchanged (no TT support yet, see
1826
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
1827
+ *
1828
+ * @param lcTag lowercase tag name of the containing element
1829
+ * @param lcName lowercase attribute name
1830
+ * @param namespaceURI the attribute's namespace, if any
1831
+ * @param value the attribute value to wrap
1832
+ * @return the value, wrapped when Trusted Types demand it
1833
+ */
1834
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
1835
+ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function' && !namespaceURI) {
1836
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1837
+ case 'TrustedHTML':
1838
+ {
1839
+ return _createTrustedHTML(value);
1840
+ }
1841
+ case 'TrustedScriptURL':
1842
+ {
1843
+ return _createTrustedScriptURL(value);
1844
+ }
1845
+ }
1846
+ }
1847
+ return value;
1848
+ };
1849
+ /**
1850
+ * Write a modified attribute value back onto the element. On
1851
+ * success, re-probe for clobbering introduced by the new value and
1852
+ * remove the element when found; otherwise pop the removal entry
1853
+ * recorded by the earlier _removeAttribute (long-standing pairing
1854
+ * with the SANITIZE_NAMED_PROPS path - do not "fix" casually). On
1855
+ * failure, remove the attribute instead.
1856
+ *
1857
+ * @param currentNode the element carrying the attribute
1858
+ * @param name the attribute name as present on the element
1859
+ * @param namespaceURI the attribute's namespace, if any
1860
+ * @param value the new attribute value
1861
+ */
1862
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
1863
+ try {
1864
+ if (namespaceURI) {
1865
+ currentNode.setAttributeNS(namespaceURI, name, value);
1866
+ } else {
1867
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1868
+ currentNode.setAttribute(name, value);
1869
+ }
1870
+ if (_isClobbered(currentNode)) {
1871
+ _forceRemove(currentNode);
1872
+ } else {
1873
+ arrayPop(DOMPurify.removed);
1874
+ }
1875
+ } catch (_) {
1876
+ _removeAttribute(name, currentNode);
1877
+ }
1878
+ };
1879
+ /**
1880
+ * _sanitizeAttributes
1881
+ *
1882
+ * @protect attributes
1883
+ * @protect nodeName
1884
+ * @protect removeAttribute
1885
+ * @protect setAttribute
1886
+ *
1887
+ * @param currentNode to sanitize
1888
+ */
1889
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
1890
+ /* Execute a hook if present */
1891
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1892
+ const attributes = currentNode.attributes;
1893
+ /* Check if we have attributes; if not we might have a text node */
1894
+ if (!attributes || _isClobbered(currentNode)) {
1895
+ return;
1896
+ }
1897
+ const hookEvent = {
1898
+ attrName: '',
1899
+ attrValue: '',
1900
+ keepAttr: true,
1901
+ allowedAttributes: ALLOWED_ATTR,
1902
+ forceKeepAttr: undefined
1903
+ };
1904
+ let l = attributes.length;
1905
+ const lcTag = transformCaseFunc(currentNode.nodeName);
1906
+ /* Go backwards over all attributes; safely remove bad ones */
1907
+ while (l--) {
1908
+ const attr = attributes[l];
1909
+ const name = attr.name,
1910
+ namespaceURI = attr.namespaceURI,
1911
+ attrValue = attr.value;
1912
+ const lcName = transformCaseFunc(name);
1913
+ const initValue = attrValue;
1914
+ let value = name === 'value' ? initValue : stringTrim(initValue);
1915
+ /* Execute a hook if present */
1916
+ hookEvent.attrName = lcName;
1917
+ hookEvent.attrValue = value;
1918
+ hookEvent.keepAttr = true;
1919
+ hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
1920
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
1921
+ value = hookEvent.attrValue;
1922
+ /* Full DOM Clobbering protection via namespace isolation,
1923
+ * Prefix id and name attributes with `user-content-`
1924
+ */
1925
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
1926
+ // Remove the attribute with this value
1927
+ _removeAttribute(name, currentNode);
1928
+ // Prefix the value and later re-create the attribute with the sanitized value
1929
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
1930
+ }
1931
+ // Else: already prefixed, leave the attribute alone — the prefix is
1932
+ // itself the clobbering protection, and re-applying it is incorrect.
1933
+ /* Work around a security issue with comments inside attributes */
1934
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
1935
+ _removeAttribute(name, currentNode);
1936
+ continue;
1937
+ }
1938
+ /* Make sure we cannot easily use animated hrefs, even if animations are allowed */
1939
+ if (lcName === 'attributename' && stringMatch(value, 'href')) {
1940
+ _removeAttribute(name, currentNode);
1941
+ continue;
1942
+ }
1943
+ /* Did the hooks force-keep the attribute? */
1944
+ if (hookEvent.forceKeepAttr) {
1945
+ continue;
1946
+ }
1947
+ /* Did the hooks approve of the attribute? */
1948
+ if (!hookEvent.keepAttr) {
1949
+ _removeAttribute(name, currentNode);
1950
+ continue;
1951
+ }
1952
+ /* Work around a security issue in jQuery 3.0 */
1953
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
1954
+ _removeAttribute(name, currentNode);
1955
+ continue;
1956
+ }
1957
+ /* Sanitize attribute content to be template-safe */
1958
+ if (SAFE_FOR_TEMPLATES) {
1959
+ value = _stripTemplateExpressions(value);
1960
+ }
1961
+ /* Is `value` valid for this attribute? */
1962
+ if (!_isValidAttribute(lcTag, lcName, value)) {
1963
+ _removeAttribute(name, currentNode);
1964
+ continue;
1965
+ }
1966
+ /* Handle attributes that require Trusted Types */
1967
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
1968
+ /* Handle invalid data-* attribute set by try-catching it */
1969
+ if (value !== initValue) {
1970
+ _setAttributeValue(currentNode, name, namespaceURI, value);
1971
+ }
1972
+ }
1973
+ /* Execute a hook if present */
1974
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
1975
+ };
1976
+ /**
1977
+ * _sanitizeShadowDOM
1978
+ *
1979
+ * @param fragment to iterate over recursively
1980
+ */
1981
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
1982
+ let shadowNode = null;
1983
+ const shadowIterator = _createNodeIterator(fragment);
1984
+ /* Execute a hook if present */
1985
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
1986
+ while (shadowNode = shadowIterator.nextNode()) {
1987
+ /* Execute a hook if present */
1988
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
1989
+ /* Sanitize tags and elements */
1990
+ _sanitizeElements(shadowNode, fragment);
1991
+ /* Check attributes next */
1992
+ _sanitizeAttributes(shadowNode);
1993
+ /* Deep shadow DOM detected.
1994
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): use nodeType against the
1995
+ DOCUMENT_FRAGMENT_NODE constant rather than instanceof, so we
1996
+ recurse into <template>.content from foreign realms too. */
1997
+ if (_isDocumentFragment(shadowNode.content)) {
1998
+ _sanitizeShadowDOM2(shadowNode.content);
1999
+ }
2000
+ /* An element iterated here may itself host an attached
2001
+ shadow root. The default NodeIterator does not enter shadow
2002
+ trees, so a shadow root nested inside template.content was
2003
+ previously reached by no walk at all (the pre-pass at
2004
+ _sanitizeAttachedShadowRoots descends via childNodes, which
2005
+ doesn't enter template.content; the template-content recursion
2006
+ above iterates the content but never inspected shadowRoot).
2007
+ Walk it explicitly. The nodeType guard avoids reading
2008
+ shadowRoot off text / comment / CDATA / PI nodes that the
2009
+ iterator also surfaces. */
2010
+ const shadowNodeType = getNodeType ? getNodeType(shadowNode) : shadowNode.nodeType;
2011
+ if (shadowNodeType === NODE_TYPE.element) {
2012
+ const innerSr = getShadowRoot(shadowNode);
2013
+ if (_isDocumentFragment(innerSr)) {
2014
+ _sanitizeAttachedShadowRoots(innerSr);
2015
+ _sanitizeShadowDOM2(innerSr);
2016
+ }
2017
+ }
2018
+ }
2019
+ /* Execute a hook if present */
2020
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
2021
+ };
2022
+ /**
2023
+ * _sanitizeAttachedShadowRoots
2024
+ *
2025
+ * Walks `root` and feeds every attached shadow root we encounter into
2026
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
2027
+ * does not descend into shadow trees, so nodes inside an attached
2028
+ * shadow root would otherwise be skipped entirely.
2029
+ *
2030
+ * Two real input paths put attached shadow roots in front of us:
2031
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
2032
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
2033
+ * shadow root because it was created with `clonable: true`.
2034
+ *
2035
+ * This pass runs once, up front, so the main iteration loop (and the
2036
+ * existing _sanitizeShadowDOM template-content recursion) stay
2037
+ * untouched — string-input paths are not affected.
2038
+ *
2039
+ * @param root the subtree root to walk for attached shadow roots
2040
+ */
2041
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
2042
+ /* Iterative (explicit stack) rather than per-child recursion. DOM APIs
2043
+ impose no depth cap, so an attacker-shaped tree (JSON/CRDT/editor data
2044
+ built straight into the DOM — the IN_PLACE surface) deeper than the JS
2045
+ call-stack budget would otherwise overflow native recursion here and
2046
+ throw at the IN_PLACE entry pre-pass, before a single node is
2047
+ sanitized, leaving the caller's live tree untouched (fail-open). See
2048
+ campaign-3 F4. A heap stack keeps depth off the call stack.
2049
+ Each work item is either a node to descend into, or a deferred
2050
+ `_sanitizeShadowDOM` for an already-walked shadow root. The deferred
2051
+ form preserves the original post-order discipline: a shadow root's
2052
+ nested shadow roots are discovered before the outer shadow is
2053
+ sanitized (which may remove hosts). Pushes are in reverse of the
2054
+ desired processing order (LIFO): template content, then children, then
2055
+ the shadow-sanitize, then the shadow walk — so the order matches the
2056
+ previous recursion exactly. */
2057
+ const stack = [{
2058
+ node: root,
2059
+ shadow: null
2060
+ }];
2061
+ while (stack.length > 0) {
2062
+ const item = stack.pop();
2063
+ /* Deferred shadow-DOM sanitisation: runs after its subtree was walked. */
2064
+ if (item.shadow) {
2065
+ _sanitizeShadowDOM2(item.shadow);
2066
+ continue;
2067
+ }
2068
+ const node = item.node;
2069
+ const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
2070
+ const isElement = nodeType === NODE_TYPE.element;
2071
+ /* (pushed last → processed first) Children, snapshotted in reverse so
2072
+ the first child is processed first. Snapshotting matters because a
2073
+ hook may detach siblings mid-walk. */
2074
+ const childNodes = getChildNodes(node);
2075
+ if (childNodes) {
2076
+ for (let i = childNodes.length - 1; i >= 0; --i) {
2077
+ stack.push({
2078
+ node: childNodes[i],
2079
+ shadow: null
2080
+ });
2081
+ }
2082
+ }
2083
+ /* (pushed before children → processed after them, matching the old
2084
+ "template content last" order) When the node is a <template>,
2085
+ descend into its content. */
2086
+ if (isElement) {
2087
+ const rootName = getNodeName ? getNodeName(node) : null;
2088
+ if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
2089
+ const content = node.content;
2090
+ if (_isDocumentFragment(content)) {
2091
+ stack.push({
2092
+ node: content,
2093
+ shadow: null
2094
+ });
2095
+ }
2096
+ }
2097
+ }
2098
+ /* Shadow root (processed first): walk its subtree, then sanitise it.
2099
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2100
+ rather than `instanceof DocumentFragment`, which is realm-bound and
2101
+ silently skipped foreign-realm shadow roots (e.g.
2102
+ iframe.contentDocument attachShadow). */
2103
+ if (isElement) {
2104
+ const sr = getShadowRoot(node);
2105
+ if (_isDocumentFragment(sr)) {
2106
+ /* Push the deferred sanitise first so it pops after the shadow
2107
+ walk we push next, i.e. nested shadow roots are discovered
2108
+ before this one is sanitised. */
2109
+ stack.push({
2110
+ node: null,
2111
+ shadow: sr
2112
+ }, {
2113
+ node: sr,
2114
+ shadow: null
2115
+ });
2116
+ }
2117
+ }
2118
+ }
2119
+ };
2120
+ // eslint-disable-next-line complexity
2121
+ DOMPurify.sanitize = function (dirty) {
2122
+ let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2123
+ let body = null;
2124
+ let importedNode = null;
2125
+ let currentNode = null;
2126
+ let returnNode = null;
2127
+ /* Make sure we have a string to sanitize.
2128
+ DO NOT return early, as this will return the wrong type if
2129
+ the user has requested a DOM object rather than a string */
2130
+ IS_EMPTY_INPUT = !dirty;
2131
+ if (IS_EMPTY_INPUT) {
2132
+ dirty = '<!-->';
2133
+ }
2134
+ /* Stringify, in case dirty is an object */
2135
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
2136
+ dirty = stringifyValue(dirty);
2137
+ if (typeof dirty !== 'string') {
2138
+ throw typeErrorCreate('dirty is not a string, aborting');
2139
+ }
2140
+ }
2141
+ /* Return dirty HTML if DOMPurify cannot run */
2142
+ if (!DOMPurify.isSupported) {
2143
+ return dirty;
2144
+ }
2145
+ /* Assign config vars */
2146
+ if (SET_CONFIG) {
2147
+ /* Persistent setConfig() path: _parseConfig is skipped, so the sets are
2148
+ * not re-derived per call. Restore them from the pristine bindings
2149
+ * captured at setConfig() time so a previous call's hook clone (mutated
2150
+ * below) does not carry over. */
2151
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
2152
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
2153
+ } else {
2154
+ _parseConfig(cfg);
2155
+ }
2156
+ /* Clone the hook-mutable allowlists before the walk whenever an
2157
+ * uponSanitize* hook is registered. The hook event exposes ALLOWED_TAGS
2158
+ * and ALLOWED_ATTR by reference (as allowedTags / allowedAttributes), so
2159
+ * a hook that widens them would otherwise mutate the shared set
2160
+ * permanently: across later calls and across every element. Cloning per
2161
+ * walk keeps documented in-call widening working while scoping it to the
2162
+ * call. A single guard for both config paths - the per-call path rebinds
2163
+ * the sets in _parseConfig each call, the persistent path restores them
2164
+ * from the captured bindings just above - so the two cannot diverge. */
2165
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) {
2166
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
2167
+ }
2168
+ if (hooks.uponSanitizeAttribute.length > 0) {
2169
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
2170
+ }
2171
+ /* Clean up removed elements */
2172
+ DOMPurify.removed = [];
2173
+ /* Resolve IN_PLACE for this call without mutating persistent config.
2174
+ Writing the IN_PLACE closure variable here leaks under setConfig(),
2175
+ where _parseConfig is skipped on later calls: a single string call would
2176
+ disable in-place mode for every subsequent node call, returning a
2177
+ sanitized copy while leaving the caller's node — which in-place callers
2178
+ keep using and whose return value they ignore — unsanitized. REPORT-2. */
2179
+ const inPlace = IN_PLACE && typeof dirty !== 'string' && _isNode(dirty);
2180
+ if (inPlace) {
2181
+ /* Declarative-partial-updates / streaming pre-pass: sever every patch
2182
+ linkage across the live tree BEFORE the walk, so no patch can fire
2183
+ mid-walk and inject into an already-processed region. Runs first, so
2184
+ it also covers the forbidden/clobbered roots that throw below. */
2185
+ _neutralizePatchLinkage(dirty);
2186
+ /* Do some early pre-sanitization to avoid unsafe root nodes.
2187
+ Read nodeName through the cached prototype getter — a clobbering
2188
+ child named "nodeName" on the form root would otherwise shadow
2189
+ the property and let this check skip the root-allowlist
2190
+ validation entirely. */
2191
+ const nn = getNodeName ? getNodeName(dirty) : dirty.nodeName;
2192
+ if (typeof nn === 'string') {
2193
+ const tagName = transformCaseFunc(nn);
2194
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2195
+ /* Fail closed on a live root: neutralize handlers/children before
2196
+ throwing, exactly as the mid-walk abort path does. */
2197
+ _neutralizeRoot(dirty);
2198
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
2199
+ }
2200
+ }
2201
+ /* Pre-flight the root through _isClobbered. The iterator-driven
2202
+ removal path can not detach a parent-less root: _forceRemove
2203
+ falls through to Element.prototype.remove(), which per spec
2204
+ is a no-op on a node with no parent. A clobbered root would
2205
+ then survive the main loop with its attributes uninspected,
2206
+ because _sanitizeAttributes early-returns on _isClobbered. The
2207
+ result would be an attacker-controlled form, complete with any
2208
+ event-handler attributes the caller passed in, handed back to
2209
+ the application unsanitized. Refuse to sanitize such a root
2210
+ the same way we refuse a forbidden tag. GHSA-r47g-fvhr-h676. */
2211
+ if (_isClobbered(dirty)) {
2212
+ /* Fail closed on a live clobbered root before throwing.
2213
+ _neutralizeRoot's reads are clobber-safe (cached getters); the
2214
+ form's non-clobbered descendants, e.g. an armed <img>, are scrubbed. */
2215
+ _neutralizeRoot(dirty);
2216
+ throw typeErrorCreate('root node is clobbered and cannot be sanitized in-place');
2217
+ }
2218
+ /* Sanitize attached shadow roots before the main iterator runs.
2219
+ The iterator does not descend into shadow trees. Same fail-closed
2220
+ barrier as the main walk (campaign-3 F2): a custom-element reaction
2221
+ inside a shadow root could abort this pre-pass before the walk runs,
2222
+ which would otherwise leave the entire live tree unsanitized. */
2223
+ try {
2224
+ _sanitizeAttachedShadowRoots(dirty);
2225
+ } catch (error) {
2226
+ _neutralizeRoot(dirty);
2227
+ throw error;
2228
+ }
2229
+ } else if (_isNode(dirty)) {
2230
+ /* If dirty is a DOM element, append to an empty document to avoid
2231
+ elements being stripped by the parser */
2232
+ body = _initDocument('<!---->');
2233
+ importedNode = body.ownerDocument.importNode(dirty, true);
2234
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
2235
+ /* Node is already a body, use as is */
2236
+ body = importedNode;
2237
+ } else if (importedNode.nodeName === 'HTML') {
2238
+ body = importedNode;
2239
+ } else {
2240
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
2241
+ body.appendChild(importedNode);
2242
+ }
2243
+ /* Clonable shadow roots are deep-cloned by importNode(); sanitize
2244
+ them before the main iterator runs, since the iterator does not
2245
+ descend into shadow trees. The walk routes every read through a
2246
+ cached prototype getter so clobbering descendants on a form root
2247
+ cannot hide a shadow host from this pass. */
2248
+ _sanitizeAttachedShadowRoots(importedNode);
2249
+ } else {
2250
+ /* Exit directly if we have nothing to do */
2251
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
2252
+ // eslint-disable-next-line unicorn/prefer-includes
2253
+ dirty.indexOf('<') === -1) {
2254
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
2255
+ }
2256
+ /* Initialize the document to work on */
2257
+ body = _initDocument(dirty);
2258
+ /* Check we have a DOM node from the data */
2259
+ if (!body) {
2260
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
2261
+ }
2262
+ }
2263
+ /* Remove first element node (ours) if FORCE_BODY is set */
2264
+ if (body && FORCE_BODY) {
2265
+ _forceRemove(body.firstChild);
2266
+ }
2267
+ /* Get node iterator */
2268
+ const walkRoot = inPlace ? dirty : body;
2269
+ const nodeIterator = _createNodeIterator(walkRoot);
2270
+ /* Now start iterating over the created document.
2271
+ The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
2272
+ engine/custom-element mutation can detach a node mid-walk so
2273
+ `_forceRemove`'s parentless guard throws, aborting the loop. Without the
2274
+ barrier the caller's in-place tree would be left half-sanitized with the
2275
+ unvisited tail still armed. On any throw we fail closed — strip the
2276
+ in-place root bare — then rethrow so the existing throw contract is
2277
+ preserved. (String/DOM-copy paths never return the partial body, so the
2278
+ propagating throw is already fail-closed there.) */
2279
+ try {
2280
+ while (currentNode = nodeIterator.nextNode()) {
2281
+ /* Sanitize tags and elements */
2282
+ _sanitizeElements(currentNode, walkRoot);
2283
+ /* Check attributes next */
2284
+ _sanitizeAttributes(currentNode);
2285
+ /* Shadow DOM detected, sanitize it.
2286
+ Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
2287
+ instead of instanceof, so foreign-realm <template>.content is
2288
+ walked correctly. */
2289
+ if (_isDocumentFragment(currentNode.content)) {
2290
+ _sanitizeShadowDOM2(currentNode.content);
2291
+ }
2292
+ }
2293
+ } catch (error) {
2294
+ if (inPlace) {
2295
+ _neutralizeRoot(dirty);
2296
+ /* Nodes _forceRemove'd earlier in the aborted walk are already
2297
+ detached from the root, so _neutralizeRoot's subtree pass does not
2298
+ reach them. Defuse them too, mirroring the success-path loop below. */
2299
+ arrayForEach(DOMPurify.removed, entry => {
2300
+ if (entry.element) {
2301
+ _neutralizeSubtree(entry.element);
2302
+ }
2303
+ });
2304
+ }
2305
+ throw error;
2306
+ }
2307
+ /* If we sanitized `dirty` in-place, return it. */
2308
+ if (inPlace) {
2309
+ /* Fail-closed completion of the audit-5 F1 fix: every node removed from
2310
+ the caller's live tree is detached but may still hold a queued
2311
+ resource-event handler that fires in page scope after we return. The
2312
+ move-hoist covers only disallowed-tag KEEP_CONTENT removals; strip the
2313
+ non-allow-listed attributes off every other removed subtree (clobber,
2314
+ mXSS, namespace, comments, KEEP_CONTENT:false, …) so those handlers are
2315
+ cancelled before any event can fire. Runs synchronously, pre-return. */
2316
+ arrayForEach(DOMPurify.removed, entry => {
2317
+ if (entry.element) {
2318
+ _neutralizeSubtree(entry.element);
2319
+ }
2320
+ });
2321
+ if (SAFE_FOR_TEMPLATES) {
2322
+ _scrubTemplateExpressions2(dirty);
2323
+ }
2324
+ return dirty;
2325
+ }
2326
+ /* Return sanitized string or DOM */
2327
+ if (RETURN_DOM) {
2328
+ if (SAFE_FOR_TEMPLATES) {
2329
+ _scrubTemplateExpressions2(body);
2330
+ }
2331
+ if (RETURN_DOM_FRAGMENT) {
2332
+ returnNode = createDocumentFragment.call(body.ownerDocument);
2333
+ while (body.firstChild) {
2334
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
2335
+ returnNode.appendChild(body.firstChild);
2336
+ }
2337
+ } else {
2338
+ returnNode = body;
2339
+ }
2340
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
2341
+ /*
2342
+ AdoptNode() is not used because internal state is not reset
2343
+ (e.g. the past names map of a HTMLFormElement), this is safe
2344
+ in theory but we would rather not risk another attack vector.
2345
+ The state that is cloned by importNode() is explicitly defined
2346
+ by the specs.
2347
+ */
2348
+ returnNode = importNode.call(originalDocument, returnNode, true);
2349
+ }
2350
+ return returnNode;
2351
+ }
2352
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
2353
+ /* Serialize doctype if allowed */
2354
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
2355
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
2356
+ }
2357
+ /* Sanitize final string template-safe */
2358
+ if (SAFE_FOR_TEMPLATES) {
2359
+ serializedHTML = _stripTemplateExpressions(serializedHTML);
2360
+ }
2361
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
2362
+ };
2363
+ DOMPurify.setConfig = function () {
2364
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2365
+ _parseConfig(cfg);
2366
+ SET_CONFIG = true;
2367
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
2368
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
2369
+ };
2370
+ DOMPurify.clearConfig = function () {
2371
+ CONFIG = null;
2372
+ SET_CONFIG = false;
2373
+ SET_CONFIG_ALLOWED_TAGS = null;
2374
+ SET_CONFIG_ALLOWED_ATTR = null;
2375
+ // Drop any caller-supplied Trusted Types policy so it cannot poison later
2376
+ // `RETURN_TRUSTED_TYPE` output. The internal default policy (cached, and
2377
+ // never recreated — Trusted Types throws on duplicate names) is restored by
2378
+ // the next `_parseConfig`. See GHSA-vxr8-fq34-vvx9.
2379
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2380
+ emptyHTML = '';
2381
+ };
2382
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
2383
+ /* Initialize shared config vars if necessary. */
2384
+ if (!CONFIG) {
2385
+ _parseConfig({});
2386
+ }
2387
+ const lcTag = transformCaseFunc(tag);
2388
+ const lcName = transformCaseFunc(attr);
2389
+ return _isValidAttribute(lcTag, lcName, value);
2390
+ };
2391
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
2392
+ if (typeof hookFunction !== 'function') {
2393
+ return;
2394
+ }
2395
+ /* Reject unknown entry points. Without this, a non-hook key (e.g.
2396
+ * '__proto__') indexes off the prototype chain rather than a real
2397
+ * hook array, and arrayPush then writes to Object.prototype. Guard
2398
+ * with an own-property check against the known hook names. */
2399
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2400
+ return;
2401
+ }
2402
+ arrayPush(hooks[entryPoint], hookFunction);
2403
+ };
2404
+ DOMPurify.removeHook = function (entryPoint, hookFunction) {
2405
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2406
+ return undefined;
2407
+ }
2408
+ if (hookFunction !== undefined) {
2409
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
2410
+ return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
2411
+ }
2412
+ return arrayPop(hooks[entryPoint]);
2413
+ };
2414
+ DOMPurify.removeHooks = function (entryPoint) {
2415
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
2416
+ return;
2417
+ }
2418
+ hooks[entryPoint] = [];
2419
+ };
2420
+ DOMPurify.removeAllHooks = function () {
2421
+ hooks = _createHooksMap();
2422
+ };
2423
+ return DOMPurify;
2424
+ }
2425
+ var purify = createDOMPurify();
2426
+
2427
+ return purify;
2428
+
2429
+ }));
2430
+ //# sourceMappingURL=purify.js.map
2431
+ });
2432
+
2433
+ exports.purify = purify;