@riil-frontend/component-topology 2.5.7 → 2.7.2

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 (461) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +1 -1
  3. package/build/index.css +2 -3
  4. package/build/index.js +32 -32
  5. package/es/components/BatchAttrMetric/setting.js +2 -2
  6. package/es/components/FormTable/index.js +1 -1
  7. package/es/components/IndexSettingDrawer/IndexList.js +2 -2
  8. package/es/components/Link/hook.js +1 -1
  9. package/es/components/Link/index.js +1 -1
  10. package/es/components/MultiResourceDrawer/Dynamic.js +1 -1
  11. package/es/components/MultiResourceDrawer/index.js +1 -1
  12. package/es/components/ResourceList/ResourceSelect.js +3 -3
  13. package/es/core/components/TopoView/Topo404.js +1 -1
  14. package/es/core/components/TopoView/TopoContent.js +1 -1
  15. package/es/core/components/TopoView/TopoNoPermission.js +1 -1
  16. package/es/core/components/TopoView/topoView.js +1 -1
  17. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
  18. package/es/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
  19. package/es/core/editor/components/iconManage/UploadIconDialog.js +1 -1
  20. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
  21. package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
  22. package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +14 -14
  23. package/es/core/editor/components/settings/common/text/img/bold.svg +11 -11
  24. package/es/core/editor/components/settings/common/text/img/italics.svg +9 -9
  25. package/es/core/editor/components/settings/common/text/img/underline.svg +11 -11
  26. package/es/core/editor/components/settings/text/TextPropertyView.js +9 -1
  27. package/es/core/models/TopoApp.js +3 -3
  28. package/es/core/models/attrAndMetric.js +1 -1
  29. package/es/core/models/cache/CiTyeCache.js +1 -1
  30. package/es/core/models/cache/DictCache.js +1 -1
  31. package/es/core/models/common/Alarm.js +2 -2
  32. package/es/core/models/plugins/resourceWebControllUrl.js +2 -2
  33. package/es/core/models/utils/linkUtils.js +1 -1
  34. package/es/core/utils/showMessage.js +1 -1
  35. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
  36. package/es/hooks/useAlarm.js +1 -1
  37. package/es/hooks/useContainerLinkTopo.js +1 -1
  38. package/es/hooks/usePolling.js +1 -1
  39. package/es/hooks/useTopoEdit.js +2 -2
  40. package/es/models/ciModel.js +1 -1
  41. package/es/models/iconManage.js +2 -2
  42. package/es/models/linkDynamicStyle.js +1 -1
  43. package/es/models/linkManager.js +2 -2
  44. package/es/models/resourceWebControllUrlSetting.js +2 -2
  45. package/es/models/topoAlarm.js +1 -2
  46. package/es/models/topoBizMod.js +4 -4
  47. package/es/models/topoCreateMod.js +53 -94
  48. package/es/models/topoEdit.js +2 -2
  49. package/es/models/topoGraphView.js +2 -2
  50. package/es/models/topoMod.js +3 -3
  51. package/es/models/topoView.js +2 -2
  52. package/es/style.js +1 -0
  53. package/es/topoCenter/components/Topology.js +1 -1
  54. package/es/topoCenter/getTopoData.js +1 -1
  55. package/es/topoCenter/store/functionAuth.js +3 -3
  56. package/es/topoCenter/store/topoCenter.js +2 -2
  57. package/es/topoCenter/store/topoTreeMod.js +2 -2
  58. package/es/utils/format.js +1 -1
  59. package/es/utils/topoData.js +1 -1
  60. package/es/utils/tree.js +0 -1
  61. package/lib/components/BatchAttrMetric/setting.js +2 -2
  62. package/lib/components/FormTable/index.js +1 -1
  63. package/lib/components/IndexSettingDrawer/IndexList.js +2 -2
  64. package/lib/components/Link/hook.js +1 -1
  65. package/lib/components/Link/index.js +1 -1
  66. package/lib/components/MultiResourceDrawer/Dynamic.js +1 -1
  67. package/lib/components/MultiResourceDrawer/index.js +1 -1
  68. package/lib/components/ResourceList/ResourceSelect.js +3 -3
  69. package/lib/core/components/TopoView/Topo404.js +1 -1
  70. package/lib/core/components/TopoView/TopoContent.js +1 -1
  71. package/lib/core/components/TopoView/TopoNoPermission.js +1 -1
  72. package/lib/core/components/TopoView/topoView.js +1 -1
  73. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
  74. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
  75. package/lib/core/editor/components/iconManage/UploadIconDialog.js +1 -1
  76. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
  77. package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
  78. package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +14 -14
  79. package/lib/core/editor/components/settings/common/text/img/bold.svg +11 -11
  80. package/lib/core/editor/components/settings/common/text/img/italics.svg +9 -9
  81. package/lib/core/editor/components/settings/common/text/img/underline.svg +11 -11
  82. package/lib/core/editor/components/settings/text/TextPropertyView.js +9 -1
  83. package/lib/core/models/TopoApp.js +4 -4
  84. package/lib/core/models/attrAndMetric.js +1 -1
  85. package/lib/core/models/cache/CiTyeCache.js +1 -1
  86. package/lib/core/models/cache/DictCache.js +1 -1
  87. package/lib/core/models/common/Alarm.js +2 -2
  88. package/lib/core/models/plugins/resourceWebControllUrl.js +2 -2
  89. package/lib/core/models/utils/linkUtils.js +1 -1
  90. package/lib/core/utils/showMessage.js +1 -1
  91. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
  92. package/lib/hooks/useAlarm.js +1 -1
  93. package/lib/hooks/useContainerLinkTopo.js +1 -1
  94. package/lib/hooks/usePolling.js +1 -1
  95. package/lib/hooks/useTopoEdit.js +2 -2
  96. package/lib/models/ciModel.js +1 -1
  97. package/lib/models/iconManage.js +2 -2
  98. package/lib/models/linkDynamicStyle.js +1 -1
  99. package/lib/models/linkManager.js +2 -2
  100. package/lib/models/resourceWebControllUrlSetting.js +2 -2
  101. package/lib/models/topoAlarm.js +1 -3
  102. package/lib/models/topoBizMod.js +4 -4
  103. package/lib/models/topoCreateMod.js +53 -94
  104. package/lib/models/topoEdit.js +2 -2
  105. package/lib/models/topoGraphView.js +2 -2
  106. package/lib/models/topoMod.js +3 -3
  107. package/lib/models/topoView.js +2 -2
  108. package/lib/style.js +1 -0
  109. package/lib/topoCenter/components/Topology.js +1 -1
  110. package/lib/topoCenter/getTopoData.js +1 -1
  111. package/lib/topoCenter/store/functionAuth.js +3 -3
  112. package/lib/topoCenter/store/topoCenter.js +2 -2
  113. package/lib/topoCenter/store/topoTreeMod.js +2 -2
  114. package/lib/utils/format.js +1 -1
  115. package/lib/utils/topoData.js +1 -1
  116. package/lib/utils/tree.js +0 -1
  117. package/package.json +22 -21
  118. package/es/common/components/ResourceTable/ResourceTable.d.ts +0 -2
  119. package/es/common/plugins/useSelectionPlugin.d.ts +0 -23
  120. package/es/components/BatchAttrMetric/constant.d.ts +0 -30
  121. package/es/components/BatchAttrMetric/index.d.ts +0 -5
  122. package/es/components/BatchAttrMetric/setting.d.ts +0 -6
  123. package/es/components/BatchAttrMetric/utils.d.ts +0 -35
  124. package/es/components/Drawer/index.d.ts +0 -2
  125. package/es/components/FormTable/index.d.ts +0 -2
  126. package/es/components/IndexSettingDrawer/CiList.d.ts +0 -2
  127. package/es/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
  128. package/es/components/IndexSettingDrawer/IndexList.d.ts +0 -2
  129. package/es/components/IndexSettingDrawer/index.d.ts +0 -2
  130. package/es/components/Link/form.d.ts +0 -2
  131. package/es/components/Link/hook.d.ts +0 -26
  132. package/es/components/Link/index.d.ts +0 -6
  133. package/es/components/Link/setting.d.ts +0 -8
  134. package/es/components/MultiResourceDrawer/Content.d.ts +0 -2
  135. package/es/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
  136. package/es/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
  137. package/es/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
  138. package/es/components/MultiResourceDrawer/Static.d.ts +0 -2
  139. package/es/components/MultiResourceDrawer/index.d.ts +0 -2
  140. package/es/components/ResourceList/ResourceSelect.d.ts +0 -2
  141. package/es/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
  142. package/es/components/ResourceList/index.d.ts +0 -1
  143. package/es/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
  144. package/es/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
  145. package/es/components/SingleResourceDrawer/index.d.ts +0 -2
  146. package/es/components/TemplateButton/Icon.d.ts +0 -2
  147. package/es/components/TemplateButton/assets/index.d.ts +0 -8
  148. package/es/components/TemplateButton/index.d.ts +0 -2
  149. package/es/components/TemplateGroup/index.d.ts +0 -2
  150. package/es/components/TemplateSelect/index.d.ts +0 -2
  151. package/es/constants/ResDetailContants.d.ts +0 -1
  152. package/es/constants/constant.d.ts +0 -36
  153. package/es/constants/defaultCiTypeIcon.d.ts +0 -8
  154. package/es/contextmenu/createMenuCommands.d.ts +0 -5
  155. package/es/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
  156. package/es/core/common/icons/defaultIcons.d.ts +0 -84
  157. package/es/core/components/TopoApp.d.ts +0 -1
  158. package/es/core/components/TopoAppProvider.d.ts +0 -1
  159. package/es/core/components/TopoAppView.d.ts +0 -14
  160. package/es/core/components/TopoView/Topo.d.ts +0 -5
  161. package/es/core/components/TopoView/Topo404.d.ts +0 -1
  162. package/es/core/components/TopoView/TopoContent.d.ts +0 -5
  163. package/es/core/components/TopoView/TopoNoPermission.d.ts +0 -1
  164. package/es/core/components/TopoView/topoView.d.ts +0 -19
  165. package/es/core/components/buildProvider.d.ts +0 -1
  166. package/es/core/components/titlebar/TitleBar.d.ts +0 -9
  167. package/es/core/components/titlebar/index.d.ts +0 -1
  168. package/es/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
  169. package/es/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
  170. package/es/core/editor/components/EditorPlugin.d.ts +0 -1
  171. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
  172. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
  173. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
  174. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
  175. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
  176. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
  177. package/es/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
  178. package/es/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
  179. package/es/core/editor/components/iconManage/IconManage.d.ts +0 -1
  180. package/es/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
  181. package/es/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
  182. package/es/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
  183. package/es/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
  184. package/es/core/editor/components/settings/Settings.d.ts +0 -1
  185. package/es/core/editor/components/settings/SettingsForm.d.ts +0 -1
  186. package/es/core/editor/components/settings/Style.d.ts +0 -1
  187. package/es/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
  188. package/es/core/editor/components/settings/common/LineType.d.ts +0 -1
  189. package/es/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
  190. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
  191. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
  192. package/es/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
  193. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
  194. package/es/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
  195. package/es/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
  196. package/es/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
  197. package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
  198. package/es/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
  199. package/es/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
  200. package/es/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
  201. package/es/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
  202. package/es/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
  203. package/es/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
  204. package/es/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
  205. package/es/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
  206. package/es/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
  207. package/es/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
  208. package/es/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
  209. package/es/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
  210. package/es/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
  211. package/es/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
  212. package/es/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
  213. package/es/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
  214. package/es/core/index.d.ts +0 -1
  215. package/es/core/models/AttributeMetricDisplay.d.ts +0 -8
  216. package/es/core/models/TopoGraphView.d.ts +0 -42
  217. package/es/core/models/TopoViewer.d.ts +0 -9
  218. package/es/core/models/attrAndMetric.d.ts +0 -1
  219. package/es/core/models/cache/CiTyeCache.d.ts +0 -12
  220. package/es/core/models/cache/DictCache.d.ts +0 -11
  221. package/es/core/models/common/Alarm.d.ts +0 -52
  222. package/es/core/models/common/ContextMenu.d.ts +0 -8
  223. package/es/core/models/createTopoApp.d.ts +0 -13
  224. package/es/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
  225. package/es/core/models/utils/getRelationDetailByIds.d.ts +0 -1
  226. package/es/core/models/utils/linkUtils.d.ts +0 -3
  227. package/es/core/store/coreModels.d.ts +0 -18
  228. package/es/core/store/createStore.d.ts +0 -1
  229. package/es/core/test/Test.d.ts +0 -9
  230. package/es/core/utils/resourceUtil.d.ts +0 -5
  231. package/es/core/utils/showMessage.d.ts +0 -1
  232. package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
  233. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
  234. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
  235. package/es/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
  236. package/es/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
  237. package/es/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
  238. package/es/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
  239. package/es/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
  240. package/es/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
  241. package/es/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
  242. package/es/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
  243. package/es/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
  244. package/es/createTopo.d.ts +0 -2
  245. package/es/getStoreModels.d.ts +0 -35
  246. package/es/hooks/useAlarm.d.ts +0 -1
  247. package/es/hooks/useContainerLinkTopo.d.ts +0 -8
  248. package/es/hooks/usePolling.d.ts +0 -9
  249. package/es/hooks/useSelection.d.ts +0 -9
  250. package/es/hooks/useTopoEdit.d.ts +0 -83
  251. package/es/index.d.ts +0 -3
  252. package/es/mock/mock.d.ts +0 -187
  253. package/es/models/ciModel.d.ts +0 -15
  254. package/es/models/iconManage.d.ts +0 -39
  255. package/es/models/linkDynamicStyle.d.ts +0 -47
  256. package/es/models/linkDynamicStyleConfig.d.ts +0 -37
  257. package/es/models/linkManager.d.ts +0 -11
  258. package/es/models/resourceWebControllUrlSetting.d.ts +0 -13
  259. package/es/models/topoAlarm.d.ts +0 -15
  260. package/es/models/topoBizMod.d.ts +0 -42
  261. package/es/models/topoCreateMod.d.ts +0 -108
  262. package/es/models/topoEdit.d.ts +0 -13
  263. package/es/models/topoGraphView.d.ts +0 -11
  264. package/es/models/topoMod.d.ts +0 -86
  265. package/es/models/topoView.d.ts +0 -11
  266. package/es/topoCenter/components/Topology.d.ts +0 -1
  267. package/es/topoCenter/createTopo.d.ts +0 -3
  268. package/es/topoCenter/getTopoData.d.ts +0 -1
  269. package/es/topoCenter/index.d.ts +0 -3
  270. package/es/topoCenter/models/TopoCenter.d.ts +0 -11
  271. package/es/topoCenter/store/functionAuth.d.ts +0 -20
  272. package/es/topoCenter/store/topoCenter.d.ts +0 -32
  273. package/es/topoCenter/store/topoTreeMod.d.ts +0 -83
  274. package/es/topoCenter/viewer/components/TitleBar.d.ts +0 -1
  275. package/es/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
  276. package/es/topoCenter/viewer/createTopoViewer.d.ts +0 -3
  277. package/es/topoCenter/viewer/index.d.ts +0 -2
  278. package/es/utils/ciType.d.ts +0 -1
  279. package/es/utils/format.d.ts +0 -28
  280. package/es/utils/htElementDataUtil.d.ts +0 -5
  281. package/es/utils/htElementUtils.d.ts +0 -5
  282. package/es/utils/listToTree.d.ts +0 -1
  283. package/es/utils/resourceElementUtil.d.ts +0 -1
  284. package/es/utils/template.d.ts +0 -50
  285. package/es/utils/topoData.d.ts +0 -54
  286. package/es/utils/topoIconUtil.d.ts +0 -6
  287. package/es/utils/topoMocks.d.ts +0 -172
  288. package/es/utils/topoPermissionUtil.d.ts +0 -9
  289. package/es/utils/tree.d.ts +0 -15
  290. package/lib/common/components/ResourceTable/ResourceTable.d.ts +0 -2
  291. package/lib/common/plugins/useSelectionPlugin.d.ts +0 -23
  292. package/lib/components/BatchAttrMetric/constant.d.ts +0 -30
  293. package/lib/components/BatchAttrMetric/index.d.ts +0 -5
  294. package/lib/components/BatchAttrMetric/setting.d.ts +0 -6
  295. package/lib/components/BatchAttrMetric/utils.d.ts +0 -35
  296. package/lib/components/Drawer/index.d.ts +0 -2
  297. package/lib/components/FormTable/index.d.ts +0 -2
  298. package/lib/components/IndexSettingDrawer/CiList.d.ts +0 -2
  299. package/lib/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
  300. package/lib/components/IndexSettingDrawer/IndexList.d.ts +0 -2
  301. package/lib/components/IndexSettingDrawer/index.d.ts +0 -2
  302. package/lib/components/Link/form.d.ts +0 -2
  303. package/lib/components/Link/hook.d.ts +0 -26
  304. package/lib/components/Link/index.d.ts +0 -6
  305. package/lib/components/Link/setting.d.ts +0 -8
  306. package/lib/components/MultiResourceDrawer/Content.d.ts +0 -2
  307. package/lib/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
  308. package/lib/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
  309. package/lib/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
  310. package/lib/components/MultiResourceDrawer/Static.d.ts +0 -2
  311. package/lib/components/MultiResourceDrawer/index.d.ts +0 -2
  312. package/lib/components/ResourceList/ResourceSelect.d.ts +0 -2
  313. package/lib/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
  314. package/lib/components/ResourceList/index.d.ts +0 -1
  315. package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
  316. package/lib/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
  317. package/lib/components/SingleResourceDrawer/index.d.ts +0 -2
  318. package/lib/components/TemplateButton/Icon.d.ts +0 -2
  319. package/lib/components/TemplateButton/assets/index.d.ts +0 -8
  320. package/lib/components/TemplateButton/index.d.ts +0 -2
  321. package/lib/components/TemplateGroup/index.d.ts +0 -2
  322. package/lib/components/TemplateSelect/index.d.ts +0 -2
  323. package/lib/constants/ResDetailContants.d.ts +0 -1
  324. package/lib/constants/constant.d.ts +0 -36
  325. package/lib/constants/defaultCiTypeIcon.d.ts +0 -8
  326. package/lib/contextmenu/createMenuCommands.d.ts +0 -5
  327. package/lib/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
  328. package/lib/core/common/icons/defaultIcons.d.ts +0 -84
  329. package/lib/core/components/TopoApp.d.ts +0 -1
  330. package/lib/core/components/TopoAppProvider.d.ts +0 -1
  331. package/lib/core/components/TopoAppView.d.ts +0 -14
  332. package/lib/core/components/TopoView/Topo.d.ts +0 -5
  333. package/lib/core/components/TopoView/Topo404.d.ts +0 -1
  334. package/lib/core/components/TopoView/TopoContent.d.ts +0 -5
  335. package/lib/core/components/TopoView/TopoNoPermission.d.ts +0 -1
  336. package/lib/core/components/TopoView/topoView.d.ts +0 -19
  337. package/lib/core/components/buildProvider.d.ts +0 -1
  338. package/lib/core/components/titlebar/TitleBar.d.ts +0 -9
  339. package/lib/core/components/titlebar/index.d.ts +0 -1
  340. package/lib/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
  341. package/lib/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
  342. package/lib/core/editor/components/EditorPlugin.d.ts +0 -1
  343. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
  344. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
  345. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
  346. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
  347. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
  348. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
  349. package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
  350. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
  351. package/lib/core/editor/components/iconManage/IconManage.d.ts +0 -1
  352. package/lib/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
  353. package/lib/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
  354. package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
  355. package/lib/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
  356. package/lib/core/editor/components/settings/Settings.d.ts +0 -1
  357. package/lib/core/editor/components/settings/SettingsForm.d.ts +0 -1
  358. package/lib/core/editor/components/settings/Style.d.ts +0 -1
  359. package/lib/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
  360. package/lib/core/editor/components/settings/common/LineType.d.ts +0 -1
  361. package/lib/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
  362. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
  363. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
  364. package/lib/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
  365. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
  366. package/lib/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
  367. package/lib/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
  368. package/lib/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
  369. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
  370. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
  371. package/lib/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
  372. package/lib/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
  373. package/lib/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
  374. package/lib/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
  375. package/lib/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
  376. package/lib/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
  377. package/lib/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
  378. package/lib/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
  379. package/lib/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
  380. package/lib/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
  381. package/lib/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
  382. package/lib/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
  383. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
  384. package/lib/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
  385. package/lib/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
  386. package/lib/core/index.d.ts +0 -1
  387. package/lib/core/models/AttributeMetricDisplay.d.ts +0 -8
  388. package/lib/core/models/TopoGraphView.d.ts +0 -42
  389. package/lib/core/models/TopoViewer.d.ts +0 -9
  390. package/lib/core/models/attrAndMetric.d.ts +0 -1
  391. package/lib/core/models/cache/CiTyeCache.d.ts +0 -12
  392. package/lib/core/models/cache/DictCache.d.ts +0 -11
  393. package/lib/core/models/common/Alarm.d.ts +0 -52
  394. package/lib/core/models/common/ContextMenu.d.ts +0 -8
  395. package/lib/core/models/createTopoApp.d.ts +0 -13
  396. package/lib/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
  397. package/lib/core/models/utils/getRelationDetailByIds.d.ts +0 -1
  398. package/lib/core/models/utils/linkUtils.d.ts +0 -3
  399. package/lib/core/store/coreModels.d.ts +0 -18
  400. package/lib/core/store/createStore.d.ts +0 -1
  401. package/lib/core/test/Test.d.ts +0 -9
  402. package/lib/core/utils/resourceUtil.d.ts +0 -5
  403. package/lib/core/utils/showMessage.d.ts +0 -1
  404. package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
  405. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
  406. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
  407. package/lib/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
  408. package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
  409. package/lib/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
  410. package/lib/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
  411. package/lib/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
  412. package/lib/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
  413. package/lib/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
  414. package/lib/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
  415. package/lib/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
  416. package/lib/createTopo.d.ts +0 -2
  417. package/lib/getStoreModels.d.ts +0 -35
  418. package/lib/hooks/useAlarm.d.ts +0 -1
  419. package/lib/hooks/useContainerLinkTopo.d.ts +0 -8
  420. package/lib/hooks/usePolling.d.ts +0 -9
  421. package/lib/hooks/useSelection.d.ts +0 -9
  422. package/lib/hooks/useTopoEdit.d.ts +0 -83
  423. package/lib/index.d.ts +0 -3
  424. package/lib/mock/mock.d.ts +0 -187
  425. package/lib/models/ciModel.d.ts +0 -15
  426. package/lib/models/iconManage.d.ts +0 -39
  427. package/lib/models/linkDynamicStyle.d.ts +0 -47
  428. package/lib/models/linkDynamicStyleConfig.d.ts +0 -37
  429. package/lib/models/linkManager.d.ts +0 -11
  430. package/lib/models/resourceWebControllUrlSetting.d.ts +0 -13
  431. package/lib/models/topoAlarm.d.ts +0 -15
  432. package/lib/models/topoBizMod.d.ts +0 -42
  433. package/lib/models/topoCreateMod.d.ts +0 -108
  434. package/lib/models/topoEdit.d.ts +0 -13
  435. package/lib/models/topoGraphView.d.ts +0 -11
  436. package/lib/models/topoMod.d.ts +0 -86
  437. package/lib/models/topoView.d.ts +0 -11
  438. package/lib/topoCenter/components/Topology.d.ts +0 -1
  439. package/lib/topoCenter/createTopo.d.ts +0 -3
  440. package/lib/topoCenter/getTopoData.d.ts +0 -1
  441. package/lib/topoCenter/index.d.ts +0 -3
  442. package/lib/topoCenter/models/TopoCenter.d.ts +0 -11
  443. package/lib/topoCenter/store/functionAuth.d.ts +0 -20
  444. package/lib/topoCenter/store/topoCenter.d.ts +0 -32
  445. package/lib/topoCenter/store/topoTreeMod.d.ts +0 -83
  446. package/lib/topoCenter/viewer/components/TitleBar.d.ts +0 -1
  447. package/lib/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
  448. package/lib/topoCenter/viewer/createTopoViewer.d.ts +0 -3
  449. package/lib/topoCenter/viewer/index.d.ts +0 -2
  450. package/lib/utils/ciType.d.ts +0 -1
  451. package/lib/utils/format.d.ts +0 -28
  452. package/lib/utils/htElementDataUtil.d.ts +0 -5
  453. package/lib/utils/htElementUtils.d.ts +0 -5
  454. package/lib/utils/listToTree.d.ts +0 -1
  455. package/lib/utils/resourceElementUtil.d.ts +0 -1
  456. package/lib/utils/template.d.ts +0 -50
  457. package/lib/utils/topoData.d.ts +0 -54
  458. package/lib/utils/topoIconUtil.d.ts +0 -6
  459. package/lib/utils/topoMocks.d.ts +0 -172
  460. package/lib/utils/topoPermissionUtil.d.ts +0 -9
  461. package/lib/utils/tree.d.ts +0 -15
package/build/2.js CHANGED
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1653:function(e,t,n){
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1677:function(e,t,n){
2
2
  /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */var r,o;r=this,o=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,c=Object.create,s="undefined"!=typeof Reflect&&Reflect,u=s.apply,m=s.construct;u||(u=function e(t,n,r){return t.apply(n,r)}),a||(a=function e(t){return t}),l||(l=function e(t){return t}),m||(m=function t(n,r){return new(Function.prototype.bind.apply(n,[null].concat(e(r))))});var f=x(Array.prototype.forEach),p=x(Array.prototype.pop),d=x(Array.prototype.push),h=x(String.prototype.toLowerCase),g=x(String.prototype.match),y=x(String.prototype.replace),v=x(String.prototype.indexOf),b=x(String.prototype.trim),T=x(RegExp.prototype.test),A=w(TypeError);function x(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function w(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function S(e,t){n&&n(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=h(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function E(e){var n=c(null),r=void 0;for(r in e)u(t,e,[r])&&(n[r]=e[r]);return n}function R(e,t){for(;null!==e;){var n=i(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var _=a(["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","section","select","shadow","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"]),k=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),O=a(["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"]),M=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=a(["#text"]),F=a(["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","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","targetx","targety","transform","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"]),C=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),z=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),U=l(/<%[\s\S]*|[\s\S]*%>/gm),P=l(/^data-[\-\w.\u00B7-\uFFFF]/),B=l(/^aria-[\-\w]+$/),j=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=l(/^(?:\w+script|data):/i),G=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function e(){return"undefined"==typeof window?null:window},V=function e(t,n){if("object"!==(void 0===t?"undefined":q(t))||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function e(t){return t}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},J;function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),t=function e(t){return X(t)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter,u=e.NamedNodeMap,m=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,x=e.Text,w=e.Comment,J=e.DOMParser,$=e.trustedTypes,Z=c.prototype,Q=R(Z,"cloneNode"),ee=R(Z,"nextSibling"),te=R(Z,"childNodes"),ne=R(Z,"parentNode");if("function"==typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=V($,n),ie=oe&&ze?oe.createHTML(""):"",ae=r,le=ae.implementation,ce=ae.createNodeIterator,se=ae.createDocumentFragment,ue=ae.getElementsByTagName,me=n.importNode,fe={};try{fe=E(r).documentMode?r.documentMode:{}}catch(e){}var pe={};t.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==fe;var de=H,he=U,ge=P,ye=B,ve=W,be=G,Te=j,Ae=null,xe=S({},[].concat(Y(_),Y(k),Y(N),Y(O),Y(L))),we=null,Se=S({},[].concat(Y(F),Y(I),Y(C),Y(z))),Ee=null,Re=null,_e=!0,ke=!0,Ne=!1,De=!1,Oe=!1,Me=!1,Le=!1,Fe=!1,Ie=!1,Ce=!0,ze=!1,He=!0,Ue=!0,Pe=!1,Be={},je=null,We=S({},["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"]),Ge=null,qe=S({},["audio","video","img","source","image","track"]),Ye=null,Ke=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",$e=Xe,Ze=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function e(t){rt&&rt===t||(t&&"object"===(void 0===t?"undefined":q(t))||(t={}),t=E(t),Ae="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS):xe,we="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR):Se,Ye="ADD_URI_SAFE_ATTR"in t?S(E(Ke),t.ADD_URI_SAFE_ATTR):Ke,Ge="ADD_DATA_URI_TAGS"in t?S(E(qe),t.ADD_DATA_URI_TAGS):qe,je="FORBID_CONTENTS"in t?S({},t.FORBID_CONTENTS):We,Ee="FORBID_TAGS"in t?S({},t.FORBID_TAGS):{},Re="FORBID_ATTR"in t?S({},t.FORBID_ATTR):{},Be="USE_PROFILES"in t&&t.USE_PROFILES,_e=!1!==t.ALLOW_ARIA_ATTR,ke=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Oe=t.WHOLE_DOCUMENT||!1,Fe=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Ce=!1!==t.RETURN_DOM_IMPORT,ze=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,Pe=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,$e=t.NAMESPACE||Xe,Qe=Qe=-1===et.indexOf(t.PARSER_MEDIA_TYPE)?tt:t.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:h,De&&(ke=!1),Ie&&(Fe=!0),Be&&(Ae=S({},[].concat(Y(L))),we=[],!0===Be.html&&(S(Ae,_),S(we,F)),!0===Be.svg&&(S(Ae,k),S(we,I),S(we,z)),!0===Be.svgFilters&&(S(Ae,N),S(we,I),S(we,z)),!0===Be.mathMl&&(S(Ae,O),S(we,C),S(we,z))),t.ADD_TAGS&&(Ae===xe&&(Ae=E(Ae)),S(Ae,t.ADD_TAGS)),t.ADD_ATTR&&(we===Se&&(we=E(we)),S(we,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&S(Ye,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(je===We&&(je=E(je)),S(je,t.FORBID_CONTENTS)),Ue&&(Ae["#text"]=!0),Oe&&S(Ae,["html","head","body"]),Ae.table&&(S(Ae,["tbody"]),delete Ee.tbody),a&&a(t),rt=t)},at=S({},["mi","mo","mn","ms","mtext"]),lt=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},k);S(ct,N),S(ct,D);var st=S({},O);S(st,M);var ut=function e(t){var n=ne(t);n&&n.tagName||(n={namespaceURI:Xe,tagName:"template"});var r=h(t.tagName),o=h(n.tagName);if(t.namespaceURI===Je)return n.namespaceURI===Xe?"svg"===r:n.namespaceURI===Ve?"svg"===r&&("annotation-xml"===o||at[o]):Boolean(ct[r]);if(t.namespaceURI===Ve)return n.namespaceURI===Xe?"math"===r:n.namespaceURI===Je?"math"===r&&lt[o]:Boolean(st[r]);if(t.namespaceURI===Xe){if(n.namespaceURI===Je&&!lt[o])return!1;if(n.namespaceURI===Ve&&!at[o])return!1;var i=S({},["title","style","font","a","script"]);return!st[r]&&(i[r]||!ct[r])}return!1},mt=function e(n){d(t.removed,{element:n});try{n.parentNode.removeChild(n)}catch(e){try{n.outerHTML=ie}catch(e){n.remove()}}},ft=function e(n,r){try{d(t.removed,{attribute:r.getAttributeNode(n),from:r})}catch(e){d(t.removed,{attribute:null,from:r})}if(r.removeAttribute(n),"is"===n&&!we[n])if(Fe||Ie)try{mt(r)}catch(e){}else try{r.setAttribute(n,"")}catch(e){}},pt=function e(t){var n=void 0,o=void 0;if(Le)t="<remove></remove>"+t;else{var i=g(t,/^[\r\n\t ]+/);o=i&&i[0]}"application/xhtml+xml"===Qe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=oe?oe.createHTML(t):t;if($e===Xe)try{n=(new J).parseFromString(a,Qe)}catch(e){}if(!n||!n.documentElement){n=le.createDocument($e,"template",null);try{n.documentElement.innerHTML=Ze?"":a}catch(e){}}var l=n.body||n.documentElement;return t&&o&&l.insertBefore(r.createTextNode(o),l.childNodes[0]||null),$e===Xe?ue.call(n,Oe?"html":"body")[0]:Oe?n.documentElement:l},dt=function e(t){return ce.call(t.ownerDocument||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},ht=function e(t){return!(t instanceof x||t instanceof w||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof m&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},gt=function e(t){return"object"===(void 0===l?"undefined":q(l))?t instanceof l:t&&"object"===(void 0===t?"undefined":q(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},yt=function e(n,r,o){pe[n]&&f(pe[n],(function(e){e.call(t,r,o,rt)}))},vt=function e(n){var r=void 0;if(yt("beforeSanitizeElements",n,null),ht(n))return mt(n),!0;if(g(n.nodeName,/[\u0080-\uFFFF]/))return mt(n),!0;var o=nt(n.nodeName);if(yt("uponSanitizeElement",n,{tagName:o,allowedTags:Ae}),!gt(n.firstElementChild)&&(!gt(n.content)||!gt(n.content.firstElementChild))&&T(/<[/\w]/g,n.innerHTML)&&T(/<[/\w]/g,n.textContent))return mt(n),!0;if("select"===o&&T(/<template/i,n.innerHTML))return mt(n),!0;if(!Ae[o]||Ee[o]){if(Ue&&!je[o]){var i=ne(n)||n.parentNode,a=te(n)||n.childNodes;if(a&&i)for(var l,s=a.length-1;s>=0;--s)i.insertBefore(Q(a[s],!0),ee(n))}return mt(n),!0}return n instanceof c&&!ut(n)?(mt(n),!0):"noscript"!==o&&"noembed"!==o||!T(/<\/no(script|embed)/i,n.innerHTML)?(De&&3===n.nodeType&&(r=n.textContent,r=y(r,de," "),r=y(r,he," "),n.textContent!==r&&(d(t.removed,{element:n.cloneNode()}),n.textContent=r)),yt("afterSanitizeElements",n,null),!1):(mt(n),!0)},bt=function e(t,n,o){if(He&&("id"===n||"name"===n)&&(o in r||o in ot))return!1;if(ke&&!Re[n]&&T(ge,n));else if(_e&&T(ye,n));else{if(!we[n]||Re[n])return!1;if(Ye[n]);else if(T(Te,y(o,be,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===t||0!==v(o,"data:")||!Ge[t])if(Ne&&!T(ve,y(o,be,"")));else if(o)return!1}return!0},Tt=function e(n){var r=void 0,o=void 0,i=void 0,a=void 0;yt("beforeSanitizeAttributes",n,null);var l=n.attributes;if(l){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(a=l.length;a--;){var s=r=l[a],u=s.name,m=s.namespaceURI;if(o=b(r.value),i=nt(u),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,yt("uponSanitizeAttribute",n,c),o=c.attrValue,!c.forceKeepAttr&&(ft(u,n),c.keepAttr))if(T(/\/>/i,o))ft(u,n);else{De&&(o=y(o,de," "),o=y(o,he," "));var f=nt(n.nodeName);if(bt(f,i,o))try{m?n.setAttributeNS(m,u,o):n.setAttribute(u,o),p(t.removed)}catch(e){}}}yt("afterSanitizeAttributes",n,null)}},At=function e(t){var n=void 0,r=dt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),vt(n)||(n.content instanceof o&&e(n.content),Tt(n));yt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,s=void 0,u=void 0,m=void 0;if((Ze=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!gt(r)){if("function"!=typeof r.toString)throw A("toString is not a function");if("string"!=typeof(r=r.toString()))throw A("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(gt(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||it(i),t.removed=[],"string"==typeof r&&(Pe=!1),Pe);else if(r instanceof l)1===(c=(a=pt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Fe&&!De&&!Oe&&-1===r.indexOf("<"))return oe&&ze?oe.createHTML(r):r;if(!(a=pt(r)))return Fe?null:ie}a&&Le&&mt(a.firstChild);for(var f=dt(Pe?r:a);s=f.nextNode();)3===s.nodeType&&s===u||vt(s)||(s.content instanceof o&&At(s.content),Tt(s),u=s);if(u=null,Pe)return r;if(Fe){if(Ie)for(m=se.call(a.ownerDocument);a.firstChild;)m.appendChild(a.firstChild);else m=a;return Ce&&(m=me.call(n,m,!0)),m}var p=Oe?a.outerHTML:a.innerHTML;return De&&(p=y(p,de," "),p=y(p,he," ")),oe&&ze?oe.createHTML(p):p},t.setConfig=function(e){it(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||it({});var r=nt(e),o=nt(t);return bt(r,o,n)},t.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],d(pe[e],t))},t.removeHook=function(e){pe[e]&&p(pe[e])},t.removeHooks=function(e){pe[e]&&(pe[e]=[])},t.removeAllHooks=function(){pe={}},t}return X()},e.exports=o()}}]);