atomicuilibrary 0.0.1

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 (1108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/dist/cjs/category-section.cjs.entry.js +30 -0
  4. package/dist/cjs/component-size-DsYFUZcz.js +29 -0
  5. package/dist/cjs/dom-oP1E4Rd3.js +267 -0
  6. package/dist/cjs/event-bus-B6M2f8CQ.js +23 -0
  7. package/dist/cjs/exploration-project-tailwind.cjs.js +24 -0
  8. package/dist/cjs/focus-trap-i9T6oXLc.js +139 -0
  9. package/dist/cjs/index-ClkOYpT8.js +2275 -0
  10. package/dist/cjs/index.cjs.js +260 -0
  11. package/dist/cjs/layout-manager.cjs.entry.js +616 -0
  12. package/dist/cjs/library-card.cjs.entry.js +63 -0
  13. package/dist/cjs/lm-container_2.cjs.entry.js +79 -0
  14. package/dist/cjs/lm-panel_3.cjs.entry.js +108 -0
  15. package/dist/cjs/loader.cjs.js +12 -0
  16. package/dist/cjs/my-component.cjs.entry.js +33 -0
  17. package/dist/cjs/my-step.cjs.entry.js +29 -0
  18. package/dist/cjs/nav-bar.cjs.entry.js +247 -0
  19. package/dist/cjs/security-E1JcwxGc.js +1547 -0
  20. package/dist/cjs/smart-step.cjs.entry.js +47 -0
  21. package/dist/cjs/timeline-item.cjs.entry.js +29 -0
  22. package/dist/cjs/ui-accordion_10.cjs.entry.js +5733 -0
  23. package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2684 -0
  24. package/dist/cjs/ui-anchor.cjs.entry.js +558 -0
  25. package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +285 -0
  26. package/dist/cjs/ui-aside-panel.cjs.entry.js +638 -0
  27. package/dist/cjs/ui-avatar-group_3.cjs.entry.js +634 -0
  28. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +56 -0
  29. package/dist/cjs/ui-breadcrumb.cjs.entry.js +201 -0
  30. package/dist/cjs/ui-callout-banner.cjs.entry.js +291 -0
  31. package/dist/cjs/ui-card.cjs.entry.js +411 -0
  32. package/dist/cjs/ui-carousel.cjs.entry.js +547 -0
  33. package/dist/cjs/ui-checkbox-group.cjs.entry.js +330 -0
  34. package/dist/cjs/ui-checkbox.cjs.entry.js +260 -0
  35. package/dist/cjs/ui-code-editor.cjs.entry.js +961 -0
  36. package/dist/cjs/ui-code-preview.cjs.entry.js +315 -0
  37. package/dist/cjs/ui-color-controller.cjs.entry.js +150 -0
  38. package/dist/cjs/ui-color-picker.cjs.entry.js +658 -0
  39. package/dist/cjs/ui-command-palette.cjs.entry.js +178 -0
  40. package/dist/cjs/ui-dialog-box.cjs.entry.js +1808 -0
  41. package/dist/cjs/ui-dialog-content.cjs.entry.js +31 -0
  42. package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +193 -0
  43. package/dist/cjs/ui-divider.cjs.entry.js +481 -0
  44. package/dist/cjs/ui-dock-host.cjs.entry.js +128 -0
  45. package/dist/cjs/ui-dock.cjs.entry.js +221 -0
  46. package/dist/cjs/ui-drag-drop.cjs.entry.js +172 -0
  47. package/dist/cjs/ui-dropdown_2.cjs.entry.js +1552 -0
  48. package/dist/cjs/ui-empty-state.cjs.entry.js +398 -0
  49. package/dist/cjs/ui-fab-item.cjs.entry.js +39 -0
  50. package/dist/cjs/ui-fab.cjs.entry.js +277 -0
  51. package/dist/cjs/ui-file-upload.cjs.entry.js +418 -0
  52. package/dist/cjs/ui-horizontal-nav.cjs.entry.js +135 -0
  53. package/dist/cjs/ui-image-button.cjs.entry.js +67 -0
  54. package/dist/cjs/ui-input-pair.cjs.entry.js +44 -0
  55. package/dist/cjs/ui-knob.cjs.entry.js +447 -0
  56. package/dist/cjs/ui-library.cjs.entry.js +134 -0
  57. package/dist/cjs/ui-list-group_2.cjs.entry.js +586 -0
  58. package/dist/cjs/ui-list.cjs.entry.js +732 -0
  59. package/dist/cjs/ui-masonry.cjs.entry.js +478 -0
  60. package/dist/cjs/ui-meter-group.cjs.entry.js +173 -0
  61. package/dist/cjs/ui-navigation-item.cjs.entry.js +104 -0
  62. package/dist/cjs/ui-number-input.cjs.entry.js +191 -0
  63. package/dist/cjs/ui-otp-input.cjs.entry.js +246 -0
  64. package/dist/cjs/ui-pagination_3.cjs.entry.js +1621 -0
  65. package/dist/cjs/ui-panel.cjs.entry.js +614 -0
  66. package/dist/cjs/ui-pattern-input.cjs.entry.js +278 -0
  67. package/dist/cjs/ui-popover.cjs.entry.js +517 -0
  68. package/dist/cjs/ui-progress.cjs.entry.js +516 -0
  69. package/dist/cjs/ui-radio-group.cjs.entry.js +205 -0
  70. package/dist/cjs/ui-radio.cjs.entry.js +206 -0
  71. package/dist/cjs/ui-range-slider.cjs.entry.js +637 -0
  72. package/dist/cjs/ui-resizable-panel.cjs.entry.js +484 -0
  73. package/dist/cjs/ui-scroll-top.cjs.entry.js +459 -0
  74. package/dist/cjs/ui-smart-context-menu.cjs.entry.js +376 -0
  75. package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +565 -0
  76. package/dist/cjs/ui-smart-stepper.cjs.entry.js +137 -0
  77. package/dist/cjs/ui-snackbar.cjs.entry.js +863 -0
  78. package/dist/cjs/ui-speed-dial.cjs.entry.js +520 -0
  79. package/dist/cjs/ui-speedometer.cjs.entry.js +428 -0
  80. package/dist/cjs/ui-splitter.cjs.entry.js +282 -0
  81. package/dist/cjs/ui-step.cjs.entry.js +30 -0
  82. package/dist/cjs/ui-stepper.cjs.entry.js +640 -0
  83. package/dist/cjs/ui-switch.cjs.entry.js +405 -0
  84. package/dist/cjs/ui-tabs.cjs.entry.js +703 -0
  85. package/dist/cjs/ui-tag.cjs.entry.js +299 -0
  86. package/dist/cjs/ui-timeline.cjs.entry.js +267 -0
  87. package/dist/cjs/ui-timer.cjs.entry.js +502 -0
  88. package/dist/cjs/ui-toolbar.cjs.entry.js +619 -0
  89. package/dist/cjs/ui-tooltip.cjs.entry.js +697 -0
  90. package/dist/cjs/ui-top-bar.cjs.entry.js +121 -0
  91. package/dist/cjs/ui-transfer-list.cjs.entry.js +592 -0
  92. package/dist/cjs/ui-tree.cjs.entry.js +874 -0
  93. package/dist/cjs/ui-workspace-manager.cjs.entry.js +1201 -0
  94. package/dist/cjs/utils-DVZ6gul6.js +26 -0
  95. package/dist/collection/assets/js/component-config.js +41 -0
  96. package/dist/collection/assets/js/demo-loader.js +147 -0
  97. package/dist/collection/assets/js/demo-nav.js +273 -0
  98. package/dist/collection/assets/js/demos/about-demo.js +60 -0
  99. package/dist/collection/assets/js/demos/accordion-demo.js +1954 -0
  100. package/dist/collection/assets/js/demos/advanced-data-table-demo.js +2952 -0
  101. package/dist/collection/assets/js/demos/anchor-demo.js +527 -0
  102. package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +174 -0
  103. package/dist/collection/assets/js/demos/aside-panel-demo.js +1109 -0
  104. package/dist/collection/assets/js/demos/avatar-demo.js +508 -0
  105. package/dist/collection/assets/js/demos/badge-demo.js +620 -0
  106. package/dist/collection/assets/js/demos/breadcrumb-demo.js +365 -0
  107. package/dist/collection/assets/js/demos/button-demo.js +1223 -0
  108. package/dist/collection/assets/js/demos/button-toggle-demo.js +978 -0
  109. package/dist/collection/assets/js/demos/callout-banner-demo.js +366 -0
  110. package/dist/collection/assets/js/demos/card-demo.js +427 -0
  111. package/dist/collection/assets/js/demos/carousel-demo.js +360 -0
  112. package/dist/collection/assets/js/demos/checkbox-demo.js +489 -0
  113. package/dist/collection/assets/js/demos/code-preview-demo.js +216 -0
  114. package/dist/collection/assets/js/demos/color-picker-demo.js +117 -0
  115. package/dist/collection/assets/js/demos/command-palette-demo.js +105 -0
  116. package/dist/collection/assets/js/demos/complex-form-demo.js +45 -0
  117. package/dist/collection/assets/js/demos/context-menu-data.js +436 -0
  118. package/dist/collection/assets/js/demos/context-menu-demo.js +829 -0
  119. package/dist/collection/assets/js/demos/dashboard-demo.js +5 -0
  120. package/dist/collection/assets/js/demos/dialog-demo-temp.js +411 -0
  121. package/dist/collection/assets/js/demos/dialog-demo.js +2567 -0
  122. package/dist/collection/assets/js/demos/divider-demo.js +853 -0
  123. package/dist/collection/assets/js/demos/dock-demo.js +422 -0
  124. package/dist/collection/assets/js/demos/dock-host-init.js +117 -0
  125. package/dist/collection/assets/js/demos/dock-host-playground.js +59 -0
  126. package/dist/collection/assets/js/demos/documentation-demo.js +34 -0
  127. package/dist/collection/assets/js/demos/drag-drop-demo.js +132 -0
  128. package/dist/collection/assets/js/demos/dropdown-demo.js +1410 -0
  129. package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +18 -0
  130. package/dist/collection/assets/js/demos/empty-state-demo.js +580 -0
  131. package/dist/collection/assets/js/demos/fab-demo.js +374 -0
  132. package/dist/collection/assets/js/demos/file-upload-demo.js +171 -0
  133. package/dist/collection/assets/js/demos/home-components.js +750 -0
  134. package/dist/collection/assets/js/demos/home-demo.js +441 -0
  135. package/dist/collection/assets/js/demos/horizontal-nav-demo.js +277 -0
  136. package/dist/collection/assets/js/demos/icon-demo.js +380 -0
  137. package/dist/collection/assets/js/demos/input-demo.js +1932 -0
  138. package/dist/collection/assets/js/demos/knob-demo.js +570 -0
  139. package/dist/collection/assets/js/demos/layout-manager-demo.js +918 -0
  140. package/dist/collection/assets/js/demos/list-demo.js +1402 -0
  141. package/dist/collection/assets/js/demos/loader-demo.js +453 -0
  142. package/dist/collection/assets/js/demos/meter-group-demo.js +499 -0
  143. package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +924 -0
  144. package/dist/collection/assets/js/demos/my-profile-demo.js +237 -0
  145. package/dist/collection/assets/js/demos/nav-bar-demo.js +187 -0
  146. package/dist/collection/assets/js/demos/number-input-demo.js +242 -0
  147. package/dist/collection/assets/js/demos/overview-demo.js +11 -0
  148. package/dist/collection/assets/js/demos/pagination-demo.js +1042 -0
  149. package/dist/collection/assets/js/demos/panel-demo.js +789 -0
  150. package/dist/collection/assets/js/demos/pattern-input-demo.js +241 -0
  151. package/dist/collection/assets/js/demos/popover-demo.js +882 -0
  152. package/dist/collection/assets/js/demos/progress-demo.js +462 -0
  153. package/dist/collection/assets/js/demos/radio-demo.js +413 -0
  154. package/dist/collection/assets/js/demos/range-slider-demo.js +1217 -0
  155. package/dist/collection/assets/js/demos/rating-demo.js +383 -0
  156. package/dist/collection/assets/js/demos/scroll-top-demo.js +353 -0
  157. package/dist/collection/assets/js/demos/skeleton-demo.js +490 -0
  158. package/dist/collection/assets/js/demos/skeleton-performance-demo.js +26 -0
  159. package/dist/collection/assets/js/demos/smart-dialog-demo.js +552 -0
  160. package/dist/collection/assets/js/demos/smart-menu-demo.js +375 -0
  161. package/dist/collection/assets/js/demos/smart-stepper-demo.js +50 -0
  162. package/dist/collection/assets/js/demos/snackbar-demo.js +1040 -0
  163. package/dist/collection/assets/js/demos/speed-dial-demo.js +764 -0
  164. package/dist/collection/assets/js/demos/speedometer-demo.js +425 -0
  165. package/dist/collection/assets/js/demos/split-button-demo.js +201 -0
  166. package/dist/collection/assets/js/demos/stack-demo.js +228 -0
  167. package/dist/collection/assets/js/demos/stepper-demo.js +798 -0
  168. package/dist/collection/assets/js/demos/switch-demo.js +849 -0
  169. package/dist/collection/assets/js/demos/tabs-demo.js +1032 -0
  170. package/dist/collection/assets/js/demos/tag-demo.js +842 -0
  171. package/dist/collection/assets/js/demos/theme-selector-demo.js +466 -0
  172. package/dist/collection/assets/js/demos/timeline-demo.js +365 -0
  173. package/dist/collection/assets/js/demos/timeline-playground.js +59 -0
  174. package/dist/collection/assets/js/demos/timer-demo.js +313 -0
  175. package/dist/collection/assets/js/demos/toolbar-demo.js +643 -0
  176. package/dist/collection/assets/js/demos/tooltip-demo.js +730 -0
  177. package/dist/collection/assets/js/demos/top-bar-demo.js +417 -0
  178. package/dist/collection/assets/js/demos/transfer-list-demo.js +555 -0
  179. package/dist/collection/assets/js/demos/tree-demo.js +693 -0
  180. package/dist/collection/assets/js/demos/workspace-manager-demo.js +241 -0
  181. package/dist/collection/assets/js/index-boot.js +104 -0
  182. package/dist/collection/assets/js/nav-bar-demo.js +20 -0
  183. package/dist/collection/assets/js/nav-bar-init.js +119 -0
  184. package/dist/collection/assets/js/utils/layout-loader.js +80 -0
  185. package/dist/collection/collection-manifest.json +113 -0
  186. package/dist/collection/components/accordion/accordion.css +2090 -0
  187. package/dist/collection/components/accordion/accordion.js +2955 -0
  188. package/dist/collection/components/accordion/types.js +1 -0
  189. package/dist/collection/components/advanced-data-table/advanced-data-table.css +2606 -0
  190. package/dist/collection/components/advanced-data-table/advanced-data-table.js +5394 -0
  191. package/dist/collection/components/advanced-data-table/types.js +1 -0
  192. package/dist/collection/components/anchor/anchor.css +395 -0
  193. package/dist/collection/components/anchor/anchor.js +1404 -0
  194. package/dist/collection/components/anchor/types.js +1 -0
  195. package/dist/collection/components/animate-on-scroll/animate-on-scroll.css +804 -0
  196. package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +696 -0
  197. package/dist/collection/components/aside-panel/aside-panel.css +472 -0
  198. package/dist/collection/components/aside-panel/aside-panel.js +1697 -0
  199. package/dist/collection/components/avatar/avatar.css +696 -0
  200. package/dist/collection/components/avatar/avatar.js +2007 -0
  201. package/dist/collection/components/avatar/types.js +1 -0
  202. package/dist/collection/components/avatar-group/avatar-group.css +253 -0
  203. package/dist/collection/components/avatar-group/avatar-group.js +405 -0
  204. package/dist/collection/components/avatar-group/types.js +1 -0
  205. package/dist/collection/components/badge/badge.css +580 -0
  206. package/dist/collection/components/badge/badge.js +723 -0
  207. package/dist/collection/components/badge/types.js +1 -0
  208. package/dist/collection/components/breadcrumb/breadcrumb-item.js +231 -0
  209. package/dist/collection/components/breadcrumb/breadcrumb.css +313 -0
  210. package/dist/collection/components/breadcrumb/breadcrumb.js +510 -0
  211. package/dist/collection/components/breadcrumb/types.js +1 -0
  212. package/dist/collection/components/button/button.css +1862 -0
  213. package/dist/collection/components/button/button.js +1380 -0
  214. package/dist/collection/components/button/types.js +1 -0
  215. package/dist/collection/components/button-toggle/button-toggle.css +97 -0
  216. package/dist/collection/components/button-toggle/button-toggle.js +620 -0
  217. package/dist/collection/components/button-toggle-group/button-toggle-group.css +401 -0
  218. package/dist/collection/components/button-toggle-group/button-toggle-group.js +1572 -0
  219. package/dist/collection/components/button-toggle-group/types.js +1 -0
  220. package/dist/collection/components/callout-banner/callout-banner.css +684 -0
  221. package/dist/collection/components/callout-banner/callout-banner.js +1076 -0
  222. package/dist/collection/components/callout-banner/types.js +1 -0
  223. package/dist/collection/components/card/card.css +663 -0
  224. package/dist/collection/components/card/card.js +1697 -0
  225. package/dist/collection/components/card/types.js +1 -0
  226. package/dist/collection/components/carousel/carousel.css +549 -0
  227. package/dist/collection/components/carousel/carousel.js +1512 -0
  228. package/dist/collection/components/carousel/types.js +1 -0
  229. package/dist/collection/components/checkbox/checkbox.css +863 -0
  230. package/dist/collection/components/checkbox/checkbox.js +1201 -0
  231. package/dist/collection/components/checkbox/types.js +1 -0
  232. package/dist/collection/components/checkbox-group/checkbox-group.css +223 -0
  233. package/dist/collection/components/checkbox-group/checkbox-group.js +1001 -0
  234. package/dist/collection/components/checkbox-group/types.js +1 -0
  235. package/dist/collection/components/code-editor/code-editor.css +1081 -0
  236. package/dist/collection/components/code-editor/code-editor.js +1211 -0
  237. package/dist/collection/components/code-editor/types.js +1 -0
  238. package/dist/collection/components/code-preview/types.js +1 -0
  239. package/dist/collection/components/code-preview/ui-code-preview.css +209 -0
  240. package/dist/collection/components/code-preview/ui-code-preview.js +548 -0
  241. package/dist/collection/components/color-controller/color-controller.css +108 -0
  242. package/dist/collection/components/color-controller/color-controller.js +224 -0
  243. package/dist/collection/components/color-picker/color-picker.css +323 -0
  244. package/dist/collection/components/color-picker/color-picker.js +1139 -0
  245. package/dist/collection/components/color-picker/types.js +1 -0
  246. package/dist/collection/components/command-palette/command-palette.css +260 -0
  247. package/dist/collection/components/command-palette/command-palette.js +429 -0
  248. package/dist/collection/components/command-palette/types.js +1 -0
  249. package/dist/collection/components/context-menu/context-menu.css +388 -0
  250. package/dist/collection/components/context-menu/context-menu.js +1412 -0
  251. package/dist/collection/components/context-menu/types.js +1 -0
  252. package/dist/collection/components/dialog-box/dialog-box.css +1261 -0
  253. package/dist/collection/components/dialog-box/dialog-box.js +4314 -0
  254. package/dist/collection/components/dialog-box/dialog-tray.css +268 -0
  255. package/dist/collection/components/dialog-box/types.js +1 -0
  256. package/dist/collection/components/dialog-content/dialog-content.css +83 -0
  257. package/dist/collection/components/dialog-content/dialog-content.js +96 -0
  258. package/dist/collection/components/dialog-footer/dialog-footer.css +89 -0
  259. package/dist/collection/components/dialog-footer/dialog-footer.js +94 -0
  260. package/dist/collection/components/dialog-footer/types.js +1 -0
  261. package/dist/collection/components/dialog-header/dialog-header.css +203 -0
  262. package/dist/collection/components/dialog-header/dialog-header.js +630 -0
  263. package/dist/collection/components/dialog-header/types.js +1 -0
  264. package/dist/collection/components/divider/divider.css +948 -0
  265. package/dist/collection/components/divider/divider.js +1612 -0
  266. package/dist/collection/components/divider/types.js +1 -0
  267. package/dist/collection/components/dock/dock.css +348 -0
  268. package/dist/collection/components/dock/dock.js +464 -0
  269. package/dist/collection/components/dock/types.js +1 -0
  270. package/dist/collection/components/dock-host/index.js +1 -0
  271. package/dist/collection/components/dock-host/types.js +1 -0
  272. package/dist/collection/components/dock-host/ui-dock-host.css +155 -0
  273. package/dist/collection/components/dock-host/ui-dock-host.js +226 -0
  274. package/dist/collection/components/drag-drop/drag-drop.css +103 -0
  275. package/dist/collection/components/drag-drop/drag-drop.js +385 -0
  276. package/dist/collection/components/drag-drop/types.js +1 -0
  277. package/dist/collection/components/dropdown/dropdown.css +1142 -0
  278. package/dist/collection/components/dropdown/dropdown.js +2033 -0
  279. package/dist/collection/components/dropdown/types.js +1 -0
  280. package/dist/collection/components/empty-state/empty-state.css +712 -0
  281. package/dist/collection/components/empty-state/empty-state.js +1256 -0
  282. package/dist/collection/components/empty-state/types.js +1 -0
  283. package/dist/collection/components/fab/fab.css +601 -0
  284. package/dist/collection/components/fab/fab.js +1124 -0
  285. package/dist/collection/components/fab-item/fab-item.css +107 -0
  286. package/dist/collection/components/fab-item/fab-item.js +177 -0
  287. package/dist/collection/components/fab-item/types.js +1 -0
  288. package/dist/collection/components/file-upload/file-upload.css +243 -0
  289. package/dist/collection/components/file-upload/file-upload.js +1022 -0
  290. package/dist/collection/components/file-upload/types.js +1 -0
  291. package/dist/collection/components/horizontal-nav/horizontal-nav.css +394 -0
  292. package/dist/collection/components/horizontal-nav/horizontal-nav.js +375 -0
  293. package/dist/collection/components/icon/icon.css +113 -0
  294. package/dist/collection/components/icon/icon.js +583 -0
  295. package/dist/collection/components/image-button/image-button.css +154 -0
  296. package/dist/collection/components/image-button/image-button.js +310 -0
  297. package/dist/collection/components/image-button/types.js +1 -0
  298. package/dist/collection/components/input/input.css +1544 -0
  299. package/dist/collection/components/input/input.js +3690 -0
  300. package/dist/collection/components/input/types.js +1 -0
  301. package/dist/collection/components/input-pair/input-pair.css +72 -0
  302. package/dist/collection/components/input-pair/input-pair.js +309 -0
  303. package/dist/collection/components/knob/knob.css +162 -0
  304. package/dist/collection/components/knob/knob.js +986 -0
  305. package/dist/collection/components/knob/types.js +1 -0
  306. package/dist/collection/components/layout-manager/layout-manager.css +41 -0
  307. package/dist/collection/components/layout-manager/layout-manager.js +525 -0
  308. package/dist/collection/components/layout-manager/lm-container/lm-container.css +117 -0
  309. package/dist/collection/components/layout-manager/lm-container/lm-container.js +110 -0
  310. package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.css +0 -0
  311. package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +49 -0
  312. package/dist/collection/components/layout-manager/lm-panel/lm-panel.css +97 -0
  313. package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +58 -0
  314. package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.css +57 -0
  315. package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +120 -0
  316. package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.css +149 -0
  317. package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +130 -0
  318. package/dist/collection/components/layout-manager/types.js +1 -0
  319. package/dist/collection/components/library/category-section.css +147 -0
  320. package/dist/collection/components/library/category-section.js +139 -0
  321. package/dist/collection/components/library/data.js +74 -0
  322. package/dist/collection/components/library/library-card.css +181 -0
  323. package/dist/collection/components/library/library-card.js +203 -0
  324. package/dist/collection/components/library/library.css +358 -0
  325. package/dist/collection/components/library/library.js +91 -0
  326. package/dist/collection/components/list/list.css +1029 -0
  327. package/dist/collection/components/list/list.js +2167 -0
  328. package/dist/collection/components/list-group/list-group.css +275 -0
  329. package/dist/collection/components/list-group/list-group.js +356 -0
  330. package/dist/collection/components/list-item/list-item.css +1491 -0
  331. package/dist/collection/components/list-item/list-item.js +2184 -0
  332. package/dist/collection/components/masonry/masonry.css +414 -0
  333. package/dist/collection/components/masonry/masonry.js +1104 -0
  334. package/dist/collection/components/masonry/types.js +1 -0
  335. package/dist/collection/components/meter-group/meter-group.css +184 -0
  336. package/dist/collection/components/meter-group/meter-group.js +471 -0
  337. package/dist/collection/components/meter-group/types.js +1 -0
  338. package/dist/collection/components/my-component/my-component.css +27 -0
  339. package/dist/collection/components/my-component/my-component.js +95 -0
  340. package/dist/collection/components/my-step/my-step.css +25 -0
  341. package/dist/collection/components/my-step/my-step.js +237 -0
  342. package/dist/collection/components/nav-bar/nav-bar.css +448 -0
  343. package/dist/collection/components/nav-bar/nav-bar.js +608 -0
  344. package/dist/collection/components/number-input/number-input.css +200 -0
  345. package/dist/collection/components/number-input/number-input.js +695 -0
  346. package/dist/collection/components/otp-input/otp-input.css +243 -0
  347. package/dist/collection/components/otp-input/otp-input.js +761 -0
  348. package/dist/collection/components/otp-input/types.js +1 -0
  349. package/dist/collection/components/pagination/pagination.css +1399 -0
  350. package/dist/collection/components/pagination/pagination.js +2033 -0
  351. package/dist/collection/components/pagination/types.js +1 -0
  352. package/dist/collection/components/panel/panel.css +837 -0
  353. package/dist/collection/components/panel/panel.js +1842 -0
  354. package/dist/collection/components/panel/types.js +1 -0
  355. package/dist/collection/components/pattern-input/pattern-input.css +252 -0
  356. package/dist/collection/components/pattern-input/pattern-input.js +788 -0
  357. package/dist/collection/components/popover/popover.css +399 -0
  358. package/dist/collection/components/popover/popover.js +1449 -0
  359. package/dist/collection/components/popover/types.js +1 -0
  360. package/dist/collection/components/progress/progress.css +588 -0
  361. package/dist/collection/components/progress/progress.js +1414 -0
  362. package/dist/collection/components/progress/types.js +1 -0
  363. package/dist/collection/components/radio/radio.css +773 -0
  364. package/dist/collection/components/radio/radio.js +1059 -0
  365. package/dist/collection/components/radio/types.js +1 -0
  366. package/dist/collection/components/radio-group/radio-group.css +202 -0
  367. package/dist/collection/components/radio-group/radio-group.js +903 -0
  368. package/dist/collection/components/radio-group/types.js +1 -0
  369. package/dist/collection/components/range-slider/range-slider.css +602 -0
  370. package/dist/collection/components/range-slider/range-slider.js +1369 -0
  371. package/dist/collection/components/range-slider/types.js +1 -0
  372. package/dist/collection/components/rating/rating.css +768 -0
  373. package/dist/collection/components/rating/rating.js +1062 -0
  374. package/dist/collection/components/rating/types.js +1 -0
  375. package/dist/collection/components/resizable-panel/resizable-panel.css +247 -0
  376. package/dist/collection/components/resizable-panel/resizable-panel.js +874 -0
  377. package/dist/collection/components/resizable-panel/types.js +1 -0
  378. package/dist/collection/components/scroll-top/scroll-top.css +397 -0
  379. package/dist/collection/components/scroll-top/scroll-top.js +1178 -0
  380. package/dist/collection/components/scroll-top/types.js +1 -0
  381. package/dist/collection/components/skeleton/skeleton-loader.css +429 -0
  382. package/dist/collection/components/skeleton/skeleton-loader.js +1193 -0
  383. package/dist/collection/components/skeleton/types.js +1 -0
  384. package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +357 -0
  385. package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +1190 -0
  386. package/dist/collection/components/smart-location-dropdown/types.js +1 -0
  387. package/dist/collection/components/smart-menu/menu-item.interface.js +1 -0
  388. package/dist/collection/components/smart-menu/smart-menu.css +119 -0
  389. package/dist/collection/components/smart-menu/smart-menu.js +544 -0
  390. package/dist/collection/components/smart-stepper/smart-step.css +213 -0
  391. package/dist/collection/components/smart-stepper/smart-step.js +170 -0
  392. package/dist/collection/components/smart-stepper/smart-stepper.css +146 -0
  393. package/dist/collection/components/smart-stepper/smart-stepper.js +338 -0
  394. package/dist/collection/components/snackbar/snackbar.css +1480 -0
  395. package/dist/collection/components/snackbar/snackbar.js +1759 -0
  396. package/dist/collection/components/snackbar/types.js +1 -0
  397. package/dist/collection/components/speed-dial/speed-dial.css +478 -0
  398. package/dist/collection/components/speed-dial/speed-dial.js +1183 -0
  399. package/dist/collection/components/speed-dial/types.js +1 -0
  400. package/dist/collection/components/speedometer/speedometer.css +95 -0
  401. package/dist/collection/components/speedometer/speedometer.js +868 -0
  402. package/dist/collection/components/speedometer/types.js +1 -0
  403. package/dist/collection/components/splitter/splitter.css +269 -0
  404. package/dist/collection/components/splitter/splitter.js +713 -0
  405. package/dist/collection/components/splitter/types.js +1 -0
  406. package/dist/collection/components/stack/stack.css +269 -0
  407. package/dist/collection/components/stack/stack.js +297 -0
  408. package/dist/collection/components/stack/types.js +1 -0
  409. package/dist/collection/components/step/step.css +77 -0
  410. package/dist/collection/components/step/step.js +214 -0
  411. package/dist/collection/components/step/types.js +1 -0
  412. package/dist/collection/components/stepper/stepper.css +1079 -0
  413. package/dist/collection/components/stepper/stepper.js +1850 -0
  414. package/dist/collection/components/stepper/types.js +1 -0
  415. package/dist/collection/components/switch/switch.css +1099 -0
  416. package/dist/collection/components/switch/switch.js +1578 -0
  417. package/dist/collection/components/tabs/tabs.css +1355 -0
  418. package/dist/collection/components/tabs/tabs.js +1474 -0
  419. package/dist/collection/components/tabs/types.js +1 -0
  420. package/dist/collection/components/tag/tag.css +893 -0
  421. package/dist/collection/components/tag/tag.js +1119 -0
  422. package/dist/collection/components/tag/types.js +1 -0
  423. package/dist/collection/components/tag-group/tag-group.css +144 -0
  424. package/dist/collection/components/tag-group/tag-group.js +887 -0
  425. package/dist/collection/components/tag-group/types.js +1 -0
  426. package/dist/collection/components/timeline/timeline.css +1850 -0
  427. package/dist/collection/components/timeline/timeline.js +889 -0
  428. package/dist/collection/components/timeline/types.js +1 -0
  429. package/dist/collection/components/timeline/ui-timeline.stories.js +19 -0
  430. package/dist/collection/components/timeline-item/timeline-item.css +75 -0
  431. package/dist/collection/components/timeline-item/timeline-item.js +91 -0
  432. package/dist/collection/components/timer/timer.css +367 -0
  433. package/dist/collection/components/timer/timer.js +1292 -0
  434. package/dist/collection/components/timer/types.js +1 -0
  435. package/dist/collection/components/timer/ui-timer.stories.js +19 -0
  436. package/dist/collection/components/toggle-group/toggle-group.css +361 -0
  437. package/dist/collection/components/toggle-group/toggle-group.js +1212 -0
  438. package/dist/collection/components/toggle-group/types.js +1 -0
  439. package/dist/collection/components/toolbar/toolbar-types.js +1 -0
  440. package/dist/collection/components/toolbar/toolbar.css +1186 -0
  441. package/dist/collection/components/toolbar/toolbar.js +1635 -0
  442. package/dist/collection/components/tooltip/tooltip.css +609 -0
  443. package/dist/collection/components/tooltip/tooltip.js +1882 -0
  444. package/dist/collection/components/tooltip/types.js +1 -0
  445. package/dist/collection/components/top-bar/top-bar.css +274 -0
  446. package/dist/collection/components/top-bar/top-bar.js +383 -0
  447. package/dist/collection/components/transfer-list/transfer-list.css +520 -0
  448. package/dist/collection/components/transfer-list/transfer-list.js +1225 -0
  449. package/dist/collection/components/transfer-list/types.js +1 -0
  450. package/dist/collection/components/tree/tree.css +1197 -0
  451. package/dist/collection/components/tree/tree.js +2509 -0
  452. package/dist/collection/components/tree/types.js +1 -0
  453. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +830 -0
  454. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +1231 -0
  455. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-types.js +1 -0
  456. package/dist/collection/components/ui-navigation-bar/navigation-item.css +679 -0
  457. package/dist/collection/components/ui-navigation-bar/navigation-item.js +385 -0
  458. package/dist/collection/components/ui-navigation-bar/navigation-types.js +1 -0
  459. package/dist/collection/components/workspace-manager/types.js +1 -0
  460. package/dist/collection/components/workspace-manager/workspace-manager.css +1094 -0
  461. package/dist/collection/components/workspace-manager/workspace-manager.js +1914 -0
  462. package/dist/collection/components.js +51 -0
  463. package/dist/collection/index.js +108 -0
  464. package/dist/collection/service/drag-manager.js +23 -0
  465. package/dist/collection/service/event-bus.js +19 -0
  466. package/dist/collection/service/serialization.js +8 -0
  467. package/dist/collection/service/state-engine.js +247 -0
  468. package/dist/collection/service/theme-switcher.js +146 -0
  469. package/dist/collection/stories/Button.stories.js +15 -0
  470. package/dist/collection/types/common.js +1 -0
  471. package/dist/collection/types/index.js +4 -0
  472. package/dist/collection/utils/aria-live.js +60 -0
  473. package/dist/collection/utils/component-size.js +25 -0
  474. package/dist/collection/utils/dom.js +260 -0
  475. package/dist/collection/utils/focus-trap.js +135 -0
  476. package/dist/collection/utils/security.js +10 -0
  477. package/dist/collection/utils/test/setup-component-test-env.js +92 -0
  478. package/dist/collection/utils/utils.js +21 -0
  479. package/dist/collection/utils/validation.js +74 -0
  480. package/dist/components/avatar-group.js +1 -0
  481. package/dist/components/avatar.js +1 -0
  482. package/dist/components/badge.js +1 -0
  483. package/dist/components/button-toggle.js +1 -0
  484. package/dist/components/category-section.d.ts +11 -0
  485. package/dist/components/category-section.js +1 -0
  486. package/dist/components/category-section2.js +1 -0
  487. package/dist/components/checkbox.js +1 -0
  488. package/dist/components/context-menu.js +1 -0
  489. package/dist/components/dialog-footer.js +1 -0
  490. package/dist/components/dialog-header.js +1 -0
  491. package/dist/components/dom.js +1 -0
  492. package/dist/components/dropdown.js +1 -0
  493. package/dist/components/event-bus.js +1 -0
  494. package/dist/components/focus-trap.js +1 -0
  495. package/dist/components/icon.js +2 -0
  496. package/dist/components/index.d.ts +35 -0
  497. package/dist/components/index.js +1 -0
  498. package/dist/components/input.js +1 -0
  499. package/dist/components/layout-manager.d.ts +11 -0
  500. package/dist/components/layout-manager.js +1 -0
  501. package/dist/components/library-card.d.ts +11 -0
  502. package/dist/components/library-card.js +1 -0
  503. package/dist/components/library-card2.js +1 -0
  504. package/dist/components/list-group.js +1 -0
  505. package/dist/components/list-item.js +1 -0
  506. package/dist/components/lm-container.d.ts +11 -0
  507. package/dist/components/lm-container.js +1 -0
  508. package/dist/components/lm-container2.js +1 -0
  509. package/dist/components/lm-floating-window.d.ts +11 -0
  510. package/dist/components/lm-floating-window.js +1 -0
  511. package/dist/components/lm-floating-window2.js +1 -0
  512. package/dist/components/lm-panel.d.ts +11 -0
  513. package/dist/components/lm-panel.js +1 -0
  514. package/dist/components/lm-panel2.js +1 -0
  515. package/dist/components/lm-splitter.d.ts +11 -0
  516. package/dist/components/lm-splitter.js +1 -0
  517. package/dist/components/lm-splitter2.js +1 -0
  518. package/dist/components/lm-tabs.d.ts +11 -0
  519. package/dist/components/lm-tabs.js +1 -0
  520. package/dist/components/lm-tabs2.js +1 -0
  521. package/dist/components/my-component.d.ts +11 -0
  522. package/dist/components/my-component.js +1 -0
  523. package/dist/components/my-step.d.ts +11 -0
  524. package/dist/components/my-step.js +1 -0
  525. package/dist/components/nav-bar.d.ts +11 -0
  526. package/dist/components/nav-bar.js +1 -0
  527. package/dist/components/pagination.js +1 -0
  528. package/dist/components/radio.js +1 -0
  529. package/dist/components/range-slider.js +1 -0
  530. package/dist/components/rating.js +1 -0
  531. package/dist/components/resizable-panel.js +1 -0
  532. package/dist/components/skeleton-loader.js +1 -0
  533. package/dist/components/smart-step.d.ts +11 -0
  534. package/dist/components/smart-step.js +1 -0
  535. package/dist/components/stack.js +1 -0
  536. package/dist/components/switch.js +1 -0
  537. package/dist/components/tag-group.js +1 -0
  538. package/dist/components/tag.js +1 -0
  539. package/dist/components/timeline-item.d.ts +11 -0
  540. package/dist/components/timeline-item.js +1 -0
  541. package/dist/components/toggle-group.js +1 -0
  542. package/dist/components/tooltip.js +1 -0
  543. package/dist/components/ui-accordion.d.ts +11 -0
  544. package/dist/components/ui-accordion.js +1 -0
  545. package/dist/components/ui-advanced-data-table.d.ts +11 -0
  546. package/dist/components/ui-advanced-data-table.js +1 -0
  547. package/dist/components/ui-anchor.d.ts +11 -0
  548. package/dist/components/ui-anchor.js +1 -0
  549. package/dist/components/ui-animate-on-scroll.d.ts +11 -0
  550. package/dist/components/ui-animate-on-scroll.js +1 -0
  551. package/dist/components/ui-aside-panel.d.ts +11 -0
  552. package/dist/components/ui-aside-panel.js +1 -0
  553. package/dist/components/ui-avatar-group.d.ts +11 -0
  554. package/dist/components/ui-avatar-group.js +1 -0
  555. package/dist/components/ui-avatar.d.ts +11 -0
  556. package/dist/components/ui-avatar.js +1 -0
  557. package/dist/components/ui-badge.d.ts +11 -0
  558. package/dist/components/ui-badge.js +1 -0
  559. package/dist/components/ui-breadcrumb-item.d.ts +11 -0
  560. package/dist/components/ui-breadcrumb-item.js +1 -0
  561. package/dist/components/ui-breadcrumb.d.ts +11 -0
  562. package/dist/components/ui-breadcrumb.js +1 -0
  563. package/dist/components/ui-button-toggle-group.d.ts +11 -0
  564. package/dist/components/ui-button-toggle-group.js +1 -0
  565. package/dist/components/ui-button-toggle.d.ts +11 -0
  566. package/dist/components/ui-button-toggle.js +1 -0
  567. package/dist/components/ui-button.d.ts +11 -0
  568. package/dist/components/ui-button.js +1 -0
  569. package/dist/components/ui-callout-banner.d.ts +11 -0
  570. package/dist/components/ui-callout-banner.js +1 -0
  571. package/dist/components/ui-card.d.ts +11 -0
  572. package/dist/components/ui-card.js +1 -0
  573. package/dist/components/ui-carousel.d.ts +11 -0
  574. package/dist/components/ui-carousel.js +1 -0
  575. package/dist/components/ui-checkbox-group.d.ts +11 -0
  576. package/dist/components/ui-checkbox-group.js +1 -0
  577. package/dist/components/ui-checkbox.d.ts +11 -0
  578. package/dist/components/ui-checkbox.js +1 -0
  579. package/dist/components/ui-code-editor.d.ts +11 -0
  580. package/dist/components/ui-code-editor.js +1 -0
  581. package/dist/components/ui-code-preview.d.ts +11 -0
  582. package/dist/components/ui-code-preview.js +1 -0
  583. package/dist/components/ui-color-controller.d.ts +11 -0
  584. package/dist/components/ui-color-controller.js +1 -0
  585. package/dist/components/ui-color-picker.d.ts +11 -0
  586. package/dist/components/ui-color-picker.js +1 -0
  587. package/dist/components/ui-command-palette.d.ts +11 -0
  588. package/dist/components/ui-command-palette.js +1 -0
  589. package/dist/components/ui-context-menu.d.ts +11 -0
  590. package/dist/components/ui-context-menu.js +1 -0
  591. package/dist/components/ui-dialog-box.d.ts +11 -0
  592. package/dist/components/ui-dialog-box.js +1 -0
  593. package/dist/components/ui-dialog-content.d.ts +11 -0
  594. package/dist/components/ui-dialog-content.js +1 -0
  595. package/dist/components/ui-dialog-footer.d.ts +11 -0
  596. package/dist/components/ui-dialog-footer.js +1 -0
  597. package/dist/components/ui-dialog-header.d.ts +11 -0
  598. package/dist/components/ui-dialog-header.js +1 -0
  599. package/dist/components/ui-divider.d.ts +11 -0
  600. package/dist/components/ui-divider.js +1 -0
  601. package/dist/components/ui-dock-host.d.ts +11 -0
  602. package/dist/components/ui-dock-host.js +1 -0
  603. package/dist/components/ui-dock.d.ts +11 -0
  604. package/dist/components/ui-dock.js +1 -0
  605. package/dist/components/ui-drag-drop.d.ts +11 -0
  606. package/dist/components/ui-drag-drop.js +1 -0
  607. package/dist/components/ui-dropdown.d.ts +11 -0
  608. package/dist/components/ui-dropdown.js +1 -0
  609. package/dist/components/ui-empty-state.d.ts +11 -0
  610. package/dist/components/ui-empty-state.js +1 -0
  611. package/dist/components/ui-fab-item.d.ts +11 -0
  612. package/dist/components/ui-fab-item.js +1 -0
  613. package/dist/components/ui-fab.d.ts +11 -0
  614. package/dist/components/ui-fab.js +1 -0
  615. package/dist/components/ui-file-upload.d.ts +11 -0
  616. package/dist/components/ui-file-upload.js +1 -0
  617. package/dist/components/ui-horizontal-nav.d.ts +11 -0
  618. package/dist/components/ui-horizontal-nav.js +1 -0
  619. package/dist/components/ui-icon.d.ts +11 -0
  620. package/dist/components/ui-icon.js +1 -0
  621. package/dist/components/ui-image-button.d.ts +11 -0
  622. package/dist/components/ui-image-button.js +1 -0
  623. package/dist/components/ui-input-pair.d.ts +11 -0
  624. package/dist/components/ui-input-pair.js +1 -0
  625. package/dist/components/ui-input.d.ts +11 -0
  626. package/dist/components/ui-input.js +1 -0
  627. package/dist/components/ui-knob.d.ts +11 -0
  628. package/dist/components/ui-knob.js +1 -0
  629. package/dist/components/ui-library.d.ts +11 -0
  630. package/dist/components/ui-library.js +1 -0
  631. package/dist/components/ui-list-group.d.ts +11 -0
  632. package/dist/components/ui-list-group.js +1 -0
  633. package/dist/components/ui-list-item.d.ts +11 -0
  634. package/dist/components/ui-list-item.js +1 -0
  635. package/dist/components/ui-list.d.ts +11 -0
  636. package/dist/components/ui-list.js +1 -0
  637. package/dist/components/ui-masonry.d.ts +11 -0
  638. package/dist/components/ui-masonry.js +1 -0
  639. package/dist/components/ui-meter-group.d.ts +11 -0
  640. package/dist/components/ui-meter-group.js +1 -0
  641. package/dist/components/ui-navigation-bar.d.ts +11 -0
  642. package/dist/components/ui-navigation-bar.js +1 -0
  643. package/dist/components/ui-navigation-item.d.ts +11 -0
  644. package/dist/components/ui-navigation-item.js +1 -0
  645. package/dist/components/ui-number-input.d.ts +11 -0
  646. package/dist/components/ui-number-input.js +1 -0
  647. package/dist/components/ui-otp-input.d.ts +11 -0
  648. package/dist/components/ui-otp-input.js +1 -0
  649. package/dist/components/ui-pagination.d.ts +11 -0
  650. package/dist/components/ui-pagination.js +1 -0
  651. package/dist/components/ui-panel.d.ts +11 -0
  652. package/dist/components/ui-panel.js +1 -0
  653. package/dist/components/ui-pattern-input.d.ts +11 -0
  654. package/dist/components/ui-pattern-input.js +1 -0
  655. package/dist/components/ui-popover.d.ts +11 -0
  656. package/dist/components/ui-popover.js +1 -0
  657. package/dist/components/ui-progress.d.ts +11 -0
  658. package/dist/components/ui-progress.js +1 -0
  659. package/dist/components/ui-radio-group.d.ts +11 -0
  660. package/dist/components/ui-radio-group.js +1 -0
  661. package/dist/components/ui-radio.d.ts +11 -0
  662. package/dist/components/ui-radio.js +1 -0
  663. package/dist/components/ui-range-slider.d.ts +11 -0
  664. package/dist/components/ui-range-slider.js +1 -0
  665. package/dist/components/ui-rating.d.ts +11 -0
  666. package/dist/components/ui-rating.js +1 -0
  667. package/dist/components/ui-resizable-panel.d.ts +11 -0
  668. package/dist/components/ui-resizable-panel.js +1 -0
  669. package/dist/components/ui-scroll-top.d.ts +11 -0
  670. package/dist/components/ui-scroll-top.js +1 -0
  671. package/dist/components/ui-skeleton.d.ts +11 -0
  672. package/dist/components/ui-skeleton.js +1 -0
  673. package/dist/components/ui-smart-context-menu.d.ts +11 -0
  674. package/dist/components/ui-smart-context-menu.js +1 -0
  675. package/dist/components/ui-smart-location-dropdown.d.ts +11 -0
  676. package/dist/components/ui-smart-location-dropdown.js +1 -0
  677. package/dist/components/ui-smart-stepper.d.ts +11 -0
  678. package/dist/components/ui-smart-stepper.js +1 -0
  679. package/dist/components/ui-snackbar.d.ts +11 -0
  680. package/dist/components/ui-snackbar.js +1 -0
  681. package/dist/components/ui-speed-dial.d.ts +11 -0
  682. package/dist/components/ui-speed-dial.js +1 -0
  683. package/dist/components/ui-speedometer.d.ts +11 -0
  684. package/dist/components/ui-speedometer.js +1 -0
  685. package/dist/components/ui-splitter.d.ts +11 -0
  686. package/dist/components/ui-splitter.js +1 -0
  687. package/dist/components/ui-stack.d.ts +11 -0
  688. package/dist/components/ui-stack.js +1 -0
  689. package/dist/components/ui-step.d.ts +11 -0
  690. package/dist/components/ui-step.js +1 -0
  691. package/dist/components/ui-stepper.d.ts +11 -0
  692. package/dist/components/ui-stepper.js +1 -0
  693. package/dist/components/ui-switch.d.ts +11 -0
  694. package/dist/components/ui-switch.js +1 -0
  695. package/dist/components/ui-tabs.d.ts +11 -0
  696. package/dist/components/ui-tabs.js +1 -0
  697. package/dist/components/ui-tag-group.d.ts +11 -0
  698. package/dist/components/ui-tag-group.js +1 -0
  699. package/dist/components/ui-tag.d.ts +11 -0
  700. package/dist/components/ui-tag.js +1 -0
  701. package/dist/components/ui-timeline.d.ts +11 -0
  702. package/dist/components/ui-timeline.js +1 -0
  703. package/dist/components/ui-timer.d.ts +11 -0
  704. package/dist/components/ui-timer.js +1 -0
  705. package/dist/components/ui-toggle-group.d.ts +11 -0
  706. package/dist/components/ui-toggle-group.js +1 -0
  707. package/dist/components/ui-toolbar.d.ts +11 -0
  708. package/dist/components/ui-toolbar.js +1 -0
  709. package/dist/components/ui-tooltip.d.ts +11 -0
  710. package/dist/components/ui-tooltip.js +1 -0
  711. package/dist/components/ui-top-bar.d.ts +11 -0
  712. package/dist/components/ui-top-bar.js +1 -0
  713. package/dist/components/ui-transfer-list.d.ts +11 -0
  714. package/dist/components/ui-transfer-list.js +1 -0
  715. package/dist/components/ui-tree.d.ts +11 -0
  716. package/dist/components/ui-tree.js +1 -0
  717. package/dist/components/ui-workspace-manager.d.ts +11 -0
  718. package/dist/components/ui-workspace-manager.js +1 -0
  719. package/dist/components/utils.js +1 -0
  720. package/dist/esm/category-section.entry.js +28 -0
  721. package/dist/esm/component-size-C7gf39HE.js +27 -0
  722. package/dist/esm/dom-BMFah5q3.js +262 -0
  723. package/dist/esm/event-bus-vwwmWKs9.js +21 -0
  724. package/dist/esm/exploration-project-tailwind.js +20 -0
  725. package/dist/esm/focus-trap-BSQ8klD4.js +137 -0
  726. package/dist/esm/index-DUsoYu9r.js +2264 -0
  727. package/dist/esm/index.js +256 -0
  728. package/dist/esm/layout-manager.entry.js +614 -0
  729. package/dist/esm/library-card.entry.js +61 -0
  730. package/dist/esm/lm-container_2.entry.js +76 -0
  731. package/dist/esm/lm-panel_3.entry.js +104 -0
  732. package/dist/esm/loader.js +10 -0
  733. package/dist/esm/my-component.entry.js +31 -0
  734. package/dist/esm/my-step.entry.js +27 -0
  735. package/dist/esm/nav-bar.entry.js +245 -0
  736. package/dist/esm/security-D2WzX6vR.js +1545 -0
  737. package/dist/esm/smart-step.entry.js +45 -0
  738. package/dist/esm/timeline-item.entry.js +27 -0
  739. package/dist/esm/ui-accordion_10.entry.js +5722 -0
  740. package/dist/esm/ui-advanced-data-table.entry.js +2682 -0
  741. package/dist/esm/ui-anchor.entry.js +556 -0
  742. package/dist/esm/ui-animate-on-scroll.entry.js +283 -0
  743. package/dist/esm/ui-aside-panel.entry.js +636 -0
  744. package/dist/esm/ui-avatar-group_3.entry.js +630 -0
  745. package/dist/esm/ui-breadcrumb-item.entry.js +54 -0
  746. package/dist/esm/ui-breadcrumb.entry.js +199 -0
  747. package/dist/esm/ui-callout-banner.entry.js +289 -0
  748. package/dist/esm/ui-card.entry.js +409 -0
  749. package/dist/esm/ui-carousel.entry.js +545 -0
  750. package/dist/esm/ui-checkbox-group.entry.js +328 -0
  751. package/dist/esm/ui-checkbox.entry.js +258 -0
  752. package/dist/esm/ui-code-editor.entry.js +959 -0
  753. package/dist/esm/ui-code-preview.entry.js +313 -0
  754. package/dist/esm/ui-color-controller.entry.js +148 -0
  755. package/dist/esm/ui-color-picker.entry.js +656 -0
  756. package/dist/esm/ui-command-palette.entry.js +176 -0
  757. package/dist/esm/ui-dialog-box.entry.js +1806 -0
  758. package/dist/esm/ui-dialog-content.entry.js +29 -0
  759. package/dist/esm/ui-dialog-footer_2.entry.js +190 -0
  760. package/dist/esm/ui-divider.entry.js +479 -0
  761. package/dist/esm/ui-dock-host.entry.js +126 -0
  762. package/dist/esm/ui-dock.entry.js +219 -0
  763. package/dist/esm/ui-drag-drop.entry.js +170 -0
  764. package/dist/esm/ui-dropdown_2.entry.js +1549 -0
  765. package/dist/esm/ui-empty-state.entry.js +396 -0
  766. package/dist/esm/ui-fab-item.entry.js +37 -0
  767. package/dist/esm/ui-fab.entry.js +275 -0
  768. package/dist/esm/ui-file-upload.entry.js +416 -0
  769. package/dist/esm/ui-horizontal-nav.entry.js +133 -0
  770. package/dist/esm/ui-image-button.entry.js +65 -0
  771. package/dist/esm/ui-input-pair.entry.js +42 -0
  772. package/dist/esm/ui-knob.entry.js +445 -0
  773. package/dist/esm/ui-library.entry.js +132 -0
  774. package/dist/esm/ui-list-group_2.entry.js +583 -0
  775. package/dist/esm/ui-list.entry.js +730 -0
  776. package/dist/esm/ui-masonry.entry.js +476 -0
  777. package/dist/esm/ui-meter-group.entry.js +171 -0
  778. package/dist/esm/ui-navigation-item.entry.js +102 -0
  779. package/dist/esm/ui-number-input.entry.js +189 -0
  780. package/dist/esm/ui-otp-input.entry.js +244 -0
  781. package/dist/esm/ui-pagination_3.entry.js +1617 -0
  782. package/dist/esm/ui-panel.entry.js +612 -0
  783. package/dist/esm/ui-pattern-input.entry.js +276 -0
  784. package/dist/esm/ui-popover.entry.js +515 -0
  785. package/dist/esm/ui-progress.entry.js +514 -0
  786. package/dist/esm/ui-radio-group.entry.js +203 -0
  787. package/dist/esm/ui-radio.entry.js +204 -0
  788. package/dist/esm/ui-range-slider.entry.js +635 -0
  789. package/dist/esm/ui-resizable-panel.entry.js +482 -0
  790. package/dist/esm/ui-scroll-top.entry.js +457 -0
  791. package/dist/esm/ui-smart-context-menu.entry.js +374 -0
  792. package/dist/esm/ui-smart-location-dropdown.entry.js +563 -0
  793. package/dist/esm/ui-smart-stepper.entry.js +135 -0
  794. package/dist/esm/ui-snackbar.entry.js +861 -0
  795. package/dist/esm/ui-speed-dial.entry.js +518 -0
  796. package/dist/esm/ui-speedometer.entry.js +426 -0
  797. package/dist/esm/ui-splitter.entry.js +280 -0
  798. package/dist/esm/ui-step.entry.js +28 -0
  799. package/dist/esm/ui-stepper.entry.js +638 -0
  800. package/dist/esm/ui-switch.entry.js +403 -0
  801. package/dist/esm/ui-tabs.entry.js +701 -0
  802. package/dist/esm/ui-tag.entry.js +297 -0
  803. package/dist/esm/ui-timeline.entry.js +265 -0
  804. package/dist/esm/ui-timer.entry.js +500 -0
  805. package/dist/esm/ui-toolbar.entry.js +617 -0
  806. package/dist/esm/ui-tooltip.entry.js +695 -0
  807. package/dist/esm/ui-top-bar.entry.js +119 -0
  808. package/dist/esm/ui-transfer-list.entry.js +590 -0
  809. package/dist/esm/ui-tree.entry.js +872 -0
  810. package/dist/esm/ui-workspace-manager.entry.js +1199 -0
  811. package/dist/esm/utils-Ck6jDuhz.js +23 -0
  812. package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -0
  813. package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -0
  814. package/dist/exploration-project-tailwind/index.esm.js +1 -0
  815. package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +1 -0
  816. package/dist/exploration-project-tailwind/p-049744f9.entry.js +1 -0
  817. package/dist/exploration-project-tailwind/p-06f0c679.entry.js +1 -0
  818. package/dist/exploration-project-tailwind/p-0b004861.entry.js +1 -0
  819. package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +1 -0
  820. package/dist/exploration-project-tailwind/p-148e81df.entry.js +1 -0
  821. package/dist/exploration-project-tailwind/p-200241f8.entry.js +1 -0
  822. package/dist/exploration-project-tailwind/p-287dbf09.entry.js +1 -0
  823. package/dist/exploration-project-tailwind/p-2d273118.entry.js +1 -0
  824. package/dist/exploration-project-tailwind/p-2f1aebb3.entry.js +1 -0
  825. package/dist/exploration-project-tailwind/p-2f961934.entry.js +1 -0
  826. package/dist/exploration-project-tailwind/p-35296877.entry.js +1 -0
  827. package/dist/exploration-project-tailwind/p-36861546.entry.js +1 -0
  828. package/dist/exploration-project-tailwind/p-3d3d48fd.entry.js +1 -0
  829. package/dist/exploration-project-tailwind/p-41cd6bf0.entry.js +1 -0
  830. package/dist/exploration-project-tailwind/p-45482d86.entry.js +1 -0
  831. package/dist/exploration-project-tailwind/p-46596a28.entry.js +1 -0
  832. package/dist/exploration-project-tailwind/p-46efdea3.entry.js +1 -0
  833. package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +1 -0
  834. package/dist/exploration-project-tailwind/p-4d73c143.entry.js +1 -0
  835. package/dist/exploration-project-tailwind/p-4de419d5.entry.js +1 -0
  836. package/dist/exploration-project-tailwind/p-4f6bba75.entry.js +1 -0
  837. package/dist/exploration-project-tailwind/p-5508874f.entry.js +1 -0
  838. package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +1 -0
  839. package/dist/exploration-project-tailwind/p-5e3e80ae.entry.js +1 -0
  840. package/dist/exploration-project-tailwind/p-61717490.entry.js +1 -0
  841. package/dist/exploration-project-tailwind/p-62352ef2.entry.js +1 -0
  842. package/dist/exploration-project-tailwind/p-64e3a484.entry.js +1 -0
  843. package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +1 -0
  844. package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +1 -0
  845. package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +1 -0
  846. package/dist/exploration-project-tailwind/p-70d82d79.entry.js +1 -0
  847. package/dist/exploration-project-tailwind/p-717dad1f.entry.js +1 -0
  848. package/dist/exploration-project-tailwind/p-7376ac95.entry.js +1 -0
  849. package/dist/exploration-project-tailwind/p-73d29a4a.entry.js +1 -0
  850. package/dist/exploration-project-tailwind/p-7515b1e3.entry.js +1 -0
  851. package/dist/exploration-project-tailwind/p-77124686.entry.js +1 -0
  852. package/dist/exploration-project-tailwind/p-77a21491.entry.js +1 -0
  853. package/dist/exploration-project-tailwind/p-77cc333a.entry.js +1 -0
  854. package/dist/exploration-project-tailwind/p-7f91d949.entry.js +1 -0
  855. package/dist/exploration-project-tailwind/p-807c6555.entry.js +1 -0
  856. package/dist/exploration-project-tailwind/p-81961fb1.entry.js +1 -0
  857. package/dist/exploration-project-tailwind/p-85bf89fd.entry.js +1 -0
  858. package/dist/exploration-project-tailwind/p-85e36111.entry.js +1 -0
  859. package/dist/exploration-project-tailwind/p-875be805.entry.js +1 -0
  860. package/dist/exploration-project-tailwind/p-898dd0fa.entry.js +1 -0
  861. package/dist/exploration-project-tailwind/p-8d951aef.entry.js +1 -0
  862. package/dist/exploration-project-tailwind/p-9d0c8760.entry.js +1 -0
  863. package/dist/exploration-project-tailwind/p-9fa70359.entry.js +1 -0
  864. package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +1 -0
  865. package/dist/exploration-project-tailwind/p-BMFah5q3.js +1 -0
  866. package/dist/exploration-project-tailwind/p-BSQ8klD4.js +1 -0
  867. package/dist/exploration-project-tailwind/p-C7gf39HE.js +1 -0
  868. package/dist/exploration-project-tailwind/p-Ck6jDuhz.js +1 -0
  869. package/dist/exploration-project-tailwind/p-D2WzX6vR.js +2 -0
  870. package/dist/exploration-project-tailwind/p-DUsoYu9r.js +2 -0
  871. package/dist/exploration-project-tailwind/p-a1ad32a2.entry.js +1 -0
  872. package/dist/exploration-project-tailwind/p-a3f465d9.entry.js +1 -0
  873. package/dist/exploration-project-tailwind/p-a42fdc33.entry.js +1 -0
  874. package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +1 -0
  875. package/dist/exploration-project-tailwind/p-aa85ff78.entry.js +1 -0
  876. package/dist/exploration-project-tailwind/p-ab752761.entry.js +1 -0
  877. package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +1 -0
  878. package/dist/exploration-project-tailwind/p-c174a372.entry.js +1 -0
  879. package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +1 -0
  880. package/dist/exploration-project-tailwind/p-c4ba7e52.entry.js +1 -0
  881. package/dist/exploration-project-tailwind/p-c5ddc817.entry.js +1 -0
  882. package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +1 -0
  883. package/dist/exploration-project-tailwind/p-c6fd72e1.entry.js +1 -0
  884. package/dist/exploration-project-tailwind/p-c7e87fbb.entry.js +1 -0
  885. package/dist/exploration-project-tailwind/p-c87aeab6.entry.js +1 -0
  886. package/dist/exploration-project-tailwind/p-c90722ec.entry.js +1 -0
  887. package/dist/exploration-project-tailwind/p-ccb5c737.entry.js +1 -0
  888. package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +1 -0
  889. package/dist/exploration-project-tailwind/p-d16c9635.entry.js +1 -0
  890. package/dist/exploration-project-tailwind/p-d2308a00.entry.js +1 -0
  891. package/dist/exploration-project-tailwind/p-d30e24bd.entry.js +1 -0
  892. package/dist/exploration-project-tailwind/p-d419eaf0.entry.js +1 -0
  893. package/dist/exploration-project-tailwind/p-debede45.entry.js +1 -0
  894. package/dist/exploration-project-tailwind/p-e5322e59.entry.js +1 -0
  895. package/dist/exploration-project-tailwind/p-e8ba0c95.entry.js +1 -0
  896. package/dist/exploration-project-tailwind/p-e90d5307.entry.js +1 -0
  897. package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +1 -0
  898. package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +1 -0
  899. package/dist/exploration-project-tailwind/p-f0830120.entry.js +1 -0
  900. package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +1 -0
  901. package/dist/exploration-project-tailwind/p-f5719913.entry.js +1 -0
  902. package/dist/exploration-project-tailwind/p-ffb1754a.entry.js +1 -0
  903. package/dist/exploration-project-tailwind/p-vwwmWKs9.js +1 -0
  904. package/dist/index.cjs.js +1 -0
  905. package/dist/index.js +1 -0
  906. package/dist/types/components/accordion/accordion.d.ts +352 -0
  907. package/dist/types/components/accordion/types.d.ts +69 -0
  908. package/dist/types/components/advanced-data-table/advanced-data-table.d.ts +697 -0
  909. package/dist/types/components/advanced-data-table/types.d.ts +120 -0
  910. package/dist/types/components/anchor/anchor.d.ts +133 -0
  911. package/dist/types/components/anchor/types.d.ts +17 -0
  912. package/dist/types/components/animate-on-scroll/animate-on-scroll.d.ts +101 -0
  913. package/dist/types/components/aside-panel/aside-panel.d.ts +249 -0
  914. package/dist/types/components/avatar/avatar.d.ts +201 -0
  915. package/dist/types/components/avatar/types.d.ts +132 -0
  916. package/dist/types/components/avatar-group/avatar-group.d.ts +52 -0
  917. package/dist/types/components/avatar-group/types.d.ts +31 -0
  918. package/dist/types/components/badge/badge.d.ts +109 -0
  919. package/dist/types/components/badge/types.d.ts +6 -0
  920. package/dist/types/components/breadcrumb/breadcrumb-item.d.ts +36 -0
  921. package/dist/types/components/breadcrumb/breadcrumb.d.ts +73 -0
  922. package/dist/types/components/breadcrumb/types.d.ts +5 -0
  923. package/dist/types/components/button/button.d.ts +133 -0
  924. package/dist/types/components/button/types.d.ts +1 -0
  925. package/dist/types/components/button-toggle/button-toggle.d.ts +64 -0
  926. package/dist/types/components/button-toggle-group/button-toggle-group.d.ts +141 -0
  927. package/dist/types/components/button-toggle-group/types.d.ts +7 -0
  928. package/dist/types/components/callout-banner/callout-banner.d.ts +115 -0
  929. package/dist/types/components/callout-banner/types.d.ts +7 -0
  930. package/dist/types/components/card/card.d.ts +160 -0
  931. package/dist/types/components/card/types.d.ts +13 -0
  932. package/dist/types/components/carousel/carousel.d.ts +150 -0
  933. package/dist/types/components/carousel/types.d.ts +8 -0
  934. package/dist/types/components/checkbox/checkbox.d.ts +92 -0
  935. package/dist/types/components/checkbox/types.d.ts +5 -0
  936. package/dist/types/components/checkbox-group/checkbox-group.d.ts +87 -0
  937. package/dist/types/components/checkbox-group/types.d.ts +8 -0
  938. package/dist/types/components/code-editor/code-editor.d.ts +147 -0
  939. package/dist/types/components/code-editor/types.d.ts +20 -0
  940. package/dist/types/components/code-preview/types.d.ts +5 -0
  941. package/dist/types/components/code-preview/ui-code-preview.d.ts +69 -0
  942. package/dist/types/components/color-controller/color-controller.d.ts +24 -0
  943. package/dist/types/components/color-picker/color-picker.d.ts +116 -0
  944. package/dist/types/components/color-picker/types.d.ts +24 -0
  945. package/dist/types/components/command-palette/command-palette.d.ts +41 -0
  946. package/dist/types/components/command-palette/types.d.ts +7 -0
  947. package/dist/types/components/context-menu/context-menu.d.ts +135 -0
  948. package/dist/types/components/context-menu/types.d.ts +20 -0
  949. package/dist/types/components/dialog-box/dialog-box.d.ts +648 -0
  950. package/dist/types/components/dialog-box/types.d.ts +1 -0
  951. package/dist/types/components/dialog-content/dialog-content.d.ts +9 -0
  952. package/dist/types/components/dialog-footer/dialog-footer.d.ts +9 -0
  953. package/dist/types/components/dialog-footer/types.d.ts +1 -0
  954. package/dist/types/components/dialog-header/dialog-header.d.ts +102 -0
  955. package/dist/types/components/dialog-header/types.d.ts +2 -0
  956. package/dist/types/components/divider/divider.d.ts +245 -0
  957. package/dist/types/components/divider/types.d.ts +14 -0
  958. package/dist/types/components/dock/dock.d.ts +37 -0
  959. package/dist/types/components/dock/types.d.ts +11 -0
  960. package/dist/types/components/dock-host/index.d.ts +1 -0
  961. package/dist/types/components/dock-host/types.d.ts +1 -0
  962. package/dist/types/components/dock-host/ui-dock-host.d.ts +23 -0
  963. package/dist/types/components/drag-drop/drag-drop.d.ts +52 -0
  964. package/dist/types/components/drag-drop/types.d.ts +9 -0
  965. package/dist/types/components/dropdown/dropdown.d.ts +264 -0
  966. package/dist/types/components/dropdown/types.d.ts +19 -0
  967. package/dist/types/components/empty-state/empty-state.d.ts +74 -0
  968. package/dist/types/components/empty-state/types.d.ts +13 -0
  969. package/dist/types/components/fab/fab.d.ts +73 -0
  970. package/dist/types/components/fab-item/fab-item.d.ts +14 -0
  971. package/dist/types/components/fab-item/types.d.ts +3 -0
  972. package/dist/types/components/file-upload/file-upload.d.ts +91 -0
  973. package/dist/types/components/file-upload/types.d.ts +15 -0
  974. package/dist/types/components/horizontal-nav/horizontal-nav.d.ts +68 -0
  975. package/dist/types/components/icon/icon.d.ts +66 -0
  976. package/dist/types/components/image-button/image-button.d.ts +31 -0
  977. package/dist/types/components/image-button/types.d.ts +1 -0
  978. package/dist/types/components/input/input.d.ts +217 -0
  979. package/dist/types/components/input/types.d.ts +6 -0
  980. package/dist/types/components/input-pair/input-pair.d.ts +28 -0
  981. package/dist/types/components/knob/knob.d.ts +147 -0
  982. package/dist/types/components/knob/types.d.ts +4 -0
  983. package/dist/types/components/layout-manager/layout-manager.d.ts +32 -0
  984. package/dist/types/components/layout-manager/lm-container/lm-container.d.ts +7 -0
  985. package/dist/types/components/layout-manager/lm-floating-window/lm-floating-window.d.ts +6 -0
  986. package/dist/types/components/layout-manager/lm-panel/lm-panel.d.ts +7 -0
  987. package/dist/types/components/layout-manager/lm-splitter/lm-splitter.d.ts +12 -0
  988. package/dist/types/components/layout-manager/lm-tabs/lm-tabs.d.ts +12 -0
  989. package/dist/types/components/layout-manager/types.d.ts +1 -0
  990. package/dist/types/components/library/category-section.d.ts +15 -0
  991. package/dist/types/components/library/data.d.ts +11 -0
  992. package/dist/types/components/library/library-card.d.ts +19 -0
  993. package/dist/types/components/library/library.d.ts +9 -0
  994. package/dist/types/components/list/list.d.ts +183 -0
  995. package/dist/types/components/list-group/list-group.d.ts +28 -0
  996. package/dist/types/components/list-item/list-item.d.ts +200 -0
  997. package/dist/types/components/masonry/masonry.d.ts +105 -0
  998. package/dist/types/components/masonry/types.d.ts +5 -0
  999. package/dist/types/components/meter-group/meter-group.d.ts +66 -0
  1000. package/dist/types/components/meter-group/types.d.ts +12 -0
  1001. package/dist/types/components/my-component/my-component.d.ts +16 -0
  1002. package/dist/types/components/my-step/index.d.ts +12 -0
  1003. package/dist/types/components/my-step/my-step.d.ts +13 -0
  1004. package/dist/types/components/nav-bar/nav-bar.d.ts +119 -0
  1005. package/dist/types/components/number-input/number-input.d.ts +72 -0
  1006. package/dist/types/components/otp-input/otp-input.d.ts +64 -0
  1007. package/dist/types/components/otp-input/types.d.ts +3 -0
  1008. package/dist/types/components/pagination/pagination.d.ts +295 -0
  1009. package/dist/types/components/pagination/types.d.ts +1 -0
  1010. package/dist/types/components/panel/panel.d.ts +275 -0
  1011. package/dist/types/components/panel/types.d.ts +7 -0
  1012. package/dist/types/components/pattern-input/pattern-input.d.ts +88 -0
  1013. package/dist/types/components/popover/popover.d.ts +161 -0
  1014. package/dist/types/components/popover/types.d.ts +3 -0
  1015. package/dist/types/components/progress/progress.d.ts +224 -0
  1016. package/dist/types/components/progress/types.d.ts +6 -0
  1017. package/dist/types/components/radio/radio.d.ts +87 -0
  1018. package/dist/types/components/radio/types.d.ts +7 -0
  1019. package/dist/types/components/radio-group/radio-group.d.ts +74 -0
  1020. package/dist/types/components/radio-group/types.d.ts +2 -0
  1021. package/dist/types/components/range-slider/range-slider.d.ts +201 -0
  1022. package/dist/types/components/range-slider/types.d.ts +4 -0
  1023. package/dist/types/components/rating/rating.d.ts +127 -0
  1024. package/dist/types/components/rating/types.d.ts +1 -0
  1025. package/dist/types/components/resizable-panel/resizable-panel.d.ts +59 -0
  1026. package/dist/types/components/resizable-panel/types.d.ts +11 -0
  1027. package/dist/types/components/scroll-top/scroll-top.d.ts +186 -0
  1028. package/dist/types/components/scroll-top/types.d.ts +1 -0
  1029. package/dist/types/components/skeleton/skeleton-loader.d.ts +149 -0
  1030. package/dist/types/components/skeleton/types.d.ts +1 -0
  1031. package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +119 -0
  1032. package/dist/types/components/smart-location-dropdown/types.d.ts +37 -0
  1033. package/dist/types/components/smart-menu/menu-item.interface.d.ts +10 -0
  1034. package/dist/types/components/smart-menu/smart-menu.d.ts +64 -0
  1035. package/dist/types/components/smart-stepper/smart-step.d.ts +29 -0
  1036. package/dist/types/components/smart-stepper/smart-stepper.d.ts +53 -0
  1037. package/dist/types/components/snackbar/snackbar.d.ts +223 -0
  1038. package/dist/types/components/snackbar/types.d.ts +104 -0
  1039. package/dist/types/components/speed-dial/speed-dial.d.ts +171 -0
  1040. package/dist/types/components/speed-dial/types.d.ts +11 -0
  1041. package/dist/types/components/speedometer/speedometer.d.ts +125 -0
  1042. package/dist/types/components/speedometer/types.d.ts +8 -0
  1043. package/dist/types/components/splitter/splitter.d.ts +63 -0
  1044. package/dist/types/components/splitter/types.d.ts +9 -0
  1045. package/dist/types/components/stack/stack.d.ts +34 -0
  1046. package/dist/types/components/stack/types.d.ts +3 -0
  1047. package/dist/types/components/step/step.d.ts +16 -0
  1048. package/dist/types/components/step/types.d.ts +1 -0
  1049. package/dist/types/components/stepper/stepper.d.ts +218 -0
  1050. package/dist/types/components/stepper/types.d.ts +39 -0
  1051. package/dist/types/components/switch/switch.d.ts +162 -0
  1052. package/dist/types/components/tabs/tabs.d.ts +182 -0
  1053. package/dist/types/components/tabs/types.d.ts +17 -0
  1054. package/dist/types/components/tag/tag.d.ts +172 -0
  1055. package/dist/types/components/tag/types.d.ts +4 -0
  1056. package/dist/types/components/tag-group/tag-group.d.ts +107 -0
  1057. package/dist/types/components/tag-group/types.d.ts +2 -0
  1058. package/dist/types/components/timeline/timeline.d.ts +73 -0
  1059. package/dist/types/components/timeline/types.d.ts +28 -0
  1060. package/dist/types/components/timeline/ui-timeline.stories.d.ts +9 -0
  1061. package/dist/types/components/timeline-item/timeline-item.d.ts +15 -0
  1062. package/dist/types/components/timer/timer.d.ts +123 -0
  1063. package/dist/types/components/timer/types.d.ts +18 -0
  1064. package/dist/types/components/timer/ui-timer.stories.d.ts +9 -0
  1065. package/dist/types/components/toggle-group/toggle-group.d.ts +136 -0
  1066. package/dist/types/components/toggle-group/types.d.ts +5 -0
  1067. package/dist/types/components/toolbar/toolbar-types.d.ts +189 -0
  1068. package/dist/types/components/toolbar/toolbar.d.ts +150 -0
  1069. package/dist/types/components/tooltip/tooltip.d.ts +166 -0
  1070. package/dist/types/components/tooltip/types.d.ts +3 -0
  1071. package/dist/types/components/top-bar/top-bar.d.ts +76 -0
  1072. package/dist/types/components/transfer-list/transfer-list.d.ts +137 -0
  1073. package/dist/types/components/transfer-list/types.d.ts +13 -0
  1074. package/dist/types/components/tree/tree.d.ts +180 -0
  1075. package/dist/types/components/tree/types.d.ts +76 -0
  1076. package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +108 -0
  1077. package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-types.d.ts +17 -0
  1078. package/dist/types/components/ui-navigation-bar/navigation-item.d.ts +26 -0
  1079. package/dist/types/components/ui-navigation-bar/navigation-types.d.ts +19 -0
  1080. package/dist/types/components/workspace-manager/types.d.ts +48 -0
  1081. package/dist/types/components/workspace-manager/workspace-manager.d.ts +211 -0
  1082. package/dist/types/components.d.ts +29634 -0
  1083. package/dist/types/index.d.ts +21 -0
  1084. package/dist/types/service/drag-manager.d.ts +8 -0
  1085. package/dist/types/service/event-bus.d.ts +9 -0
  1086. package/dist/types/service/serialization.d.ts +5 -0
  1087. package/dist/types/service/state-engine.d.ts +25 -0
  1088. package/dist/types/service/theme-switcher.d.ts +46 -0
  1089. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  1090. package/dist/types/types/animation.type.d.ts +96 -0
  1091. package/dist/types/types/common.d.ts +52 -0
  1092. package/dist/types/types/common.type.d.ts +608 -0
  1093. package/dist/types/types/index.d.ts +37 -0
  1094. package/dist/types/types/text.type.d.ts +32 -0
  1095. package/dist/types/utils/aria-live.d.ts +20 -0
  1096. package/dist/types/utils/component-size.d.ts +2 -0
  1097. package/dist/types/utils/dom.d.ts +58 -0
  1098. package/dist/types/utils/focus-trap.d.ts +35 -0
  1099. package/dist/types/utils/security.d.ts +5 -0
  1100. package/dist/types/utils/test/setup-component-test-env.d.ts +14 -0
  1101. package/dist/types/utils/utils.d.ts +7 -0
  1102. package/dist/types/utils/validation.d.ts +43 -0
  1103. package/loader/cdn.js +1 -0
  1104. package/loader/index.cjs.js +1 -0
  1105. package/loader/index.d.ts +24 -0
  1106. package/loader/index.es2017.js +1 -0
  1107. package/loader/index.js +2 -0
  1108. package/package.json +77 -0
@@ -0,0 +1,1547 @@
1
+ 'use strict';
2
+
3
+ /*! @license DOMPurify 3.4.3 | (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.3/LICENSE */
4
+
5
+ function _arrayLikeToArray(r, a) {
6
+ (null == a || a > r.length) && (a = r.length);
7
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
8
+ return n;
9
+ }
10
+ function _arrayWithHoles(r) {
11
+ if (Array.isArray(r)) return r;
12
+ }
13
+ function _iterableToArrayLimit(r, l) {
14
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15
+ if (null != t) {
16
+ var e,
17
+ n,
18
+ i,
19
+ u,
20
+ a = [],
21
+ f = true,
22
+ o = false;
23
+ try {
24
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true);
25
+ } catch (r) {
26
+ o = true, n = r;
27
+ } finally {
28
+ try {
29
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
30
+ } finally {
31
+ if (o) throw n;
32
+ }
33
+ }
34
+ return a;
35
+ }
36
+ }
37
+ function _nonIterableRest() {
38
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
39
+ }
40
+ function _slicedToArray(r, e) {
41
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
42
+ }
43
+ function _unsupportedIterableToArray(r, a) {
44
+ if (r) {
45
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
46
+ var t = {}.toString.call(r).slice(8, -1);
47
+ 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;
48
+ }
49
+ }
50
+
51
+ const entries = Object.entries,
52
+ setPrototypeOf = Object.setPrototypeOf,
53
+ isFrozen = Object.isFrozen,
54
+ getPrototypeOf = Object.getPrototypeOf,
55
+ getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
56
+ let freeze = Object.freeze,
57
+ seal = Object.seal,
58
+ create = Object.create; // eslint-disable-line import/no-mutable-exports
59
+ let _ref = typeof Reflect !== 'undefined' && Reflect,
60
+ apply = _ref.apply,
61
+ construct = _ref.construct;
62
+ if (!freeze) {
63
+ freeze = function freeze(x) {
64
+ return x;
65
+ };
66
+ }
67
+ if (!seal) {
68
+ seal = function seal(x) {
69
+ return x;
70
+ };
71
+ }
72
+ if (!apply) {
73
+ apply = function apply(func, thisArg) {
74
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
75
+ args[_key - 2] = arguments[_key];
76
+ }
77
+ return func.apply(thisArg, args);
78
+ };
79
+ }
80
+ if (!construct) {
81
+ construct = function construct(Func) {
82
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
83
+ args[_key2 - 1] = arguments[_key2];
84
+ }
85
+ return new Func(...args);
86
+ };
87
+ }
88
+ const arrayForEach = unapply(Array.prototype.forEach);
89
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
90
+ const arrayPop = unapply(Array.prototype.pop);
91
+ const arrayPush = unapply(Array.prototype.push);
92
+ const arraySplice = unapply(Array.prototype.splice);
93
+ const arrayIsArray = Array.isArray;
94
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
95
+ const stringToString = unapply(String.prototype.toString);
96
+ const stringMatch = unapply(String.prototype.match);
97
+ const stringReplace = unapply(String.prototype.replace);
98
+ const stringIndexOf = unapply(String.prototype.indexOf);
99
+ const stringTrim = unapply(String.prototype.trim);
100
+ const numberToString = unapply(Number.prototype.toString);
101
+ const booleanToString = unapply(Boolean.prototype.toString);
102
+ const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
103
+ const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
104
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
105
+ const objectToString = unapply(Object.prototype.toString);
106
+ const regExpTest = unapply(RegExp.prototype.test);
107
+ const typeErrorCreate = unconstruct(TypeError);
108
+ /**
109
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
110
+ *
111
+ * @param func - The function to be wrapped and called.
112
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
113
+ */
114
+ function unapply(func) {
115
+ return function (thisArg) {
116
+ if (thisArg instanceof RegExp) {
117
+ thisArg.lastIndex = 0;
118
+ }
119
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
120
+ args[_key3 - 1] = arguments[_key3];
121
+ }
122
+ return apply(func, thisArg, args);
123
+ };
124
+ }
125
+ /**
126
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
127
+ *
128
+ * @param func - The constructor function to be wrapped and called.
129
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
130
+ */
131
+ function unconstruct(Func) {
132
+ return function () {
133
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
134
+ args[_key4] = arguments[_key4];
135
+ }
136
+ return construct(Func, args);
137
+ };
138
+ }
139
+ /**
140
+ * Add properties to a lookup table
141
+ *
142
+ * @param set - The set to which elements will be added.
143
+ * @param array - The array containing elements to be added to the set.
144
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
145
+ * @returns The modified set with added elements.
146
+ */
147
+ function addToSet(set, array) {
148
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
149
+ if (setPrototypeOf) {
150
+ // Make 'in' and truthy checks like Boolean(set.constructor)
151
+ // independent of any properties defined on Object.prototype.
152
+ // Prevent prototype setters from intercepting set as a this value.
153
+ setPrototypeOf(set, null);
154
+ }
155
+ if (!arrayIsArray(array)) {
156
+ return set;
157
+ }
158
+ let l = array.length;
159
+ while (l--) {
160
+ let element = array[l];
161
+ if (typeof element === 'string') {
162
+ const lcElement = transformCaseFunc(element);
163
+ if (lcElement !== element) {
164
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
165
+ if (!isFrozen(array)) {
166
+ array[l] = lcElement;
167
+ }
168
+ element = lcElement;
169
+ }
170
+ }
171
+ set[element] = true;
172
+ }
173
+ return set;
174
+ }
175
+ /**
176
+ * Clean up an array to harden against CSPP
177
+ *
178
+ * @param array - The array to be cleaned.
179
+ * @returns The cleaned version of the array
180
+ */
181
+ function cleanArray(array) {
182
+ for (let index = 0; index < array.length; index++) {
183
+ const isPropertyExist = objectHasOwnProperty(array, index);
184
+ if (!isPropertyExist) {
185
+ array[index] = null;
186
+ }
187
+ }
188
+ return array;
189
+ }
190
+ /**
191
+ * Shallow clone an object
192
+ *
193
+ * @param object - The object to be cloned.
194
+ * @returns A new object that copies the original.
195
+ */
196
+ function clone(object) {
197
+ const newObject = create(null);
198
+ for (const _ref2 of entries(object)) {
199
+ var _ref3 = _slicedToArray(_ref2, 2);
200
+ const property = _ref3[0];
201
+ const value = _ref3[1];
202
+ const isPropertyExist = objectHasOwnProperty(object, property);
203
+ if (isPropertyExist) {
204
+ if (arrayIsArray(value)) {
205
+ newObject[property] = cleanArray(value);
206
+ } else if (value && typeof value === 'object' && value.constructor === Object) {
207
+ newObject[property] = clone(value);
208
+ } else {
209
+ newObject[property] = value;
210
+ }
211
+ }
212
+ }
213
+ return newObject;
214
+ }
215
+ /**
216
+ * Convert non-node values into strings without depending on direct property access.
217
+ *
218
+ * @param value - The value to stringify.
219
+ * @returns A string representation of the provided value.
220
+ */
221
+ function stringifyValue(value) {
222
+ switch (typeof value) {
223
+ case 'string':
224
+ {
225
+ return value;
226
+ }
227
+ case 'number':
228
+ {
229
+ return numberToString(value);
230
+ }
231
+ case 'boolean':
232
+ {
233
+ return booleanToString(value);
234
+ }
235
+ case 'bigint':
236
+ {
237
+ return bigintToString ? bigintToString(value) : '0';
238
+ }
239
+ case 'symbol':
240
+ {
241
+ return symbolToString ? symbolToString(value) : 'Symbol()';
242
+ }
243
+ case 'undefined':
244
+ {
245
+ return objectToString(value);
246
+ }
247
+ case 'function':
248
+ case 'object':
249
+ {
250
+ if (value === null) {
251
+ return objectToString(value);
252
+ }
253
+ const valueAsRecord = value;
254
+ const valueToString = lookupGetter(valueAsRecord, 'toString');
255
+ if (typeof valueToString === 'function') {
256
+ const stringified = valueToString(valueAsRecord);
257
+ return typeof stringified === 'string' ? stringified : objectToString(stringified);
258
+ }
259
+ return objectToString(value);
260
+ }
261
+ default:
262
+ {
263
+ return objectToString(value);
264
+ }
265
+ }
266
+ }
267
+ /**
268
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
269
+ *
270
+ * @param object - The object to look up the getter function in its prototype chain.
271
+ * @param prop - The property name for which to find the getter function.
272
+ * @returns The getter function found in the prototype chain or a fallback function.
273
+ */
274
+ function lookupGetter(object, prop) {
275
+ while (object !== null) {
276
+ const desc = getOwnPropertyDescriptor(object, prop);
277
+ if (desc) {
278
+ if (desc.get) {
279
+ return unapply(desc.get);
280
+ }
281
+ if (typeof desc.value === 'function') {
282
+ return unapply(desc.value);
283
+ }
284
+ }
285
+ object = getPrototypeOf(object);
286
+ }
287
+ function fallbackValue() {
288
+ return null;
289
+ }
290
+ return fallbackValue;
291
+ }
292
+ function isRegex(value) {
293
+ try {
294
+ regExpTest(value, '');
295
+ return true;
296
+ } catch (_unused) {
297
+ return false;
298
+ }
299
+ }
300
+
301
+ 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']);
302
+ 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']);
303
+ 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']);
304
+ // List of SVG elements that are disallowed by default.
305
+ // We still need to know them so that we can do namespace
306
+ // checks properly in case one wants to add them to
307
+ // allow-list.
308
+ 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']);
309
+ 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']);
310
+ // Similarly to SVG, we want to know all MathML elements,
311
+ // even those that we disallow by default.
312
+ const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
313
+ const text = freeze(['#text']);
314
+
315
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', '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']);
316
+ 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', '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-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']);
317
+ 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']);
318
+ const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
319
+
320
+ const MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
321
+ const ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
322
+ const TMPLIT_EXPR = seal(/\${[\w\W]*/g);
323
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
324
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
325
+ 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
326
+ );
327
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
328
+ const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
329
+ );
330
+ const DOCTYPE_NAME = seal(/^html$/i);
331
+ const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
332
+
333
+ /* eslint-disable @typescript-eslint/indent */
334
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
335
+ const NODE_TYPE = {
336
+ element: 1,
337
+ text: 3,
338
+ // Deprecated
339
+ progressingInstruction: 7,
340
+ comment: 8,
341
+ document: 9};
342
+ const getGlobal = function getGlobal() {
343
+ return typeof window === 'undefined' ? null : window;
344
+ };
345
+ /**
346
+ * Creates a no-op policy for internal use only.
347
+ * Don't export this function outside this module!
348
+ * @param trustedTypes The policy factory.
349
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
350
+ * @return The policy created (or null, if Trusted Types
351
+ * are not supported or creating the policy failed).
352
+ */
353
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
354
+ if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
355
+ return null;
356
+ }
357
+ // Allow the callers to control the unique policy name
358
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
359
+ // Policy creation with duplicate names throws in Trusted Types.
360
+ let suffix = null;
361
+ const ATTR_NAME = 'data-tt-policy-suffix';
362
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
363
+ suffix = purifyHostElement.getAttribute(ATTR_NAME);
364
+ }
365
+ const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
366
+ try {
367
+ return trustedTypes.createPolicy(policyName, {
368
+ createHTML(html) {
369
+ return html;
370
+ },
371
+ createScriptURL(scriptUrl) {
372
+ return scriptUrl;
373
+ }
374
+ });
375
+ } catch (_) {
376
+ // Policy creation failed (most likely another DOMPurify script has
377
+ // already run). Skip creating the policy, as this will only cause errors
378
+ // if TT are enforced.
379
+ console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
380
+ return null;
381
+ }
382
+ };
383
+ const _createHooksMap = function _createHooksMap() {
384
+ return {
385
+ afterSanitizeAttributes: [],
386
+ afterSanitizeElements: [],
387
+ afterSanitizeShadowDOM: [],
388
+ beforeSanitizeAttributes: [],
389
+ beforeSanitizeElements: [],
390
+ beforeSanitizeShadowDOM: [],
391
+ uponSanitizeAttribute: [],
392
+ uponSanitizeElement: [],
393
+ uponSanitizeShadowNode: []
394
+ };
395
+ };
396
+ function createDOMPurify() {
397
+ let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
398
+ const DOMPurify = root => createDOMPurify(root);
399
+ DOMPurify.version = '3.4.3';
400
+ DOMPurify.removed = [];
401
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
402
+ // Not running in a browser, provide a factory function
403
+ // so that you can pass your own Window
404
+ DOMPurify.isSupported = false;
405
+ return DOMPurify;
406
+ }
407
+ let document = window.document;
408
+ const originalDocument = document;
409
+ const currentScript = originalDocument.currentScript;
410
+ const DocumentFragment = window.DocumentFragment,
411
+ HTMLTemplateElement = window.HTMLTemplateElement,
412
+ Node = window.Node,
413
+ Element = window.Element,
414
+ NodeFilter = window.NodeFilter,
415
+ _window$NamedNodeMap = window.NamedNodeMap,
416
+ NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,
417
+ HTMLFormElement = window.HTMLFormElement,
418
+ DOMParser = window.DOMParser,
419
+ trustedTypes = window.trustedTypes;
420
+ const ElementPrototype = Element.prototype;
421
+ const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
422
+ const remove = lookupGetter(ElementPrototype, 'remove');
423
+ const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
424
+ const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
425
+ const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
426
+ // As per issue #47, the web-components registry is inherited by a
427
+ // new document created via createHTMLDocument. As per the spec
428
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
429
+ // a new empty registry is used when creating a template contents owner
430
+ // document, so we use that as our parent document to ensure nothing
431
+ // is inherited.
432
+ if (typeof HTMLTemplateElement === 'function') {
433
+ const template = document.createElement('template');
434
+ if (template.content && template.content.ownerDocument) {
435
+ document = template.content.ownerDocument;
436
+ }
437
+ }
438
+ let trustedTypesPolicy;
439
+ let emptyHTML = '';
440
+ const _document = document,
441
+ implementation = _document.implementation,
442
+ createNodeIterator = _document.createNodeIterator,
443
+ createDocumentFragment = _document.createDocumentFragment,
444
+ getElementsByTagName = _document.getElementsByTagName;
445
+ const importNode = originalDocument.importNode;
446
+ let hooks = _createHooksMap();
447
+ /**
448
+ * Expose whether this browser supports running the full DOMPurify.
449
+ */
450
+ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
451
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR,
452
+ ERB_EXPR$1 = ERB_EXPR,
453
+ TMPLIT_EXPR$1 = TMPLIT_EXPR,
454
+ DATA_ATTR$1 = DATA_ATTR,
455
+ ARIA_ATTR$1 = ARIA_ATTR,
456
+ IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,
457
+ ATTR_WHITESPACE$1 = ATTR_WHITESPACE,
458
+ CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
459
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
460
+ /**
461
+ * We consider the elements and attributes below to be safe. Ideally
462
+ * don't add any new ones but feel free to remove unwanted ones.
463
+ */
464
+ /* allowed element names */
465
+ let ALLOWED_TAGS = null;
466
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
467
+ /* Allowed attribute names */
468
+ let ALLOWED_ATTR = null;
469
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
470
+ /*
471
+ * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
472
+ * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
473
+ * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
474
+ * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
475
+ */
476
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
477
+ tagNameCheck: {
478
+ writable: true,
479
+ configurable: false,
480
+ enumerable: true,
481
+ value: null
482
+ },
483
+ attributeNameCheck: {
484
+ writable: true,
485
+ configurable: false,
486
+ enumerable: true,
487
+ value: null
488
+ },
489
+ allowCustomizedBuiltInElements: {
490
+ writable: true,
491
+ configurable: false,
492
+ enumerable: true,
493
+ value: false
494
+ }
495
+ }));
496
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
497
+ let FORBID_TAGS = null;
498
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
499
+ let FORBID_ATTR = null;
500
+ /* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
501
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
502
+ tagCheck: {
503
+ writable: true,
504
+ configurable: false,
505
+ enumerable: true,
506
+ value: null
507
+ },
508
+ attributeCheck: {
509
+ writable: true,
510
+ configurable: false,
511
+ enumerable: true,
512
+ value: null
513
+ }
514
+ }));
515
+ /* Decide if ARIA attributes are okay */
516
+ let ALLOW_ARIA_ATTR = true;
517
+ /* Decide if custom data attributes are okay */
518
+ let ALLOW_DATA_ATTR = true;
519
+ /* Decide if unknown protocols are okay */
520
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
521
+ /* Decide if self-closing tags in attributes are allowed.
522
+ * Usually removed due to a mXSS issue in jQuery 3.0 */
523
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
524
+ /* Output should be safe for common template engines.
525
+ * This means, DOMPurify removes data attributes, mustaches and ERB
526
+ */
527
+ let SAFE_FOR_TEMPLATES = false;
528
+ /* Output should be safe even for XML used within HTML and alike.
529
+ * This means, DOMPurify removes comments when containing risky content.
530
+ */
531
+ let SAFE_FOR_XML = true;
532
+ /* Decide if document with <html>... should be returned */
533
+ let WHOLE_DOCUMENT = false;
534
+ /* Track whether config is already set on this instance of DOMPurify. */
535
+ let SET_CONFIG = false;
536
+ /* Decide if all elements (e.g. style, script) must be children of
537
+ * document.body. By default, browsers might move them to document.head */
538
+ let FORCE_BODY = false;
539
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
540
+ * string (or a TrustedHTML object if Trusted Types are supported).
541
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
542
+ */
543
+ let RETURN_DOM = false;
544
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
545
+ * string (or a TrustedHTML object if Trusted Types are supported) */
546
+ let RETURN_DOM_FRAGMENT = false;
547
+ /* Try to return a Trusted Type object instead of a string, return a string in
548
+ * case Trusted Types are not supported */
549
+ let RETURN_TRUSTED_TYPE = false;
550
+ /* Output should be free from DOM clobbering attacks?
551
+ * This sanitizes markups named with colliding, clobberable built-in DOM APIs.
552
+ */
553
+ let SANITIZE_DOM = true;
554
+ /* Achieve full DOM Clobbering protection by isolating the namespace of named
555
+ * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
556
+ *
557
+ * HTML/DOM spec rules that enable DOM Clobbering:
558
+ * - Named Access on Window (§7.3.3)
559
+ * - DOM Tree Accessors (§3.1.5)
560
+ * - Form Element Parent-Child Relations (§4.10.3)
561
+ * - Iframe srcdoc / Nested WindowProxies (§4.8.5)
562
+ * - HTMLCollection (§4.2.10.2)
563
+ *
564
+ * Namespace isolation is implemented by prefixing `id` and `name` attributes
565
+ * with a constant string, i.e., `user-content-`
566
+ */
567
+ let SANITIZE_NAMED_PROPS = false;
568
+ const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
569
+ /* Keep element content when removing element? */
570
+ let KEEP_CONTENT = true;
571
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
572
+ * of importing it into a new Document and returning a sanitized copy */
573
+ let IN_PLACE = false;
574
+ /* Allow usage of profiles like html, svg and mathMl */
575
+ let USE_PROFILES = {};
576
+ /* Tags to ignore content of when KEEP_CONTENT is true */
577
+ let FORBID_CONTENTS = null;
578
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
579
+ /* Tags that are safe for data: URIs */
580
+ let DATA_URI_TAGS = null;
581
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
582
+ /* Attributes safe for values like "javascript:" */
583
+ let URI_SAFE_ATTRIBUTES = null;
584
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
585
+ const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
586
+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
587
+ const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
588
+ /* Document namespace */
589
+ let NAMESPACE = HTML_NAMESPACE;
590
+ let IS_EMPTY_INPUT = false;
591
+ /* Allowed XHTML+XML namespaces */
592
+ let ALLOWED_NAMESPACES = null;
593
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
594
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
595
+ let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
596
+ // Certain elements are allowed in both SVG and HTML
597
+ // namespace. We need to specify them explicitly
598
+ // so that they don't get erroneously deleted from
599
+ // HTML namespace.
600
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
601
+ /* Parsing of strict XHTML documents */
602
+ let PARSER_MEDIA_TYPE = null;
603
+ const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
604
+ const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
605
+ let transformCaseFunc = null;
606
+ /* Keep a reference to config to pass to hooks */
607
+ let CONFIG = null;
608
+ /* Ideally, do not touch anything below this line */
609
+ /* ______________________________________________ */
610
+ const formElement = document.createElement('form');
611
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
612
+ return testValue instanceof RegExp || testValue instanceof Function;
613
+ };
614
+ /**
615
+ * _parseConfig
616
+ *
617
+ * @param cfg optional config literal
618
+ */
619
+ // eslint-disable-next-line complexity
620
+ const _parseConfig = function _parseConfig() {
621
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
622
+ if (CONFIG && CONFIG === cfg) {
623
+ return;
624
+ }
625
+ /* Shield configuration object from tampering */
626
+ if (!cfg || typeof cfg !== 'object') {
627
+ cfg = {};
628
+ }
629
+ /* Shield configuration object from prototype pollution */
630
+ cfg = clone(cfg);
631
+ PARSER_MEDIA_TYPE =
632
+ // eslint-disable-next-line unicorn/prefer-includes
633
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
634
+ // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
635
+ transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
636
+ /* Set configuration parameters */
637
+ ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') && arrayIsArray(cfg.ALLOWED_TAGS) ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
638
+ ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') && arrayIsArray(cfg.ALLOWED_ATTR) ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
639
+ ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') && arrayIsArray(cfg.ALLOWED_NAMESPACES) ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
640
+ URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR) ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
641
+ DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') && arrayIsArray(cfg.ADD_DATA_URI_TAGS) ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
642
+ FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS) ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
643
+ FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') && arrayIsArray(cfg.FORBID_TAGS) ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
644
+ FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') && arrayIsArray(cfg.FORBID_ATTR) ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
645
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
646
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
647
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
648
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
649
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
650
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
651
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
652
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
653
+ RETURN_DOM = cfg.RETURN_DOM || false; // Default false
654
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
655
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
656
+ FORCE_BODY = cfg.FORCE_BODY || false; // Default false
657
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
658
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
659
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
660
+ IN_PLACE = cfg.IN_PLACE || false; // Default false
661
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
662
+ NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
663
+ MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); // Default built-in map
664
+ HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, ['annotation-xml']); // Default built-in map
665
+ const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
666
+ CUSTOM_ELEMENT_HANDLING = create(null);
667
+ if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
668
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
669
+ }
670
+ if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
671
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
672
+ }
673
+ if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
674
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
675
+ }
676
+ if (SAFE_FOR_TEMPLATES) {
677
+ ALLOW_DATA_ATTR = false;
678
+ }
679
+ if (RETURN_DOM_FRAGMENT) {
680
+ RETURN_DOM = true;
681
+ }
682
+ /* Parse profile info */
683
+ if (USE_PROFILES) {
684
+ ALLOWED_TAGS = addToSet({}, text);
685
+ ALLOWED_ATTR = create(null);
686
+ if (USE_PROFILES.html === true) {
687
+ addToSet(ALLOWED_TAGS, html$1);
688
+ addToSet(ALLOWED_ATTR, html);
689
+ }
690
+ if (USE_PROFILES.svg === true) {
691
+ addToSet(ALLOWED_TAGS, svg$1);
692
+ addToSet(ALLOWED_ATTR, svg);
693
+ addToSet(ALLOWED_ATTR, xml);
694
+ }
695
+ if (USE_PROFILES.svgFilters === true) {
696
+ addToSet(ALLOWED_TAGS, svgFilters);
697
+ addToSet(ALLOWED_ATTR, svg);
698
+ addToSet(ALLOWED_ATTR, xml);
699
+ }
700
+ if (USE_PROFILES.mathMl === true) {
701
+ addToSet(ALLOWED_TAGS, mathMl$1);
702
+ addToSet(ALLOWED_ATTR, mathMl);
703
+ addToSet(ALLOWED_ATTR, xml);
704
+ }
705
+ }
706
+ /* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
707
+ * leaking across calls when switching from function to array config */
708
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
709
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
710
+ /* Merge configuration parameters */
711
+ if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
712
+ if (typeof cfg.ADD_TAGS === 'function') {
713
+ EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
714
+ } else if (arrayIsArray(cfg.ADD_TAGS)) {
715
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
716
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
717
+ }
718
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
719
+ }
720
+ }
721
+ if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
722
+ if (typeof cfg.ADD_ATTR === 'function') {
723
+ EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
724
+ } else if (arrayIsArray(cfg.ADD_ATTR)) {
725
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
726
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
727
+ }
728
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
729
+ }
730
+ }
731
+ if (objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) {
732
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
733
+ }
734
+ if (objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS)) {
735
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
736
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
737
+ }
738
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
739
+ }
740
+ if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
741
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
742
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
743
+ }
744
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
745
+ }
746
+ /* Add #text in case KEEP_CONTENT is set to true */
747
+ if (KEEP_CONTENT) {
748
+ ALLOWED_TAGS['#text'] = true;
749
+ }
750
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
751
+ if (WHOLE_DOCUMENT) {
752
+ addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
753
+ }
754
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
755
+ if (ALLOWED_TAGS.table) {
756
+ addToSet(ALLOWED_TAGS, ['tbody']);
757
+ delete FORBID_TAGS.tbody;
758
+ }
759
+ if (cfg.TRUSTED_TYPES_POLICY) {
760
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
761
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
762
+ }
763
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
764
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
765
+ }
766
+ // Overwrite existing TrustedTypes policy.
767
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
768
+ // Sign local variables required by `sanitize`.
769
+ emptyHTML = trustedTypesPolicy.createHTML('');
770
+ } else {
771
+ // Uninitialized policy, attempt to initialize the internal dompurify policy.
772
+ if (trustedTypesPolicy === undefined) {
773
+ trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
774
+ }
775
+ // If creating the internal policy succeeded sign internal variables.
776
+ if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
777
+ emptyHTML = trustedTypesPolicy.createHTML('');
778
+ }
779
+ }
780
+ // Prevent further manipulation of configuration.
781
+ // Not available in IE8, Safari 5, etc.
782
+ if (freeze) {
783
+ freeze(cfg);
784
+ }
785
+ CONFIG = cfg;
786
+ };
787
+ /* Keep track of all possible SVG and MathML tags
788
+ * so that we can perform the namespace checks
789
+ * correctly. */
790
+ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
791
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
792
+ /**
793
+ * @param element a DOM element whose namespace is being checked
794
+ * @returns Return false if the element has a
795
+ * namespace that a spec-compliant parser would never
796
+ * return. Return true otherwise.
797
+ */
798
+ const _checkValidNamespace = function _checkValidNamespace(element) {
799
+ let parent = getParentNode(element);
800
+ // In JSDOM, if we're inside shadow DOM, then parentNode
801
+ // can be null. We just simulate parent in this case.
802
+ if (!parent || !parent.tagName) {
803
+ parent = {
804
+ namespaceURI: NAMESPACE,
805
+ tagName: 'template'
806
+ };
807
+ }
808
+ const tagName = stringToLowerCase(element.tagName);
809
+ const parentTagName = stringToLowerCase(parent.tagName);
810
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
811
+ return false;
812
+ }
813
+ if (element.namespaceURI === SVG_NAMESPACE) {
814
+ // The only way to switch from HTML namespace to SVG
815
+ // is via <svg>. If it happens via any other tag, then
816
+ // it should be killed.
817
+ if (parent.namespaceURI === HTML_NAMESPACE) {
818
+ return tagName === 'svg';
819
+ }
820
+ // The only way to switch from MathML to SVG is via`
821
+ // svg if parent is either <annotation-xml> or MathML
822
+ // text integration points.
823
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
824
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
825
+ }
826
+ // We only allow elements that are defined in SVG
827
+ // spec. All others are disallowed in SVG namespace.
828
+ return Boolean(ALL_SVG_TAGS[tagName]);
829
+ }
830
+ if (element.namespaceURI === MATHML_NAMESPACE) {
831
+ // The only way to switch from HTML namespace to MathML
832
+ // is via <math>. If it happens via any other tag, then
833
+ // it should be killed.
834
+ if (parent.namespaceURI === HTML_NAMESPACE) {
835
+ return tagName === 'math';
836
+ }
837
+ // The only way to switch from SVG to MathML is via
838
+ // <math> and HTML integration points
839
+ if (parent.namespaceURI === SVG_NAMESPACE) {
840
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
841
+ }
842
+ // We only allow elements that are defined in MathML
843
+ // spec. All others are disallowed in MathML namespace.
844
+ return Boolean(ALL_MATHML_TAGS[tagName]);
845
+ }
846
+ if (element.namespaceURI === HTML_NAMESPACE) {
847
+ // The only way to switch from SVG to HTML is via
848
+ // HTML integration points, and from MathML to HTML
849
+ // is via MathML text integration points
850
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
851
+ return false;
852
+ }
853
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
854
+ return false;
855
+ }
856
+ // We disallow tags that are specific for MathML
857
+ // or SVG and should never appear in HTML namespace
858
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
859
+ }
860
+ // For XHTML and XML documents that support custom namespaces
861
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
862
+ return true;
863
+ }
864
+ // The code should never reach this place (this means
865
+ // that the element somehow got namespace that is not
866
+ // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
867
+ // Return false just in case.
868
+ return false;
869
+ };
870
+ /**
871
+ * _forceRemove
872
+ *
873
+ * @param node a DOM node
874
+ */
875
+ const _forceRemove = function _forceRemove(node) {
876
+ arrayPush(DOMPurify.removed, {
877
+ element: node
878
+ });
879
+ try {
880
+ // eslint-disable-next-line unicorn/prefer-dom-node-remove
881
+ getParentNode(node).removeChild(node);
882
+ } catch (_) {
883
+ remove(node);
884
+ }
885
+ };
886
+ /**
887
+ * _removeAttribute
888
+ *
889
+ * @param name an Attribute name
890
+ * @param element a DOM node
891
+ */
892
+ const _removeAttribute = function _removeAttribute(name, element) {
893
+ try {
894
+ arrayPush(DOMPurify.removed, {
895
+ attribute: element.getAttributeNode(name),
896
+ from: element
897
+ });
898
+ } catch (_) {
899
+ arrayPush(DOMPurify.removed, {
900
+ attribute: null,
901
+ from: element
902
+ });
903
+ }
904
+ element.removeAttribute(name);
905
+ // We void attribute values for unremovable "is" attributes
906
+ if (name === 'is') {
907
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
908
+ try {
909
+ _forceRemove(element);
910
+ } catch (_) {}
911
+ } else {
912
+ try {
913
+ element.setAttribute(name, '');
914
+ } catch (_) {}
915
+ }
916
+ }
917
+ };
918
+ /**
919
+ * _initDocument
920
+ *
921
+ * @param dirty - a string of dirty markup
922
+ * @return a DOM, filled with the dirty markup
923
+ */
924
+ const _initDocument = function _initDocument(dirty) {
925
+ /* Create a HTML document */
926
+ let doc = null;
927
+ let leadingWhitespace = null;
928
+ if (FORCE_BODY) {
929
+ dirty = '<remove></remove>' + dirty;
930
+ } else {
931
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
932
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
933
+ leadingWhitespace = matches && matches[0];
934
+ }
935
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
936
+ // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
937
+ dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
938
+ }
939
+ const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
940
+ /*
941
+ * Use the DOMParser API by default, fallback later if needs be
942
+ * DOMParser not work for svg when has multiple root element.
943
+ */
944
+ if (NAMESPACE === HTML_NAMESPACE) {
945
+ try {
946
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
947
+ } catch (_) {}
948
+ }
949
+ /* Use createHTMLDocument in case DOMParser is not available */
950
+ if (!doc || !doc.documentElement) {
951
+ doc = implementation.createDocument(NAMESPACE, 'template', null);
952
+ try {
953
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
954
+ } catch (_) {
955
+ // Syntax error if dirtyPayload is invalid xml
956
+ }
957
+ }
958
+ const body = doc.body || doc.documentElement;
959
+ if (dirty && leadingWhitespace) {
960
+ body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
961
+ }
962
+ /* Work on whole document or just its body */
963
+ if (NAMESPACE === HTML_NAMESPACE) {
964
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
965
+ }
966
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
967
+ };
968
+ /**
969
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
970
+ *
971
+ * @param root The root element or node to start traversing on.
972
+ * @return The created NodeIterator
973
+ */
974
+ const _createNodeIterator = function _createNodeIterator(root) {
975
+ return createNodeIterator.call(root.ownerDocument || root, root,
976
+ // eslint-disable-next-line no-bitwise
977
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
978
+ };
979
+ /**
980
+ * _isClobbered
981
+ *
982
+ * @param element element to check for clobbering attacks
983
+ * @return true if clobbered, false if safe
984
+ */
985
+ const _isClobbered = function _isClobbered(element) {
986
+ return element instanceof HTMLFormElement && (typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function');
987
+ };
988
+ /**
989
+ * Checks whether the given object is a DOM node.
990
+ *
991
+ * @param value object to check whether it's a DOM node
992
+ * @return true is object is a DOM node
993
+ */
994
+ const _isNode = function _isNode(value) {
995
+ return typeof Node === 'function' && value instanceof Node;
996
+ };
997
+ function _executeHooks(hooks, currentNode, data) {
998
+ arrayForEach(hooks, hook => {
999
+ hook.call(DOMPurify, currentNode, data, CONFIG);
1000
+ });
1001
+ }
1002
+ /**
1003
+ * _sanitizeElements
1004
+ *
1005
+ * @protect nodeName
1006
+ * @protect textContent
1007
+ * @protect removeChild
1008
+ * @param currentNode to check for permission to exist
1009
+ * @return true if node was killed, false if left alive
1010
+ */
1011
+ const _sanitizeElements = function _sanitizeElements(currentNode) {
1012
+ let content = null;
1013
+ /* Execute a hook if present */
1014
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1015
+ /* Check if element is clobbered or can clobber */
1016
+ if (_isClobbered(currentNode)) {
1017
+ _forceRemove(currentNode);
1018
+ return true;
1019
+ }
1020
+ /* Now let's check the element's type and name */
1021
+ const tagName = transformCaseFunc(currentNode.nodeName);
1022
+ /* Execute a hook if present */
1023
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
1024
+ tagName,
1025
+ allowedTags: ALLOWED_TAGS
1026
+ });
1027
+ /* Detect mXSS attempts abusing namespace confusion */
1028
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1029
+ _forceRemove(currentNode);
1030
+ return true;
1031
+ }
1032
+ /* Remove risky CSS construction leading to mXSS */
1033
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
1034
+ _forceRemove(currentNode);
1035
+ return true;
1036
+ }
1037
+ /* Remove any occurrence of processing instructions */
1038
+ if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
1039
+ _forceRemove(currentNode);
1040
+ return true;
1041
+ }
1042
+ /* Remove any kind of possibly harmful comments */
1043
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
1044
+ _forceRemove(currentNode);
1045
+ return true;
1046
+ }
1047
+ /* Remove element if anything forbids its presence */
1048
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1049
+ /* Check if we have a custom element to handle */
1050
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1051
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1052
+ return false;
1053
+ }
1054
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1055
+ return false;
1056
+ }
1057
+ }
1058
+ /* Keep content except for bad-listed elements */
1059
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1060
+ const parentNode = getParentNode(currentNode) || currentNode.parentNode;
1061
+ const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1062
+ if (childNodes && parentNode) {
1063
+ const childCount = childNodes.length;
1064
+ for (let i = childCount - 1; i >= 0; --i) {
1065
+ const childClone = cloneNode(childNodes[i], true);
1066
+ parentNode.insertBefore(childClone, getNextSibling(currentNode));
1067
+ }
1068
+ }
1069
+ }
1070
+ _forceRemove(currentNode);
1071
+ return true;
1072
+ }
1073
+ /* Check whether element has a valid namespace */
1074
+ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
1075
+ _forceRemove(currentNode);
1076
+ return true;
1077
+ }
1078
+ /* Make sure that older browsers don't get fallback-tag mXSS */
1079
+ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
1080
+ _forceRemove(currentNode);
1081
+ return true;
1082
+ }
1083
+ /* Sanitize element content to be template-safe */
1084
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1085
+ /* Get the element's text content */
1086
+ content = currentNode.textContent;
1087
+ arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1088
+ content = stringReplace(content, expr, ' ');
1089
+ });
1090
+ if (currentNode.textContent !== content) {
1091
+ arrayPush(DOMPurify.removed, {
1092
+ element: currentNode.cloneNode()
1093
+ });
1094
+ currentNode.textContent = content;
1095
+ }
1096
+ }
1097
+ /* Execute a hook if present */
1098
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1099
+ return false;
1100
+ };
1101
+ /**
1102
+ * _isValidAttribute
1103
+ *
1104
+ * @param lcTag Lowercase tag name of containing element.
1105
+ * @param lcName Lowercase attribute name.
1106
+ * @param value Attribute value.
1107
+ * @return Returns true if `value` is valid, otherwise false.
1108
+ */
1109
+ // eslint-disable-next-line complexity
1110
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
1111
+ /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
1112
+ if (FORBID_ATTR[lcName]) {
1113
+ return false;
1114
+ }
1115
+ /* Make sure attribute cannot clobber */
1116
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
1117
+ return false;
1118
+ }
1119
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
1120
+ /* Allow valid data-* attributes: At least one character after "-"
1121
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
1122
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
1123
+ We don't need to check the value; it's always URI safe. */
1124
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!nameIsPermitted || FORBID_ATTR[lcName]) {
1125
+ if (
1126
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1127
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1128
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1129
+ _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)) ||
1130
+ // Alternative, second condition checks if it's an `is`-attribute, AND
1131
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1132
+ 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 {
1133
+ return false;
1134
+ }
1135
+ /* Check value is safe. First, is attr inert? If so, is safe */
1136
+ } 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) {
1137
+ return false;
1138
+ } else ;
1139
+ return true;
1140
+ };
1141
+ /* Names the HTML spec reserves from valid-custom-element-name; these must
1142
+ * never be treated as basic custom elements even when a permissive
1143
+ * CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
1144
+ 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']);
1145
+ /**
1146
+ * _isBasicCustomElement
1147
+ * checks if at least one dash is included in tagName, and it's not the first char
1148
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
1149
+ *
1150
+ * @param tagName name of the tag of the node to sanitize
1151
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
1152
+ */
1153
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1154
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
1155
+ };
1156
+ /**
1157
+ * _sanitizeAttributes
1158
+ *
1159
+ * @protect attributes
1160
+ * @protect nodeName
1161
+ * @protect removeAttribute
1162
+ * @protect setAttribute
1163
+ *
1164
+ * @param currentNode to sanitize
1165
+ */
1166
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
1167
+ /* Execute a hook if present */
1168
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1169
+ const attributes = currentNode.attributes;
1170
+ /* Check if we have attributes; if not we might have a text node */
1171
+ if (!attributes || _isClobbered(currentNode)) {
1172
+ return;
1173
+ }
1174
+ const hookEvent = {
1175
+ attrName: '',
1176
+ attrValue: '',
1177
+ keepAttr: true,
1178
+ allowedAttributes: ALLOWED_ATTR,
1179
+ forceKeepAttr: undefined
1180
+ };
1181
+ let l = attributes.length;
1182
+ /* Go backwards over all attributes; safely remove bad ones */
1183
+ while (l--) {
1184
+ const attr = attributes[l];
1185
+ const name = attr.name,
1186
+ namespaceURI = attr.namespaceURI,
1187
+ attrValue = attr.value;
1188
+ const lcName = transformCaseFunc(name);
1189
+ const initValue = attrValue;
1190
+ let value = name === 'value' ? initValue : stringTrim(initValue);
1191
+ /* Execute a hook if present */
1192
+ hookEvent.attrName = lcName;
1193
+ hookEvent.attrValue = value;
1194
+ hookEvent.keepAttr = true;
1195
+ hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
1196
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
1197
+ value = hookEvent.attrValue;
1198
+ /* Full DOM Clobbering protection via namespace isolation,
1199
+ * Prefix id and name attributes with `user-content-`
1200
+ */
1201
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
1202
+ // Remove the attribute with this value
1203
+ _removeAttribute(name, currentNode);
1204
+ // Prefix the value and later re-create the attribute with the sanitized value
1205
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
1206
+ }
1207
+ // Else: already prefixed, leave the attribute alone — the prefix is
1208
+ // itself the clobbering protection, and re-applying it is incorrect.
1209
+ /* Work around a security issue with comments inside attributes */
1210
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
1211
+ _removeAttribute(name, currentNode);
1212
+ continue;
1213
+ }
1214
+ /* Make sure we cannot easily use animated hrefs, even if animations are allowed */
1215
+ if (lcName === 'attributename' && stringMatch(value, 'href')) {
1216
+ _removeAttribute(name, currentNode);
1217
+ continue;
1218
+ }
1219
+ /* Did the hooks approve of the attribute? */
1220
+ if (hookEvent.forceKeepAttr) {
1221
+ continue;
1222
+ }
1223
+ /* Did the hooks approve of the attribute? */
1224
+ if (!hookEvent.keepAttr) {
1225
+ _removeAttribute(name, currentNode);
1226
+ continue;
1227
+ }
1228
+ /* Work around a security issue in jQuery 3.0 */
1229
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
1230
+ _removeAttribute(name, currentNode);
1231
+ continue;
1232
+ }
1233
+ /* Sanitize attribute content to be template-safe */
1234
+ if (SAFE_FOR_TEMPLATES) {
1235
+ arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1236
+ value = stringReplace(value, expr, ' ');
1237
+ });
1238
+ }
1239
+ /* Is `value` valid for this attribute? */
1240
+ const lcTag = transformCaseFunc(currentNode.nodeName);
1241
+ if (!_isValidAttribute(lcTag, lcName, value)) {
1242
+ _removeAttribute(name, currentNode);
1243
+ continue;
1244
+ }
1245
+ /* Handle attributes that require Trusted Types */
1246
+ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
1247
+ if (namespaceURI) ; else {
1248
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1249
+ case 'TrustedHTML':
1250
+ {
1251
+ value = trustedTypesPolicy.createHTML(value);
1252
+ break;
1253
+ }
1254
+ case 'TrustedScriptURL':
1255
+ {
1256
+ value = trustedTypesPolicy.createScriptURL(value);
1257
+ break;
1258
+ }
1259
+ }
1260
+ }
1261
+ }
1262
+ /* Handle invalid data-* attribute set by try-catching it */
1263
+ if (value !== initValue) {
1264
+ try {
1265
+ if (namespaceURI) {
1266
+ currentNode.setAttributeNS(namespaceURI, name, value);
1267
+ } else {
1268
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1269
+ currentNode.setAttribute(name, value);
1270
+ }
1271
+ if (_isClobbered(currentNode)) {
1272
+ _forceRemove(currentNode);
1273
+ } else {
1274
+ arrayPop(DOMPurify.removed);
1275
+ }
1276
+ } catch (_) {
1277
+ _removeAttribute(name, currentNode);
1278
+ }
1279
+ }
1280
+ }
1281
+ /* Execute a hook if present */
1282
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
1283
+ };
1284
+ /**
1285
+ * _sanitizeShadowDOM
1286
+ *
1287
+ * @param fragment to iterate over recursively
1288
+ */
1289
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
1290
+ let shadowNode = null;
1291
+ const shadowIterator = _createNodeIterator(fragment);
1292
+ /* Execute a hook if present */
1293
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
1294
+ while (shadowNode = shadowIterator.nextNode()) {
1295
+ /* Execute a hook if present */
1296
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
1297
+ /* Sanitize tags and elements */
1298
+ _sanitizeElements(shadowNode);
1299
+ /* Check attributes next */
1300
+ _sanitizeAttributes(shadowNode);
1301
+ /* Deep shadow DOM detected */
1302
+ if (shadowNode.content instanceof DocumentFragment) {
1303
+ _sanitizeShadowDOM2(shadowNode.content);
1304
+ }
1305
+ }
1306
+ /* Execute a hook if present */
1307
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
1308
+ };
1309
+ /**
1310
+ * _sanitizeAttachedShadowRoots
1311
+ *
1312
+ * Walks `root` and feeds every attached shadow root we encounter into
1313
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
1314
+ * does not descend into shadow trees, so nodes inside an attached
1315
+ * shadow root would otherwise be skipped entirely.
1316
+ *
1317
+ * Two real input paths put attached shadow roots in front of us:
1318
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
1319
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
1320
+ * shadow root because it was created with `clonable: true`.
1321
+ *
1322
+ * This pass runs once, up front, so the main iteration loop (and the
1323
+ * existing _sanitizeShadowDOM template-content recursion) stay
1324
+ * untouched — string-input paths are not affected.
1325
+ *
1326
+ * @param root the subtree root to walk for attached shadow roots
1327
+ */
1328
+ const _sanitizeAttachedShadowRoots2 = function _sanitizeAttachedShadowRoots(root) {
1329
+ if (root.nodeType === NODE_TYPE.element && root.shadowRoot instanceof DocumentFragment) {
1330
+ const sr = root.shadowRoot;
1331
+ // Recurse first so that nested shadow roots are reached even if
1332
+ // _sanitizeShadowDOM removes hosts at this level.
1333
+ _sanitizeAttachedShadowRoots2(sr);
1334
+ _sanitizeShadowDOM2(sr);
1335
+ }
1336
+ // Snapshot children before recursing. Sanitization of one subtree
1337
+ // (e.g. via an uponSanitizeShadowNode hook) may detach siblings,
1338
+ // and naive nextSibling traversal would silently skip the rest of
1339
+ // the list once a node is detached.
1340
+ const childNodes = root.childNodes;
1341
+ if (!childNodes) {
1342
+ return;
1343
+ }
1344
+ const snapshot = [];
1345
+ arrayForEach(childNodes, child => {
1346
+ arrayPush(snapshot, child);
1347
+ });
1348
+ for (const child of snapshot) {
1349
+ _sanitizeAttachedShadowRoots2(child);
1350
+ }
1351
+ };
1352
+ // eslint-disable-next-line complexity
1353
+ DOMPurify.sanitize = function (dirty) {
1354
+ let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1355
+ let body = null;
1356
+ let importedNode = null;
1357
+ let currentNode = null;
1358
+ let returnNode = null;
1359
+ /* Make sure we have a string to sanitize.
1360
+ DO NOT return early, as this will return the wrong type if
1361
+ the user has requested a DOM object rather than a string */
1362
+ IS_EMPTY_INPUT = !dirty;
1363
+ if (IS_EMPTY_INPUT) {
1364
+ dirty = '<!-->';
1365
+ }
1366
+ /* Stringify, in case dirty is an object */
1367
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
1368
+ dirty = stringifyValue(dirty);
1369
+ if (typeof dirty !== 'string') {
1370
+ throw typeErrorCreate('dirty is not a string, aborting');
1371
+ }
1372
+ }
1373
+ /* Return dirty HTML if DOMPurify cannot run */
1374
+ if (!DOMPurify.isSupported) {
1375
+ return dirty;
1376
+ }
1377
+ /* Assign config vars */
1378
+ if (!SET_CONFIG) {
1379
+ _parseConfig(cfg);
1380
+ }
1381
+ /* Clean up removed elements */
1382
+ DOMPurify.removed = [];
1383
+ /* Check if dirty is correctly typed for IN_PLACE */
1384
+ if (typeof dirty === 'string') {
1385
+ IN_PLACE = false;
1386
+ }
1387
+ if (IN_PLACE) {
1388
+ /* Do some early pre-sanitization to avoid unsafe root nodes */
1389
+ const nn = dirty.nodeName;
1390
+ if (typeof nn === 'string') {
1391
+ const tagName = transformCaseFunc(nn);
1392
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1393
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
1394
+ }
1395
+ }
1396
+ /* Sanitize attached shadow roots before the main iterator runs.
1397
+ The iterator does not descend into shadow trees. */
1398
+ _sanitizeAttachedShadowRoots2(dirty);
1399
+ } else if (dirty instanceof Node) {
1400
+ /* If dirty is a DOM element, append to an empty document to avoid
1401
+ elements being stripped by the parser */
1402
+ body = _initDocument('<!---->');
1403
+ importedNode = body.ownerDocument.importNode(dirty, true);
1404
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
1405
+ /* Node is already a body, use as is */
1406
+ body = importedNode;
1407
+ } else if (importedNode.nodeName === 'HTML') {
1408
+ body = importedNode;
1409
+ } else {
1410
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
1411
+ body.appendChild(importedNode);
1412
+ }
1413
+ /* Clonable shadow roots are deep-cloned by importNode(); sanitize
1414
+ them before the main iterator runs, since the iterator does not
1415
+ descend into shadow trees. */
1416
+ _sanitizeAttachedShadowRoots2(importedNode);
1417
+ } else {
1418
+ /* Exit directly if we have nothing to do */
1419
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
1420
+ // eslint-disable-next-line unicorn/prefer-includes
1421
+ dirty.indexOf('<') === -1) {
1422
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
1423
+ }
1424
+ /* Initialize the document to work on */
1425
+ body = _initDocument(dirty);
1426
+ /* Check we have a DOM node from the data */
1427
+ if (!body) {
1428
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
1429
+ }
1430
+ }
1431
+ /* Remove first element node (ours) if FORCE_BODY is set */
1432
+ if (body && FORCE_BODY) {
1433
+ _forceRemove(body.firstChild);
1434
+ }
1435
+ /* Get node iterator */
1436
+ const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
1437
+ /* Now start iterating over the created document */
1438
+ while (currentNode = nodeIterator.nextNode()) {
1439
+ /* Sanitize tags and elements */
1440
+ _sanitizeElements(currentNode);
1441
+ /* Check attributes next */
1442
+ _sanitizeAttributes(currentNode);
1443
+ /* Shadow DOM detected, sanitize it */
1444
+ if (currentNode.content instanceof DocumentFragment) {
1445
+ _sanitizeShadowDOM2(currentNode.content);
1446
+ }
1447
+ }
1448
+ /* If we sanitized `dirty` in-place, return it. */
1449
+ if (IN_PLACE) {
1450
+ return dirty;
1451
+ }
1452
+ /* Return sanitized string or DOM */
1453
+ if (RETURN_DOM) {
1454
+ if (SAFE_FOR_TEMPLATES) {
1455
+ body.normalize();
1456
+ let html = body.innerHTML;
1457
+ arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1458
+ html = stringReplace(html, expr, ' ');
1459
+ });
1460
+ body.innerHTML = html;
1461
+ }
1462
+ if (RETURN_DOM_FRAGMENT) {
1463
+ returnNode = createDocumentFragment.call(body.ownerDocument);
1464
+ while (body.firstChild) {
1465
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
1466
+ returnNode.appendChild(body.firstChild);
1467
+ }
1468
+ } else {
1469
+ returnNode = body;
1470
+ }
1471
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
1472
+ /*
1473
+ AdoptNode() is not used because internal state is not reset
1474
+ (e.g. the past names map of a HTMLFormElement), this is safe
1475
+ in theory but we would rather not risk another attack vector.
1476
+ The state that is cloned by importNode() is explicitly defined
1477
+ by the specs.
1478
+ */
1479
+ returnNode = importNode.call(originalDocument, returnNode, true);
1480
+ }
1481
+ return returnNode;
1482
+ }
1483
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1484
+ /* Serialize doctype if allowed */
1485
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
1486
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
1487
+ }
1488
+ /* Sanitize final string template-safe */
1489
+ if (SAFE_FOR_TEMPLATES) {
1490
+ arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
1491
+ serializedHTML = stringReplace(serializedHTML, expr, ' ');
1492
+ });
1493
+ }
1494
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
1495
+ };
1496
+ DOMPurify.setConfig = function () {
1497
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1498
+ _parseConfig(cfg);
1499
+ SET_CONFIG = true;
1500
+ };
1501
+ DOMPurify.clearConfig = function () {
1502
+ CONFIG = null;
1503
+ SET_CONFIG = false;
1504
+ };
1505
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
1506
+ /* Initialize shared config vars if necessary. */
1507
+ if (!CONFIG) {
1508
+ _parseConfig({});
1509
+ }
1510
+ const lcTag = transformCaseFunc(tag);
1511
+ const lcName = transformCaseFunc(attr);
1512
+ return _isValidAttribute(lcTag, lcName, value);
1513
+ };
1514
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
1515
+ if (typeof hookFunction !== 'function') {
1516
+ return;
1517
+ }
1518
+ arrayPush(hooks[entryPoint], hookFunction);
1519
+ };
1520
+ DOMPurify.removeHook = function (entryPoint, hookFunction) {
1521
+ if (hookFunction !== undefined) {
1522
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
1523
+ return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
1524
+ }
1525
+ return arrayPop(hooks[entryPoint]);
1526
+ };
1527
+ DOMPurify.removeHooks = function (entryPoint) {
1528
+ hooks[entryPoint] = [];
1529
+ };
1530
+ DOMPurify.removeAllHooks = function () {
1531
+ hooks = _createHooksMap();
1532
+ };
1533
+ return DOMPurify;
1534
+ }
1535
+ var purify = createDOMPurify();
1536
+
1537
+ /**
1538
+ * Sanitizes HTML to prevent XSS attacks.
1539
+ * Use this when rendering dynamic HTML via innerHTML.
1540
+ */
1541
+ function sanitizeHTML(html) {
1542
+ if (!html)
1543
+ return '';
1544
+ return purify.sanitize(html);
1545
+ }
1546
+
1547
+ exports.sanitizeHTML = sanitizeHTML;