keycloakify 11.15.8-rc.3 → 11.15.9

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="dompurify" />
2
1
  import { DOMPurify } from "../../tools/vendor/dompurify";
3
2
  export declare class HtmlPolicyBuilder {
4
3
  private globalAttributesAllowed;
@@ -1,4 +1,3 @@
1
- /// <reference types="dompurify" />
2
1
  import type { DOMPurify as ofTypeDomPurify } from "../../tools/vendor/dompurify";
3
2
  export declare class KcSanitizer {
4
3
  private static HREF_PATTERN;
@@ -1,4 +1,3 @@
1
- /// <reference types="dompurify" />
2
1
  import type { DOMPurify as ofTypeDomPurify } from "../../tools/vendor/dompurify";
3
2
  export declare class KcSanitizerPolicy {
4
3
  static readonly COLOR_NAME: RegExp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.15.8-rc.3",
3
+ "version": "11.15.9",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1237,12 +1237,12 @@
1237
1237
  "cheerio": "1.0.0-rc.12",
1238
1238
  "chokidar-cli": "^3.0.0",
1239
1239
  "cli-select": "^1.1.2",
1240
- "dompurify": "^3.1.6",
1240
+ "dompurify": "^3.4.9",
1241
1241
  "eslint-plugin-storybook": "^0.6.7",
1242
1242
  "evt": "^2.5.8",
1243
1243
  "html-entities": "^2.5.2",
1244
1244
  "husky": "^4.3.8",
1245
- "isomorphic-dompurify": "^2.15.0",
1245
+ "isomorphic-dompurify": "^2.36.0",
1246
1246
  "json5": "^2.2.3",
1247
1247
  "lint-staged": "^11.0.0",
1248
1248
  "magic-string": "^0.30.7",
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- var e={8:function(e,t,n){var r,o,a;function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return f="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},f(e)}a=function(){var e=Object.entries,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,m=Object.create,p="undefined"!=typeof Reflect&&Reflect,d=p.apply,h=p.construct;a||(a=function(e){return e}),s||(s=function(e){return e}),d||(d=function(e,t,n){return e.apply(t,n)}),h||(h=function(e,t){return function(e,t,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&i(o,n.prototype),o}(e,c(t))});var y,g=x(Array.prototype.forEach),T=x(Array.prototype.pop),b=x(Array.prototype.push),v=x(String.prototype.toLowerCase),E=x(String.prototype.toString),A=x(String.prototype.match),_=x(String.prototype.replace),S=x(String.prototype.indexOf),N=x(String.prototype.trim),w=x(Object.prototype.hasOwnProperty),O=x(RegExp.prototype.test),R=(y=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(y,t)});function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function C(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;t&&t(e,null);for(var a=r.length;a--;){var i=r[a];if("string"==typeof i){var l=o(i);l!==i&&(n(r)||(r[a]=l),i=l)}e[i]=!0}return e}function L(e){for(var t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function D(t){var n,r,o,a=m(null),i=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(e(t));try{for(i.s();!(n=i.n()).done;){var l=(r=n.value,o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(r,o)||u(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],s=l[1];w(t,c)&&(Array.isArray(s)?a[c]=L(s):s&&"object"===f(s)&&s.constructor===Object?a[c]=D(s):a[c]=s)}}catch(e){i.e(e)}finally{i.f()}return a}function k(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=r(e)}return function(){return null}}var I=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"]),M=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"]),U=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=a(["animate","color-profile","cursor","discard","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"]),F=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","mprescripts"]),H=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=a(["#text"]),j=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","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),B=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","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"]),W=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"]),G=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=s(/<%[\w\W]*|[\w\W]*%>/gm),q=s(/\${[\w\W]*}/gm),$=s(/^data-[\-\w.\u00B7-\uFFFF]/),K=s(/^aria-[\-\w]+$/),V=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=s(/^(?:\w+script|data):/i),J=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=s(/^html$/i),ee=s(/^[a-z][.\w]*(-[.\w]+)+$/i),te=Object.freeze({__proto__:null,MUSTACHE_EXPR:Y,ERB_EXPR:X,TMPLIT_EXPR:q,DATA_ATTR:$,ARIA_ATTR:K,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:J,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:ee}),ne=function(){return"undefined"==typeof window?null:window},re=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne(),r=function(e){return t(e)};if(r.version="3.1.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o,i=n.document,l=i,u=l.currentScript,s=n.DocumentFragment,p=n.HTMLTemplateElement,d=n.Node,h=n.Element,y=n.NodeFilter,x=n.NamedNodeMap,L=void 0===x?n.NamedNodeMap||n.MozNamedAttrMap:x,Y=n.HTMLFormElement,X=n.DOMParser,q=n.trustedTypes,$=h.prototype,K=k($,"cloneNode"),Z=k($,"remove"),J=k($,"nextSibling"),ee=k($,"childNodes"),re=k($,"parentNode");if("function"==typeof p){var oe=i.createElement("template");oe.content&&oe.content.ownerDocument&&(i=oe.content.ownerDocument)}var ae="",ie=i,le=ie.implementation,ce=ie.createNodeIterator,ue=ie.createDocumentFragment,se=ie.getElementsByTagName,fe=l.importNode,me={};r.isSupported="function"==typeof e&&"function"==typeof re&&le&&void 0!==le.createHTMLDocument;var pe=te.MUSTACHE_EXPR,de=te.ERB_EXPR,he=te.TMPLIT_EXPR,ye=te.DATA_ATTR,ge=te.ARIA_ATTR,Te=te.IS_SCRIPT_OR_DATA,be=te.ATTR_WHITESPACE,ve=te.CUSTOM_ELEMENT,Ee=te.IS_ALLOWED_URI,Ae=null,_e=C({},[].concat(c(I),c(M),c(U),c(F),c(z))),Se=null,Ne=C({},[].concat(c(j),c(B),c(W),c(G))),we=Object.seal(m(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,Re=null,xe=!0,Ce=!0,Le=!1,De=!0,ke=!1,Ie=!0,Me=!1,Ue=!1,Pe=!1,Fe=!1,He=!1,ze=!1,je=!0,Be=!1,We=!0,Ge=!1,Ye={},Xe=null,qe=C({},["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"]),$e=null,Ke=C({},["audio","video","img","source","image","track"]),Ve=null,Ze=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=null,ot=C({},[Je,Qe,et],E),at=null,it=["application/xhtml+xml","text/html"],lt=null,ct=null,ut=i.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"===f(e)||(e={}),e=D(e),at=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===at?E:v,Ae=w(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,lt):_e,Se=w(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,lt):Ne,rt=w(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,E):ot,Ve=w(e,"ADD_URI_SAFE_ATTR")?C(D(Ze),e.ADD_URI_SAFE_ATTR,lt):Ze,$e=w(e,"ADD_DATA_URI_TAGS")?C(D(Ke),e.ADD_DATA_URI_TAGS,lt):Ke,Xe=w(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,lt):qe,Oe=w(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,lt):{},Re=w(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,lt):{},Ye=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ie=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||V,tt=e.NAMESPACE||et,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ce=!1),He&&(Fe=!0),Ye&&(Ae=C({},z),Se=[],!0===Ye.html&&(C(Ae,I),C(Se,j)),!0===Ye.svg&&(C(Ae,M),C(Se,B),C(Se,G)),!0===Ye.svgFilters&&(C(Ae,U),C(Se,B),C(Se,G)),!0===Ye.mathMl&&(C(Ae,F),C(Se,W),C(Se,G))),e.ADD_TAGS&&(Ae===_e&&(Ae=D(Ae)),C(Ae,e.ADD_TAGS,lt)),e.ADD_ATTR&&(Se===Ne&&(Se=D(Se)),C(Se,e.ADD_ATTR,lt)),e.ADD_URI_SAFE_ATTR&&C(Ve,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(Xe===qe&&(Xe=D(Xe)),C(Xe,e.FORBID_CONTENTS,lt)),We&&(Ae["#text"]=!0),Me&&C(Ae,["html","head","body"]),Ae.table&&(C(Ae,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');o=e.TRUSTED_TYPES_POLICY,ae=o.createHTML("")}else void 0===o&&(o=function(e,t){if("object"!==f(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(q,u)),null!==o&&"string"==typeof ae&&(ae=o.createHTML(""));a&&a(e),ct=e}},mt=C({},["mi","mo","mn","ms","mtext"]),pt=C({},["foreignobject","annotation-xml"]),dt=C({},["title","style","font","a","script"]),ht=C({},[].concat(c(M),c(U),c(P))),yt=C({},[].concat(c(F),c(H))),gt=function(e){b(r.removed,{element:e});try{re(e).removeChild(e)}catch(t){Z(e)}},Tt=function(e,t){try{b(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Fe||He)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t=null,n=null;if(Pe)e="<remove></remove>"+e;else{var r=A(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===at&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=o?o.createHTML(e):e;if(tt===et)try{t=(new X).parseFromString(a,at)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:a}catch(e){}}var l=t.body||t.documentElement;return e&&n&&l.insertBefore(i.createTextNode(n),l.childNodes[0]||null),tt===et?se.call(t,Me?"html":"body")[0]:Me?t.documentElement:l},vt=function(e){return ce.call(e.ownerDocument||e,e,y.SHOW_ELEMENT|y.SHOW_COMMENT|y.SHOW_TEXT|y.SHOW_PROCESSING_INSTRUCTION|y.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof Y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof d&&e instanceof d},_t=function(e,t,n){me[e]&&g(me[e],(function(e){e.call(r,t,n,ct)}))},St=function(e){var t=null;if(_t("beforeSanitizeElements",e,null),Et(e))return gt(e),!0;var n=lt(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:Ae}),e.hasChildNodes()&&!At(e.firstElementChild)&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Ie&&8===e.nodeType&&O(/<[/\w]/g,e.data))return gt(e),!0;if(!Ae[n]||Oe[n]){if(!Oe[n]&&wt(n)){if(we.tagNameCheck instanceof RegExp&&O(we.tagNameCheck,n))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(n))return!1}if(We&&!Xe[n]){var o=re(e)||e.parentNode,a=ee(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i){var l=K(a[i],!0);l.__removalCount=(e.__removalCount||0)+1,o.insertBefore(l,J(e))}}return gt(e),!0}return e instanceof h&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});var n=v(e.tagName),r=v(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&pt[r]:Boolean(yt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!pt[r])&&!(t.namespaceURI===Je&&!mt[r])&&!yt[n]&&(dt[n]||!ht[n]):!("application/xhtml+xml"!==at||!rt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!O(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(t=e.textContent,g([pe,de,he],(function(e){t=_(t,e," ")})),e.textContent!==t&&(b(r.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(gt(e),!0)},Nt=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in i||n in ut))return!1;if(Ce&&!Re[t]&&O(ye,t));else if(xe&&O(ge,t));else if(!Se[t]||Re[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&O(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&O(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&O(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ve[t]);else if(O(Ee,_(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!$e[e])if(Le&&!O(Te,_(n,be,"")));else if(n)return!1;return!0},wt=function(e){return"annotation-xml"!==e&&A(e,ve)},Ot=function(e){_t("beforeSanitizeAttributes",e,null);var t=e.attributes;if(t){for(var n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se},a=t.length,i=function(){var i=t[a],l=i.name,c=i.namespaceURI,u=i.value,s=lt(l),m="value"===l?u:N(u);if(n.attrName=s,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,_t("uponSanitizeAttribute",e,n),m=n.attrValue,Ie&&O(/((--!?|])>)|<\/(style|title)/i,m))return Tt(l,e),0;if(n.forceKeepAttr)return 0;if(Tt(l,e),!n.keepAttr)return 0;if(!De&&O(/\/>/i,m))return Tt(l,e),0;ke&&g([pe,de,he],(function(e){m=_(m,e," ")}));var p=lt(e.nodeName);if(!Nt(p,s,m))return 0;if(!Be||"id"!==s&&"name"!==s||(Tt(l,e),m="user-content-"+m),o&&"object"===f(q)&&"function"==typeof q.getAttributeType)if(c);else switch(q.getAttributeType(p,s)){case"TrustedHTML":m=o.createHTML(m);break;case"TrustedScriptURL":m=o.createScriptURL(m)}try{c?e.setAttributeNS(c,l,m):e.setAttribute(l,m),Et(e)?gt(e):T(r.removed)}catch(e){}};a--;)i();_t("afterSanitizeAttributes",e,null)}},Rt=function e(t){var n=null,r=vt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof s&&e(n.content),Ot(n));_t("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,i=null,c=null;if((nt=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw R("toString is not a function");if("string"!=typeof(e=e.toString()))throw R("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Ue||ft(t),r.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){var u=lt(e.nodeName);if(!Ae[u]||Oe[u])throw R("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)1===(a=(n=bt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Fe&&!ke&&!Me&&-1===e.indexOf("<"))return o&&ze?o.createHTML(e):e;if(!(n=bt(e)))return Fe?null:ze?ae:""}n&&Pe&&gt(n.firstChild);for(var f=vt(Ge?e:n);i=f.nextNode();)St(i)||(i.content instanceof s&&Rt(i.content),Ot(i));if(Ge)return e;if(Fe){if(He)for(c=ue.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(Se.shadowroot||Se.shadowrootmode)&&(c=fe.call(l,c,!0)),c}var m=Me?n.outerHTML:n.innerHTML;return Me&&Ae["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&O(Q,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),ke&&g([pe,de,he],(function(e){m=_(m,e," ")})),o&&ze?o.createHTML(m):m},r.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ue=!0},r.clearConfig=function(){ct=null,Ue=!1},r.isValidAttribute=function(e,t,n){ct||ft({});var r=lt(e),o=lt(t);return Nt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],b(me[e],t))},r.removeHook=function(e){if(me[e])return T(me[e])},r.removeHooks=function(e){me[e]&&(me[e]=[])},r.removeAllHooks=function(){me={}},r}();return re},"object"===f(t)?e.exports=a():void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{W:()=>a.a});var o=n(8),a=n.n(o),i=r.W;export{i as DOMPurify};
2
+ var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return r="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},r(e)}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.d(t,{W:()=>de});var u=Object.entries,s=Object.setPrototypeOf,f=Object.isFrozen,p=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,d=Object.freeze,h=Object.seal,y=Object.create,g="undefined"!=typeof Reflect&&Reflect,T=g.apply,b=g.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),T||(T=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),b||(b=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(e,t,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&i(o,n.prototype),o}(e,n)});var v,S=j(Array.prototype.forEach),A=j(Array.prototype.lastIndexOf),E=j(Array.prototype.pop),_=j(Array.prototype.push),N=j(Array.prototype.splice),O=Array.isArray,w=j(String.prototype.toLowerCase),D=j(String.prototype.toString),R=j(String.prototype.match),I=j(String.prototype.replace),C=j(String.prototype.indexOf),x=j(String.prototype.trim),k=j(Number.prototype.toString),L=j(Boolean.prototype.toString),M="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),P="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),z=j(Object.prototype.hasOwnProperty),U=j(Object.prototype.toString),F=j(RegExp.prototype.test),H=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(v,t)});function j(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return T(e,t,r)}}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(s&&s(e,null),!O(t))return e;for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(f(t)||(t[r]=a),o=a)}e[o]=!0}return e}function G(e){for(var t=0;t<e.length;t++)z(e,t)||(e[t]=null);return e}function W(e){var t,n,a,i=y(null),l=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=o(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}(u(e));try{for(l.s();!(t=l.n()).done;){var s=(n=t.value,a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(n,a)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1];z(e,f)&&(O(p)?i[f]=G(p):p&&"object"===r(p)&&p.constructor===Object?i[f]=W(p):i[f]=p)}}catch(e){l.e(e)}finally{l.f()}return i}function Y(e,t){for(;null!==e;){var n=m(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=p(e)}return function(){return null}}var q=d(["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"]),X=d(["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"]),$=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),K=d(["animate","color-profile","cursor","discard","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"]),V=d(["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"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=d(["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"]),te=d(["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"]),ne=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=h(/{{[\w\W]*|^[\w\W]*}}/g),oe=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),ce=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ue=h(/^(?:\w+script|data):/i),se=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),pe=h(/^[a-z][.\w]*(-[.\w]+)+$/i),me=function(){return"undefined"==typeof window?null:window},de=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me(),o=function(t){return e(t)};if(o.version="3.4.9",o.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return o.isSupported=!1,o;var a=t.document,i=a,l=i.currentScript;t.DocumentFragment;var c=t.HTMLTemplateElement,s=t.Node,f=t.Element,p=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;var m,h=t.DOMParser,g=t.trustedTypes,T=f.prototype,b=Y(T,"cloneNode"),v=Y(T,"remove"),j=Y(T,"nextSibling"),G=Y(T,"childNodes"),de=Y(T,"parentNode"),he=Y(T,"shadowRoot"),ye=Y(T,"attributes"),ge=s&&s.prototype?Y(s.prototype,"nodeType"):null,Te=s&&s.prototype?Y(s.prototype,"nodeName"):null;if("function"==typeof c){var be=a.createElement("template");be.content&&be.content.ownerDocument&&(a=be.content.ownerDocument)}var ve,Se="",Ae=!1,Ee=0,_e=function(){if(Ee>0)throw H('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ne=function(e){_e(),Ee++;try{return m.createHTML(e)}finally{Ee--}},Oe=a,we=Oe.implementation,De=Oe.createNodeIterator,Re=Oe.createDocumentFragment,Ie=Oe.getElementsByTagName,Ce=i.importNode,xe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof u&&"function"==typeof de&&we&&void 0!==we.createHTMLDocument;var ke=re,Le=oe,Me=ae,Pe=ie,ze=le,Ue=ue,Fe=se,He=pe,je=ce,Be=null,Ge=B({},[].concat(n(q),n(X),n($),n(V),n(J))),We=null,Ye=B({},[].concat(n(Q),n(ee),n(te),n(ne))),qe=Object.seal(y(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xe=null,$e=null,Ke=Object.seal(y(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ve=!0,Ze=!0,Je=!1,Qe=!0,et=!1,tt=!0,nt=!1,rt=!1,ot=!1,at=!1,it=!1,lt=!1,ct=!0,ut=!1,st="user-content-",ft=!0,pt=!1,mt={},dt=null,ht=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),yt=null,gt=B({},["audio","video","img","source","image","track"]),Tt=null,bt=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",At="http://www.w3.org/1999/xhtml",Et=At,_t=!1,Nt=null,Ot=B({},[vt,St,At],D),wt=B({},["mi","mo","mn","ms","mtext"]),Dt=B({},["annotation-xml"]),Rt=B({},["title","style","font","a","script"]),It=null,Ct=["application/xhtml+xml","text/html"],xt=null,kt=null,Lt=a.createElement("form"),Mt=function(e){return e instanceof RegExp||e instanceof Function},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!kt||kt!==e){e&&"object"===r(e)||(e={}),e=W(e),It=-1===Ct.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xt="application/xhtml+xml"===It?D:w,Be=z(e,"ALLOWED_TAGS")&&O(e.ALLOWED_TAGS)?B({},e.ALLOWED_TAGS,xt):Ge,We=z(e,"ALLOWED_ATTR")&&O(e.ALLOWED_ATTR)?B({},e.ALLOWED_ATTR,xt):Ye,Nt=z(e,"ALLOWED_NAMESPACES")&&O(e.ALLOWED_NAMESPACES)?B({},e.ALLOWED_NAMESPACES,D):Ot,Tt=z(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)?B(W(bt),e.ADD_URI_SAFE_ATTR,xt):bt,yt=z(e,"ADD_DATA_URI_TAGS")&&O(e.ADD_DATA_URI_TAGS)?B(W(gt),e.ADD_DATA_URI_TAGS,xt):gt,dt=z(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)?B({},e.FORBID_CONTENTS,xt):ht,Xe=z(e,"FORBID_TAGS")&&O(e.FORBID_TAGS)?B({},e.FORBID_TAGS,xt):W({}),$e=z(e,"FORBID_ATTR")&&O(e.FORBID_ATTR)?B({},e.FORBID_ATTR,xt):W({}),mt=!!z(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"===r(e.USE_PROFILES)?W(e.USE_PROFILES):e.USE_PROFILES),Ve=!1!==e.ALLOW_ARIA_ATTR,Ze=!1!==e.ALLOW_DATA_ATTR,Je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Qe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,et=e.SAFE_FOR_TEMPLATES||!1,tt=!1!==e.SAFE_FOR_XML,nt=e.WHOLE_DOCUMENT||!1,at=e.RETURN_DOM||!1,it=e.RETURN_DOM_FRAGMENT||!1,lt=e.RETURN_TRUSTED_TYPE||!1,ot=e.FORCE_BODY||!1,ct=!1!==e.SANITIZE_DOM,ut=e.SANITIZE_NAMED_PROPS||!1,ft=!1!==e.KEEP_CONTENT,pt=e.IN_PLACE||!1,je=function(e){try{return F(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ce,Et="string"==typeof e.NAMESPACE?e.NAMESPACE:At,wt=z(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"===r(e.MATHML_TEXT_INTEGRATION_POINTS)?W(e.MATHML_TEXT_INTEGRATION_POINTS):B({},["mi","mo","mn","ms","mtext"]),Dt=z(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"===r(e.HTML_INTEGRATION_POINTS)?W(e.HTML_INTEGRATION_POINTS):B({},["annotation-xml"]);var t=z(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"===r(e.CUSTOM_ELEMENT_HANDLING)?W(e.CUSTOM_ELEMENT_HANDLING):y(null);if(qe=y(null),z(t,"tagNameCheck")&&Mt(t.tagNameCheck)&&(qe.tagNameCheck=t.tagNameCheck),z(t,"attributeNameCheck")&&Mt(t.attributeNameCheck)&&(qe.attributeNameCheck=t.attributeNameCheck),z(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(qe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),et&&(Ze=!1),it&&(at=!0),mt&&(Be=B({},J),We=y(null),!0===mt.html&&(B(Be,q),B(We,Q)),!0===mt.svg&&(B(Be,X),B(We,ee),B(We,ne)),!0===mt.svgFilters&&(B(Be,$),B(We,ee),B(We,ne)),!0===mt.mathMl&&(B(Be,V),B(We,te),B(We,ne))),Ke.tagCheck=null,Ke.attributeCheck=null,z(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Ke.tagCheck=e.ADD_TAGS:O(e.ADD_TAGS)&&(Be===Ge&&(Be=W(Be)),B(Be,e.ADD_TAGS,xt))),z(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Ke.attributeCheck=e.ADD_ATTR:O(e.ADD_ATTR)&&(We===Ye&&(We=W(We)),B(We,e.ADD_ATTR,xt))),z(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)&&B(Tt,e.ADD_URI_SAFE_ATTR,xt),z(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)&&(dt===ht&&(dt=W(dt)),B(dt,e.FORBID_CONTENTS,xt)),z(e,"ADD_FORBID_CONTENTS")&&O(e.ADD_FORBID_CONTENTS)&&(dt===ht&&(dt=W(dt)),B(dt,e.ADD_FORBID_CONTENTS,xt)),ft&&(Be["#text"]=!0),nt&&B(Be,["html","head","body"]),Be.table&&(B(Be,["tbody"]),delete Xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var n=m;m=e.TRUSTED_TYPES_POLICY;try{Se=Ne("")}catch(e){throw m=n,e}}else null===e.TRUSTED_TYPES_POLICY?(m=void 0,Se=""):(void 0===m&&(Ae||(ve=function(e,t){if("object"!==r(e)||"function"!=typeof e.createPolicy)return null;var n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(g,l),Ae=!0),m=ve),m&&"string"==typeof Se&&(Se=Ne("")));(xe.uponSanitizeElement.length>0||xe.uponSanitizeAttribute.length>0)&&Be===Ge&&(Be=W(Be)),xe.uponSanitizeAttribute.length>0&&We===Ye&&(We=W(We)),d&&d(e),kt=e}},zt=B({},[].concat(n(X),n($),n(K))),Ut=B({},[].concat(n(V),n(Z))),Ft=function(e){_(o.removed,{element:e});try{de(e).removeChild(e)}catch(t){if(v(e),!de(e))throw H("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ht=function(e){var t=G?G(e):e.childNodes;if(t){var n=[];S(t,(function(e){_(n,e)})),S(n,(function(e){try{v(e)}catch(e){}}))}var r=ye?ye(e):null;if(r)for(var o=r.length-1;o>=0;--o){var a=r[o],i=a&&a.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},jt=function(e,t){try{_(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(at||it)try{Ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Bt=function(e){var t=ye?ye(e):e.attributes;if(t)for(var n=t.length-1;n>=0;--n){var r=t[n],o=r&&r.name;if("string"==typeof o&&!We[xt(o)])try{e.removeAttribute(o)}catch(e){}}},Gt=function(e){var t=null,n=null;if(ot)e="<remove></remove>"+e;else{var r=R(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===It&&Et===At&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=m?Ne(e):e;if(Et===At)try{t=(new h).parseFromString(o,It)}catch(e){}if(!t||!t.documentElement){t=we.createDocument(Et,"template",null);try{t.documentElement.innerHTML=_t?Se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Et===At?Ie.call(t,nt?"html":"body")[0]:nt?t.documentElement:i},Wt=function(e){return De.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Yt=function(e){var t,n;e.normalize();for(var r=De.call(e.ownerDocument||e,e,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null),o=r.nextNode(),a=function(){var e=o.data;S([ke,Le,Me],(function(t){e=I(e,t," ")})),o.data=e,o=r.nextNode()};o;)a();var i=null!==(t=null===(n=e.querySelectorAll)||void 0===n?void 0:n.call(e,"template"))&&void 0!==t?t:[];S(Array.from(i),(function(e){Xt(e.content)&&Yt(e.content)}))},qt=function(e){var t=Te?Te(e):null;return"string"==typeof t&&"form"===xt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==ye(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==ge(e)||e.childNodes!==G(e))},Xt=function(e){if(!ge||"object"!==r(e)||null===e)return!1;try{return 11===ge(e)}catch(e){return!1}},$t=function(e){if(!ge||"object"!==r(e)||null===e)return!1;try{return"number"==typeof ge(e)}catch(e){return!1}};function Kt(e,t,n){S(e,(function(e){e.call(o,t,n,kt)}))}var Vt=function(e){var t=null;if(Kt(xe.beforeSanitizeElements,e,null),qt(e))return Ft(e),!0;var n=xt(Te?Te(e):e.nodeName);if(Kt(xe.uponSanitizeElement,e,{tagName:n,allowedTags:Be}),tt&&e.hasChildNodes()&&!$t(e.firstElementChild)&&F(/<[/\w!]/g,e.innerHTML)&&F(/<[/\w!]/g,e.textContent))return Ft(e),!0;if(tt&&e.namespaceURI===At&&"style"===n&&$t(e.firstElementChild))return Ft(e),!0;if(7===e.nodeType)return Ft(e),!0;if(tt&&8===e.nodeType&&F(/<[/\w]/g,e.data))return Ft(e),!0;if(Xe[n]||!(Ke.tagCheck instanceof Function&&Ke.tagCheck(n))&&!Be[n]){if(!Xe[n]&&Qt(n)){if(qe.tagNameCheck instanceof RegExp&&F(qe.tagNameCheck,n))return!1;if(qe.tagNameCheck instanceof Function&&qe.tagNameCheck(n))return!1}if(ft&&!dt[n]){var r=de(e),a=G(e);if(a&&r)for(var i=a.length-1;i>=0;--i){var l=pt?a[i]:b(a[i],!0);r.insertBefore(l,j(e))}}return Ft(e),!0}return 1===(ge?ge(e):e.nodeType)&&!function(e){var t=de(e);t&&t.tagName||(t={namespaceURI:Et,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return!!Nt[e.namespaceURI]&&(e.namespaceURI===St?t.namespaceURI===At?"svg"===n:t.namespaceURI===vt?"svg"===n&&("annotation-xml"===r||wt[r]):Boolean(zt[n]):e.namespaceURI===vt?t.namespaceURI===At?"math"===n:t.namespaceURI===St?"math"===n&&Dt[r]:Boolean(Ut[n]):e.namespaceURI===At?!(t.namespaceURI===St&&!Dt[r])&&!(t.namespaceURI===vt&&!wt[r])&&!Ut[n]&&(Rt[n]||!zt[n]):!("application/xhtml+xml"!==It||!Nt[e.namespaceURI]))}(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&F(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ft(e),!0):(et&&3===e.nodeType&&(t=e.textContent,S([ke,Le,Me],(function(e){t=I(t,e," ")})),e.textContent!==t&&(_(o.removed,{element:e.cloneNode()}),e.textContent=t)),Kt(xe.afterSanitizeElements,e,null),!1)},Zt=function(e,t,n){if($e[t])return!1;if(ct&&("id"===t||"name"===t)&&(n in a||n in Lt))return!1;var r=We[t]||Ke.attributeCheck instanceof Function&&Ke.attributeCheck(t,e);if(Ze&&!$e[t]&&F(Pe,t));else if(Ve&&F(ze,t));else if(!r||$e[t]){if(!(Qt(e)&&(qe.tagNameCheck instanceof RegExp&&F(qe.tagNameCheck,e)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(e))&&(qe.attributeNameCheck instanceof RegExp&&F(qe.attributeNameCheck,t)||qe.attributeNameCheck instanceof Function&&qe.attributeNameCheck(t,e))||"is"===t&&qe.allowCustomizedBuiltInElements&&(qe.tagNameCheck instanceof RegExp&&F(qe.tagNameCheck,n)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(n))))return!1}else if(Tt[t]);else if(F(je,I(n,Fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!yt[e])if(Je&&!F(Ue,I(n,Fe,"")));else if(n)return!1;return!0},Jt=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Qt=function(e){return!Jt[w(e)]&&F(He,e)},en=function(e){Kt(xe.beforeSanitizeAttributes,e,null);var t=e.attributes;if(t&&!qt(e)){for(var n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:We,forceKeepAttr:void 0},a=t.length,i=function(){var i=t[a],l=i.name,c=i.namespaceURI,u=i.value,s=xt(l),f=u,p="value"===l?f:x(f);if(n.attrName=s,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Kt(xe.uponSanitizeAttribute,e,n),p=n.attrValue,!ut||"id"!==s&&"name"!==s||0===C(p,st)||(jt(l,e),p=st+p),tt&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p))return jt(l,e),0;if("attributename"===s&&R(p,"href"))return jt(l,e),0;if(n.forceKeepAttr)return 0;if(!n.keepAttr)return jt(l,e),0;if(!Qe&&F(/\/>/i,p))return jt(l,e),0;et&&S([ke,Le,Me],(function(e){p=I(p,e," ")}));var d=xt(e.nodeName);if(!Zt(d,s,p))return jt(l,e),0;if(m&&"object"===r(g)&&"function"==typeof g.getAttributeType)if(c);else switch(g.getAttributeType(d,s)){case"TrustedHTML":p=Ne(p);break;case"TrustedScriptURL":p=function(e){_e(),Ee++;try{return m.createScriptURL(e)}finally{Ee--}}(p)}if(p!==f)try{c?e.setAttributeNS(c,l,p):e.setAttribute(l,p),qt(e)?Ft(e):E(o.removed)}catch(t){jt(l,e)}};a--;)i();Kt(xe.afterSanitizeAttributes,e,null)}},tn=function(e){var t=null,n=Wt(e);for(Kt(xe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Kt(xe.uponSanitizeShadowNode,t,null),Vt(t),en(t),Xt(t.content)&&tn(t.content),1===(ge?ge(t):t.nodeType)){var r=he?he(t):t.shadowRoot;Xt(r)&&(nn(r),tn(r))}Kt(xe.afterSanitizeShadowDOM,e,null)},nn=function(e){for(var t=[{node:e,shadow:null}];t.length>0;){var n=t.pop();if(n.shadow)tn(n.shadow);else{var r=n.node,o=1===(ge?ge(r):r.nodeType),a=G?G(r):r.childNodes;if(a)for(var i=a.length-1;i>=0;--i)t.push({node:a[i],shadow:null});if(o){var l=Te?Te(r):null;if("string"==typeof l&&"template"===xt(l)){var c=r.content;Xt(c)&&t.push({node:c,shadow:null})}}if(o){var u=he?he(r):r.shadowRoot;Xt(u)&&t.push({node:null,shadow:u},{node:u,shadow:null})}}}};return o.sanitize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,l=null,c=null;if((_t=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!$t(e)&&"string"!=typeof(e=function(e){switch(r(e)){case"string":return e;case"number":return k(e);case"boolean":return L(e);case"bigint":return M?M(e):"0";case"symbol":return P?P(e):"Symbol()";case"undefined":default:return U(e);case"function":case"object":if(null===e)return U(e);var t=e,n=Y(t,"toString");if("function"==typeof n){var o=n(t);return"string"==typeof o?o:U(o)}return U(e)}}(e)))throw H("dirty is not a string, aborting");if(!o.isSupported)return e;rt||Pt(t),o.removed=[];var u=pt&&"string"!=typeof e&&$t(e);if(u){var s=Te?Te(e):e.nodeName;if("string"==typeof s){var f=xt(s);if(!Be[f]||Xe[f])throw H("root node is forbidden and cannot be sanitized in-place")}if(qt(e))throw H("root node is clobbered and cannot be sanitized in-place");try{nn(e)}catch(t){throw Ht(e),t}}else if($t(e))1===(a=(n=Gt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),nn(a);else{if(!at&&!et&&!nt&&-1===e.indexOf("<"))return m&&lt?Ne(e):e;if(!(n=Gt(e)))return at?null:lt?Se:""}n&&ot&&Ft(n.firstChild);var p=Wt(u?e:n);try{for(;l=p.nextNode();)Vt(l),en(l),Xt(l.content)&&tn(l.content)}catch(t){throw u&&Ht(e),t}if(u)return S(o.removed,(function(e){e.element&&function(e){for(var t=[e];t.length>0;){var n=t.pop();1===(ge?ge(n):n.nodeType)&&Bt(n);var r=G?G(n):n.childNodes;if(r)for(var o=r.length-1;o>=0;--o)t.push(r[o])}}(e.element)})),et&&Yt(e),e;if(at){if(et&&Yt(n),it)for(c=Re.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(We.shadowroot||We.shadowrootmode)&&(c=Ce.call(i,c,!0)),c}var d=nt?n.outerHTML:n.innerHTML;return nt&&Be["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&F(fe,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),et&&S([ke,Le,Me],(function(e){d=I(d,e," ")})),m&&lt?Ne(d):d},o.setConfig=function(){Pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),rt=!0},o.clearConfig=function(){kt=null,rt=!1,m=ve,Se=""},o.isValidAttribute=function(e,t,n){kt||Pt({});var r=xt(e),o=xt(t);return Zt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&_(xe[e],t)},o.removeHook=function(e,t){if(void 0!==t){var n=A(xe[e],t);return-1===n?void 0:N(xe[e],n,1)[0]}return E(xe[e])},o.removeHooks=function(e){xe[e]=[]},o.removeAllHooks=function(){xe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}(),he=t.W;export{he as DOMPurify};