@editora/core 1.0.1 → 1.0.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 (121) hide show
  1. package/README.md +9 -0
  2. package/dist/A11yCheckerPlugin.native-CZKpi3uF.mjs +475 -0
  3. package/dist/A11yCheckerPlugin.native-CZKpi3uF.mjs.map +1 -0
  4. package/dist/AnchorPlugin.native-7es9PVZ9.mjs +340 -0
  5. package/dist/AnchorPlugin.native-7es9PVZ9.mjs.map +1 -0
  6. package/dist/BackgroundColorPlugin.native-Dip5uqTg.mjs +449 -0
  7. package/dist/BackgroundColorPlugin.native-Dip5uqTg.mjs.map +1 -0
  8. package/dist/BlockquotePlugin.native-JFmOLsxN.mjs +48 -0
  9. package/dist/BlockquotePlugin.native-JFmOLsxN.mjs.map +1 -0
  10. package/dist/BoldPlugin.native-BAzzoqU5.mjs +45 -0
  11. package/dist/BoldPlugin.native-BAzzoqU5.mjs.map +1 -0
  12. package/dist/CapitalizationPlugin.native-DOMsh5R7.mjs +79 -0
  13. package/dist/CapitalizationPlugin.native-DOMsh5R7.mjs.map +1 -0
  14. package/dist/ChecklistPlugin.native-Dccs3nLe.mjs +153 -0
  15. package/dist/ChecklistPlugin.native-Dccs3nLe.mjs.map +1 -0
  16. package/dist/ClearFormattingPlugin.native-BZPDHswo.mjs +27 -0
  17. package/dist/ClearFormattingPlugin.native-BZPDHswo.mjs.map +1 -0
  18. package/dist/CodePlugin.native-DD9xFIid.mjs +1679 -0
  19. package/dist/CodePlugin.native-DD9xFIid.mjs.map +1 -0
  20. package/dist/CodeSamplePlugin.native-DMbEdO9j.mjs +326 -0
  21. package/dist/CodeSamplePlugin.native-DMbEdO9j.mjs.map +1 -0
  22. package/dist/CommentsPlugin.native-2zQV8Ia4.mjs +473 -0
  23. package/dist/CommentsPlugin.native-2zQV8Ia4.mjs.map +1 -0
  24. package/dist/DirectionPlugin.native-Be7wCzkI.mjs +59 -0
  25. package/dist/DirectionPlugin.native-Be7wCzkI.mjs.map +1 -0
  26. package/dist/DocumentManagerPlugin.native-BvZL5CSG.mjs +116 -0
  27. package/dist/DocumentManagerPlugin.native-BvZL5CSG.mjs.map +1 -0
  28. package/dist/EmbedIframePlugin.native-ifr9KLdN.mjs +461 -0
  29. package/dist/EmbedIframePlugin.native-ifr9KLdN.mjs.map +1 -0
  30. package/dist/EmojisPlugin.native-D6mJSnSR.mjs +1033 -0
  31. package/dist/EmojisPlugin.native-D6mJSnSR.mjs.map +1 -0
  32. package/dist/FontFamilyPlugin.native-BzS_9qbM.mjs +106 -0
  33. package/dist/FontFamilyPlugin.native-BzS_9qbM.mjs.map +1 -0
  34. package/dist/FontSizePlugin.native-DkLMLPue.mjs +186 -0
  35. package/dist/FontSizePlugin.native-DkLMLPue.mjs.map +1 -0
  36. package/dist/FootnotePlugin.native-BciVc9W6.mjs +128 -0
  37. package/dist/FootnotePlugin.native-BciVc9W6.mjs.map +1 -0
  38. package/dist/FullscreenPlugin.native-ChXyxeNw.mjs +77 -0
  39. package/dist/FullscreenPlugin.native-ChXyxeNw.mjs.map +1 -0
  40. package/dist/HeadingPlugin.native-DrLYwQnQ.mjs +64 -0
  41. package/dist/HeadingPlugin.native-DrLYwQnQ.mjs.map +1 -0
  42. package/dist/HistoryPlugin.native-DoDRifCf.mjs +89 -0
  43. package/dist/HistoryPlugin.native-DoDRifCf.mjs.map +1 -0
  44. package/dist/IndentPlugin.native-CbFugPoi.mjs +133 -0
  45. package/dist/IndentPlugin.native-CbFugPoi.mjs.map +1 -0
  46. package/dist/ItalicPlugin.native-CQjjDyUL.mjs +43 -0
  47. package/dist/ItalicPlugin.native-CQjjDyUL.mjs.map +1 -0
  48. package/dist/LineHeightPlugin.native-CWQT2FIa.mjs +73 -0
  49. package/dist/LineHeightPlugin.native-CWQT2FIa.mjs.map +1 -0
  50. package/dist/LinkPlugin.native-BdAOV-iu.mjs +206 -0
  51. package/dist/LinkPlugin.native-BdAOV-iu.mjs.map +1 -0
  52. package/dist/ListPlugin.native-CLFU5AUQ.mjs +59 -0
  53. package/dist/ListPlugin.native-CLFU5AUQ.mjs.map +1 -0
  54. package/dist/MathPlugin.native-DE_ii-LA.mjs +182 -0
  55. package/dist/MathPlugin.native-DE_ii-LA.mjs.map +1 -0
  56. package/dist/MediaManagerPlugin.native-DaYFDzNM.mjs +533 -0
  57. package/dist/MediaManagerPlugin.native-DaYFDzNM.mjs.map +1 -0
  58. package/dist/MergeTagPlugin.native-CrxyThyn.mjs +178 -0
  59. package/dist/MergeTagPlugin.native-CrxyThyn.mjs.map +1 -0
  60. package/dist/PageBreakPlugin.native-DDjcDyRW.mjs +172 -0
  61. package/dist/PageBreakPlugin.native-DDjcDyRW.mjs.map +1 -0
  62. package/dist/PreviewPlugin.native-DBvfpmIv.mjs +322 -0
  63. package/dist/PreviewPlugin.native-DBvfpmIv.mjs.map +1 -0
  64. package/dist/PrintPlugin.native-BUpm52VJ.mjs +311 -0
  65. package/dist/PrintPlugin.native-BUpm52VJ.mjs.map +1 -0
  66. package/dist/SpecialCharactersPlugin.native-x7a2SWXc.mjs +731 -0
  67. package/dist/SpecialCharactersPlugin.native-x7a2SWXc.mjs.map +1 -0
  68. package/dist/SpellCheckPlugin.native-B7yTh0iE.mjs +465 -0
  69. package/dist/SpellCheckPlugin.native-B7yTh0iE.mjs.map +1 -0
  70. package/dist/StrikethroughPlugin.native-ChaZLaXw.mjs +43 -0
  71. package/dist/StrikethroughPlugin.native-ChaZLaXw.mjs.map +1 -0
  72. package/dist/TablePlugin.native-EEWXn1-s.mjs +491 -0
  73. package/dist/TablePlugin.native-EEWXn1-s.mjs.map +1 -0
  74. package/dist/TemplatePlugin.native-BlSn1c9h.mjs +564 -0
  75. package/dist/TemplatePlugin.native-BlSn1c9h.mjs.map +1 -0
  76. package/dist/TextAlignmentPlugin.native-CQIs1m7R.mjs +97 -0
  77. package/dist/TextAlignmentPlugin.native-CQIs1m7R.mjs.map +1 -0
  78. package/dist/TextColorPlugin.native-D6SmTglm.mjs +432 -0
  79. package/dist/TextColorPlugin.native-D6SmTglm.mjs.map +1 -0
  80. package/dist/UnderlinePlugin.native-QpIcK4L2.mjs +35 -0
  81. package/dist/UnderlinePlugin.native-QpIcK4L2.mjs.map +1 -0
  82. package/dist/documentManager-irzj9n3V.mjs +37627 -0
  83. package/dist/documentManager-irzj9n3V.mjs.map +1 -0
  84. package/dist/editorContainerHelpers-C7kdWnS0.mjs +27 -0
  85. package/dist/editorContainerHelpers-C7kdWnS0.mjs.map +1 -0
  86. package/dist/editora.min.js +14 -12
  87. package/dist/editora.min.js.map +1 -1
  88. package/dist/editora.umd.js +14 -12
  89. package/dist/editora.umd.js.map +1 -1
  90. package/dist/index-BF5RBhL9.js +4 -0
  91. package/dist/index-BF5RBhL9.js.map +1 -0
  92. package/dist/{index-BS4zT-KN.mjs → index-BPsf460l.mjs} +286 -162
  93. package/dist/index-BPsf460l.mjs.map +1 -0
  94. package/dist/index.cjs.js +3 -3
  95. package/dist/index.cjs.js.map +1 -1
  96. package/dist/index.es-CuicffkQ.mjs +6665 -0
  97. package/dist/index.es-CuicffkQ.mjs.map +1 -0
  98. package/dist/index.esm.js +117 -112
  99. package/dist/index.esm.js.map +1 -1
  100. package/dist/plugin-loader.js +55 -0
  101. package/dist/plugin-loader.js.map +1 -0
  102. package/dist/purify.es-CKpwg8Tk.mjs +471 -0
  103. package/dist/purify.es-CKpwg8Tk.mjs.map +1 -0
  104. package/dist/webcomponent-core.js +1243 -0
  105. package/dist/webcomponent-core.js.map +1 -0
  106. package/dist/webcomponent-core.min.css +1 -0
  107. package/dist/webcomponent-core.min.js +597 -0
  108. package/dist/webcomponent-core.min.js.map +1 -0
  109. package/dist/webcomponent.cjs.js +1 -1
  110. package/dist/webcomponent.esm.js +3 -3
  111. package/dist/webcomponent.js +1286 -0
  112. package/dist/webcomponent.js.map +1 -0
  113. package/dist/webcomponent.min.css +1 -0
  114. package/dist/webcomponent.min.js +337 -334
  115. package/dist/webcomponent.min.js.map +1 -1
  116. package/package.json +16 -4
  117. package/dist/index-BK2lHfHK.js +0 -2
  118. package/dist/index-BK2lHfHK.js.map +0 -1
  119. package/dist/index-BS4zT-KN.mjs.map +0 -1
  120. package/dist/webcomponent.umd.js +0 -4073
  121. package/dist/webcomponent.umd.js.map +0 -1
@@ -0,0 +1,55 @@
1
+ const r = {
2
+ codeSample: () => import("./CodeSamplePlugin.native-DMbEdO9j.mjs").then((e) => e.CodeSamplePlugin()),
3
+ checklist: () => import("./ChecklistPlugin.native-Dccs3nLe.mjs").then((e) => e.ChecklistPlugin()),
4
+ textAlignment: () => import("./TextAlignmentPlugin.native-CQIs1m7R.mjs").then((e) => e.TextAlignmentPlugin()),
5
+ indent: () => import("./IndentPlugin.native-CbFugPoi.mjs").then((e) => e.IndentPlugin()),
6
+ direction: () => import("./DirectionPlugin.native-Be7wCzkI.mjs").then((e) => e.DirectionPlugin()),
7
+ textColor: () => import("./TextColorPlugin.native-D6SmTglm.mjs").then((e) => e.TextColorPlugin()),
8
+ backgroundColor: () => import("./BackgroundColorPlugin.native-Dip5uqTg.mjs").then((e) => e.BackgroundColorPlugin()),
9
+ fontSize: () => import("./FontSizePlugin.native-DkLMLPue.mjs").then((e) => e.FontSizePlugin()),
10
+ fontFamily: () => import("./FontFamilyPlugin.native-BzS_9qbM.mjs").then((e) => e.FontFamilyPlugin()),
11
+ lineHeight: () => import("./LineHeightPlugin.native-CWQT2FIa.mjs").then((e) => e.LineHeightPlugin()),
12
+ capitalization: () => import("./CapitalizationPlugin.native-DOMsh5R7.mjs").then((e) => e.CapitalizationPlugin()),
13
+ link: () => import("./LinkPlugin.native-BdAOV-iu.mjs").then((e) => e.LinkPlugin()),
14
+ table: () => import("./TablePlugin.native-EEWXn1-s.mjs").then((e) => e.TablePlugin()),
15
+ anchor: () => import("./AnchorPlugin.native-7es9PVZ9.mjs").then((e) => e.AnchorPlugin()),
16
+ embedIframe: () => import("./EmbedIframePlugin.native-ifr9KLdN.mjs").then((e) => e.EmbedIframePlugin()),
17
+ math: () => import("./MathPlugin.native-DE_ii-LA.mjs").then((e) => e.MathPlugin()),
18
+ image: () => import("./MediaManagerPlugin.native-DaYFDzNM.mjs").then((e) => e.MediaManagerPlugin()),
19
+ mergeTag: () => import("./MergeTagPlugin.native-CrxyThyn.mjs").then((e) => e.MergeTagPlugin()),
20
+ pageBreak: () => import("./PageBreakPlugin.native-DDjcDyRW.mjs").then((e) => e.PageBreakPlugin()),
21
+ print: () => import("./PrintPlugin.native-BUpm52VJ.mjs").then((e) => e.PrintPlugin()),
22
+ preview: () => import("./PreviewPlugin.native-DBvfpmIv.mjs").then((e) => e.PreviewPlugin()),
23
+ specialCharacters: () => import("./SpecialCharactersPlugin.native-x7a2SWXc.mjs").then((e) => e.SpecialCharactersPlugin()),
24
+ spellCheck: () => import("./SpellCheckPlugin.native-B7yTh0iE.mjs").then((e) => e.SpellCheckPlugin()),
25
+ emojis: () => import("./EmojisPlugin.native-D6mJSnSR.mjs").then((e) => e.EmojisPlugin()),
26
+ a11yChecker: () => import("./A11yCheckerPlugin.native-CZKpi3uF.mjs").then((e) => e.A11yCheckerPlugin()),
27
+ comments: () => import("./CommentsPlugin.native-2zQV8Ia4.mjs").then((e) => e.CommentsPlugin()),
28
+ "document-manager": () => import("./DocumentManagerPlugin.native-BvZL5CSG.mjs").then((e) => e.DocumentManagerPlugin()),
29
+ fullscreen: () => import("./FullscreenPlugin.native-ChXyxeNw.mjs").then((e) => e.FullscreenPlugin()),
30
+ template: () => import("./TemplatePlugin.native-BlSn1c9h.mjs").then((e) => e.TemplatePlugin()),
31
+ footnote: () => import("./FootnotePlugin.native-BciVc9W6.mjs").then((e) => e.FootnotePlugin())
32
+ };
33
+ async function a(e) {
34
+ var t, i;
35
+ const n = ((t = window.EditoraCore) == null ? void 0 : t.__globalPluginLoader) || ((i = window.Editora) == null ? void 0 : i.__globalPluginLoader);
36
+ if (!n) {
37
+ console.warn("Editora plugin loader not found. Make sure to load the core bundle first.");
38
+ return;
39
+ }
40
+ Object.entries(r).forEach(([o, l]) => {
41
+ n.getRegisteredPluginNames().includes(o) || n.register(o, l);
42
+ }), await n.loadMultiple(e);
43
+ }
44
+ function g() {
45
+ return Object.keys(r);
46
+ }
47
+ typeof window != "undefined" && (window.EditoraPlugins = {
48
+ loadPlugins: a,
49
+ getAvailablePlugins: g
50
+ });
51
+ export {
52
+ g as getAvailablePlugins,
53
+ a as loadPlugins
54
+ };
55
+ //# sourceMappingURL=plugin-loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-loader.js","sources":["../src/webcomponent/plugin-loader.ts"],"sourcesContent":["/**\n * Plugin Loader Utility\n * Allows loading additional plugins after the core bundle is loaded\n */\n\nimport { PluginLoader } from '../config/PluginLoader';\n\n/**\n * Advanced plugin registry - loaded on demand\n */\nconst advancedPluginRegistry: Record<string, () => Promise<any>> = {\n 'codeSample': () => import(\"../../../plugins/code-sample/src/CodeSamplePlugin.native\").then(m => m.CodeSamplePlugin()),\n 'checklist': () => import(\"../../../plugins/checklist/src/ChecklistPlugin.native\").then(m => m.ChecklistPlugin()),\n 'textAlignment': () => import(\"../../../plugins/text-alignment/src/TextAlignmentPlugin.native\").then(m => m.TextAlignmentPlugin()),\n 'indent': () => import(\"../../../plugins/indent/src/IndentPlugin.native\").then(m => m.IndentPlugin()),\n 'direction': () => import(\"../../../plugins/direction/src/DirectionPlugin.native\").then(m => m.DirectionPlugin()),\n 'textColor': () => import(\"../../../plugins/text-color/src/TextColorPlugin.native\").then(m => m.TextColorPlugin()),\n 'backgroundColor': () => import(\"../../../plugins/background-color/src/BackgroundColorPlugin.native\").then(m => m.BackgroundColorPlugin()),\n 'fontSize': () => import(\"../../../plugins/font-size/src/FontSizePlugin.native\").then(m => m.FontSizePlugin()),\n 'fontFamily': () => import(\"../../../plugins/font-family/src/FontFamilyPlugin.native\").then(m => m.FontFamilyPlugin()),\n 'lineHeight': () => import(\"../../../plugins/line-height/src/LineHeightPlugin.native\").then(m => m.LineHeightPlugin()),\n 'capitalization': () => import(\"../../../plugins/capitalization/src/CapitalizationPlugin.native\").then(m => m.CapitalizationPlugin()),\n 'link': () => import(\"../../../plugins/link/src/LinkPlugin.native\").then(m => m.LinkPlugin()),\n 'table': () => import(\"../../../plugins/table/src/TablePlugin.native\").then(m => m.TablePlugin()),\n 'anchor': () => import(\"../../../plugins/anchor/src/AnchorPlugin.native\").then(m => m.AnchorPlugin()),\n 'embedIframe': () => import(\"../../../plugins/embed-iframe/src/EmbedIframePlugin.native\").then(m => m.EmbedIframePlugin()),\n 'math': () => import(\"../../../plugins/math/src/MathPlugin.native\").then(m => m.MathPlugin()),\n 'image': () => import(\"../../../plugins/media-manager/src/MediaManagerPlugin.native\").then(m => m.MediaManagerPlugin()),\n 'mergeTag': () => import(\"../../../plugins/merge-tag/src/MergeTagPlugin.native\").then(m => m.MergeTagPlugin()),\n 'pageBreak': () => import(\"../../../plugins/page-break/src/PageBreakPlugin.native\").then(m => m.PageBreakPlugin()),\n 'print': () => import(\"../../../plugins/print/src/PrintPlugin.native\").then(m => m.PrintPlugin()),\n 'preview': () => import(\"../../../plugins/preview/src/PreviewPlugin.native\").then(m => m.PreviewPlugin()),\n 'specialCharacters': () => import(\"../../../plugins/special-characters/src/SpecialCharactersPlugin.native\").then(m => m.SpecialCharactersPlugin()),\n 'spellCheck': () => import(\"../../../plugins/spell-check/src/SpellCheckPlugin.native\").then(m => m.SpellCheckPlugin()),\n 'emojis': () => import(\"../../../plugins/emojis/src/EmojisPlugin.native\").then(m => m.EmojisPlugin()),\n 'a11yChecker': () => import(\"../../../plugins/a11y-checker/src/A11yCheckerPlugin.native\").then(m => m.A11yCheckerPlugin()),\n 'comments': () => import(\"../../../plugins/comments/src/CommentsPlugin.native\").then(m => m.CommentsPlugin()),\n 'document-manager': () => import(\"../../../plugins/document-manager/src/DocumentManagerPlugin.native\").then(m => m.DocumentManagerPlugin()),\n 'fullscreen': () => import(\"../../../plugins/fullscreen/src/FullscreenPlugin.native\").then(m => m.FullscreenPlugin()),\n 'template': () => import(\"../../../plugins/template/src/TemplatePlugin.native\").then(m => m.TemplatePlugin()),\n 'footnote': () => import(\"../../../plugins/footnote/src/FootnotePlugin.native\").then(m => m.FootnotePlugin()),\n};\n\n/**\n * Load additional plugins dynamically\n */\nexport async function loadPlugins(pluginNames: string[]): Promise<void> {\n const pluginLoader = (window as any).EditoraCore?.__globalPluginLoader ||\n (window as any).Editora?.__globalPluginLoader;\n\n if (!pluginLoader) {\n console.warn('Editora plugin loader not found. Make sure to load the core bundle first.');\n return;\n }\n\n // Register advanced plugins if not already registered\n Object.entries(advancedPluginRegistry).forEach(([name, loader]) => {\n if (!pluginLoader.getRegisteredPluginNames().includes(name)) {\n pluginLoader.register(name, loader);\n }\n });\n\n // Load the requested plugins\n await pluginLoader.loadMultiple(pluginNames);\n}\n\n/**\n * Get available plugin names\n */\nexport function getAvailablePlugins(): string[] {\n return Object.keys(advancedPluginRegistry);\n}\n\n// Make it available globally\nif (typeof window !== 'undefined') {\n (window as any).EditoraPlugins = {\n loadPlugins,\n getAvailablePlugins,\n };\n}"],"names":["advancedPluginRegistry","m","loadPlugins","pluginNames","_a","_b","pluginLoader","name","loader","getAvailablePlugins"],"mappings":"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"}
@@ -0,0 +1,471 @@
1
+ function I(a) {
2
+ "@babel/helpers - typeof";
3
+ return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
4
+ return typeof n;
5
+ } : function(n) {
6
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
7
+ }, I(a);
8
+ }
9
+ function Fe(a, n) {
10
+ return Fe = Object.setPrototypeOf || function(s, c) {
11
+ return s.__proto__ = c, s;
12
+ }, Fe(a, n);
13
+ }
14
+ function zt() {
15
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) return !1;
16
+ if (typeof Proxy == "function") return !0;
17
+ try {
18
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
19
+ })), !0;
20
+ } catch (a) {
21
+ return !1;
22
+ }
23
+ }
24
+ function le(a, n, o) {
25
+ return zt() ? le = Reflect.construct : le = function(c, g, y) {
26
+ var D = [null];
27
+ D.push.apply(D, g);
28
+ var x = Function.bind.apply(c, D), j = new x();
29
+ return y && Fe(j, y.prototype), j;
30
+ }, le.apply(null, arguments);
31
+ }
32
+ function M(a) {
33
+ return Gt(a) || Wt(a) || Bt(a) || $t();
34
+ }
35
+ function Gt(a) {
36
+ if (Array.isArray(a)) return Ue(a);
37
+ }
38
+ function Wt(a) {
39
+ if (typeof Symbol != "undefined" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
40
+ }
41
+ function Bt(a, n) {
42
+ if (a) {
43
+ if (typeof a == "string") return Ue(a, n);
44
+ var o = Object.prototype.toString.call(a).slice(8, -1);
45
+ if (o === "Object" && a.constructor && (o = a.constructor.name), o === "Map" || o === "Set") return Array.from(a);
46
+ if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Ue(a, n);
47
+ }
48
+ }
49
+ function Ue(a, n) {
50
+ (n == null || n > a.length) && (n = a.length);
51
+ for (var o = 0, s = new Array(n); o < n; o++) s[o] = a[o];
52
+ return s;
53
+ }
54
+ function $t() {
55
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
57
+ }
58
+ var jt = Object.hasOwnProperty, ut = Object.setPrototypeOf, Yt = Object.isFrozen, Xt = Object.getPrototypeOf, Vt = Object.getOwnPropertyDescriptor, E = Object.freeze, b = Object.seal, qt = Object.create, vt = typeof Reflect != "undefined" && Reflect, ue = vt.apply, He = vt.construct;
59
+ ue || (ue = function(n, o, s) {
60
+ return n.apply(o, s);
61
+ });
62
+ E || (E = function(n) {
63
+ return n;
64
+ });
65
+ b || (b = function(n) {
66
+ return n;
67
+ });
68
+ He || (He = function(n, o) {
69
+ return le(n, M(o));
70
+ });
71
+ var Kt = O(Array.prototype.forEach), ft = O(Array.prototype.pop), q = O(Array.prototype.push), se = O(String.prototype.toLowerCase), we = O(String.prototype.toString), ct = O(String.prototype.match), L = O(String.prototype.replace), Zt = O(String.prototype.indexOf), Jt = O(String.prototype.trim), _ = O(RegExp.prototype.test), Ce = Qt(TypeError);
72
+ function O(a) {
73
+ return function(n) {
74
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
75
+ s[c - 1] = arguments[c];
76
+ return ue(a, n, s);
77
+ };
78
+ }
79
+ function Qt(a) {
80
+ return function() {
81
+ for (var n = arguments.length, o = new Array(n), s = 0; s < n; s++)
82
+ o[s] = arguments[s];
83
+ return He(a, o);
84
+ };
85
+ }
86
+ function l(a, n, o) {
87
+ var s;
88
+ o = (s = o) !== null && s !== void 0 ? s : se, ut && ut(a, null);
89
+ for (var c = n.length; c--; ) {
90
+ var g = n[c];
91
+ if (typeof g == "string") {
92
+ var y = o(g);
93
+ y !== g && (Yt(n) || (n[c] = y), g = y);
94
+ }
95
+ a[g] = !0;
96
+ }
97
+ return a;
98
+ }
99
+ function U(a) {
100
+ var n = qt(null), o;
101
+ for (o in a)
102
+ ue(jt, a, [o]) === !0 && (n[o] = a[o]);
103
+ return n;
104
+ }
105
+ function ie(a, n) {
106
+ for (; a !== null; ) {
107
+ var o = Vt(a, n);
108
+ if (o) {
109
+ if (o.get)
110
+ return O(o.get);
111
+ if (typeof o.value == "function")
112
+ return O(o.value);
113
+ }
114
+ a = Xt(a);
115
+ }
116
+ function s(c) {
117
+ return console.warn("fallback value for", c), null;
118
+ }
119
+ return s;
120
+ }
121
+ var mt = E(["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"]), Ie = E(["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"]), xe = E(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), er = E(["animate", "color-profile", "cursor", "discard", "fedropshadow", "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"]), ke = E(["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"]), tr = E(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), pt = E(["#text"]), dt = E(["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", "nonce", "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"]), Pe = E(["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", "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"]), Tt = E(["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"]), oe = E(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), rr = b(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ar = b(/<%[\w\W]*|[\w\W]*%>/gm), nr = b(/\${[\w\W]*}/gm), ir = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), or = b(/^aria-[\-\w]+$/), lr = b(
122
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
123
+ // eslint-disable-line no-useless-escape
124
+ ), sr = b(/^(?:\w+script|data):/i), ur = b(
125
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
126
+ // eslint-disable-line no-control-regex
127
+ ), fr = b(/^html$/i), cr = b(/^[a-z][.\w]*(-[.\w]+)+$/i), mr = function() {
128
+ return typeof window == "undefined" ? null : window;
129
+ }, pr = function(n, o) {
130
+ if (I(n) !== "object" || typeof n.createPolicy != "function")
131
+ return null;
132
+ var s = null, c = "data-tt-policy-suffix";
133
+ o.currentScript && o.currentScript.hasAttribute(c) && (s = o.currentScript.getAttribute(c));
134
+ var g = "dompurify" + (s ? "#" + s : "");
135
+ try {
136
+ return n.createPolicy(g, {
137
+ createHTML: function(D) {
138
+ return D;
139
+ },
140
+ createScriptURL: function(D) {
141
+ return D;
142
+ }
143
+ });
144
+ } catch (y) {
145
+ return console.warn("TrustedTypes policy " + g + " could not be created."), null;
146
+ }
147
+ };
148
+ function _t() {
149
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mr(), n = function(e) {
150
+ return _t(e);
151
+ };
152
+ if (n.version = "2.5.8", n.removed = [], !a || !a.document || a.document.nodeType !== 9)
153
+ return n.isSupported = !1, n;
154
+ var o = a.document, s = a.document, c = a.DocumentFragment, g = a.HTMLTemplateElement, y = a.Node, D = a.Element, x = a.NodeFilter, j = a.NamedNodeMap, ht = j === void 0 ? a.NamedNodeMap || a.MozNamedAttrMap : j, Et = a.HTMLFormElement, At = a.DOMParser, K = a.trustedTypes, Z = D.prototype, yt = ie(Z, "cloneNode"), gt = ie(Z, "nextSibling"), St = ie(Z, "childNodes"), fe = ie(Z, "parentNode");
155
+ if (typeof g == "function") {
156
+ var ce = s.createElement("template");
157
+ ce.content && ce.content.ownerDocument && (s = ce.content.ownerDocument);
158
+ }
159
+ var R = pr(K, o), me = R ? R.createHTML("") : "", J = s, pe = J.implementation, bt = J.createNodeIterator, Ot = J.createDocumentFragment, Rt = J.getElementsByTagName, Lt = o.importNode, ze = {};
160
+ try {
161
+ ze = U(s).documentMode ? s.documentMode : {};
162
+ } catch (i) {
163
+ }
164
+ var N = {};
165
+ n.isSupported = typeof fe == "function" && pe && pe.createHTMLDocument !== void 0 && ze !== 9;
166
+ var de = rr, Te = ar, ve = nr, Mt = ir, Dt = or, Nt = sr, Ge = ur, wt = cr, _e = lr, p = null, We = l({}, [].concat(M(mt), M(Ie), M(xe), M(ke), M(pt))), d = null, Be = l({}, [].concat(M(dt), M(Pe), M(Tt), M(oe))), f = Object.seal(Object.create(null, {
167
+ tagNameCheck: {
168
+ writable: !0,
169
+ configurable: !1,
170
+ enumerable: !0,
171
+ value: null
172
+ },
173
+ attributeNameCheck: {
174
+ writable: !0,
175
+ configurable: !1,
176
+ enumerable: !0,
177
+ value: null
178
+ },
179
+ allowCustomizedBuiltInElements: {
180
+ writable: !0,
181
+ configurable: !1,
182
+ enumerable: !0,
183
+ value: !1
184
+ }
185
+ })), Y = null, he = null, $e = !0, Ee = !0, je = !1, Ye = !0, H = !1, Ae = !0, k = !1, ye = !1, ge = !1, z = !1, Q = !1, ee = !1, Xe = !0, Ve = !1, Ct = "user-content-", Se = !0, X = !1, G = {}, W = null, qe = l({}, ["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"]), Ke = null, Ze = l({}, ["audio", "video", "img", "source", "image", "track"]), be = null, Je = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), te = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", w = "http://www.w3.org/1999/xhtml", B = w, Oe = !1, Re = null, It = l({}, [te, re, w], we), P, xt = ["application/xhtml+xml", "text/html"], kt = "text/html", T, $ = null, Pt = s.createElement("form"), Qe = function(e) {
186
+ return e instanceof RegExp || e instanceof Function;
187
+ }, Le = function(e) {
188
+ $ && $ === e || ((!e || I(e) !== "object") && (e = {}), e = U(e), P = // eslint-disable-next-line unicorn/prefer-includes
189
+ xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? P = kt : P = e.PARSER_MEDIA_TYPE, T = P === "application/xhtml+xml" ? we : se, p = "ALLOWED_TAGS" in e ? l({}, e.ALLOWED_TAGS, T) : We, d = "ALLOWED_ATTR" in e ? l({}, e.ALLOWED_ATTR, T) : Be, Re = "ALLOWED_NAMESPACES" in e ? l({}, e.ALLOWED_NAMESPACES, we) : It, be = "ADD_URI_SAFE_ATTR" in e ? l(
190
+ U(Je),
191
+ // eslint-disable-line indent
192
+ e.ADD_URI_SAFE_ATTR,
193
+ // eslint-disable-line indent
194
+ T
195
+ // eslint-disable-line indent
196
+ ) : Je, Ke = "ADD_DATA_URI_TAGS" in e ? l(
197
+ U(Ze),
198
+ // eslint-disable-line indent
199
+ e.ADD_DATA_URI_TAGS,
200
+ // eslint-disable-line indent
201
+ T
202
+ // eslint-disable-line indent
203
+ ) : Ze, W = "FORBID_CONTENTS" in e ? l({}, e.FORBID_CONTENTS, T) : qe, Y = "FORBID_TAGS" in e ? l({}, e.FORBID_TAGS, T) : {}, he = "FORBID_ATTR" in e ? l({}, e.FORBID_ATTR, T) : {}, G = "USE_PROFILES" in e ? e.USE_PROFILES : !1, $e = e.ALLOW_ARIA_ATTR !== !1, Ee = e.ALLOW_DATA_ATTR !== !1, je = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, Ae = e.SAFE_FOR_XML !== !1, k = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, Q = e.RETURN_DOM_FRAGMENT || !1, ee = e.RETURN_TRUSTED_TYPE || !1, ge = e.FORCE_BODY || !1, Xe = e.SANITIZE_DOM !== !1, Ve = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, X = e.IN_PLACE || !1, _e = e.ALLOWED_URI_REGEXP || _e, B = e.NAMESPACE || w, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (Ee = !1), Q && (z = !0), G && (p = l({}, M(pt)), d = [], G.html === !0 && (l(p, mt), l(d, dt)), G.svg === !0 && (l(p, Ie), l(d, Pe), l(d, oe)), G.svgFilters === !0 && (l(p, xe), l(d, Pe), l(d, oe)), G.mathMl === !0 && (l(p, ke), l(d, Tt), l(d, oe))), e.ADD_TAGS && (p === We && (p = U(p)), l(p, e.ADD_TAGS, T)), e.ADD_ATTR && (d === Be && (d = U(d)), l(d, e.ADD_ATTR, T)), e.ADD_URI_SAFE_ATTR && l(be, e.ADD_URI_SAFE_ATTR, T), e.FORBID_CONTENTS && (W === qe && (W = U(W)), l(W, e.FORBID_CONTENTS, T)), Se && (p["#text"] = !0), k && l(p, ["html", "head", "body"]), p.table && (l(p, ["tbody"]), delete Y.tbody), E && E(e), $ = e);
204
+ }, et = l({}, ["mi", "mo", "mn", "ms", "mtext"]), tt = l({}, ["annotation-xml"]), Ft = l({}, ["title", "style", "font", "a", "script"]), ae = l({}, Ie);
205
+ l(ae, xe), l(ae, er);
206
+ var Me = l({}, ke);
207
+ l(Me, tr);
208
+ var Ut = function(e) {
209
+ var t = fe(e);
210
+ (!t || !t.tagName) && (t = {
211
+ namespaceURI: B,
212
+ tagName: "template"
213
+ });
214
+ var r = se(e.tagName), u = se(t.tagName);
215
+ return Re[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === w ? r === "svg" : t.namespaceURI === te ? r === "svg" && (u === "annotation-xml" || et[u]) : !!ae[r] : e.namespaceURI === te ? t.namespaceURI === w ? r === "math" : t.namespaceURI === re ? r === "math" && tt[u] : !!Me[r] : e.namespaceURI === w ? t.namespaceURI === re && !tt[u] || t.namespaceURI === te && !et[u] ? !1 : !Me[r] && (Ft[r] || !ae[r]) : !!(P === "application/xhtml+xml" && Re[e.namespaceURI]) : !1;
216
+ }, S = function(e) {
217
+ q(n.removed, {
218
+ element: e
219
+ });
220
+ try {
221
+ e.parentNode.removeChild(e);
222
+ } catch (t) {
223
+ try {
224
+ e.outerHTML = me;
225
+ } catch (r) {
226
+ e.remove();
227
+ }
228
+ }
229
+ }, ne = function(e, t) {
230
+ try {
231
+ q(n.removed, {
232
+ attribute: t.getAttributeNode(e),
233
+ from: t
234
+ });
235
+ } catch (r) {
236
+ q(n.removed, {
237
+ attribute: null,
238
+ from: t
239
+ });
240
+ }
241
+ if (t.removeAttribute(e), e === "is" && !d[e])
242
+ if (z || Q)
243
+ try {
244
+ S(t);
245
+ } catch (r) {
246
+ }
247
+ else
248
+ try {
249
+ t.setAttribute(e, "");
250
+ } catch (r) {
251
+ }
252
+ }, rt = function(e) {
253
+ var t, r;
254
+ if (ge)
255
+ e = "<remove></remove>" + e;
256
+ else {
257
+ var u = ct(e, /^[\r\n\t ]+/);
258
+ r = u && u[0];
259
+ }
260
+ P === "application/xhtml+xml" && B === w && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
261
+ var A = R ? R.createHTML(e) : e;
262
+ if (B === w)
263
+ try {
264
+ t = new At().parseFromString(A, P);
265
+ } catch (v) {
266
+ }
267
+ if (!t || !t.documentElement) {
268
+ t = pe.createDocument(B, "template", null);
269
+ try {
270
+ t.documentElement.innerHTML = Oe ? me : A;
271
+ } catch (v) {
272
+ }
273
+ }
274
+ var h = t.body || t.documentElement;
275
+ return e && r && h.insertBefore(s.createTextNode(r), h.childNodes[0] || null), B === w ? Rt.call(t, k ? "html" : "body")[0] : k ? t.documentElement : h;
276
+ }, at = function(e) {
277
+ return bt.call(
278
+ e.ownerDocument || e,
279
+ e,
280
+ // eslint-disable-next-line no-bitwise
281
+ x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT | x.SHOW_PROCESSING_INSTRUCTION | x.SHOW_CDATA_SECTION,
282
+ null,
283
+ !1
284
+ );
285
+ }, De = function(e) {
286
+ return e instanceof Et && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ht) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
287
+ }, V = function(e) {
288
+ return I(y) === "object" ? e instanceof y : e && I(e) === "object" && typeof e.nodeType == "number" && typeof e.nodeName == "string";
289
+ }, C = function(e, t, r) {
290
+ N[e] && Kt(N[e], function(u) {
291
+ u.call(n, t, r, $);
292
+ });
293
+ }, nt = function(e) {
294
+ var t;
295
+ if (C("beforeSanitizeElements", e, null), De(e) || _(/[\u0080-\uFFFF]/, e.nodeName))
296
+ return S(e), !0;
297
+ var r = T(e.nodeName);
298
+ if (C("uponSanitizeElement", e, {
299
+ tagName: r,
300
+ allowedTags: p
301
+ }), e.hasChildNodes() && !V(e.firstElementChild) && (!V(e.content) || !V(e.content.firstElementChild)) && _(/<[/\w]/g, e.innerHTML) && _(/<[/\w]/g, e.textContent) || r === "select" && _(/<template/i, e.innerHTML) || e.nodeType === 7 || Ae && e.nodeType === 8 && _(/<[/\w]/g, e.data))
302
+ return S(e), !0;
303
+ if (!p[r] || Y[r]) {
304
+ if (!Y[r] && ot(r) && (f.tagNameCheck instanceof RegExp && _(f.tagNameCheck, r) || f.tagNameCheck instanceof Function && f.tagNameCheck(r)))
305
+ return !1;
306
+ if (Se && !W[r]) {
307
+ var u = fe(e) || e.parentNode, A = St(e) || e.childNodes;
308
+ if (A && u)
309
+ for (var h = A.length, v = h - 1; v >= 0; --v) {
310
+ var F = yt(A[v], !0);
311
+ F.__removalCount = (e.__removalCount || 0) + 1, u.insertBefore(F, gt(e));
312
+ }
313
+ }
314
+ return S(e), !0;
315
+ }
316
+ return e instanceof D && !Ut(e) || (r === "noscript" || r === "noembed" || r === "noframes") && _(/<\/no(script|embed|frames)/i, e.innerHTML) ? (S(e), !0) : (H && e.nodeType === 3 && (t = e.textContent, t = L(t, de, " "), t = L(t, Te, " "), t = L(t, ve, " "), e.textContent !== t && (q(n.removed, {
317
+ element: e.cloneNode()
318
+ }), e.textContent = t)), C("afterSanitizeElements", e, null), !1);
319
+ }, it = function(e, t, r) {
320
+ if (Xe && (t === "id" || t === "name") && (r in s || r in Pt))
321
+ return !1;
322
+ if (!(Ee && !he[t] && _(Mt, t))) {
323
+ if (!($e && _(Dt, t))) {
324
+ if (!d[t] || he[t]) {
325
+ if (
326
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
327
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
328
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
329
+ !(ot(e) && (f.tagNameCheck instanceof RegExp && _(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && _(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
330
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
331
+ t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && _(f.tagNameCheck, r) || f.tagNameCheck instanceof Function && f.tagNameCheck(r)))
332
+ ) return !1;
333
+ } else if (!be[t]) {
334
+ if (!_(_e, L(r, Ge, ""))) {
335
+ if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Zt(r, "data:") === 0 && Ke[e])) {
336
+ if (!(je && !_(Nt, L(r, Ge, "")))) {
337
+ if (r)
338
+ return !1;
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }
344
+ }
345
+ return !0;
346
+ }, ot = function(e) {
347
+ return e !== "annotation-xml" && ct(e, wt);
348
+ }, lt = function(e) {
349
+ var t, r, u, A;
350
+ C("beforeSanitizeAttributes", e, null);
351
+ var h = e.attributes;
352
+ if (!(!h || De(e))) {
353
+ var v = {
354
+ attrName: "",
355
+ attrValue: "",
356
+ keepAttr: !0,
357
+ allowedAttributes: d
358
+ };
359
+ for (A = h.length; A--; ) {
360
+ t = h[A];
361
+ var F = t, m = F.name, Ne = F.namespaceURI;
362
+ if (r = m === "value" ? t.value : Jt(t.value), u = T(m), v.attrName = u, v.attrValue = r, v.keepAttr = !0, v.forceKeepAttr = void 0, C("uponSanitizeAttribute", e, v), r = v.attrValue, !v.forceKeepAttr && (ne(m, e), !!v.keepAttr)) {
363
+ if (!Ye && _(/\/>/i, r)) {
364
+ ne(m, e);
365
+ continue;
366
+ }
367
+ H && (r = L(r, de, " "), r = L(r, Te, " "), r = L(r, ve, " "));
368
+ var st = T(e.nodeName);
369
+ if (it(st, u, r)) {
370
+ if (Ve && (u === "id" || u === "name") && (ne(m, e), r = Ct + r), Ae && _(/((--!?|])>)|<\/(style|title)/i, r)) {
371
+ ne(m, e);
372
+ continue;
373
+ }
374
+ if (R && I(K) === "object" && typeof K.getAttributeType == "function" && !Ne)
375
+ switch (K.getAttributeType(st, u)) {
376
+ case "TrustedHTML": {
377
+ r = R.createHTML(r);
378
+ break;
379
+ }
380
+ case "TrustedScriptURL": {
381
+ r = R.createScriptURL(r);
382
+ break;
383
+ }
384
+ }
385
+ try {
386
+ Ne ? e.setAttributeNS(Ne, m, r) : e.setAttribute(m, r), De(e) ? S(e) : ft(n.removed);
387
+ } catch (dr) {
388
+ }
389
+ }
390
+ }
391
+ }
392
+ C("afterSanitizeAttributes", e, null);
393
+ }
394
+ }, Ht = function i(e) {
395
+ var t, r = at(e);
396
+ for (C("beforeSanitizeShadowDOM", e, null); t = r.nextNode(); )
397
+ C("uponSanitizeShadowNode", t, null), nt(t), lt(t), t.content instanceof c && i(t.content);
398
+ C("afterSanitizeShadowDOM", e, null);
399
+ };
400
+ return n.sanitize = function(i) {
401
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t, r, u, A, h;
402
+ if (Oe = !i, Oe && (i = "<!-->"), typeof i != "string" && !V(i))
403
+ if (typeof i.toString == "function") {
404
+ if (i = i.toString(), typeof i != "string")
405
+ throw Ce("dirty is not a string, aborting");
406
+ } else
407
+ throw Ce("toString is not a function");
408
+ if (!n.isSupported) {
409
+ if (I(a.toStaticHTML) === "object" || typeof a.toStaticHTML == "function") {
410
+ if (typeof i == "string")
411
+ return a.toStaticHTML(i);
412
+ if (V(i))
413
+ return a.toStaticHTML(i.outerHTML);
414
+ }
415
+ return i;
416
+ }
417
+ if (ye || Le(e), n.removed = [], typeof i == "string" && (X = !1), X) {
418
+ if (i.nodeName) {
419
+ var v = T(i.nodeName);
420
+ if (!p[v] || Y[v])
421
+ throw Ce("root node is forbidden and cannot be sanitized in-place");
422
+ }
423
+ } else if (i instanceof y)
424
+ t = rt("<!---->"), r = t.ownerDocument.importNode(i, !0), r.nodeType === 1 && r.nodeName === "BODY" || r.nodeName === "HTML" ? t = r : t.appendChild(r);
425
+ else {
426
+ if (!z && !H && !k && // eslint-disable-next-line unicorn/prefer-includes
427
+ i.indexOf("<") === -1)
428
+ return R && ee ? R.createHTML(i) : i;
429
+ if (t = rt(i), !t)
430
+ return z ? null : ee ? me : "";
431
+ }
432
+ t && ge && S(t.firstChild);
433
+ for (var F = at(X ? i : t); u = F.nextNode(); )
434
+ u.nodeType === 3 && u === A || (nt(u), lt(u), u.content instanceof c && Ht(u.content), A = u);
435
+ if (A = null, X)
436
+ return i;
437
+ if (z) {
438
+ if (Q)
439
+ for (h = Ot.call(t.ownerDocument); t.firstChild; )
440
+ h.appendChild(t.firstChild);
441
+ else
442
+ h = t;
443
+ return (d.shadowroot || d.shadowrootmod) && (h = Lt.call(o, h, !0)), h;
444
+ }
445
+ var m = k ? t.outerHTML : t.innerHTML;
446
+ return k && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && _(fr, t.ownerDocument.doctype.name) && (m = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
447
+ ` + m), H && (m = L(m, de, " "), m = L(m, Te, " "), m = L(m, ve, " ")), R && ee ? R.createHTML(m) : m;
448
+ }, n.setConfig = function(i) {
449
+ Le(i), ye = !0;
450
+ }, n.clearConfig = function() {
451
+ $ = null, ye = !1;
452
+ }, n.isValidAttribute = function(i, e, t) {
453
+ $ || Le({});
454
+ var r = T(i), u = T(e);
455
+ return it(r, u, t);
456
+ }, n.addHook = function(i, e) {
457
+ typeof e == "function" && (N[i] = N[i] || [], q(N[i], e));
458
+ }, n.removeHook = function(i) {
459
+ if (N[i])
460
+ return ft(N[i]);
461
+ }, n.removeHooks = function(i) {
462
+ N[i] && (N[i] = []);
463
+ }, n.removeAllHooks = function() {
464
+ N = {};
465
+ }, n;
466
+ }
467
+ var Tr = _t();
468
+ export {
469
+ Tr as default
470
+ };
471
+ //# sourceMappingURL=purify.es-CKpwg8Tk.mjs.map