@burdenoff/microfe-support 2026.510.52

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 (137) hide show
  1. package/README.md +290 -0
  2. package/dist/generated/global-operations.js +1118 -0
  3. package/dist/generated/global-operations.js.map +1 -0
  4. package/dist/generated/global-types.js +20 -0
  5. package/dist/generated/global-types.js.map +1 -0
  6. package/dist/index.js +11 -0
  7. package/dist/microfe-support.css +2 -0
  8. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  9. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  10. package/dist/node_modules/dompurify/dist/purify.es.js +555 -0
  11. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
  12. package/dist/node_modules/marked/lib/marked.esm.js +1430 -0
  13. package/dist/node_modules/marked/lib/marked.esm.js.map +1 -0
  14. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  15. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  16. package/dist/support/SupportAdminRoot.js +69 -0
  17. package/dist/support/SupportAdminRoot.js.map +1 -0
  18. package/dist/support/SupportAdminRoutes.js +73 -0
  19. package/dist/support/SupportAdminRoutes.js.map +1 -0
  20. package/dist/support/SupportUserRoot.js +42 -0
  21. package/dist/support/SupportUserRoot.js.map +1 -0
  22. package/dist/support/SupportUserRoutes.js +49 -0
  23. package/dist/support/SupportUserRoutes.js.map +1 -0
  24. package/dist/support/components/NotificationToast.js +34 -0
  25. package/dist/support/components/NotificationToast.js.map +1 -0
  26. package/dist/support/components/PageLayout.js +87 -0
  27. package/dist/support/components/PageLayout.js.map +1 -0
  28. package/dist/support/components/RouteHelpers.js +22 -0
  29. package/dist/support/components/RouteHelpers.js.map +1 -0
  30. package/dist/support/components/analytics/CategoryBreakdown.js +63 -0
  31. package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -0
  32. package/dist/support/components/analytics/MetricCard.js +31 -0
  33. package/dist/support/components/analytics/MetricCard.js.map +1 -0
  34. package/dist/support/components/analytics/PriorityBreakdown.js +59 -0
  35. package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -0
  36. package/dist/support/components/analytics/SLAReport.js +110 -0
  37. package/dist/support/components/analytics/SLAReport.js.map +1 -0
  38. package/dist/support/components/analytics/SatisfactionDistribution.js +150 -0
  39. package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -0
  40. package/dist/support/components/analytics/TopAgents.js +70 -0
  41. package/dist/support/components/analytics/TopAgents.js.map +1 -0
  42. package/dist/support/components/analytics/TrendChart.js +48 -0
  43. package/dist/support/components/analytics/TrendChart.js.map +1 -0
  44. package/dist/support/components/kb/ArticleForm.js +244 -0
  45. package/dist/support/components/kb/ArticleForm.js.map +1 -0
  46. package/dist/support/components/kb/index.js +1 -0
  47. package/dist/support/components/settings/CannedResponsesSettings.js +84 -0
  48. package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -0
  49. package/dist/support/components/settings/SLAPoliciesSettings.js +249 -0
  50. package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -0
  51. package/dist/support/components/settings/TicketCategoriesSettings.js +360 -0
  52. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -0
  53. package/dist/support/components/tickets/AttachmentList.js +54 -0
  54. package/dist/support/components/tickets/AttachmentList.js.map +1 -0
  55. package/dist/support/components/tickets/MarkdownContent.js +11 -0
  56. package/dist/support/components/tickets/MarkdownContent.js.map +1 -0
  57. package/dist/support/components/tickets/MessageComposer.js +137 -0
  58. package/dist/support/components/tickets/MessageComposer.js.map +1 -0
  59. package/dist/support/components/tickets/MessageThread.js +88 -0
  60. package/dist/support/components/tickets/MessageThread.js.map +1 -0
  61. package/dist/support/components/tickets/TicketDetailHeader.js +123 -0
  62. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -0
  63. package/dist/support/components/tickets/TicketHeader.js +191 -0
  64. package/dist/support/components/tickets/TicketHeader.js.map +1 -0
  65. package/dist/support/components/tickets/TicketSidebar.js +271 -0
  66. package/dist/support/components/tickets/TicketSidebar.js.map +1 -0
  67. package/dist/support/components/ui.js +2 -0
  68. package/dist/support/constants.js +6 -0
  69. package/dist/support/constants.js.map +1 -0
  70. package/dist/support/hooks/index.js +5 -0
  71. package/dist/support/hooks/useAnalyticsOperations.js +61 -0
  72. package/dist/support/hooks/useAnalyticsOperations.js.map +1 -0
  73. package/dist/support/hooks/useAttachmentsFailedToast.js +22 -0
  74. package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -0
  75. package/dist/support/hooks/useChatOperations.js +146 -0
  76. package/dist/support/hooks/useChatOperations.js.map +1 -0
  77. package/dist/support/hooks/useKnowledgeBaseOperations.js +194 -0
  78. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -0
  79. package/dist/support/hooks/useNotification.js +26 -0
  80. package/dist/support/hooks/useNotification.js.map +1 -0
  81. package/dist/support/hooks/useRegisterFooter.js +17 -0
  82. package/dist/support/hooks/useRegisterFooter.js.map +1 -0
  83. package/dist/support/hooks/useSettingsOperations.js +145 -0
  84. package/dist/support/hooks/useSettingsOperations.js.map +1 -0
  85. package/dist/support/hooks/useSupportAttachments.js +37 -0
  86. package/dist/support/hooks/useSupportAttachments.js.map +1 -0
  87. package/dist/support/hooks/useTicketOperations.js +222 -0
  88. package/dist/support/hooks/useTicketOperations.js.map +1 -0
  89. package/dist/support/index.js +10 -0
  90. package/dist/support/pages/AnalyticsPage.js +206 -0
  91. package/dist/support/pages/AnalyticsPage.js.map +1 -0
  92. package/dist/support/pages/ArticleDetailAdminPage.js +350 -0
  93. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -0
  94. package/dist/support/pages/ArticleDetailUserPage.js +150 -0
  95. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -0
  96. package/dist/support/pages/ContactInquiriesPage.js +314 -0
  97. package/dist/support/pages/ContactInquiriesPage.js.map +1 -0
  98. package/dist/support/pages/ContactInquiryDetailPage.js +481 -0
  99. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -0
  100. package/dist/support/pages/CreateArticlePage.js +120 -0
  101. package/dist/support/pages/CreateArticlePage.js.map +1 -0
  102. package/dist/support/pages/CreateTicketPage.js +281 -0
  103. package/dist/support/pages/CreateTicketPage.js.map +1 -0
  104. package/dist/support/pages/EditArticlePage.js +151 -0
  105. package/dist/support/pages/EditArticlePage.js.map +1 -0
  106. package/dist/support/pages/KnowledgeBaseAdminPage.js +208 -0
  107. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -0
  108. package/dist/support/pages/KnowledgeBaseUserPage.js +188 -0
  109. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -0
  110. package/dist/support/pages/SettingsPage.js +215 -0
  111. package/dist/support/pages/SettingsPage.js.map +1 -0
  112. package/dist/support/pages/TicketDetailAdminPage.js +157 -0
  113. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -0
  114. package/dist/support/pages/TicketDetailUserPage.js +292 -0
  115. package/dist/support/pages/TicketDetailUserPage.js.map +1 -0
  116. package/dist/support/pages/TicketListPage.js +337 -0
  117. package/dist/support/pages/TicketListPage.js.map +1 -0
  118. package/dist/support/providers/SupportProvider.js +40 -0
  119. package/dist/support/providers/SupportProvider.js.map +1 -0
  120. package/dist/support/store/supportStore.js +102 -0
  121. package/dist/support/store/supportStore.js.map +1 -0
  122. package/dist/support/utils/cn.js +10 -0
  123. package/dist/support/utils/cn.js.map +1 -0
  124. package/dist/support/utils/context.js +32 -0
  125. package/dist/support/utils/context.js.map +1 -0
  126. package/dist/support/utils/errors.js +13 -0
  127. package/dist/support/utils/errors.js.map +1 -0
  128. package/dist/support/utils/i18n.js +9 -0
  129. package/dist/support/utils/i18n.js.map +1 -0
  130. package/dist/support/utils/index.js +105 -0
  131. package/dist/support/utils/index.js.map +1 -0
  132. package/dist/support/utils/markdown.js +47 -0
  133. package/dist/support/utils/markdown.js.map +1 -0
  134. package/dist/support/utils/supportFiles.js +116 -0
  135. package/dist/support/utils/supportFiles.js.map +1 -0
  136. package/dist/utils/nativeBridge.js +2 -0
  137. package/package.json +145 -0
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { useSupport as e } from "./support/providers/SupportProvider.js";
2
+ import { calculateSLAStatus as t, formatDuration as n, formatFileSize as r, formatTicketStatus as i, formatTimeAgo as a, getInitials as o, getPriorityColor as s, getPriorityIcon as c, isValidEmail as l, stringToColor as u, truncateText as d } from "./support/utils/index.js";
3
+ import { useSupportStore as f } from "./support/store/supportStore.js";
4
+ import { useTicketOperations as p } from "./support/hooks/useTicketOperations.js";
5
+ import { SupportUserRoot as m } from "./support/SupportUserRoot.js";
6
+ import { SupportAdminRoot as h } from "./support/SupportAdminRoot.js";
7
+ import { useChatOperations as g } from "./support/hooks/useChatOperations.js";
8
+ import { useKnowledgeBaseOperations as _ } from "./support/hooks/useKnowledgeBaseOperations.js";
9
+ import { useAnalyticsOperations as v } from "./support/hooks/useAnalyticsOperations.js";
10
+ import "./support/index.js";
11
+ export { h as SupportAdminRoot, m as SupportUserRoot, t as calculateSLAStatus, n as formatDuration, r as formatFileSize, i as formatTicketStatus, a as formatTimeAgo, o as getInitials, s as getPriorityColor, c as getPriorityIcon, l as isValidEmail, u as stringToColor, d as truncateText, v as useAnalyticsOperations, g as useChatOperations, _ as useKnowledgeBaseOperations, e as useSupport, f as useSupportStore, p as useTicketOperations };
@@ -0,0 +1,2 @@
1
+ .support-markdown{color:var(--color-text-primary)}.support-markdown>*+*{margin-top:.75rem}.support-markdown h1,.support-markdown h2,.support-markdown h3,.support-markdown h4{color:var(--color-text-primary);font-weight:600}.support-markdown p,.support-markdown li,.support-markdown blockquote{color:var(--color-text-secondary)}.support-markdown a{color:var(--color-action-primary-bg);text-decoration:underline}.support-markdown ul,.support-markdown ol{padding-left:1.25rem}.support-markdown ul{list-style:outside}.support-markdown ol{list-style:decimal}.support-markdown blockquote{border-left:3px solid var(--color-border-default);padding-left:.75rem}.support-markdown code:not(pre code){background:color-mix(in srgb, var(--color-bg-surface) 75%, transparent);border:1px solid var(--color-border-default);color:var(--color-text-primary);border-radius:.375rem;padding:.125rem .375rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875em}.support-markdown pre{background:color-mix(in srgb, var(--color-bg-surface) 92%, transparent);border:1px solid var(--color-border-default);border-radius:.75rem;padding:.875rem 1rem;overflow-x:auto}.support-markdown pre code{color:var(--color-text-primary);background:0 0;border:0;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem;line-height:1.6;display:block}.support-markdown .token.comment,.support-markdown .token.prolog,.support-markdown .token.doctype,.support-markdown .token.cdata{color:var(--color-text-tertiary,var(--color-text-secondary))}.support-markdown .token.punctuation,.support-markdown .token.operator{color:var(--color-text-primary)}.support-markdown .token.property,.support-markdown .token.tag,.support-markdown .token.boolean,.support-markdown .token.number,.support-markdown .token.constant,.support-markdown .token.symbol,.support-markdown .token.deleted{color:var(--color-status-error-text,var(--color-text-primary))}.support-markdown .token.selector,.support-markdown .token.attr-name,.support-markdown .token.string,.support-markdown .token.char,.support-markdown .token.builtin,.support-markdown .token.inserted{color:var(--color-status-success-text,var(--color-text-primary))}.support-markdown .token.atrule,.support-markdown .token.attr-value,.support-markdown .token.keyword{color:var(--color-action-primary-bg)}.support-markdown .token.function,.support-markdown .token.class-name{color:var(--color-status-warning-text,var(--color-text-primary))}.support-markdown .token.regex,.support-markdown .token.important,.support-markdown .token.variable{color:var(--color-accent-purple-fg,var(--color-action-primary-bg))}
2
+ /*$vite$:1*/
@@ -0,0 +1,18 @@
1
+ //#region node_modules/clsx/dist/clsx.mjs
2
+ function e(t) {
3
+ var n, r, i = "";
4
+ if (typeof t == "string" || typeof t == "number") i += t;
5
+ else if (typeof t == "object") if (Array.isArray(t)) {
6
+ var a = t.length;
7
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
9
+ return i;
10
+ }
11
+ function t() {
12
+ for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
13
+ return i;
14
+ }
15
+ //#endregion
16
+ export { t as default };
17
+
18
+ //# sourceMappingURL=clsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clsx.js","names":[],"sources":["../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAE,GAAE;CAAC,IAAI,GAAE,GAAE,IAAE;AAAG,KAAa,OAAO,KAAjB,YAA8B,OAAO,KAAjB,SAAmB,MAAG;UAAoB,OAAO,KAAjB,SAAmB,KAAG,MAAM,QAAQ,EAAE,EAAC;EAAC,IAAI,IAAE,EAAE;AAAO,OAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,OAAK,IAAE,EAAE,EAAE,GAAG,MAAI,MAAI,KAAG,MAAK,KAAG;OAAQ,MAAI,KAAK,EAAE,GAAE,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,QAAO;;AAAE,SAAgB,IAAM;AAAC,MAAI,IAAI,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,QAAM,IAAE,EAAE,EAAE,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,QAAO"}
@@ -0,0 +1,555 @@
1
+ //#region node_modules/dompurify/dist/purify.es.mjs
2
+ var { entries: e, setPrototypeOf: t, isFrozen: n, getPrototypeOf: r, getOwnPropertyDescriptor: i } = Object, { freeze: a, seal: o, create: s } = Object, { apply: c, construct: l } = typeof Reflect < "u" && Reflect;
3
+ a ||= function(e) {
4
+ return e;
5
+ }, o ||= function(e) {
6
+ return e;
7
+ }, c ||= function(e, t) {
8
+ var n = [...arguments].slice(2);
9
+ return e.apply(t, n);
10
+ }, l ||= function(e) {
11
+ return new e(...[...arguments].slice(1));
12
+ };
13
+ var u = _(Array.prototype.forEach), d = _(Array.prototype.lastIndexOf), ee = _(Array.prototype.pop), f = _(Array.prototype.push), te = _(Array.prototype.splice), ne = _(String.prototype.toLowerCase), re = _(String.prototype.toString), ie = _(String.prototype.match), p = _(String.prototype.replace), ae = _(String.prototype.indexOf), oe = _(String.prototype.trim), m = _(Object.prototype.hasOwnProperty), h = _(RegExp.prototype.test), g = se(TypeError);
14
+ function _(e) {
15
+ return function(t) {
16
+ t instanceof RegExp && (t.lastIndex = 0);
17
+ var n = [...arguments].slice(1);
18
+ return c(e, t, n);
19
+ };
20
+ }
21
+ function se(e) {
22
+ return function() {
23
+ return l(e, [...arguments]);
24
+ };
25
+ }
26
+ function v(e, r) {
27
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ne;
28
+ t && t(e, null);
29
+ let a = r.length;
30
+ for (; a--;) {
31
+ let t = r[a];
32
+ if (typeof t == "string") {
33
+ let e = i(t);
34
+ e !== t && (n(r) || (r[a] = e), t = e);
35
+ }
36
+ e[t] = !0;
37
+ }
38
+ return e;
39
+ }
40
+ function y(e) {
41
+ for (let t = 0; t < e.length; t++) m(e, t) || (e[t] = null);
42
+ return e;
43
+ }
44
+ function b(t) {
45
+ let n = s(null);
46
+ for (let [r, i] of e(t)) m(t, r) && (Array.isArray(i) ? n[r] = y(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = b(i) : n[r] = i);
47
+ return n;
48
+ }
49
+ function x(e, t) {
50
+ for (; e !== null;) {
51
+ let n = i(e, t);
52
+ if (n) {
53
+ if (n.get) return _(n.get);
54
+ if (typeof n.value == "function") return _(n.value);
55
+ }
56
+ e = r(e);
57
+ }
58
+ function n() {
59
+ return null;
60
+ }
61
+ return n;
62
+ }
63
+ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), le = a(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), ue = a([
64
+ "feBlend",
65
+ "feColorMatrix",
66
+ "feComponentTransfer",
67
+ "feComposite",
68
+ "feConvolveMatrix",
69
+ "feDiffuseLighting",
70
+ "feDisplacementMap",
71
+ "feDistantLight",
72
+ "feDropShadow",
73
+ "feFlood",
74
+ "feFuncA",
75
+ "feFuncB",
76
+ "feFuncG",
77
+ "feFuncR",
78
+ "feGaussianBlur",
79
+ "feImage",
80
+ "feMerge",
81
+ "feMergeNode",
82
+ "feMorphology",
83
+ "feOffset",
84
+ "fePointLight",
85
+ "feSpecularLighting",
86
+ "feSpotLight",
87
+ "feTile",
88
+ "feTurbulence"
89
+ ]), de = a([
90
+ "animate",
91
+ "color-profile",
92
+ "cursor",
93
+ "discard",
94
+ "font-face",
95
+ "font-face-format",
96
+ "font-face-name",
97
+ "font-face-src",
98
+ "font-face-uri",
99
+ "foreignobject",
100
+ "hatch",
101
+ "hatchpath",
102
+ "mesh",
103
+ "meshgradient",
104
+ "meshpatch",
105
+ "meshrow",
106
+ "missing-glyph",
107
+ "script",
108
+ "set",
109
+ "solidcolor",
110
+ "unknown",
111
+ "use"
112
+ ]), fe = a(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), pe = a([
113
+ "maction",
114
+ "maligngroup",
115
+ "malignmark",
116
+ "mlongdiv",
117
+ "mscarries",
118
+ "mscarry",
119
+ "msgroup",
120
+ "mstack",
121
+ "msline",
122
+ "msrow",
123
+ "semantics",
124
+ "annotation",
125
+ "annotation-xml",
126
+ "mprescripts",
127
+ "none"
128
+ ]), me = a(["#text"]), he = a(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), ge = a(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), _e = a(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), S = a([
129
+ "xlink:href",
130
+ "xml:id",
131
+ "xlink:title",
132
+ "xml:space",
133
+ "xmlns:xlink"
134
+ ]), ve = o(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ye = o(/<%[\w\W]*|[\w\W]*%>/gm), be = o(/\$\{[\w\W]*/gm), C = o(/^data-[\-\w.\u00B7-\uFFFF]+$/), w = o(/^aria-[\-\w]+$/), xe = o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Se = o(/^(?:\w+script|data):/i), Ce = o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), we = o(/^html$/i), Te = o(/^[a-z][.\w]*(-[.\w]+)+$/i), Ee = /* @__PURE__ */ Object.freeze({
135
+ __proto__: null,
136
+ ARIA_ATTR: w,
137
+ ATTR_WHITESPACE: Ce,
138
+ CUSTOM_ELEMENT: Te,
139
+ DATA_ATTR: C,
140
+ DOCTYPE_NAME: we,
141
+ ERB_EXPR: ye,
142
+ IS_ALLOWED_URI: xe,
143
+ IS_SCRIPT_OR_DATA: Se,
144
+ MUSTACHE_EXPR: ve,
145
+ TMPLIT_EXPR: be
146
+ }), T = {
147
+ element: 1,
148
+ text: 3,
149
+ progressingInstruction: 7,
150
+ comment: 8,
151
+ document: 9
152
+ }, De = function() {
153
+ return typeof window > "u" ? null : window;
154
+ }, Oe = function(e, t) {
155
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
156
+ let n = null, r = "data-tt-policy-suffix";
157
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
158
+ let i = "dompurify" + (n ? "#" + n : "");
159
+ try {
160
+ return e.createPolicy(i, {
161
+ createHTML(e) {
162
+ return e;
163
+ },
164
+ createScriptURL(e) {
165
+ return e;
166
+ }
167
+ });
168
+ } catch {
169
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
170
+ }
171
+ }, ke = function() {
172
+ return {
173
+ afterSanitizeAttributes: [],
174
+ afterSanitizeElements: [],
175
+ afterSanitizeShadowDOM: [],
176
+ beforeSanitizeAttributes: [],
177
+ beforeSanitizeElements: [],
178
+ beforeSanitizeShadowDOM: [],
179
+ uponSanitizeAttribute: [],
180
+ uponSanitizeElement: [],
181
+ uponSanitizeShadowNode: []
182
+ };
183
+ };
184
+ function Ae() {
185
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : De(), n = (e) => Ae(e);
186
+ if (n.version = "3.4.0", n.removed = [], !t || !t.document || t.document.nodeType !== T.document || !t.Element) return n.isSupported = !1, n;
187
+ let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: _, Element: se, NodeFilter: y, NamedNodeMap: ve = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: ye, DOMParser: be, trustedTypes: C } = t, w = se.prototype, Se = x(w, "cloneNode"), Ce = x(w, "remove"), Te = x(w, "nextSibling"), je = x(w, "childNodes"), Me = x(w, "parentNode");
188
+ if (typeof l == "function") {
189
+ let e = r.createElement("template");
190
+ e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
191
+ }
192
+ let E, D = "", { implementation: Ne, createNodeIterator: Pe, createDocumentFragment: Fe, getElementsByTagName: Ie } = r, { importNode: Le } = i, O = ke();
193
+ n.isSupported = typeof e == "function" && typeof Me == "function" && Ne && Ne.createHTMLDocument !== void 0;
194
+ let { MUSTACHE_EXPR: k, ERB_EXPR: A, TMPLIT_EXPR: j, DATA_ATTR: Re, ARIA_ATTR: ze, IS_SCRIPT_OR_DATA: Be, ATTR_WHITESPACE: Ve, CUSTOM_ELEMENT: He } = Ee, { IS_ALLOWED_URI: Ue } = Ee, M = null, We = v({}, [
195
+ ...ce,
196
+ ...le,
197
+ ...ue,
198
+ ...fe,
199
+ ...me
200
+ ]), N = null, Ge = v({}, [
201
+ ...he,
202
+ ...ge,
203
+ ..._e,
204
+ ...S
205
+ ]), P = Object.seal(s(null, {
206
+ tagNameCheck: {
207
+ writable: !0,
208
+ configurable: !1,
209
+ enumerable: !0,
210
+ value: null
211
+ },
212
+ attributeNameCheck: {
213
+ writable: !0,
214
+ configurable: !1,
215
+ enumerable: !0,
216
+ value: null
217
+ },
218
+ allowCustomizedBuiltInElements: {
219
+ writable: !0,
220
+ configurable: !1,
221
+ enumerable: !0,
222
+ value: !1
223
+ }
224
+ })), F = null, Ke = null, I = Object.seal(s(null, {
225
+ tagCheck: {
226
+ writable: !0,
227
+ configurable: !1,
228
+ enumerable: !0,
229
+ value: null
230
+ },
231
+ attributeCheck: {
232
+ writable: !0,
233
+ configurable: !1,
234
+ enumerable: !0,
235
+ value: null
236
+ }
237
+ })), qe = !0, Je = !0, Ye = !1, Xe = !0, L = !1, R = !0, z = !1, Ze = !1, Qe = !1, B = !1, V = !1, H = !1, $e = !0, et = !1, tt = !0, U = !1, W = {}, G = null, nt = v({}, [
238
+ "annotation-xml",
239
+ "audio",
240
+ "colgroup",
241
+ "desc",
242
+ "foreignobject",
243
+ "head",
244
+ "iframe",
245
+ "math",
246
+ "mi",
247
+ "mn",
248
+ "mo",
249
+ "ms",
250
+ "mtext",
251
+ "noembed",
252
+ "noframes",
253
+ "noscript",
254
+ "plaintext",
255
+ "script",
256
+ "style",
257
+ "svg",
258
+ "template",
259
+ "thead",
260
+ "title",
261
+ "video",
262
+ "xmp"
263
+ ]), rt = null, it = v({}, [
264
+ "audio",
265
+ "video",
266
+ "img",
267
+ "source",
268
+ "image",
269
+ "track"
270
+ ]), at = null, ot = v({}, [
271
+ "alt",
272
+ "class",
273
+ "for",
274
+ "id",
275
+ "label",
276
+ "name",
277
+ "pattern",
278
+ "placeholder",
279
+ "role",
280
+ "summary",
281
+ "title",
282
+ "value",
283
+ "style",
284
+ "xmlns"
285
+ ]), st = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, lt = !1, ut = null, dt = v({}, [
286
+ st,
287
+ ct,
288
+ K
289
+ ], re), ft = v({}, [
290
+ "mi",
291
+ "mo",
292
+ "mn",
293
+ "ms",
294
+ "mtext"
295
+ ]), pt = v({}, ["annotation-xml"]), mt = v({}, [
296
+ "title",
297
+ "style",
298
+ "font",
299
+ "a",
300
+ "script"
301
+ ]), J = null, ht = ["application/xhtml+xml", "text/html"], Y = null, X = null, gt = r.createElement("form"), _t = function(e) {
302
+ return e instanceof RegExp || e instanceof Function;
303
+ }, vt = function() {
304
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
305
+ if (!(X && X === e)) {
306
+ if ((!e || typeof e != "object") && (e = {}), e = b(e), J = ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? re : ne, M = m(e, "ALLOWED_TAGS") ? v({}, e.ALLOWED_TAGS, Y) : We, N = m(e, "ALLOWED_ATTR") ? v({}, e.ALLOWED_ATTR, Y) : Ge, ut = m(e, "ALLOWED_NAMESPACES") ? v({}, e.ALLOWED_NAMESPACES, re) : dt, at = m(e, "ADD_URI_SAFE_ATTR") ? v(b(ot), e.ADD_URI_SAFE_ATTR, Y) : ot, rt = m(e, "ADD_DATA_URI_TAGS") ? v(b(it), e.ADD_DATA_URI_TAGS, Y) : it, G = m(e, "FORBID_CONTENTS") ? v({}, e.FORBID_CONTENTS, Y) : nt, F = m(e, "FORBID_TAGS") ? v({}, e.FORBID_TAGS, Y) : b({}), Ke = m(e, "FORBID_ATTR") ? v({}, e.FORBID_ATTR, Y) : b({}), W = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, qe = e.ALLOW_ARIA_ATTR !== !1, Je = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, R = e.SAFE_FOR_XML !== !1, z = e.WHOLE_DOCUMENT || !1, B = e.RETURN_DOM || !1, V = e.RETURN_DOM_FRAGMENT || !1, H = e.RETURN_TRUSTED_TYPE || !1, Qe = e.FORCE_BODY || !1, $e = e.SANITIZE_DOM !== !1, et = e.SANITIZE_NAMED_PROPS || !1, tt = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, Ue = e.ALLOWED_URI_REGEXP || xe, q = e.NAMESPACE || K, ft = e.MATHML_TEXT_INTEGRATION_POINTS || ft, pt = e.HTML_INTEGRATION_POINTS || pt, P = e.CUSTOM_ELEMENT_HANDLING || s(null), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), L && (Je = !1), V && (B = !0), W && (M = v({}, me), N = s(null), W.html === !0 && (v(M, ce), v(N, he)), W.svg === !0 && (v(M, le), v(N, ge), v(N, S)), W.svgFilters === !0 && (v(M, ue), v(N, ge), v(N, S)), W.mathMl === !0 && (v(M, fe), v(N, _e), v(N, S))), I.tagCheck = null, I.attributeCheck = null, e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (M === We && (M = b(M)), v(M, e.ADD_TAGS, Y))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (N === Ge && (N = b(N)), v(N, e.ADD_ATTR, Y))), e.ADD_URI_SAFE_ATTR && v(at, e.ADD_URI_SAFE_ATTR, Y), e.FORBID_CONTENTS && (G === nt && (G = b(G)), v(G, e.FORBID_CONTENTS, Y)), e.ADD_FORBID_CONTENTS && (G === nt && (G = b(G)), v(G, e.ADD_FORBID_CONTENTS, Y)), tt && (M["#text"] = !0), z && v(M, [
307
+ "html",
308
+ "head",
309
+ "body"
310
+ ]), M.table && (v(M, ["tbody"]), delete F.tbody), e.TRUSTED_TYPES_POLICY) {
311
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw g("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
312
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw g("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
313
+ E = e.TRUSTED_TYPES_POLICY, D = E.createHTML("");
314
+ } else E === void 0 && (E = Oe(C, o)), E !== null && typeof D == "string" && (D = E.createHTML(""));
315
+ a && a(e), X = e;
316
+ }
317
+ }, yt = v({}, [
318
+ ...le,
319
+ ...ue,
320
+ ...de
321
+ ]), bt = v({}, [...fe, ...pe]), xt = function(e) {
322
+ let t = Me(e);
323
+ (!t || !t.tagName) && (t = {
324
+ namespaceURI: q,
325
+ tagName: "template"
326
+ });
327
+ let n = ne(e.tagName), r = ne(t.tagName);
328
+ return ut[e.namespaceURI] ? e.namespaceURI === ct ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === st ? n === "svg" && (r === "annotation-xml" || ft[r]) : !!yt[n] : e.namespaceURI === st ? t.namespaceURI === K ? n === "math" : t.namespaceURI === ct ? n === "math" && pt[r] : !!bt[n] : e.namespaceURI === K ? t.namespaceURI === ct && !pt[r] || t.namespaceURI === st && !ft[r] ? !1 : !bt[n] && (mt[n] || !yt[n]) : !!(J === "application/xhtml+xml" && ut[e.namespaceURI]) : !1;
329
+ }, Z = function(e) {
330
+ f(n.removed, { element: e });
331
+ try {
332
+ Me(e).removeChild(e);
333
+ } catch {
334
+ Ce(e);
335
+ }
336
+ }, Q = function(e, t) {
337
+ try {
338
+ f(n.removed, {
339
+ attribute: t.getAttributeNode(e),
340
+ from: t
341
+ });
342
+ } catch {
343
+ f(n.removed, {
344
+ attribute: null,
345
+ from: t
346
+ });
347
+ }
348
+ if (t.removeAttribute(e), e === "is") if (B || V) try {
349
+ Z(t);
350
+ } catch {}
351
+ else try {
352
+ t.setAttribute(e, "");
353
+ } catch {}
354
+ }, St = function(e) {
355
+ let t = null, n = null;
356
+ if (Qe) e = "<remove></remove>" + e;
357
+ else {
358
+ let t = ie(e, /^[\r\n\t ]+/);
359
+ n = t && t[0];
360
+ }
361
+ J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
362
+ let i = E ? E.createHTML(e) : e;
363
+ if (q === K) try {
364
+ t = new be().parseFromString(i, J);
365
+ } catch {}
366
+ if (!t || !t.documentElement) {
367
+ t = Ne.createDocument(q, "template", null);
368
+ try {
369
+ t.documentElement.innerHTML = lt ? D : i;
370
+ } catch {}
371
+ }
372
+ let a = t.body || t.documentElement;
373
+ return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ? Ie.call(t, z ? "html" : "body")[0] : z ? t.documentElement : a;
374
+ }, Ct = function(e) {
375
+ return Pe.call(e.ownerDocument || e, e, y.SHOW_ELEMENT | y.SHOW_COMMENT | y.SHOW_TEXT | y.SHOW_PROCESSING_INSTRUCTION | y.SHOW_CDATA_SECTION, null);
376
+ }, wt = function(e) {
377
+ return e instanceof ye && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ve) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
378
+ }, Tt = function(e) {
379
+ return typeof _ == "function" && e instanceof _;
380
+ };
381
+ function $(e, t, r) {
382
+ u(e, (e) => {
383
+ e.call(n, t, r, X);
384
+ });
385
+ }
386
+ let Et = function(e) {
387
+ let t = null;
388
+ if ($(O.beforeSanitizeElements, e, null), wt(e)) return Z(e), !0;
389
+ let r = Y(e.nodeName);
390
+ if ($(O.uponSanitizeElement, e, {
391
+ tagName: r,
392
+ allowedTags: M
393
+ }), R && e.hasChildNodes() && !Tt(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || R && e.namespaceURI === K && r === "style" && Tt(e.firstElementChild) || e.nodeType === T.progressingInstruction || R && e.nodeType === T.comment && h(/<[/\w]/g, e.data)) return Z(e), !0;
394
+ if (F[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !M[r]) {
395
+ if (!F[r] && Ot(r) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
396
+ if (tt && !G[r]) {
397
+ let t = Me(e) || e.parentNode, n = je(e) || e.childNodes;
398
+ if (n && t) {
399
+ let r = n.length;
400
+ for (let i = r - 1; i >= 0; --i) {
401
+ let r = Se(n[i], !0);
402
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Te(e));
403
+ }
404
+ }
405
+ }
406
+ return Z(e), !0;
407
+ }
408
+ return e instanceof se && !xt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (L && e.nodeType === T.text && (t = e.textContent, u([
409
+ k,
410
+ A,
411
+ j
412
+ ], (e) => {
413
+ t = p(t, e, " ");
414
+ }), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(O.afterSanitizeElements, e, null), !1);
415
+ }, Dt = function(e, t, n) {
416
+ if (Ke[t] || $e && (t === "id" || t === "name") && (n in r || n in gt)) return !1;
417
+ if (!(Je && !Ke[t] && h(Re, t)) && !(qe && h(ze, t)) && !(I.attributeCheck instanceof Function && I.attributeCheck(t, e))) {
418
+ if (!N[t] || Ke[t]) {
419
+ if (!(Ot(e) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && h(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, n) || P.tagNameCheck instanceof Function && P.tagNameCheck(n)))) return !1;
420
+ } else if (!at[t] && !h(Ue, p(n, Ve, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ae(n, "data:") === 0 && rt[e]) && !(Ye && !h(Be, p(n, Ve, ""))) && n) return !1;
421
+ }
422
+ return !0;
423
+ }, Ot = function(e) {
424
+ return e !== "annotation-xml" && ie(e, He);
425
+ }, kt = function(e) {
426
+ $(O.beforeSanitizeAttributes, e, null);
427
+ let { attributes: t } = e;
428
+ if (!t || wt(e)) return;
429
+ let r = {
430
+ attrName: "",
431
+ attrValue: "",
432
+ keepAttr: !0,
433
+ allowedAttributes: N,
434
+ forceKeepAttr: void 0
435
+ }, i = t.length;
436
+ for (; i--;) {
437
+ let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l : oe(l);
438
+ if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(O.uponSanitizeAttribute, e, r), d = r.attrValue, et && (c === "id" || c === "name") && (Q(a, e), d = "user-content-" + d), R && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
439
+ Q(a, e);
440
+ continue;
441
+ }
442
+ if (c === "attributename" && ie(d, "href")) {
443
+ Q(a, e);
444
+ continue;
445
+ }
446
+ if (r.forceKeepAttr) continue;
447
+ if (!r.keepAttr) {
448
+ Q(a, e);
449
+ continue;
450
+ }
451
+ if (!Xe && h(/\/>/i, d)) {
452
+ Q(a, e);
453
+ continue;
454
+ }
455
+ L && u([
456
+ k,
457
+ A,
458
+ j
459
+ ], (e) => {
460
+ d = p(d, e, " ");
461
+ });
462
+ let f = Y(e.nodeName);
463
+ if (!Dt(f, c, d)) {
464
+ Q(a, e);
465
+ continue;
466
+ }
467
+ if (E && typeof C == "object" && typeof C.getAttributeType == "function" && !o) switch (C.getAttributeType(f, c)) {
468
+ case "TrustedHTML":
469
+ d = E.createHTML(d);
470
+ break;
471
+ case "TrustedScriptURL":
472
+ d = E.createScriptURL(d);
473
+ break;
474
+ }
475
+ if (d !== l) try {
476
+ o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d), wt(e) ? Z(e) : ee(n.removed);
477
+ } catch {
478
+ Q(a, e);
479
+ }
480
+ }
481
+ $(O.afterSanitizeAttributes, e, null);
482
+ }, At = function(e) {
483
+ let t = null, n = Ct(e);
484
+ for ($(O.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(O.uponSanitizeShadowNode, t, null), Et(t), kt(t), t.content instanceof c && At(t.content);
485
+ $(O.afterSanitizeShadowDOM, e, null);
486
+ };
487
+ return n.sanitize = function(e) {
488
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, o = null, s = null;
489
+ if (lt = !e, lt && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
490
+ if (e = e.toString(), typeof e != "string") throw g("dirty is not a string, aborting");
491
+ } else throw g("toString is not a function");
492
+ if (!n.isSupported) return e;
493
+ if (Ze || vt(t), n.removed = [], typeof e == "string" && (U = !1), U) {
494
+ if (e.nodeName) {
495
+ let t = Y(e.nodeName);
496
+ if (!M[t] || F[t]) throw g("root node is forbidden and cannot be sanitized in-place");
497
+ }
498
+ } else if (e instanceof _) r = St("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === T.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
499
+ else {
500
+ if (!B && !L && !z && e.indexOf("<") === -1) return E && H ? E.createHTML(e) : e;
501
+ if (r = St(e), !r) return B ? null : H ? D : "";
502
+ }
503
+ r && Qe && Z(r.firstChild);
504
+ let l = Ct(U ? e : r);
505
+ for (; o = l.nextNode();) Et(o), kt(o), o.content instanceof c && At(o.content);
506
+ if (U) return e;
507
+ if (B) {
508
+ if (L) {
509
+ r.normalize();
510
+ let e = r.innerHTML;
511
+ u([
512
+ k,
513
+ A,
514
+ j
515
+ ], (t) => {
516
+ e = p(e, t, " ");
517
+ }), r.innerHTML = e;
518
+ }
519
+ if (V) for (s = Fe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
520
+ else s = r;
521
+ return (N.shadowroot || N.shadowrootmode) && (s = Le.call(i, s, !0)), s;
522
+ }
523
+ let d = z ? r.outerHTML : r.innerHTML;
524
+ return z && M["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && h(we, r.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + d), L && u([
525
+ k,
526
+ A,
527
+ j
528
+ ], (e) => {
529
+ d = p(d, e, " ");
530
+ }), E && H ? E.createHTML(d) : d;
531
+ }, n.setConfig = function() {
532
+ vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Ze = !0;
533
+ }, n.clearConfig = function() {
534
+ X = null, Ze = !1;
535
+ }, n.isValidAttribute = function(e, t, n) {
536
+ return X || vt({}), Dt(Y(e), Y(t), n);
537
+ }, n.addHook = function(e, t) {
538
+ typeof t == "function" && f(O[e], t);
539
+ }, n.removeHook = function(e, t) {
540
+ if (t !== void 0) {
541
+ let n = d(O[e], t);
542
+ return n === -1 ? void 0 : te(O[e], n, 1)[0];
543
+ }
544
+ return ee(O[e]);
545
+ }, n.removeHooks = function(e) {
546
+ O[e] = [];
547
+ }, n.removeAllHooks = function() {
548
+ O = ke();
549
+ }, n;
550
+ }
551
+ var je = Ae();
552
+ //#endregion
553
+ export { je as purify };
554
+
555
+ //# sourceMappingURL=purify.es.js.map