@plumile/ui 0.1.144 → 0.1.146

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 (237) hide show
  1. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +1 -1
  2. package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +2 -4
  3. package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -1
  4. package/lib/esm/admin/theme/adminSurface.css.js +2 -0
  5. package/lib/esm/atomic/atoms/badge/badge.css.js +7 -7
  6. package/lib/esm/atomic/atoms/button/button.css.js +38 -38
  7. package/lib/esm/atomic/atoms/button/button.css.js.map +1 -1
  8. package/lib/esm/atomic/atoms/checkbox/checkbox.css.js +6 -6
  9. package/lib/esm/atomic/atoms/checkbox/checkbox.css.js.map +1 -1
  10. package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -1
  11. package/lib/esm/atomic/atoms/input/input.css.js +9 -9
  12. package/lib/esm/atomic/atoms/label/label.css.js +4 -4
  13. package/lib/esm/atomic/atoms/modal/Modal.js +1 -1
  14. package/lib/esm/atomic/atoms/modal/modal.css.js +1 -1
  15. package/lib/esm/atomic/atoms/overlay/overlay.css.js +1 -1
  16. package/lib/esm/atomic/atoms/overlay/overlay.css.js.map +1 -1
  17. package/lib/esm/atomic/atoms/textarea/textarea.css.js +8 -8
  18. package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +1 -1
  19. package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.js +1 -1
  20. package/lib/esm/atomic/molecules/checkbox_field/checkboxField.css.js +1 -1
  21. package/lib/esm/atomic/molecules/dropdown/dropdown.css.js +1 -1
  22. package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +28 -28
  23. package/lib/esm/atomic/molecules/form/formStyles.css.js +1 -1
  24. package/lib/esm/atomic/molecules/form/formStyles.css.js.map +1 -1
  25. package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
  26. package/lib/esm/atomic/molecules/form_field/formField.css.js +1 -1
  27. package/lib/esm/atomic/molecules/form_grid/FormGrid.css.js +8 -0
  28. package/lib/esm/atomic/molecules/form_grid/FormGrid.css.js.map +1 -0
  29. package/lib/esm/atomic/molecules/form_grid/FormGrid.js +16 -0
  30. package/lib/esm/atomic/molecules/form_grid/FormGrid.js.map +1 -0
  31. package/lib/esm/atomic/molecules/highlight/HighlightCode.css.js +1 -1
  32. package/lib/esm/atomic/molecules/highlight/highlightStyles.css.js +1 -1
  33. package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.css.js +1 -1
  34. package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -1
  35. package/lib/esm/atomic/molecules/markdown/components/MarkdownBlockquote.css.js +1 -1
  36. package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.css.js +1 -1
  37. package/lib/esm/atomic/molecules/markdown/components/MarkdownEmphasis.css.js +1 -0
  38. package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteDefinition.css.js +1 -1
  39. package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js +1 -1
  40. package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnotesSection.css.js +1 -1
  41. package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +7 -8
  42. package/lib/esm/atomic/molecules/markdown/components/MarkdownHtmlFallback.css.js +1 -1
  43. package/lib/esm/atomic/molecules/markdown/components/MarkdownImage.css.js +1 -1
  44. package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js +1 -1
  45. package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +1 -1
  46. package/lib/esm/atomic/molecules/markdown/components/MarkdownList.css.js +1 -1
  47. package/lib/esm/atomic/molecules/markdown/components/MarkdownListItem.css.js +1 -1
  48. package/lib/esm/atomic/molecules/markdown/components/MarkdownMark.css.js +1 -1
  49. package/lib/esm/atomic/molecules/markdown/components/MarkdownMermaidBlock.css.js +1 -1
  50. package/lib/esm/atomic/molecules/markdown/components/MarkdownParagraph.css.js +1 -1
  51. package/lib/esm/atomic/molecules/markdown/components/MarkdownStrong.css.js +1 -1
  52. package/lib/esm/atomic/molecules/markdown/components/MarkdownTable.css.js +1 -1
  53. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCaption.css.js +1 -1
  54. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +1 -1
  55. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableHead.css.js +1 -1
  56. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableHeaderCell.css.js +1 -1
  57. package/lib/esm/atomic/molecules/markdown/components/MarkdownTaskListItem.css.js +1 -1
  58. package/lib/esm/atomic/molecules/markdown/components/MarkdownText.css.js +1 -1
  59. package/lib/esm/atomic/molecules/markdown/components/MarkdownThematicBreak.css.js +1 -1
  60. package/lib/esm/atomic/molecules/tabs/tabs.css.js +16 -16
  61. package/lib/esm/atomic/molecules/toast/toast.css.js +2 -2
  62. package/lib/esm/atomic/organisms/login_form/loginForm.css.js +1 -1
  63. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +85 -85
  64. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js.map +1 -1
  65. package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js +19 -19
  66. package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js.map +1 -1
  67. package/lib/esm/atomic/organisms/sidebar/navigationSidebar.css.js +16 -16
  68. package/lib/esm/atomic/organisms/sidebar/navigationSidebar.css.js.map +1 -1
  69. package/lib/esm/atomic/organisms/sidebar/sidebar.css.js +6 -6
  70. package/lib/esm/atomic/organisms/sidebar/sidebar.css.js.map +1 -1
  71. package/lib/esm/atomic/templates/auth_layout/authLayout.css.js +1 -1
  72. package/lib/esm/atomic/templates/auth_layout/authLayout.css.js.map +1 -1
  73. package/lib/esm/atomic/templates/page-container/PageContainer.js +3 -3
  74. package/lib/esm/atomic/templates/page-container/pageContainer.css.js +1 -1
  75. package/lib/esm/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.js +1 -1
  76. package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js +1 -1
  77. package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js +1 -1
  78. package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js +5 -5
  79. package/lib/esm/backoffice/atoms/spinner/spinner.css.js +1 -1
  80. package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js +1 -1
  81. package/lib/esm/backoffice/atoms/tag/tag.css.js +7 -7
  82. package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js +8 -8
  83. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js +1 -1
  84. package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js +1 -1
  85. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js +1 -1
  86. package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +7 -7
  87. package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js +1 -1
  88. package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js +1 -1
  89. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js +1 -1
  90. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +1 -1
  91. package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js +1 -1
  92. package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +1 -1
  93. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js +2 -2
  94. package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js +1 -1
  95. package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +4 -4
  96. package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +1 -1
  97. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js +1 -1
  98. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js +1 -1
  99. package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js +1 -1
  100. package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js +1 -1
  101. package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +4 -4
  102. package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js +1 -1
  103. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js +1 -1
  104. package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js +4 -4
  105. package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js +8 -8
  106. package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js +4 -4
  107. package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
  108. package/lib/esm/backoffice/molecules/confirm_dialog/confirmDialog.css.js +1 -1
  109. package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js +1 -1
  110. package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js +1 -1
  111. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js +0 -1
  112. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js.map +1 -1
  113. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
  114. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +1 -1
  115. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +5 -5
  116. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +1 -1
  117. package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +3 -3
  118. package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +5 -5
  119. package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +6 -6
  120. package/lib/esm/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.js +1 -1
  121. package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js +1 -1
  122. package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +4 -4
  123. package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +5 -5
  124. package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js +1 -1
  125. package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js +8 -8
  126. package/lib/esm/components/agent/AgentMarkdownCard.css.js +1 -1
  127. package/lib/esm/components/charts/metricHistoryChart.css.js +1 -1
  128. package/lib/esm/components/charts/timeSeriesLineChart.css.js +1 -1
  129. package/lib/esm/components/dashboard/activity_card/ActivityCard.css.js +1 -1
  130. package/lib/esm/components/dashboard/activity_card/ActivityCard.js +2 -2
  131. package/lib/esm/components/dashboard/activity_feed/ActivityFeed.css.js +1 -1
  132. package/lib/esm/components/dashboard/dashboard_grid/DashboardGrid.css.js +14 -14
  133. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js +1 -1
  134. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js +1 -1
  135. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js +1 -1
  136. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js +1 -1
  137. package/lib/esm/components/dashboard/metadata_strip/MetadataStrip.css.js +1 -1
  138. package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +6 -6
  139. package/lib/esm/components/dashboard/metric_card/MetricCard.js +2 -2
  140. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +11 -11
  141. package/lib/esm/components/dashboard/page_hero/PageHero.css.js +1 -1
  142. package/lib/esm/components/dashboard/page_hero/PageHero.js +3 -3
  143. package/lib/esm/components/dashboard/selectable_card/SelectableCard.css.js +1 -1
  144. package/lib/esm/components/dashboard/selectable_card/SelectableCard.js +2 -2
  145. package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.css.js +1 -1
  146. package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +1 -1
  147. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +2 -2
  148. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +8 -8
  149. package/lib/esm/components/data-table/DataTable.css.js +28 -28
  150. package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
  151. package/lib/esm/components/data-table/DataTable.js +1 -1
  152. package/lib/esm/components/data-table/ResponsiveRecordList.css.js +6 -6
  153. package/lib/esm/components/data-table/TableCell.css.js +2 -2
  154. package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +1 -1
  155. package/lib/esm/components/feedback/OperationFeedback.css.js +1 -1
  156. package/lib/esm/components/feedback/OperationFeedback.js +21 -14
  157. package/lib/esm/components/feedback/OperationFeedback.js.map +1 -1
  158. package/lib/esm/components/feedback/inlineBanner.css.js +6 -6
  159. package/lib/esm/components/infinite/InfiniteScrollTrigger.js +1 -1
  160. package/lib/esm/components/infinite/infiniteScrollTrigger.css.js +1 -1
  161. package/lib/esm/components/layout/ActionPanel.css.js +1 -1
  162. package/lib/esm/components/layout/ActionPanel.js +2 -2
  163. package/lib/esm/components/layout/AppHeader.css.js +1 -1
  164. package/lib/esm/components/layout/AppHeader.js +4 -4
  165. package/lib/esm/components/layout/ContentLayout.css.js +1 -1
  166. package/lib/esm/components/layout/ContentLayout.js +2 -2
  167. package/lib/esm/components/layout/DetailSummaryHeader.css.js +1 -1
  168. package/lib/esm/components/layout/DetailSummaryHeader.js +3 -3
  169. package/lib/esm/components/layout/PageShell.css.js +1 -1
  170. package/lib/esm/components/layout/PageShell.js +5 -5
  171. package/lib/esm/components/layout/ResizableSplitView.css.js +1 -1
  172. package/lib/esm/components/layout/ResizableSplitView.js +1 -1
  173. package/lib/esm/components/layout/SettingsLayout.css.js +1 -1
  174. package/lib/esm/components/layout/Surface.css.js +15 -15
  175. package/lib/esm/components/layout/Surface.css.js.map +1 -1
  176. package/lib/esm/components/layout/Surface.js +6 -6
  177. package/lib/esm/components/layout/toolbar/Toolbar.css.js +16 -16
  178. package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.css.js +17 -0
  179. package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.css.js.map +1 -0
  180. package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.js +24 -0
  181. package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.js.map +1 -0
  182. package/lib/esm/components/media/imagePreviewModal.css.js +5 -5
  183. package/lib/esm/components/navigation/sidebar/SidebarNavigation.js +1 -1
  184. package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js +2 -2
  185. package/lib/esm/components/responsive/ResponsiveCollectionRenderer.css.js +1 -1
  186. package/lib/esm/components/routing/routeFallback.css.js +1 -1
  187. package/lib/esm/components/routing/routePendingBar.css.js +1 -1
  188. package/lib/esm/components/select/SimpleSelect.css.js +13 -13
  189. package/lib/esm/components/select/SimpleSelect.css.js.map +1 -1
  190. package/lib/esm/components/tile/InfoTile.css.js +1 -1
  191. package/lib/esm/components/tile/InfoTile.js +3 -3
  192. package/lib/esm/index.js +228 -226
  193. package/lib/esm/node_modules/dompurify/dist/purify.es.js +173 -166
  194. package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
  195. package/lib/esm/style.css +1 -1
  196. package/lib/esm/theme/accessibility.css.js +1 -1
  197. package/lib/esm/theme/backofficeTheme.css.js +112 -80
  198. package/lib/esm/theme/backofficeTheme.css.js.map +1 -1
  199. package/lib/esm/theme/colors.js +8 -0
  200. package/lib/esm/theme/colors.js.map +1 -1
  201. package/lib/esm/theme/publicTheme.css.js +123 -91
  202. package/lib/esm/theme/publicTheme.css.js.map +1 -1
  203. package/lib/esm/theme/sprinkles.css.js +12988 -11500
  204. package/lib/esm/theme/sprinkles.css.js.map +1 -1
  205. package/lib/esm/theme/styleRecipes.css.js +8 -8
  206. package/lib/esm/theme/theme.css.js +235 -171
  207. package/lib/esm/theme/themeContract.css.js +1922 -1898
  208. package/lib/esm/theme/themeContract.css.js.map +1 -1
  209. package/lib/types/atomic/molecules/form_grid/FormGrid.css.d.ts +3 -0
  210. package/lib/types/atomic/molecules/form_grid/FormGrid.css.d.ts.map +1 -0
  211. package/lib/types/atomic/molecules/form_grid/FormGrid.d.ts +9 -0
  212. package/lib/types/atomic/molecules/form_grid/FormGrid.d.ts.map +1 -0
  213. package/lib/types/atomic/organisms/sidebar/NavigationSidebar.d.ts.map +1 -1
  214. package/lib/types/atomic/organisms/sidebar/SidebarContainer.d.ts.map +1 -1
  215. package/lib/types/atomic/organisms/sidebar/navigationSidebar.css.d.ts +2 -0
  216. package/lib/types/atomic/organisms/sidebar/navigationSidebar.css.d.ts.map +1 -1
  217. package/lib/types/atomic/organisms/sidebar/sidebar.css.d.ts +1 -0
  218. package/lib/types/atomic/organisms/sidebar/sidebar.css.d.ts.map +1 -1
  219. package/lib/types/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.d.ts.map +1 -1
  220. package/lib/types/components/feedback/OperationFeedback.d.ts +3 -2
  221. package/lib/types/components/feedback/OperationFeedback.d.ts.map +1 -1
  222. package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.css.d.ts +8 -0
  223. package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.css.d.ts.map +1 -0
  224. package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.d.ts +18 -0
  225. package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.d.ts.map +1 -0
  226. package/lib/types/index.d.ts +2 -0
  227. package/lib/types/index.d.ts.map +1 -1
  228. package/lib/types/theme/backofficeTheme.css.d.ts +112 -80
  229. package/lib/types/theme/backofficeTheme.css.d.ts.map +1 -1
  230. package/lib/types/theme/colors.d.ts +8 -0
  231. package/lib/types/theme/colors.d.ts.map +1 -1
  232. package/lib/types/theme/publicTheme.css.d.ts +123 -91
  233. package/lib/types/theme/publicTheme.css.d.ts.map +1 -1
  234. package/lib/types/theme/sprinkles.css.d.ts +129 -129
  235. package/lib/types/theme/themeContract.css.d.ts +24 -0
  236. package/lib/types/theme/themeContract.css.d.ts.map +1 -1
  237. package/package.json +3 -3
@@ -76,20 +76,20 @@ function E(e, t) {
76
76
  }
77
77
  return e;
78
78
  }
79
- function D(e) {
79
+ function pe(e) {
80
80
  for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
81
81
  return e;
82
82
  }
83
- function O(e) {
83
+ function D(e) {
84
84
  let t = p(null);
85
85
  for (let r of o(e)) {
86
86
  var n = i(r, 2);
87
87
  let a = n[0], o = n[1];
88
- x(e, a) && (g(o) ? t[a] = D(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = O(o) : t[a] = o);
88
+ x(e, a) && (g(o) ? t[a] = pe(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = D(o) : t[a] = o);
89
89
  }
90
90
  return t;
91
91
  }
92
- function pe(e) {
92
+ function me(e) {
93
93
  switch (typeof e) {
94
94
  case "string": return e;
95
95
  case "number": return y(e);
@@ -100,7 +100,7 @@ function pe(e) {
100
100
  case "function":
101
101
  case "object": {
102
102
  if (e === null) return S(e);
103
- let t = e, n = k(t, "toString");
103
+ let t = e, n = O(t, "toString");
104
104
  if (typeof n == "function") {
105
105
  let e = n(t);
106
106
  return typeof e == "string" ? e : S(e);
@@ -110,7 +110,7 @@ function pe(e) {
110
110
  default: return S(e);
111
111
  }
112
112
  }
113
- function k(e, t) {
113
+ function O(e, t) {
114
114
  for (; e !== null;) {
115
115
  let n = u(e, t);
116
116
  if (n) {
@@ -124,14 +124,14 @@ function k(e, t) {
124
124
  }
125
125
  return n;
126
126
  }
127
- function me(e) {
127
+ function he(e) {
128
128
  try {
129
129
  return C(e, ""), !0;
130
130
  } catch {
131
131
  return !1;
132
132
  }
133
133
  }
134
- var he = d(/* @__PURE__ */ "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".split(".")), ge = d(/* @__PURE__ */ "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".split(".")), _e = d([
134
+ var ge = d(/* @__PURE__ */ "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".split(".")), _e = d(/* @__PURE__ */ "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".split(".")), ve = d([
135
135
  "feBlend",
136
136
  "feColorMatrix",
137
137
  "feComponentTransfer",
@@ -157,7 +157,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
157
157
  "feSpotLight",
158
158
  "feTile",
159
159
  "feTurbulence"
160
- ]), ve = d([
160
+ ]), ye = d([
161
161
  "animate",
162
162
  "color-profile",
163
163
  "cursor",
@@ -180,7 +180,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
180
180
  "solidcolor",
181
181
  "unknown",
182
182
  "use"
183
- ]), ye = d(/* @__PURE__ */ "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".split(".")), be = d([
183
+ ]), be = d(/* @__PURE__ */ "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".split(".")), xe = d([
184
184
  "maction",
185
185
  "maligngroup",
186
186
  "malignmark",
@@ -196,21 +196,21 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
196
196
  "annotation-xml",
197
197
  "mprescripts",
198
198
  "none"
199
- ]), xe = d(["#text"]), Se = d(/* @__PURE__ */ "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".split(".")), Ce = d(/* @__PURE__ */ "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".split(".")), we = d(/* @__PURE__ */ "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".split(".")), Te = d([
199
+ ]), Se = d(["#text"]), Ce = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), we = d(/* @__PURE__ */ "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".split(".")), Te = d(/* @__PURE__ */ "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".split(".")), Ee = d([
200
200
  "xlink:href",
201
201
  "xml:id",
202
202
  "xlink:title",
203
203
  "xml:space",
204
204
  "xmlns:xlink"
205
- ]), Ee = f(/{{[\w\W]*|^[\w\W]*}}/g), De = f(/<%[\w\W]*|^[\w\W]*%>/g), Oe = f(/\${[\w\W]*/g), ke = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = f(/^aria-[\-\w]+$/), je = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = f(/^(?:\w+script|data):/i), Ne = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Pe = f(/^html$/i), Fe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), A = {
205
+ ]), De = f(/{{[\w\W]*|^[\w\W]*}}/g), Oe = f(/<%[\w\W]*|^[\w\W]*%>/g), ke = f(/\${[\w\W]*/g), Ae = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), je = f(/^aria-[\-\w]+$/), Me = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ne = f(/^(?:\w+script|data):/i), Pe = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Fe = f(/^html$/i), Ie = f(/^[a-z][.\w]*(-[.\w]+)+$/i), k = {
206
206
  element: 1,
207
207
  text: 3,
208
208
  progressingInstruction: 7,
209
209
  comment: 8,
210
210
  document: 9
211
- }, Ie = function() {
211
+ }, Le = function() {
212
212
  return typeof window > "u" ? null : window;
213
- }, Le = function(e, t) {
213
+ }, Re = function(e, t) {
214
214
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
215
215
  let n = null, r = "data-tt-policy-suffix";
216
216
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -227,7 +227,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
227
227
  } catch {
228
228
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
229
229
  }
230
- }, Re = function() {
230
+ }, ze = function() {
231
231
  return {
232
232
  afterSanitizeAttributes: [],
233
233
  afterSanitizeElements: [],
@@ -240,27 +240,27 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
240
240
  uponSanitizeShadowNode: []
241
241
  };
242
242
  };
243
- function ze() {
244
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ie(), t = (e) => ze(e);
245
- if (t.version = "3.4.3", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
246
- let n = e.document, r = n, i = r.currentScript, a = e.DocumentFragment, s = e.HTMLTemplateElement, c = e.Node, l = e.Element, u = e.NodeFilter, f = e.NamedNodeMap, ee = f === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : f, te = e.HTMLFormElement, ne = e.DOMParser, y = e.trustedTypes, b = l.prototype, ue = k(b, "cloneNode"), de = k(b, "remove"), S = k(b, "nextSibling"), w = k(b, "childNodes"), T = k(b, "parentNode");
243
+ function Be() {
244
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
245
+ if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
246
+ let n = e.document, r = n, i = r.currentScript, a = e.DocumentFragment, s = e.HTMLTemplateElement, c = e.Node, l = e.Element, u = e.NodeFilter, f = e.NamedNodeMap, ee = f === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : f, te = e.HTMLFormElement, ne = e.DOMParser, y = e.trustedTypes, b = l.prototype, ue = O(b, "cloneNode"), de = O(b, "remove"), S = O(b, "nextSibling"), w = O(b, "childNodes"), T = O(b, "parentNode"), pe = c && c.prototype ? O(c.prototype, "nodeType") : null;
247
247
  if (typeof s == "function") {
248
248
  let e = n.createElement("template");
249
249
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
250
250
  }
251
- let D, j = "", Be = n, Ve = Be.implementation, He = Be.createNodeIterator, Ue = Be.createDocumentFragment, We = Be.getElementsByTagName, Ge = r.importNode, M = Re();
252
- t.isSupported = typeof o == "function" && typeof T == "function" && Ve && Ve.createHTMLDocument !== void 0;
253
- let Ke = Ee, qe = De, Je = Oe, Ye = ke, Xe = Ae, Ze = Me, Qe = Ne, $e = Fe, et = je, N = null, tt = E({}, [
254
- ...he,
251
+ let A, j = "", Ve = n, He = Ve.implementation, Ue = Ve.createNodeIterator, We = Ve.createDocumentFragment, Ge = Ve.getElementsByTagName, Ke = r.importNode, M = ze();
252
+ t.isSupported = typeof o == "function" && typeof T == "function" && He && He.createHTMLDocument !== void 0;
253
+ let qe = De, Je = Oe, Ye = ke, Xe = Ae, Ze = je, Qe = Ne, $e = Pe, et = Ie, tt = Me, N = null, nt = E({}, [
255
254
  ...ge,
256
255
  ..._e,
257
- ...ye,
258
- ...xe
259
- ]), P = null, nt = E({}, [
260
- ...Se,
256
+ ...ve,
257
+ ...be,
258
+ ...Se
259
+ ]), P = null, rt = E({}, [
261
260
  ...Ce,
262
261
  ...we,
263
- ...Te
262
+ ...Te,
263
+ ...Ee
264
264
  ]), F = Object.seal(p(null, {
265
265
  tagNameCheck: {
266
266
  writable: !0,
@@ -280,7 +280,7 @@ function ze() {
280
280
  enumerable: !0,
281
281
  value: !1
282
282
  }
283
- })), I = null, L = null, R = Object.seal(p(null, {
283
+ })), I = null, it = null, L = Object.seal(p(null, {
284
284
  tagCheck: {
285
285
  writable: !0,
286
286
  configurable: !1,
@@ -293,7 +293,7 @@ function ze() {
293
293
  enumerable: !0,
294
294
  value: null
295
295
  }
296
- })), rt = !0, it = !0, at = !1, ot = !0, z = !1, B = !0, V = !1, st = !1, ct = !1, H = !1, lt = !1, ut = !1, dt = !0, ft = !1, pt = "user-content-", mt = !0, U = !1, W = {}, G = null, ht = E({}, [
296
+ })), at = !0, ot = !0, st = !1, ct = !0, R = !1, z = !0, B = !1, lt = !1, ut = !1, V = !1, dt = !1, ft = !1, pt = !0, mt = !1, ht = "user-content-", gt = !0, H = !1, U = {}, W = null, _t = E({}, [
297
297
  "annotation-xml",
298
298
  "audio",
299
299
  "colgroup",
@@ -319,14 +319,14 @@ function ze() {
319
319
  "title",
320
320
  "video",
321
321
  "xmp"
322
- ]), gt = null, _t = E({}, [
322
+ ]), vt = null, yt = E({}, [
323
323
  "audio",
324
324
  "video",
325
325
  "img",
326
326
  "source",
327
327
  "image",
328
328
  "track"
329
- ]), vt = null, yt = E({}, [
329
+ ]), bt = null, xt = E({}, [
330
330
  "alt",
331
331
  "class",
332
332
  "for",
@@ -341,65 +341,65 @@ function ze() {
341
341
  "value",
342
342
  "style",
343
343
  "xmlns"
344
- ]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = E({}, [
345
- bt,
346
- xt,
347
- K
348
- ], oe), Tt = E({}, [
344
+ ]), St = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, wt = !1, Tt = null, Et = E({}, [
345
+ St,
346
+ Ct,
347
+ G
348
+ ], oe), Dt = E({}, [
349
349
  "mi",
350
350
  "mo",
351
351
  "mn",
352
352
  "ms",
353
353
  "mtext"
354
- ]), Et = E({}, ["annotation-xml"]), Dt = E({}, [
354
+ ]), Ot = E({}, ["annotation-xml"]), kt = E({}, [
355
355
  "title",
356
356
  "style",
357
357
  "font",
358
358
  "a",
359
359
  "script"
360
- ]), J = null, Ot = ["application/xhtml+xml", "text/html"], Y = null, X = null, kt = n.createElement("form"), At = function(e) {
360
+ ]), q = null, At = ["application/xhtml+xml", "text/html"], J = null, Y = null, jt = n.createElement("form"), Mt = function(e) {
361
361
  return e instanceof RegExp || e instanceof Function;
362
- }, jt = function() {
362
+ }, Nt = function() {
363
363
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
364
- if (X && X === e) return;
365
- (!e || typeof e != "object") && (e = {}), e = O(e), J = Ot.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? oe : _, N = x(e, "ALLOWED_TAGS") && g(e.ALLOWED_TAGS) ? E({}, e.ALLOWED_TAGS, Y) : tt, P = x(e, "ALLOWED_ATTR") && g(e.ALLOWED_ATTR) ? E({}, e.ALLOWED_ATTR, Y) : nt, Ct = x(e, "ALLOWED_NAMESPACES") && g(e.ALLOWED_NAMESPACES) ? E({}, e.ALLOWED_NAMESPACES, oe) : wt, vt = x(e, "ADD_URI_SAFE_ATTR") && g(e.ADD_URI_SAFE_ATTR) ? E(O(yt), e.ADD_URI_SAFE_ATTR, Y) : yt, gt = x(e, "ADD_DATA_URI_TAGS") && g(e.ADD_DATA_URI_TAGS) ? E(O(_t), e.ADD_DATA_URI_TAGS, Y) : _t, G = x(e, "FORBID_CONTENTS") && g(e.FORBID_CONTENTS) ? E({}, e.FORBID_CONTENTS, Y) : ht, I = x(e, "FORBID_TAGS") && g(e.FORBID_TAGS) ? E({}, e.FORBID_TAGS, Y) : O({}), L = x(e, "FORBID_ATTR") && g(e.FORBID_ATTR) ? E({}, e.FORBID_ATTR, Y) : O({}), W = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, rt = e.ALLOW_ARIA_ATTR !== !1, it = e.ALLOW_DATA_ATTR !== !1, at = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ot = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = e.SAFE_FOR_TEMPLATES || !1, B = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, lt = e.RETURN_DOM_FRAGMENT || !1, ut = e.RETURN_TRUSTED_TYPE || !1, ct = e.FORCE_BODY || !1, dt = e.SANITIZE_DOM !== !1, ft = e.SANITIZE_NAMED_PROPS || !1, mt = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, et = me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : je, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? O(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, [
364
+ if (Y && Y === e) return;
365
+ (!e || typeof e != "object") && (e = {}), e = D(e), q = At.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? oe : _, N = x(e, "ALLOWED_TAGS") && g(e.ALLOWED_TAGS) ? E({}, e.ALLOWED_TAGS, J) : nt, P = x(e, "ALLOWED_ATTR") && g(e.ALLOWED_ATTR) ? E({}, e.ALLOWED_ATTR, J) : rt, Tt = x(e, "ALLOWED_NAMESPACES") && g(e.ALLOWED_NAMESPACES) ? E({}, e.ALLOWED_NAMESPACES, oe) : Et, bt = x(e, "ADD_URI_SAFE_ATTR") && g(e.ADD_URI_SAFE_ATTR) ? E(D(xt), e.ADD_URI_SAFE_ATTR, J) : xt, vt = x(e, "ADD_DATA_URI_TAGS") && g(e.ADD_DATA_URI_TAGS) ? E(D(yt), e.ADD_DATA_URI_TAGS, J) : yt, W = x(e, "FORBID_CONTENTS") && g(e.FORBID_CONTENTS) ? E({}, e.FORBID_CONTENTS, J) : _t, I = x(e, "FORBID_TAGS") && g(e.FORBID_TAGS) ? E({}, e.FORBID_TAGS, J) : D({}), it = x(e, "FORBID_ATTR") && g(e.FORBID_ATTR) ? E({}, e.FORBID_ATTR, J) : D({}), U = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? D(e.USE_PROFILES) : e.USE_PROFILES : !1, at = e.ALLOW_ARIA_ATTR !== !1, ot = e.ALLOW_DATA_ATTR !== !1, st = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ct = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = e.SAFE_FOR_TEMPLATES || !1, z = e.SAFE_FOR_XML !== !1, B = e.WHOLE_DOCUMENT || !1, V = e.RETURN_DOM || !1, dt = e.RETURN_DOM_FRAGMENT || !1, ft = e.RETURN_TRUSTED_TYPE || !1, ut = e.FORCE_BODY || !1, pt = e.SANITIZE_DOM !== !1, mt = e.SANITIZE_NAMED_PROPS || !1, gt = e.KEEP_CONTENT !== !1, H = e.IN_PLACE || !1, tt = he(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Me, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Dt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? D(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, [
366
366
  "mi",
367
367
  "mo",
368
368
  "mn",
369
369
  "ms",
370
370
  "mtext"
371
- ]), Et = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? O(e.HTML_INTEGRATION_POINTS) : E({}, ["annotation-xml"]);
372
- let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? O(e.CUSTOM_ELEMENT_HANDLING) : p(null);
373
- if (F = p(null), x(t, "tagNameCheck") && At(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && At(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), z && (it = !1), lt && (H = !0), W && (N = E({}, xe), P = p(null), W.html === !0 && (E(N, he), E(P, Se)), W.svg === !0 && (E(N, ge), E(P, Ce), E(P, Te)), W.svgFilters === !0 && (E(N, _e), E(P, Ce), E(P, Te)), W.mathMl === !0 && (E(N, ye), E(P, we), E(P, Te))), R.tagCheck = null, R.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? R.tagCheck = e.ADD_TAGS : g(e.ADD_TAGS) && (N === tt && (N = O(N)), E(N, e.ADD_TAGS, Y))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? R.attributeCheck = e.ADD_ATTR : g(e.ADD_ATTR) && (P === nt && (P = O(P)), E(P, e.ADD_ATTR, Y))), x(e, "ADD_URI_SAFE_ATTR") && g(e.ADD_URI_SAFE_ATTR) && E(vt, e.ADD_URI_SAFE_ATTR, Y), x(e, "FORBID_CONTENTS") && g(e.FORBID_CONTENTS) && (G === ht && (G = O(G)), E(G, e.FORBID_CONTENTS, Y)), x(e, "ADD_FORBID_CONTENTS") && g(e.ADD_FORBID_CONTENTS) && (G === ht && (G = O(G)), E(G, e.ADD_FORBID_CONTENTS, Y)), mt && (N["#text"] = !0), V && E(N, [
371
+ ]), Ot = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? D(e.HTML_INTEGRATION_POINTS) : E({}, ["annotation-xml"]);
372
+ let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? D(e.CUSTOM_ELEMENT_HANDLING) : p(null);
373
+ if (F = p(null), x(t, "tagNameCheck") && Mt(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && Mt(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), R && (ot = !1), dt && (V = !0), U && (N = E({}, Se), P = p(null), U.html === !0 && (E(N, ge), E(P, Ce)), U.svg === !0 && (E(N, _e), E(P, we), E(P, Ee)), U.svgFilters === !0 && (E(N, ve), E(P, we), E(P, Ee)), U.mathMl === !0 && (E(N, be), E(P, Te), E(P, Ee))), L.tagCheck = null, L.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? L.tagCheck = e.ADD_TAGS : g(e.ADD_TAGS) && (N === nt && (N = D(N)), E(N, e.ADD_TAGS, J))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? L.attributeCheck = e.ADD_ATTR : g(e.ADD_ATTR) && (P === rt && (P = D(P)), E(P, e.ADD_ATTR, J))), x(e, "ADD_URI_SAFE_ATTR") && g(e.ADD_URI_SAFE_ATTR) && E(bt, e.ADD_URI_SAFE_ATTR, J), x(e, "FORBID_CONTENTS") && g(e.FORBID_CONTENTS) && (W === _t && (W = D(W)), E(W, e.FORBID_CONTENTS, J)), x(e, "ADD_FORBID_CONTENTS") && g(e.ADD_FORBID_CONTENTS) && (W === _t && (W = D(W)), E(W, e.ADD_FORBID_CONTENTS, J)), gt && (N["#text"] = !0), B && E(N, [
374
374
  "html",
375
375
  "head",
376
376
  "body"
377
377
  ]), N.table && (E(N, ["tbody"]), delete I.tbody), e.TRUSTED_TYPES_POLICY) {
378
378
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw fe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
379
379
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw fe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
380
- D = e.TRUSTED_TYPES_POLICY, j = D.createHTML("");
381
- } else D === void 0 && (D = Le(y, i)), D !== null && typeof j == "string" && (j = D.createHTML(""));
382
- d && d(e), X = e;
383
- }, Mt = E({}, [
384
- ...ge,
380
+ A = e.TRUSTED_TYPES_POLICY, j = A.createHTML("");
381
+ } else A === void 0 && (A = Re(y, i)), A !== null && typeof j == "string" && (j = A.createHTML(""));
382
+ d && d(e), Y = e;
383
+ }, Pt = E({}, [
385
384
  ..._e,
386
- ...ve
387
- ]), Nt = E({}, [...ye, ...be]), Pt = function(e) {
385
+ ...ve,
386
+ ...ye
387
+ ]), Ft = E({}, [...be, ...xe]), It = function(e) {
388
388
  let t = T(e);
389
389
  (!t || !t.tagName) && (t = {
390
- namespaceURI: q,
390
+ namespaceURI: K,
391
391
  tagName: "template"
392
392
  });
393
393
  let n = _(e.tagName), r = _(t.tagName);
394
- return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Mt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Nt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Nt[n] && (Dt[n] || !Mt[n]) : !!(J === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
395
- }, Z = function(e) {
394
+ return Tt[e.namespaceURI] ? e.namespaceURI === Ct ? t.namespaceURI === G ? n === "svg" : t.namespaceURI === St ? n === "svg" && (r === "annotation-xml" || Dt[r]) : !!Pt[n] : e.namespaceURI === St ? t.namespaceURI === G ? n === "math" : t.namespaceURI === Ct ? n === "math" && Ot[r] : !!Ft[n] : e.namespaceURI === G ? t.namespaceURI === Ct && !Ot[r] || t.namespaceURI === St && !Dt[r] ? !1 : !Ft[n] && (kt[n] || !Pt[n]) : !!(q === "application/xhtml+xml" && Tt[e.namespaceURI]) : !1;
395
+ }, X = function(e) {
396
396
  h(t.removed, { element: e });
397
397
  try {
398
398
  T(e).removeChild(e);
399
399
  } catch {
400
400
  de(e);
401
401
  }
402
- }, Q = function(e, n) {
402
+ }, Z = function(e, n) {
403
403
  try {
404
404
  h(t.removed, {
405
405
  attribute: n.getAttributeNode(e),
@@ -411,55 +411,73 @@ function ze() {
411
411
  from: n
412
412
  });
413
413
  }
414
- if (n.removeAttribute(e), e === "is") if (H || lt) try {
415
- Z(n);
414
+ if (n.removeAttribute(e), e === "is") if (V || dt) try {
415
+ X(n);
416
416
  } catch {}
417
417
  else try {
418
418
  n.setAttribute(e, "");
419
419
  } catch {}
420
- }, Ft = function(e) {
420
+ }, Lt = function(e) {
421
421
  let t = null, r = null;
422
- if (ct) e = "<remove></remove>" + e;
422
+ if (ut) e = "<remove></remove>" + e;
423
423
  else {
424
424
  let t = se(e, /^[\r\n\t ]+/);
425
425
  r = t && t[0];
426
426
  }
427
- J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
428
- let i = D ? D.createHTML(e) : e;
429
- if (q === K) try {
430
- t = new ne().parseFromString(i, J);
427
+ q === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
428
+ let i = A ? A.createHTML(e) : e;
429
+ if (K === G) try {
430
+ t = new ne().parseFromString(i, q);
431
431
  } catch {}
432
432
  if (!t || !t.documentElement) {
433
- t = Ve.createDocument(q, "template", null);
433
+ t = He.createDocument(K, "template", null);
434
434
  try {
435
- t.documentElement.innerHTML = St ? j : i;
435
+ t.documentElement.innerHTML = wt ? j : i;
436
436
  } catch {}
437
437
  }
438
438
  let a = t.body || t.documentElement;
439
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? We.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
440
- }, It = function(e) {
441
- return He.call(e.ownerDocument || e, e, u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION, null);
442
- }, Lt = function(e) {
443
- return e instanceof te && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
439
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? Ge.call(t, B ? "html" : "body")[0] : B ? t.documentElement : a;
444
440
  }, Rt = function(e) {
445
- return typeof c == "function" && e instanceof c;
441
+ return Ue.call(e.ownerDocument || e, e, u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION, null);
442
+ }, zt = function(e) {
443
+ e.normalize();
444
+ let t = Ue.call(e.ownerDocument || e, e, u.SHOW_TEXT | u.SHOW_COMMENT | u.SHOW_CDATA_SECTION | u.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
445
+ for (; n;) {
446
+ let e = n.data;
447
+ m([
448
+ qe,
449
+ Je,
450
+ Ye
451
+ ], (t) => {
452
+ e = v(e, t, " ");
453
+ }), n.data = e, n = t.nextNode();
454
+ }
455
+ }, Bt = function(e) {
456
+ return e instanceof te && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
457
+ }, Vt = function(e) {
458
+ if (!pe || typeof e != "object" || !e) return !1;
459
+ try {
460
+ return typeof pe(e) == "number";
461
+ } catch {
462
+ return !1;
463
+ }
446
464
  };
447
- function $(e, n, r) {
465
+ function Q(e, n, r) {
448
466
  m(e, (e) => {
449
- e.call(t, n, r, X);
467
+ e.call(t, n, r, Y);
450
468
  });
451
469
  }
452
- let zt = function(e) {
470
+ let Ht = function(e) {
453
471
  let n = null;
454
- if ($(M.beforeSanitizeElements, e, null), Lt(e)) return Z(e), !0;
455
- let r = Y(e.nodeName);
456
- if ($(M.uponSanitizeElement, e, {
472
+ if (Q(M.beforeSanitizeElements, e, null), Bt(e)) return X(e), !0;
473
+ let r = J(e.nodeName);
474
+ if (Q(M.uponSanitizeElement, e, {
457
475
  tagName: r,
458
476
  allowedTags: N
459
- }), B && e.hasChildNodes() && !Rt(e.firstElementChild) && C(/<[/\w!]/g, e.innerHTML) && C(/<[/\w!]/g, e.textContent) || B && e.namespaceURI === K && r === "style" && Rt(e.firstElementChild) || e.nodeType === A.progressingInstruction || B && e.nodeType === A.comment && C(/<[/\w]/g, e.data)) return Z(e), !0;
460
- if (I[r] || !(R.tagCheck instanceof Function && R.tagCheck(r)) && !N[r]) {
461
- if (!I[r] && Ht(r) && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r))) return !1;
462
- if (mt && !G[r]) {
477
+ }), z && e.hasChildNodes() && !Vt(e.firstElementChild) && C(/<[/\w!]/g, e.innerHTML) && C(/<[/\w!]/g, e.textContent) || z && e.namespaceURI === G && r === "style" && Vt(e.firstElementChild) || e.nodeType === k.progressingInstruction || z && e.nodeType === k.comment && C(/<[/\w]/g, e.data)) return X(e), !0;
478
+ if (I[r] || !(L.tagCheck instanceof Function && L.tagCheck(r)) && !N[r]) {
479
+ if (!I[r] && Gt(r) && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r))) return !1;
480
+ if (gt && !W[r]) {
463
481
  let t = T(e) || e.parentNode, n = w(e) || e.childNodes;
464
482
  if (n && t) {
465
483
  let r = n.length;
@@ -469,25 +487,25 @@ function ze() {
469
487
  }
470
488
  }
471
489
  }
472
- return Z(e), !0;
490
+ return X(e), !0;
473
491
  }
474
- return e instanceof l && !Pt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (z && e.nodeType === A.text && (n = e.textContent, m([
475
- Ke,
492
+ return e instanceof l && !It(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (R && e.nodeType === k.text && (n = e.textContent, m([
476
493
  qe,
477
- Je
494
+ Je,
495
+ Ye
478
496
  ], (e) => {
479
497
  n = v(n, e, " ");
480
- }), e.textContent !== n && (h(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(M.afterSanitizeElements, e, null), !1);
481
- }, Bt = function(e, t, r) {
482
- if (L[t] || dt && (t === "id" || t === "name") && (r in n || r in kt)) return !1;
483
- let i = P[t] || R.attributeCheck instanceof Function && R.attributeCheck(t, e);
484
- if (!(it && !L[t] && C(Ye, t)) && !(rt && C(Xe, t))) {
485
- if (!i || L[t]) {
486
- if (!(Ht(e) && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, e) || F.tagNameCheck instanceof Function && F.tagNameCheck(e)) && (F.attributeNameCheck instanceof RegExp && C(F.attributeNameCheck, t) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(t, e)) || t === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r)))) return !1;
487
- } else if (!vt[t] && !C(et, v(r, Qe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && gt[e]) && !(at && !C(Ze, v(r, Qe, ""))) && r) return !1;
498
+ }), e.textContent !== n && (h(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(M.afterSanitizeElements, e, null), !1);
499
+ }, Ut = function(e, t, r) {
500
+ if (it[t] || pt && (t === "id" || t === "name") && (r in n || r in jt)) return !1;
501
+ let i = P[t] || L.attributeCheck instanceof Function && L.attributeCheck(t, e);
502
+ if (!(ot && !it[t] && C(Xe, t)) && !(at && C(Ze, t))) {
503
+ if (!i || it[t]) {
504
+ if (!(Gt(e) && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, e) || F.tagNameCheck instanceof Function && F.tagNameCheck(e)) && (F.attributeNameCheck instanceof RegExp && C(F.attributeNameCheck, t) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(t, e)) || t === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r)))) return !1;
505
+ } else if (!bt[t] && !C(tt, v(r, $e, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && vt[e]) && !(st && !C(Qe, v(r, $e, ""))) && r) return !1;
488
506
  }
489
507
  return !0;
490
- }, Vt = E({}, [
508
+ }, Wt = E({}, [
491
509
  "annotation-xml",
492
510
  "color-profile",
493
511
  "font-face",
@@ -496,12 +514,12 @@ function ze() {
496
514
  "font-face-src",
497
515
  "font-face-uri",
498
516
  "missing-glyph"
499
- ]), Ht = function(e) {
500
- return !Vt[_(e)] && C($e, e);
501
- }, Ut = function(e) {
502
- $(M.beforeSanitizeAttributes, e, null);
517
+ ]), Gt = function(e) {
518
+ return !Wt[_(e)] && C(et, e);
519
+ }, Kt = function(e) {
520
+ Q(M.beforeSanitizeAttributes, e, null);
503
521
  let n = e.attributes;
504
- if (!n || Lt(e)) return;
522
+ if (!n || Bt(e)) return;
505
523
  let r = {
506
524
  attrName: "",
507
525
  attrValue: "",
@@ -510,59 +528,59 @@ function ze() {
510
528
  forceKeepAttr: void 0
511
529
  }, i = n.length;
512
530
  for (; i--;) {
513
- let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : le(u);
514
- if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, r), d = r.attrValue, ft && (l === "id" || l === "name") && ce(d, pt) !== 0 && (Q(o, e), d = pt + d), B && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
515
- Q(o, e);
531
+ let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : le(u);
532
+ if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(M.uponSanitizeAttribute, e, r), d = r.attrValue, mt && (l === "id" || l === "name") && ce(d, ht) !== 0 && (Z(o, e), d = ht + d), z && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
533
+ Z(o, e);
516
534
  continue;
517
535
  }
518
536
  if (l === "attributename" && se(d, "href")) {
519
- Q(o, e);
537
+ Z(o, e);
520
538
  continue;
521
539
  }
522
540
  if (r.forceKeepAttr) continue;
523
541
  if (!r.keepAttr) {
524
- Q(o, e);
542
+ Z(o, e);
525
543
  continue;
526
544
  }
527
- if (!ot && C(/\/>/i, d)) {
528
- Q(o, e);
545
+ if (!ct && C(/\/>/i, d)) {
546
+ Z(o, e);
529
547
  continue;
530
548
  }
531
- z && m([
532
- Ke,
549
+ R && m([
533
550
  qe,
534
- Je
551
+ Je,
552
+ Ye
535
553
  ], (e) => {
536
554
  d = v(d, e, " ");
537
555
  });
538
- let f = Y(e.nodeName);
539
- if (!Bt(f, l, d)) {
540
- Q(o, e);
556
+ let f = J(e.nodeName);
557
+ if (!Ut(f, l, d)) {
558
+ Z(o, e);
541
559
  continue;
542
560
  }
543
- if (D && typeof y == "object" && typeof y.getAttributeType == "function" && !s) switch (y.getAttributeType(f, l)) {
561
+ if (A && typeof y == "object" && typeof y.getAttributeType == "function" && !s) switch (y.getAttributeType(f, l)) {
544
562
  case "TrustedHTML":
545
- d = D.createHTML(d);
563
+ d = A.createHTML(d);
546
564
  break;
547
565
  case "TrustedScriptURL":
548
- d = D.createScriptURL(d);
566
+ d = A.createScriptURL(d);
549
567
  break;
550
568
  }
551
569
  if (d !== u) try {
552
- s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Lt(e) ? Z(e) : ie(t.removed);
570
+ s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Bt(e) ? X(e) : ie(t.removed);
553
571
  } catch {
554
- Q(o, e);
572
+ Z(o, e);
555
573
  }
556
574
  }
557
- $(M.afterSanitizeAttributes, e, null);
558
- }, Wt = function(e) {
559
- let t = null, n = It(e);
560
- for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(M.uponSanitizeShadowNode, t, null), zt(t), Ut(t), t.content instanceof a && Wt(t.content);
561
- $(M.afterSanitizeShadowDOM, e, null);
562
- }, Gt = function(e) {
563
- if (e.nodeType === A.element && e.shadowRoot instanceof a) {
575
+ Q(M.afterSanitizeAttributes, e, null);
576
+ }, qt = function(e) {
577
+ let t = null, n = Rt(e);
578
+ for (Q(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) Q(M.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), t.content instanceof a && qt(t.content);
579
+ Q(M.afterSanitizeShadowDOM, e, null);
580
+ }, $ = function(e) {
581
+ if (e.nodeType === k.element && e.shadowRoot instanceof a) {
564
582
  let t = e.shadowRoot;
565
- Gt(t), Wt(t);
583
+ $(t), qt(t);
566
584
  }
567
585
  let t = e.childNodes;
568
586
  if (!t) return;
@@ -570,58 +588,47 @@ function ze() {
570
588
  m(t, (e) => {
571
589
  h(n, e);
572
590
  });
573
- for (let e of n) Gt(e);
591
+ for (let e of n) $(e);
574
592
  };
575
593
  return t.sanitize = function(e) {
576
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, s = null, l = null;
577
- if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Rt(e) && (e = pe(e), typeof e != "string")) throw fe("dirty is not a string, aborting");
594
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, s = null, c = null;
595
+ if (wt = !e, wt && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = me(e), typeof e != "string")) throw fe("dirty is not a string, aborting");
578
596
  if (!t.isSupported) return e;
579
- if (st || jt(n), t.removed = [], typeof e == "string" && (U = !1), U) {
597
+ if (lt || Nt(n), t.removed = [], typeof e == "string" && (H = !1), H) {
580
598
  let t = e.nodeName;
581
599
  if (typeof t == "string") {
582
- let e = Y(t);
600
+ let e = J(t);
583
601
  if (!N[e] || I[e]) throw fe("root node is forbidden and cannot be sanitized in-place");
584
602
  }
585
- Gt(e);
586
- } else if (e instanceof c) i = Ft("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === A.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o), Gt(o);
603
+ $(e);
604
+ } else if (Vt(e)) i = Lt("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === k.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o), $(o);
587
605
  else {
588
- if (!H && !z && !V && e.indexOf("<") === -1) return D && ut ? D.createHTML(e) : e;
589
- if (i = Ft(e), !i) return H ? null : ut ? j : "";
606
+ if (!V && !R && !B && e.indexOf("<") === -1) return A && ft ? A.createHTML(e) : e;
607
+ if (i = Lt(e), !i) return V ? null : ft ? j : "";
590
608
  }
591
- i && ct && Z(i.firstChild);
592
- let u = It(U ? e : i);
593
- for (; s = u.nextNode();) zt(s), Ut(s), s.content instanceof a && Wt(s.content);
594
- if (U) return e;
595
- if (H) {
596
- if (z) {
597
- i.normalize();
598
- let e = i.innerHTML;
599
- m([
600
- Ke,
601
- qe,
602
- Je
603
- ], (t) => {
604
- e = v(e, t, " ");
605
- }), i.innerHTML = e;
606
- }
607
- if (lt) for (l = Ue.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
608
- else l = i;
609
- return (P.shadowroot || P.shadowrootmode) && (l = Ge.call(r, l, !0)), l;
609
+ i && ut && X(i.firstChild);
610
+ let l = Rt(H ? e : i);
611
+ for (; s = l.nextNode();) Ht(s), Kt(s), s.content instanceof a && qt(s.content);
612
+ if (H) return R && zt(e), e;
613
+ if (V) {
614
+ if (R && zt(i), dt) for (c = We.call(i.ownerDocument); i.firstChild;) c.appendChild(i.firstChild);
615
+ else c = i;
616
+ return (P.shadowroot || P.shadowrootmode) && (c = Ke.call(r, c, !0)), c;
610
617
  }
611
- let d = V ? i.outerHTML : i.innerHTML;
612
- return V && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Pe, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), z && m([
613
- Ke,
618
+ let u = B ? i.outerHTML : i.innerHTML;
619
+ return B && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Fe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), R && m([
614
620
  qe,
615
- Je
621
+ Je,
622
+ Ye
616
623
  ], (e) => {
617
- d = v(d, e, " ");
618
- }), D && ut ? D.createHTML(d) : d;
624
+ u = v(u, e, " ");
625
+ }), A && ft ? A.createHTML(u) : u;
619
626
  }, t.setConfig = function() {
620
- jt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), st = !0;
627
+ Nt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), lt = !0;
621
628
  }, t.clearConfig = function() {
622
- X = null, st = !1;
629
+ Y = null, lt = !1;
623
630
  }, t.isValidAttribute = function(e, t, n) {
624
- return X || jt({}), Bt(Y(e), Y(t), n);
631
+ return Y || Nt({}), Ut(J(e), J(t), n);
625
632
  }, t.addHook = function(e, t) {
626
633
  typeof t == "function" && h(M[e], t);
627
634
  }, t.removeHook = function(e, t) {
@@ -633,11 +640,11 @@ function ze() {
633
640
  }, t.removeHooks = function(e) {
634
641
  M[e] = [];
635
642
  }, t.removeAllHooks = function() {
636
- M = Re();
643
+ M = ze();
637
644
  }, t;
638
645
  }
639
- var j = ze();
646
+ var A = Be();
640
647
  //#endregion
641
- export { j as purify };
648
+ export { A as purify };
642
649
 
643
650
  //# sourceMappingURL=purify.es.js.map