"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/purify.min.js" between
DOMPurify-3.0.1.tar.gz and DOMPurify-3.0.2.tar.gz

About: DOMPurify is a DOM-only XSS sanitizer for HTML, MathML and SVG (written in JavaScript).

purify.min.js  (DOMPurify-3.0.1):purify.min.js  (DOMPurify-3.0.2)
/*! @license DOMPurify 3.0.1 | (c) Cure53 and other contributors | Released unde /*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released unde
r the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMP r the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMP
urify/blob/3.0.1/LICENSE */ urify/blob/3.0.2/LICENSE */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.expor !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.expor
ts=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof gl ts=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof gl
obalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";functi obalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";const{
on e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?fun entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:
ction(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.con r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"
structor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){ !=typeof Reflect&&Reflect;c||(c=function(e,t,n){return e.apply(t,n)}),i||(i=func
return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}fun tion(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t){return new e
ction n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect (...t)});const m=N(Array.prototype.forEach),u=N(Array.prototype.pop),p=N(Array.p
.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean rototype.push),f=N(String.prototype.toLowerCase),d=N(String.prototype.toString),
.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e h=N(String.prototype.match),g=N(String.prototype.replace),y=N(String.prototype.i
){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var ndexOf),T=N(String.prototype.trim),E=N(RegExp.prototype.test),A=(b=TypeError,fun
o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r. ction(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];
prototype),a},r.apply(null,arguments)}function o(e,t){return function(e){if(Arra return s(b,t)});var b;function N(e){return function(t){for(var n=arguments.lengt
y.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof h,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}functi
Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0, on _(e,o,r){r=r||f,t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"
l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!= ==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function w
=t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{i (t){const n=l(null);for(const[o,r]of e(t))n[o]=r;return n}function R(e,t){for(;n
f(l)throw o}}return a}(e,t)||i(e,t)||function(){throw new TypeError("Invalid att ull!==e;){const n=r(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.
empt to destructure non-iterable instance.\nIn order to be iterable, non-array o value)return N(n.value)}e=o(e)}return function(e){return console.warn("fallback
bjects must have a [Symbol.iterator]() method.")}()}function a(e){return functio value for",e),null}}const S=i(["a","abbr","acronym","address","area","article","
n(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Sym aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","
bol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i canvas","caption","center","cite","code","col","colgroup","content","data","data
(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable inst list","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","ele
ance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]( ment","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3
) method.")}()}function i(e,t){if(e){if("string"==typeof e)return l(e,t);var n=O ","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","k
bject.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&& bd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter
(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?: ","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress",
Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(nu "q","rp","rt","ruby","s","samp","section","select","shadow","small","source","sp
ll==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];re acer","span","strike","strong","style","sub","summary","sup","table","tbody","td
turn r}var c=Object.entries,u=Object.setPrototypeOf,s=Object.isFrozen,f=Object.g ","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","
etPrototypeOf,m=Object.getOwnPropertyDescriptor,p=Object.freeze,d=Object.seal,h= var","video","wbr"]),x=i(["svg","a","altglyph","altglyphdef","altglyphitem","ani
Object.create,y="undefined"!=typeof Reflect&&Reflect,g=y.apply,b=y.construct;g|| matecolor","animatemotion","animatetransform","circle","clippath","defs","desc",
(g=function(e,t,n){return e.apply(t,n)}),p||(p=function(e){return e}),d||(d=func "ellipse","filter","font","g","glyph","glyphref","hkern","image","line","linearg
tion(e){return e}),b||(b=function(e,t){return r(e,a(t))});var v,T=R(Array.protot radient","marker","mask","metadata","mpath","path","pattern","polygon","polyline
ype.forEach),N=R(Array.prototype.pop),A=R(Array.prototype.push),E=R(String.proto ","radialgradient","rect","stop","style","switch","symbol","text","textpath","ti
type.toLowerCase),w=R(String.prototype.toString),S=R(String.prototype.match),_=R tle","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponent
(String.prototype.replace),x=R(String.prototype.indexOf),k=R(String.prototype.tr Transfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMa
im),O=R(RegExp.prototype.test),D=(v=TypeError,function(){for(var e=arguments.len p","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussia
gth,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(v,t)});function R(e){r nBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight
eturn function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++) ","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=i(["animate","c
r[o-1]=arguments[o];return g(e,t,r)}}function C(e,t,n){n=n||E,u&&u(e,null);for(v olor-profile","cursor","discard","fedropshadow","font-face","font-face-format","
ar r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(s(t)||( font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpa
t[r]=a),o=a)}e[o]=!0}return e}function L(e){var t,n=h(null),r=function(e,t){var th","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","
n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Arra solidcolor","unknown","use"]),v=i(["math","menclose","merror","mfenced","mfrac",
y.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=func "mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom
tion(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r ","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable"
++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterat ,"mtd","mtext","mtr","munder","munderover","mprescripts"]),C=i(["maction","malig
e non-iterable instance.\nIn order to be iterable, non-array objects must have a ngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline
[Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)}, ","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=i([
n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:functio "#text"]),O=i(["accept","action","align","alt","autocapitalize","autocomplete","
n(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}(c(e));try{for(r.s autopictureinpicture","autoplay","background","bgcolor","border","capture","cell
();!(t=r.n()).done;){var a=o(t.value,2),l=a[0],u=a[1];n[l]=u}}catch(e){r.e(e)}fi padding","cellspacing","checked","cite","class","clear","color","cols","colspan"
nally{r.f()}return n}function M(e,t){for(;null!==e;){var n=m(e,t);if(n){if(n.get ,"controls","controlslist","coords","crossorigin","datetime","decoding","default
)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=f(e)}return f ","dir","disabled","disablepictureinpicture","disableremoteplayback","download",
unction(e){return console.warn("fallback value for",e),null}}var I=p(["a","abbr" "draggable","enctype","enterkeyhint","face","for","headers","height","hidden","h
,"acronym","address","area","article","aside","audio","b","bdi","bdo","big","bli igh","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang
nk","blockquote","body","br","button","canvas","caption","center","cite","code", ","list","loading","loop","low","max","maxlength","media","method","min","minlen
"col","colgroup","content","data","datalist","dd","decorator","del","details","d gth","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","o
fn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figur ptimum","pattern","placeholder","playsinline","poster","preload","pubdate","radi
e","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup" ogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","sp
,"hr","html","i","img","input","ins","kbd","label","legend","li","main","map","m ellcheck","scope","selected","shape","size","sizes","span","srclang","start","sr
ark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option"," c","srcset","step","style","summary","tabindex","title","translate","type","usem
output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section" ap","valign","value","width","xmlns","slot"]),M=i(["accent-height","accumulate",
,"select","shadow","small","source","spacer","span","strike","strong","style","s "additive","alignment-baseline","ascent","attributename","attributetype","azimut
ub","summary","sup","table","tbody","td","template","textarea","tfoot","th","the h","basefrequency","baseline-shift","begin","bias","by","class","clip","clippath
ad","time","tr","track","tt","u","ul","var","video","wbr"]),U=p(["svg","a","altg units","clip-path","clip-rule","color","color-interpolation","color-interpolatio
lyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransf n-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffusecon
orm","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","gl stant","direction","display","divisor","dur","edgemode","elevation","end","fill"
yphref","hkern","image","line","lineargradient","marker","mask","metadata","mpat ,"fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity"
h","path","pattern","polygon","polyline","radialgradient","rect","stop","style", ,"font-family","font-size","font-size-adjust","font-stretch","font-style","font-
"switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=p( variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunit
["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix s","gradienttransform","height","href","id","image-rendering","in","in2","k","k1
","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA"," ","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadj
feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode", ust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local"
"feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feT ,"marker-end","marker-mid","marker-start","markerheight","markerunits","markerwi
ile","feTurbulence"]),z=p(["animate","color-profile","cursor","discard","fedrops dth","maskcontentunits","maskunits","max","mask","media","method","mode","min","
hadow","font-face","font-face-format","font-face-name","font-face-src","font-fac name","numoctaves","offset","operator","opacity","order","orient","orientation",
e-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","me "origin","overflow","paint-order","path","pathlength","patterncontentunits","pat
shrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=p(["math" terntransform","patternunits","points","preservealpha","preserveaspectratio","pr
,"menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts imitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","re
","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","m start","result","rotate","scale","seed","shape-rendering","specularconstant","sp
style","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover ecularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-
"]),j=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry"," color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","s
msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mp troke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","st
rescripts","none"]),P=p(["#text"]),B=p(["accept","action","align","alt","autocap yle","surfacescale","systemlanguage","tabindex","targetx","targety","transform",
italize","autocomplete","autopictureinpicture","autoplay","background","bgcolor" "transform-origin","text-anchor","text-decoration","text-rendering","textlength"
,"border","capture","cellpadding","cellspacing","checked","cite","class","clear" ,"type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-
,"color","cols","colspan","controls","controlslist","coords","crossorigin","date y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode",
time","decoding","default","dir","disabled","disablepictureinpicture","disablere "xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","z
moteplayback","download","draggable","enctype","enterkeyhint","face","for","head oomandpan"]),I=i(["accent","accentunder","align","bevelled","close","columnsalig
ers","height","hidden","high","href","hreflang","id","inputmode","integrity","is n","columnlines","columnspan","denomalign","depth","dir","display","displaystyle
map","kind","label","lang","list","loading","loop","low","max","maxlength","medi ","encoding","fence","frame","height","href","id","largeop","length","linethickn
a","method","min","minlength","multiple","muted","name","nonce","noshade","noval ess","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","ma
idate","nowrap","open","optimum","pattern","placeholder","playsinline","poster", xsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlin
"preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","r es","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scri
ole","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","sp ptsizemultiplier","selection","separator","separators","stretchy","subscriptshif
an","srclang","start","src","srcset","step","style","summary","tabindex","title" t","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","x
,"translate","type","usemap","valign","value","width","xmlns","slot"]),G=p(["acc ml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm
ent-height","accumulate","additive","alignment-baseline","ascent","attributename ),P=a(/<%[\w\W]*|[\w\W]*%>/gm),H=a(/\${[\w\W]*}/gm),z=a(/^data-[\-\w.\u00B7-\uFF
","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by" FF]/),B=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|x
,"class","clip","clippathunits","clip-path","clip-rule","color","color-interpola mpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),j=a(/[
tion","color-interpolation-filters","color-profile","color-rendering","cx","cy", \u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i);var
"d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode" X=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:H,DATA_AT
,"elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flo TR:z,ARIA_ATTR:B,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:j,DOCTYPE_
od-color","flood-opacity","font-family","font-size","font-size-adjust","font-str NAME:q});const Y=()=>"undefined"==typeof window?null:window,K=function(e,t){if("
etch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name" object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;cons
,"glyphref","gradientunits","gradienttransform","height","href","id","image-rend t o="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(o)&&(n
ering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","ke =t.currentScript.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.
ytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength" createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.w
,"lighting-color","local","marker-end","marker-mid","marker-start","markerheight arn("TrustedTypes policy "+r+" could not be created."),null}};var V=function t()
","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media {let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const o=e=>t(e
","method","mode","min","name","numoctaves","offset","operator","opacity","order );if(o.version="3.0.2",o.removed=[],!n||!n.document||9!==n.document.nodeType)ret
","orient","orientation","origin","overflow","paint-order","path","pathlength"," urn o.isSupported=!1,o;const r=n.document;let{document:a}=n;const{DocumentFragme
patterncontentunits","patterntransform","patternunits","points","preservealpha", nt:l,HTMLTemplateElement:c,Node:s,Element:b,NodeFilter:N,NamedNodeMap:F=n.NamedN
"preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","rep odeMap||n.MozNamedAttrMap,HTMLFormElement:P,DOMParser:H,trustedTypes:z}=n,B=b.pr
eatcount","repeatdur","restart","result","rotate","scale","seed","shape-renderin ototype,G=R(B,"cloneNode"),j=R(B,"nextSibling"),V=R(B,"childNodes"),$=R(B,"paren
g","specularconstant","specularexponent","spreadmethod","startoffset","stddeviat tNode");if("function"==typeof c){const e=a.createElement("template");e.content&&
ion","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashof e.content.ownerDocument&&(a=e.content.ownerDocument)}const Z=K(z,r),J=Z?Z.create
fset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","s HTML(""):"",{implementation:Q,createNodeIterator:ee,createDocumentFragment:te,ge
troke","stroke-width","style","surfacescale","systemlanguage","tabindex","target tElementsByTagName:ne}=a,{importNode:oe}=r;let re={};o.isSupported="function"==t
x","targety","transform","transform-origin","text-anchor","text-decoration","tex ypeof e&&"function"==typeof $&&Q&&void 0!==Q.createHTMLDocument;const{MUSTACHE_E
t-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibil XPR:ie,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:me
ity","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacin ,ATTR_WHITESPACE:ue}=X;let{IS_ALLOWED_URI:pe}=X,fe=null;const de=_({},[...S,...x
g","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xm ,...D,...v,...L]);let he=null;const ge=_({},[...O,...M,...I,...U]);let ye=Object
lns","y","y1","y2","z","zoomandpan"]),W=p(["accent","accentunder","align","bevel .seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!
led","close","columnsalign","columnlines","columnspan","denomalign","depth","dir 0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,valu
","display","displaystyle","encoding","fence","frame","height","href","id","larg e:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!
eop","length","linethickness","lspace","lquote","mathbackground","mathcolor","ma 0,value:!1}})),Te=null,Ee=null,Ae=!0,be=!0,Ne=!1,_e=!0,we=!1,Re=!1,Se=!1,xe=!1,D
thsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign", e=!1,ke=!1,ve=!1,Ce=!0,Le=!1;const Oe="user-content-";let Me=!0,Ie=!1,Ue={},Fe=n
"open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlev ull;const Pe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","h
el","scriptminsize","scriptsizemultiplier","selection","separator","separators", ead","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript"
"stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmln ,"plaintext","script","style","svg","template","thead","title","video","xmp"]);l
s"]),q=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=d(/\ et He=null;const ze=_({},["audio","video","img","source","image","track"]);let B
{\{[\w\W]*|[\w\W]*\}\}/gm),$=d(/<%[\w\W]*|[\w\W]*%>/gm),K=d(/\${[\w\W]*}/gm),V=d e=null;const We=_({},["alt","class","for","id","label","name","pattern","placeho
(/^data-[\-\w.\u00B7-\uFFFF]/),X=d(/^aria-[\-\w]+$/),Z=d(/^(?:(?:(?:f|ht)tps?|ma lder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1
ilto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=d(/^(?:\w+sc 998/Math/MathML",je="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtm
ript|data):/i),Q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g l";let Xe=qe,Ye=!1,Ke=null;const Ve=_({},[Ge,je,qe],d);let $e;const Ze=["applica
),ee=d(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne tion/xhtml+xml","text/html"],Je="text/html";let Qe,et=null;const tt=a.createElem
=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null ent("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},ot
;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttrib =function(e){et&&et===e||(e&&"object"==typeof e||(e={}),e=w(e),$e=$e=-1===Ze.ind
ute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{r exOf(e.PARSER_MEDIA_TYPE)?Je:e.PARSER_MEDIA_TYPE,Qe="application/xhtml+xml"===$e
eturn t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:functio ?d:f,fe="ALLOWED_TAGS"in e?_({},e.ALLOWED_TAGS,Qe):de,he="ALLOWED_ATTR"in e?_({}
n(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could n ,e.ALLOWED_ATTR,Qe):ge,Ke="ALLOWED_NAMESPACES"in e?_({},e.ALLOWED_NAMESPACES,d):
ot be created."),null}};var re=function t(){var n=arguments.length>0&&void 0!==a Ve,Be="ADD_URI_SAFE_ATTR"in e?_(w(We),e.ADD_URI_SAFE_ATTR,Qe):We,He="ADD_DATA_UR
rguments[0]?arguments[0]:te(),r=function(e){return t(e)};if(r.version="3.0.1",r. I_TAGS"in e?_(w(ze),e.ADD_DATA_URI_TAGS,Qe):ze,Fe="FORBID_CONTENTS"in e?_({},e.F
removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;va ORBID_CONTENTS,Qe):Pe,Te="FORBID_TAGS"in e?_({},e.FORBID_TAGS,Qe):{},Ee="FORBID_
r o=n.document,i=n.document,l=n.DocumentFragment,u=n.HTMLTemplateElement,s=n.Nod ATTR"in e?_({},e.FORBID_ATTR,Qe):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ae=!1!
e,f=n.Element,m=n.NodeFilter,d=n.NamedNodeMap,h=void 0===d?n.NamedNodeMap||n.Moz ==e.ALLOW_ARIA_ATTR,be=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_
NamedAttrMap:d,y=n.HTMLFormElement,g=n.DOMParser,b=n.trustedTypes,v=f.prototype, e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,we=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMEN
R=M(v,"cloneNode"),re=M(v,"nextSibling"),oe=M(v,"childNodes"),ae=M(v,"parentNode T||!1,De=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,ve=e.RETURN_TRUSTED_TYPE|
");if("function"==typeof u){var ie=i.createElement("template");ie.content&&ie.co |!1,xe=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,Le=e.SANITIZE_NAMED_PROPS||!1,Me=
ntent.ownerDocument&&(i=ie.content.ownerDocument)}var le=ne(b,o),ce=le?le.create !1!==e.KEEP_CONTENT,Ie=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||W,Xe=e.NAMESPACE|
HTML(""):"",ue=i,se=ue.implementation,fe=ue.createNodeIterator,me=ue.createDocum |qe,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEM
entFragment,pe=ue.getElementsByTagName,de=o.importNode,he={};r.isSupported="func ENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCh
tion"==typeof c&&"function"==typeof ae&&se&&void 0!==se.createHTMLDocument;var y eck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)
e,ge,be=Y,ve=$,Te=K,Ne=V,Ae=X,Ee=J,we=Q,Se=Z,_e=null,xe=C({},[].concat(a(I),a(U) &&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_
,a(F),a(H),a(P))),ke=null,Oe=C({},[].concat(a(B),a(G),a(W),a(q))),De=Object.seal ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBui
(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,val ltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allow
ue:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:nul CustomizedBuiltInElements),we&&(be=!1),ke&&(De=!0),Ue&&(fe=_({},[...L]),he=[],!0
l},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,val ===Ue.html&&(_(fe,S),_(he,O)),!0===Ue.svg&&(_(fe,x),_(he,M),_(he,U)),!0===Ue.svg
ue:!1}})),Re=null,Ce=null,Le=!0,Me=!0,Ie=!1,Ue=!0,Fe=!1,ze=!1,He=!1,je=!1,Pe=!1, Filters&&(_(fe,D),_(he,M),_(he,U)),!0===Ue.mathMl&&(_(fe,v),_(he,I),_(he,U))),e.
Be=!1,Ge=!1,We=!0,qe=!1,Ye="user-content-",$e=!0,Ke=!1,Ve={},Xe=null,Ze=C({},["a ADD_TAGS&&(fe===de&&(fe=w(fe)),_(fe,e.ADD_TAGS,Qe)),e.ADD_ATTR&&(he===ge&&(he=w(
nnotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math", he)),_(he,e.ADD_ATTR,Qe)),e.ADD_URI_SAFE_ATTR&&_(Be,e.ADD_URI_SAFE_ATTR,Qe),e.FO
"mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script" RBID_CONTENTS&&(Fe===Pe&&(Fe=w(Fe)),_(Fe,e.FORBID_CONTENTS,Qe)),Me&&(fe["#text"]
,"style","svg","template","thead","title","video","xmp"]),Je=null,Qe=C({},["audi =!0),Re&&_(fe,["html","head","body"]),fe.table&&(_(fe,["tbody"]),delete Te.tbody
o","video","img","source","image","track"]),et=null,tt=C({},["alt","class","for" ),i&&i(e),et=e)},rt=_({},["mi","mo","mn","ms","mtext"]),it=_({},["foreignobject"
,"id","label","name","pattern","placeholder","role","summary","title","value","s ,"desc","title","annotation-xml"]),at=_({},["title","style","font","a","script"]
tyle","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/20 ),lt=_({},x);_(lt,D),_(lt,k);const ct=_({},v);_(ct,C);const st=function(e){let t
00/svg",ot="http://www.w3.org/1999/xhtml",at=ot,it=!1,lt=null,ct=C({},[nt,rt,ot] =$(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=f(e.tagName
,w),ut=["application/xhtml+xml","text/html"],st="text/html",ft=null,mt=i.createE ),o=f(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI
lement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function} ===qe?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===o||rt[o]):Boo
,dt=function(t){ft&&ft===t||(t&&"object"===e(t)||(t={}),t=L(t),ye=ye=-1===ut.ind lean(lt[n]):e.namespaceURI===Ge?t.namespaceURI===qe?"math"===n:t.namespaceURI===
exOf(t.PARSER_MEDIA_TYPE)?st:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===ye je?"math"===n&&it[o]:Boolean(ct[n]):e.namespaceURI===qe?!(t.namespaceURI===je&&!
?w:E,_e="ALLOWED_TAGS"in t?C({},t.ALLOWED_TAGS,ge):xe,ke="ALLOWED_ATTR"in t?C({} it[o])&&(!(t.namespaceURI===Ge&&!rt[o])&&(!ct[n]&&(at[n]||!lt[n]))):!("applicati
,t.ALLOWED_ATTR,ge):Oe,lt="ALLOWED_NAMESPACES"in t?C({},t.ALLOWED_NAMESPACES,w): on/xhtml+xml"!==$e||!Ke[e.namespaceURI]))},mt=function(e){p(o.removed,{element:e
ct,et="ADD_URI_SAFE_ATTR"in t?C(L(tt),t.ADD_URI_SAFE_ATTR,ge):tt,Je="ADD_DATA_UR });try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ut=function(e,t){try{p(
I_TAGS"in t?C(L(Qe),t.ADD_DATA_URI_TAGS,ge):Qe,Xe="FORBID_CONTENTS"in t?C({},t.F o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attrib
ORBID_CONTENTS,ge):Ze,Re="FORBID_TAGS"in t?C({},t.FORBID_TAGS,ge):{},Ce="FORBID_ ute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!he[e])if(De||ke)try{mt(t)}c
ATTR"in t?C({},t.FORBID_ATTR,ge):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1! atch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){let t,n;if(xe)
==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,U e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/x
e=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,ze=t.WHOLE_DOCUMEN html+xml"===$e&&Xe===qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></
T||!1,Pe=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Ge=t.RETURN_TRUSTED_TYPE| head><body>'+e+"</body></html>");const o=Z?Z.createHTML(e):e;if(Xe===qe)try{t=(n
|!1,je=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,qe=t.SANITIZE_NAMED_PROPS||!1,$e= ew H).parseFromString(o,$e)}catch(e){}if(!t||!t.documentElement){t=Q.createDocum
!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,at=t.NAMESPACE ent(Xe,"template",null);try{t.documentElement.innerHTML=Ye?J:o}catch(e){}}const
||ot,De=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELE r=t.body||t.documentElement;return e&&n&&r.insertBefore(a.createTextNode(n),r.ch
MENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameC ildNodes[0]||null),Xe===qe?ne.call(t,Re?"html":"body")[0]:Re?t.documentElement:r
heck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck },ft=function(e){return ee.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMME
)&&(De.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM NT|N.SHOW_TEXT,null,!1)},dt=function(e){return e instanceof P&&("string"!=typeof
_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBu e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!
iltInElements&&(De.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allo (e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=t
wCustomizedBuiltInElements),Fe&&(Me=!1),Be&&(Pe=!0),Ve&&(_e=C({},a(P)),ke=[],!0= ypeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.inse
==Ve.html&&(C(_e,I),C(ke,B)),!0===Ve.svg&&(C(_e,U),C(ke,G),C(ke,q)),!0===Ve.svgF rtBefore||"function"!=typeof e.hasChildNodes)},ht=function(e){return"object"==ty
ilters&&(C(_e,F),C(ke,G),C(ke,q)),!0===Ve.mathMl&&(C(_e,H),C(ke,W),C(ke,q))),t.A peof s?e instanceof s:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"strin
DD_TAGS&&(_e===xe&&(_e=L(_e)),C(_e,t.ADD_TAGS,ge)),t.ADD_ATTR&&(ke===Oe&&(ke=L(k g"==typeof e.nodeName},gt=function(e,t,n){re[e]&&m(re[e],(e=>{e.call(o,t,n,et)})
e)),C(ke,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&C(et,t.ADD_URI_SAFE_ATTR,ge),t.FOR )},yt=function(e){let t;if(gt("beforeSanitizeElements",e,null),dt(e))return mt(e
BID_CONTENTS&&(Xe===Ze&&(Xe=L(Xe)),C(Xe,t.FORBID_CONTENTS,ge)),$e&&(_e["#text"]= ),!0;const n=Qe(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:n,allowedTags
!0),ze&&C(_e,["html","head","body"]),_e.table&&(C(_e,["tbody"]),delete Re.tbody) :fe}),e.hasChildNodes()&&!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.conten
,p&&p(t),ft=t)},ht=C({},["mi","mo","mn","ms","mtext"]),yt=C({},["foreignobject", t.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))retu
"desc","title","annotation-xml"]),gt=C({},["title","style","font","a","script"]) rn mt(e),!0;if(!fe[n]||Te[n]){if(!Te[n]&&Et(n)){if(ye.tagNameCheck instanceof Re
,bt=C({},U);C(bt,F),C(bt,z);var vt=C({},H);C(vt,j);var Tt=function(e){var t=ae(e gExp&&E(ye.tagNameCheck,n))return!1;if(ye.tagNameCheck instanceof Function&&ye.t
);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var n=E(e.tagName),r=E( agNameCheck(n))return!1}if(Me&&!Fe[n]){const t=$(e)||e.parentNode,n=V(e)||e.chil
t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot? dNodes;if(n&&t){for(let o=n.length-1;o>=0;--o)t.insertBefore(G(n[o],!0),j(e))}}r
"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||ht[r]):Boolean(b eturn mt(e),!0}return e instanceof b&&!st(e)?(mt(e),!0):"noscript"!==n&&"noembed
t[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"ma "!==n||!E(/<\/no(script|embed)/i,e.innerHTML)?(we&&3===e.nodeType&&(t=e.textCont
th"===n&&yt[r]:Boolean(vt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!yt[r]) ent,t=g(t,ie," "),t=g(t,ae," "),t=g(t,le," "),e.textContent!==t&&(p(o.removed,{e
&&(!(t.namespaceURI===nt&&!ht[r])&&(!vt[n]&&(gt[n]||!bt[n]))):!("application/xht lement:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):
ml+xml"!==ye||!lt[e.namespaceURI]))},Nt=function(e){A(r.removed,{element:e});try (mt(e),!0)},Tt=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in a||n in tt))
{e.parentNode.removeChild(e)}catch(t){e.remove()}},At=function(e,t){try{A(r.remo return!1;if(be&&!Ee[t]&&E(ce,t));else if(Ae&&E(se,t));else if(!he[t]||Ee[t]){if(
ved,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(r.removed,{attribute:nu !(Et(e)&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,e)||ye.tagNameChe
ll,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Pe||Be)try{Nt(t)}catch(e ck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof R
){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,n;if(je)e="<re egExp&&E(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye
move></remove>"+e;else{var r=S(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml .attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNam
"===ye&&at===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><bo eCheck instanceof RegExp&&E(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Funct
dy>'+e+"</body></html>");var o=le?le.createHTML(e):e;if(at===ot)try{t=(new g).pa ion&&ye.tagNameCheck(n))))return!1}else if(Be[t]);else if(E(pe,g(n,ue,"")));else
rseFromString(o,ye)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(at, if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!He
"template",null);try{t.documentElement.innerHTML=it?ce:o}catch(e){}}var a=t.body [e]){if(Ne&&!E(me,g(n,ue,"")));else if(n)return!1}else;return!0},Et=function(e){
||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes return e.indexOf("-")>0},At=function(e){let t,n,r,i;gt("beforeSanitizeAttributes
[0]||null),at===ot?pe.call(t,ze?"html":"body")[0]:ze?t.documentElement:a},wt=fun ",e,null);const{attributes:a}=e;if(!a)return;const l={attrName:"",attrValue:"",k
ction(e){return fe.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHO eepAttr:!0,allowedAttributes:he};for(i=a.length;i--;){t=a[i];const{name:c,namesp
W_TEXT,null,!1)},St=function(e){return e instanceof y&&("string"!=typeof e.nodeN aceURI:s}=t;if(n="value"===c?t.value:T(t.value),r=Qe(c),l.attrName=r,l.attrValue
ame||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attri =n,l.keepAttr=!0,l.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,l),n=l.attr
butes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e. Value,l.forceKeepAttr)continue;if(ut(c,e),!l.keepAttr)continue;if(!_e&&E(/\/>/i,
setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore n)){ut(c,e);continue}we&&(n=g(n,ie," "),n=g(n,ae," "),n=g(n,le," "));const m=Qe(
||"function"!=typeof e.hasChildNodes)},_t=function(t){return"object"===e(s)?t in e.nodeName);if(Tt(m,r,n)){if(!Le||"id"!==r&&"name"!==r||(ut(c,e),n=Oe+n),Z&&"obj
stanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.n ect"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAtt
odeName},xt=function(e,t,n){he[e]&&T(he[e],(function(e){e.call(r,t,n,ft)}))},kt= ributeType(m,r)){case"TrustedHTML":n=Z.createHTML(n);break;case"TrustedScriptURL
function(e){var t;if(xt("beforeSanitizeElements",e,null),St(e))return Nt(e),!0;v ":n=Z.createScriptURL(n)}try{s?e.setAttributeNS(s,c,n):e.setAttribute(c,n),u(o.r
ar n=ge(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:n,allowedTags:_e}),e. emoved)}catch(e){}}}gt("afterSanitizeAttributes",e,null)},bt=function e(t){let n
hasChildNodes()&&!_t(e.firstElementChild)&&(!_t(e.content)||!_t(e.content.firstE ;const o=ft(t);for(gt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)gt("upon
lementChild))&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return Nt(e) SanitizeShadowNode",n,null),yt(n)||(n.content instanceof l&&e(n.content),At(n));
,!0;if(!_e[n]||Re[n]){if(!Re[n]&&Dt(n)){if(De.tagNameCheck instanceof RegExp&&O( gt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t,n,i,a,c
De.tagNameCheck,n))return!1;if(De.tagNameCheck instanceof Function&&De.tagNameCh =arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ye=!e,Ye&&(e="\x3c
eck(n))return!1}if($e&&!Xe[n]){var o=ae(e)||e.parentNode,a=oe(e)||e.childNodes;i !--\x3e"),"string"!=typeof e&&!ht(e)){if("function"!=typeof e.toString)throw A("
f(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(R(a[i],!0),re(e))}return Nt( toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty
e),!0}return e instanceof f&&!Tt(e)?(Nt(e),!0):"noscript"!==n&&"noembed"!==n||!O is not a string, aborting")}if(!o.isSupported)return e;if(Se||ot(c),o.removed=[]
(/<\/no(script|embed)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=_(t ,"string"==typeof e&&(Ie=!1),Ie){if(e.nodeName){const t=Qe(e.nodeName);if(!fe[t]
,be," "),t=_(t,ve," "),t=_(t,Te," "),e.textContent!==t&&(A(r.removed,{element:e. ||Te[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else
cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(Nt(e),!0 if(e instanceof s)t=pt("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===
)},Ot=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in i||n in mt))return!1; n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{i
if(Me&&!Ce[t]&&O(Ne,t));else if(Le&&O(Ae,t));else if(!ke[t]||Ce[t]){if(!(Dt(e)&& f(!De&&!we&&!Re&&-1===e.indexOf("<"))return Z&&ve?Z.createHTML(e):e;if(t=pt(e),!
(De.tagNameCheck instanceof RegExp&&O(De.tagNameCheck,e)||De.tagNameCheck instan t)return De?null:ve?J:""}t&&xe&&mt(t.firstChild);const m=ft(Ie?e:t);for(;i=m.nex
ceof Function&&De.tagNameCheck(e))&&(De.attributeNameCheck instanceof RegExp&&O( tNode();)yt(i)||(i.content instanceof l&&bt(i.content),At(i));if(Ie)return e;if(
De.attributeNameCheck,t)||De.attributeNameCheck instanceof Function&&De.attribut De){if(ke)for(a=te.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChil
eNameCheck(t))||"is"===t&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck in d);else a=t;return(he.shadowroot||he.shadowrootmod)&&(a=oe.call(r,a,!0)),a}let u
stanceof RegExp&&O(De.tagNameCheck,n)||De.tagNameCheck instanceof Function&&De.t =Re?t.outerHTML:t.innerHTML;return Re&&fe["!doctype"]&&t.ownerDocument&&t.ownerD
agNameCheck(n))))return!1}else if(et[t]);else if(O(Se,_(n,we,"")));else if("src" ocument.doctype&&t.ownerDocument.doctype.name&&E(q,t.ownerDocument.doctype.name)
!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(n,"data:")||!Je[e]){if(I &&(u="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+u),we&&(u=g(u,ie," "),u=g(u
e&&!O(Ee,_(n,we,"")));else if(n)return!1}else;return!0},Dt=function(e){return e. ,ae," "),u=g(u,le," ")),Z&&ve?Z.createHTML(u):u},o.setConfig=function(e){ot(e),S
indexOf("-")>0},Rt=function(t){var n,o,a,i;xt("beforeSanitizeAttributes",t,null) e=!0},o.clearConfig=function(){et=null,Se=!1},o.isValidAttribute=function(e,t,n)
;var l=t.attributes;if(l){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAtt {et||ot({});const o=Qe(e),r=Qe(t);return Tt(o,r,n)},o.addHook=function(e,t){"fun
ributes:ke};for(i=l.length;i--;){var u=n=l[i],s=u.name,f=u.namespaceURI;if(o="va ction"==typeof t&&(re[e]=re[e]||[],p(re[e],t))},o.removeHook=function(e){if(re[e
lue"===s?n.value:k(n.value),a=ge(s),c.attrName=a,c.attrValue=o,c.keepAttr=!0,c.f ])return u(re[e])},o.removeHooks=function(e){re[e]&&(re[e]=[])},o.removeAllHooks
orceKeepAttr=void 0,xt("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAt =function(){re={}},o}();return V}));
tr&&(At(s,t),c.keepAttr))if(Ue||!O(/\/>/i,o)){Fe&&(o=_(o,be," "),o=_(o,ve," "),o
=_(o,Te," "));var m=ge(t.nodeName);if(Ot(m,a,o)){if(!qe||"id"!==a&&"name"!==a||(
At(s,t),o=Ye+o),le&&"object"===e(b)&&"function"==typeof b.getAttributeType)if(f)
;else switch(b.getAttributeType(m,a)){case"TrustedHTML":o=le.createHTML(o);break
;case"TrustedScriptURL":o=le.createScriptURL(o)}try{f?t.setAttributeNS(f,s,o):t.
setAttribute(s,o),N(r.removed)}catch(e){}}}else At(s,t)}xt("afterSanitizeAttribu
tes",t,null)}},Ct=function e(t){var n,r=wt(t);for(xt("beforeSanitizeShadowDOM",t
,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),kt(n)||(n.content ins
tanceof l&&e(n.content),Rt(n));xt("afterSanitizeShadowDOM",t,null)};return r.san
itize=function(e){var t,n,a,i,c=arguments.length>1&&void 0!==arguments[1]?argume
nts[1]:{};if((it=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function
"!=typeof e.toString)throw D("toString is not a function");if("string"!=typeof(e
=e.toString()))throw D("dirty is not a string, aborting")}if(!r.isSupported)retu
rn e;if(He||dt(c),r.removed=[],"string"==typeof e&&(Ke=!1),Ke){if(e.nodeName){va
r u=ge(e.nodeName);if(!_e[u]||Re[u])throw D("root node is forbidden and cannot b
e sanitized in-place")}}else if(e instanceof s)1===(n=(t=Et("\x3c!----\x3e")).ow
nerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName
?t=n:t.appendChild(n);else{if(!Pe&&!Fe&&!ze&&-1===e.indexOf("<"))return le&&Ge?l
e.createHTML(e):e;if(!(t=Et(e)))return Pe?null:Ge?ce:""}t&&je&&Nt(t.firstChild);
for(var f=wt(Ke?e:t);a=f.nextNode();)kt(a)||(a.content instanceof l&&Ct(a.conten
t),Rt(a));if(Ke)return e;if(Pe){if(Be)for(i=me.call(t.ownerDocument);t.firstChil
d;)i.appendChild(t.firstChild);else i=t;return(ke.shadowroot||ke.shadowrootmod)&
&(i=de.call(o,i,!0)),i}var m=ze?t.outerHTML:t.innerHTML;return ze&&_e["!doctype"
]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&O(ee,
t.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n
"+m),Fe&&(m=_(m,be," "),m=_(m,ve," "),m=_(m,Te," ")),le&&Ge?le.createHTML(m):m},
r.setConfig=function(e){dt(e),He=!0},r.clearConfig=function(){ft=null,He=!1},r.i
sValidAttribute=function(e,t,n){ft||dt({});var r=ge(e),o=ge(t);return Ot(r,o,n)}
,r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],A(he[e],t))},r.r
emoveHook=function(e){if(he[e])return N(he[e])},r.removeHooks=function(e){he[e]&
&(he[e]=[])},r.removeAllHooks=function(){he={}},r}();return re}));
//# sourceMappingURL=purify.min.js.map //# sourceMappingURL=purify.min.js.map
 End of changes. 1 change blocks. 
287 lines changed or deleted 256 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)