(s)
| 68824 | s.call(DOMPurify, o, i, Lt) |
| 68825 | }) |
| 68826 | } |
| 68827 | const Gt = function _sanitizeElements(s) { |
| 68828 | let o = null |
| 68829 | if ((_executeHooks(ye.beforeSanitizeElements, s, null), Ht(s))) return (Vt(s), !0) |
| 68830 | const i = Dt(s.nodeName) |
| 68831 | if ( |
| 68832 | (_executeHooks(ye.uponSanitizeElement, s, { tagName: i, allowedTags: qe }), |
| 68833 | ot && |
| 68834 | s.hasChildNodes() && |
| 68835 | !Kt(s.firstElementChild) && |
| 68836 | $j(/<[/\w!]/g, s.innerHTML) && |
| 68837 | $j(/<[/\w!]/g, s.textContent)) |
| 68838 | ) |
| 68839 | return (Vt(s), !0) |
| 68840 | if (s.nodeType === _P) return (Vt(s), !0) |
| 68841 | if (ot && s.nodeType === SP && $j(/<[/\w]/g, s.data)) return (Vt(s), !0) |
| 68842 | if (!qe[i] || Xe[i]) { |
| 68843 | if (!Xe[i] && Xt(i)) { |
| 68844 | if (Ye.tagNameCheck instanceof RegExp && $j(Ye.tagNameCheck, i)) return !1 |
| 68845 | if (Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(i)) return !1 |
| 68846 | } |
| 68847 | if (mt && !vt[i]) { |
| 68848 | const o = ee(s) || s.parentNode, |
| 68849 | i = Z(s) || s.childNodes |
| 68850 | if (i && o) { |
| 68851 | for (let a = i.length - 1; a >= 0; --a) { |
| 68852 | const u = V(i[a], !0) |
| 68853 | ;((u.__removalCount = (s.__removalCount || 0) + 1), o.insertBefore(u, Y(s))) |
| 68854 | } |
| 68855 | } |
| 68856 | } |
| 68857 | return (Vt(s), !0) |
| 68858 | } |
| 68859 | return s instanceof x && |
| 68860 | !(function _checkValidNamespace(s) { |
| 68861 | let o = ee(s) |
| 68862 | ;(o && o.tagName) || (o = { namespaceURI: At, tagName: 'template' }) |
| 68863 | const i = fj(s.tagName), |
| 68864 | a = fj(o.tagName) |
| 68865 | return ( |
| 68866 | !!jt[s.namespaceURI] && |
| 68867 | (s.namespaceURI === kt |
| 68868 | ? o.namespaceURI === Ot |
| 68869 | ? 'svg' === i |
| 68870 | : o.namespaceURI === xt |
| 68871 | ? 'svg' === i && ('annotation-xml' === a || It[a]) |
| 68872 | : Boolean(qt[i]) |
| 68873 | : s.namespaceURI === xt |
| 68874 | ? o.namespaceURI === Ot |
| 68875 | ? 'math' === i |
| 68876 | : o.namespaceURI === kt |
| 68877 | ? 'math' === i && Tt[a] |
| 68878 | : Boolean(Ut[i]) |
| 68879 | : s.namespaceURI === Ot |
| 68880 | ? !(o.namespaceURI === kt && !Tt[a]) && |
| 68881 | !(o.namespaceURI === xt && !It[a]) && |
| 68882 | !Ut[i] && |
| 68883 | (Nt[i] || !qt[i]) |
no test coverage detected