1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[709],{60709:(e,t,n)=>{function r(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}n.r(t),n.d(t,{default:()=>eu});let o=Object.entries,i=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,s=Object.seal,p=Object.create,f="u">typeof Reflect&&Reflect,m=f.apply,d=f.construct;u||(u=function(e){return e}),s||(s=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let h=M(Array.prototype.forEach),g=M(Array.prototype.lastIndexOf),y=M(Array.prototype.pop),T=M(Array.prototype.push),b=M(Array.prototype.splice),A=Array.isArray,_=M(String.prototype.toLowerCase),E=M(String.prototype.toString),S=M(String.prototype.match),N=M(String.prototype.replace),O=M(String.prototype.indexOf),D=M(String.prototype.trim),w=M(Number.prototype.toString),R=M(Boolean.prototype.toString),v="u"<typeof BigInt?null:M(BigInt.prototype.toString),I="u"<typeof Symbol?null:M(Symbol.prototype.toString),C=M(Object.prototype.hasOwnProperty),k=M(Object.prototype.toString),x=M(RegExp.prototype.test),L=(ec=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(ec,t)});function M(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return m(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(i&&i(e,null),!A(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){let e=n(o);e!==o&&(a(t)||(t[r]=e),o=e)}e[o]=!0}return e}function U(e){let t=p(null);for(let i of o(e)){var n=function(e){if(Array.isArray(e))return e}(i)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],l=!0,c=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(i)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,2):void 0}}(i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let o=n[0],a=n[1];C(e,o)&&(A(a)?t[o]=function(e){for(let t=0;t<e.length;t++)C(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=U(a):t[o]=a)}return t}function F(e,t){for(;null!==e;){let n=c(e,t);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}e=l(e)}return function(){return null}}let z=u(["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"]),H=u(["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"]),B=u(["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"]),G=u(["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"]),j=u(["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"]),W=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=u(["#text"]),q=u(["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"]),X=u(["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"]),$=u(["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"]),K=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=s(/{{[\w\W]*|^[\w\W]*}}/g),Z=s(/<%[\w\W]*|^[\w\W]*%>/g),J=s(/\${[\w\W]*/g),Q=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=s(/^aria-[\-\w]+$/),et=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=s(/^(?:\w+script|data):/i),er=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=s(/^html$/i),ei=s(/^[a-z][.\w]*(-[.\w]+)+$/i),ea=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},el=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var ec,eu=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=t=>e(t);if(i.version="3.4.9",i.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return i.isSupported=!1,i;let a=r.document,l=a,c=l.currentScript;r.DocumentFragment;let s=r.HTMLTemplateElement,f=r.Node,m=r.Element,d=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let M=r.DOMParser,ec=r.trustedTypes,eu=m.prototype,es=F(eu,"cloneNode"),ep=F(eu,"remove"),ef=F(eu,"nextSibling"),em=F(eu,"childNodes"),ed=F(eu,"parentNode"),eh=F(eu,"shadowRoot"),eg=F(eu,"attributes"),ey=f&&f.prototype?F(f.prototype,"nodeType"):null,eT=f&&f.prototype?F(f.prototype,"nodeName"):null;if("function"==typeof s){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eb="",eA=!1,e_=0,eE=function(){if(e_>0)throw L('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.')},eS=function(e){eE(),e_++;try{return t.createHTML(e)}finally{e_--}},eN=function(e){eE(),e_++;try{return t.createScriptURL(e)}finally{e_--}},eO=a,eD=eO.implementation,ew=eO.createNodeIterator,eR=eO.createDocumentFragment,ev=eO.getElementsByTagName,eI=l.importNode,eC=el();i.isSupported="function"==typeof o&&"function"==typeof ed&&eD&&void 0!==eD.createHTMLDocument;let ek=et,ex=null,eL=P({},[...z,...H,...B,...j,...Y]),eM=null,eP=P({},[...q,...X,...$,...K]),eU=Object.seal(p(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}})),eF=null,ez=null,eH=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eB=!0,eG=!0,ej=!1,eW=!0,eY=!1,eq=!0,eX=!1,e$=!1,eK=!1,eV=!1,eZ=!1,eJ=!1,eQ=!0,e0=!1,e1="user-content-",e2=!0,e9=!1,e3={},e8=null,e6=P({},["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"]),e7=null,e4=P({},["audio","video","img","source","image","track"]),e5=null,te=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",tn="http://www.w3.org/2000/svg",tr="http://www.w3.org/1999/xhtml",to=tr,ti=!1,ta=null,tl=P({},[tt,tn,tr],E),tc=P({},["mi","mo","mn","ms","mtext"]),tu=P({},["annotation-xml"]),ts=P({},["title","style","font","a","script"]),tp=null,tf=["application/xhtml+xml","text/html"],tm=null,td=null,th=a.createElement("form"),tg=function(e){return e instanceof RegExp||e instanceof Function},ty=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(td&&td===e)return;e&&"object"==typeof e||(e={}),e=U(e),tm="application/xhtml+xml"===(tp=-1===tf.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:_,ex=C(e,"ALLOWED_TAGS")&&A(e.ALLOWED_TAGS)?P({},e.ALLOWED_TAGS,tm):eL,eM=C(e,"ALLOWED_ATTR")&&A(e.ALLOWED_ATTR)?P({},e.ALLOWED_ATTR,tm):eP,ta=C(e,"ALLOWED_NAMESPACES")&&A(e.ALLOWED_NAMESPACES)?P({},e.ALLOWED_NAMESPACES,E):tl,e5=C(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)?P(U(te),e.ADD_URI_SAFE_ATTR,tm):te,e7=C(e,"ADD_DATA_URI_TAGS")&&A(e.ADD_DATA_URI_TAGS)?P(U(e4),e.ADD_DATA_URI_TAGS,tm):e4,e8=C(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)?P({},e.FORBID_CONTENTS,tm):e6,eF=C(e,"FORBID_TAGS")&&A(e.FORBID_TAGS)?P({},e.FORBID_TAGS,tm):U({}),ez=C(e,"FORBID_ATTR")&&A(e.FORBID_ATTR)?P({},e.FORBID_ATTR,tm):U({}),e3=!!C(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?U(e.USE_PROFILES):e.USE_PROFILES),eB=!1!==e.ALLOW_ARIA_ATTR,eG=!1!==e.ALLOW_DATA_ATTR,ej=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eW=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eY=e.SAFE_FOR_TEMPLATES||!1,eq=!1!==e.SAFE_FOR_XML,eX=e.WHOLE_DOCUMENT||!1,eV=e.RETURN_DOM||!1,eZ=e.RETURN_DOM_FRAGMENT||!1,eJ=e.RETURN_TRUSTED_TYPE||!1,eK=e.FORCE_BODY||!1,eQ=!1!==e.SANITIZE_DOM,e0=e.SANITIZE_NAMED_PROPS||!1,e2=!1!==e.KEEP_CONTENT,e9=e.IN_PLACE||!1,ek=!function(e){try{return x(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,to="string"==typeof e.NAMESPACE?e.NAMESPACE:tr,tc=C(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?U(e.MATHML_TEXT_INTEGRATION_POINTS):P({},["mi","mo","mn","ms","mtext"]),tu=C(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?U(e.HTML_INTEGRATION_POINTS):P({},["annotation-xml"]);let r=C(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?U(e.CUSTOM_ELEMENT_HANDLING):p(null);if(eU=p(null),C(r,"tagNameCheck")&&tg(r.tagNameCheck)&&(eU.tagNameCheck=r.tagNameCheck),C(r,"attributeNameCheck")&&tg(r.attributeNameCheck)&&(eU.attributeNameCheck=r.attributeNameCheck),C(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eU.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),eY&&(eG=!1),eZ&&(eV=!0),e3&&(ex=P({},Y),eM=p(null),!0===e3.html&&(P(ex,z),P(eM,q)),!0===e3.svg&&(P(ex,H),P(eM,X),P(eM,K)),!0===e3.svgFilters&&(P(ex,B),P(eM,X),P(eM,K)),!0===e3.mathMl&&(P(ex,j),P(eM,$),P(eM,K))),eH.tagCheck=null,eH.attributeCheck=null,C(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eH.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(ex===eL&&(ex=U(ex)),P(ex,e.ADD_TAGS,tm))),C(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eH.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&(eM===eP&&(eM=U(eM)),P(eM,e.ADD_ATTR,tm))),C(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&P(e5,e.ADD_URI_SAFE_ATTR,tm),C(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(e8===e6&&(e8=U(e8)),P(e8,e.FORBID_CONTENTS,tm)),C(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(e8===e6&&(e8=U(e8)),P(e8,e.ADD_FORBID_CONTENTS,tm)),e2&&(ex["#text"]=!0),eX&&P(ex,["html","head","body"]),ex.table&&(P(ex,["tbody"]),delete eF.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eb=eS("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eb=""):(void 0===t&&(eA||(n=ea(ec,c),eA=!0),t=n),t&&"string"==typeof eb&&(eb=eS("")));(eC.uponSanitizeElement.length>0||eC.uponSanitizeAttribute.length>0)&&ex===eL&&(ex=U(ex)),eC.uponSanitizeAttribute.length>0&&eM===eP&&(eM=U(eM)),u&&u(e),td=e},tT=P({},[...H,...B,...G]),tb=P({},[...j,...W]),tA=function(e){let t=ed(e);t&&t.tagName||(t={namespaceURI:to,tagName:"template"});let n=_(e.tagName),r=_(t.tagName);return!!ta[e.namespaceURI]&&(e.namespaceURI===tn?t.namespaceURI===tr?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||tc[r]):!!tT[n]:e.namespaceURI===tt?t.namespaceURI===tr?"math"===n:t.namespaceURI===tn?"math"===n&&tu[r]:!!tb[n]:e.namespaceURI===tr?(t.namespaceURI!==tn||!!tu[r])&&(t.namespaceURI!==tt||!!tc[r])&&!tb[n]&&(ts[n]||!tT[n]):"application/xhtml+xml"===tp&&!!ta[e.namespaceURI])},t_=function(e){T(i.removed,{element:e});try{ed(e).removeChild(e)}catch(t){if(ep(e),!ed(e))throw L("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tE=function(e){let t=em?em(e):e.childNodes;if(t){let e=[];h(t,t=>{T(e,t)}),h(e,e=>{try{ep(e)}catch(e){}})}let n=eg?eg(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},tS=function(e,t){try{T(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eV||eZ)try{t_(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tN=function(e){let t=eg?eg(e):e.attributes;if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],o=r&&r.name;if("string"==typeof o&&!eM[tm(o)])try{e.removeAttribute(o)}catch(e){}}},tO=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(ey?ey(e):e.nodeType)===1&&tN(e);let n=em?em(e):e.childNodes;if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tD=function(e){let n=null,r=null;if(eK)e="<remove></remove>"+e;else{let t=S(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tp&&to===tr&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=t?eS(e):e;if(to===tr)try{n=new M().parseFromString(o,tp)}catch(e){}if(!n||!n.documentElement){n=eD.createDocument(to,"template",null);try{n.documentElement.innerHTML=ti?eb:o}catch(e){}}let i=n.body||n.documentElement;return(e&&r&&i.insertBefore(a.createTextNode(r),i.childNodes[0]||null),to===tr)?ev.call(n,eX?"html":"body")[0]:eX?n.documentElement:i},tw=function(e){return ew.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},tR=function(e){var t,n;e.normalize();let r=ew.call(e.ownerDocument||e,e,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),o=r.nextNode();for(;o;){let e=o.data;h([V,Z,J],t=>{e=N(e,t," ")}),o.data=e,o=r.nextNode()}h(Array.from(null!=(t=null==(n=e.querySelectorAll)?void 0:n.call(e,"template"))?t:[]),e=>{tI(e.content)&&tR(e.content)})},tv=function(e){let t=eT?eT(e):null;return"string"==typeof t&&"form"===tm(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eg(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==ey(e)||e.childNodes!==em(e))},tI=function(e){if(!ey||"object"!=typeof e||null===e)return!1;try{return 11===ey(e)}catch(e){return!1}},tC=function(e){if(!ey||"object"!=typeof e||null===e)return!1;try{return"number"==typeof ey(e)}catch(e){return!1}};function tk(e,t,n){h(e,e=>{e.call(i,t,n,td)})}let tx=function(e){let t=null;if(tk(eC.beforeSanitizeElements,e,null),tv(e))return t_(e),!0;let n=tm(eT?eT(e):e.nodeName);if(tk(eC.uponSanitizeElement,e,{tagName:n,allowedTags:ex}),eq&&e.hasChildNodes()&&!tC(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||eq&&e.namespaceURI===tr&&"style"===n&&tC(e.firstElementChild)||7===e.nodeType||eq&&8===e.nodeType&&x(/<[/\w]/g,e.data))return t_(e),!0;if(eF[n]||!(eH.tagCheck instanceof Function&&eH.tagCheck(n))&&!ex[n]){if(!eF[n]&&tP(n)&&(eU.tagNameCheck instanceof RegExp&&x(eU.tagNameCheck,n)||eU.tagNameCheck instanceof Function&&eU.tagNameCheck(n)))return!1;if(e2&&!e8[n]){let t=ed(e),n=em(e);if(n&&t){let r=n.length;for(let o=r-1;o>=0;--o){let r=e9?n[o]:es(n[o],!0);t.insertBefore(r,ef(e))}}}return t_(e),!0}return(ey?ey(e):e.nodeType)===1&&!tA(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(t_(e),!0):(eY&&3===e.nodeType&&(t=e.textContent,h([V,Z,J],e=>{t=N(t,e," ")}),e.textContent!==t&&(T(i.removed,{element:e.cloneNode()}),e.textContent=t)),tk(eC.afterSanitizeElements,e,null),!1)},tL=function(e,t,n){if(ez[t]||eQ&&("id"===t||"name"===t)&&(n in a||n in th))return!1;let r=eM[t]||eH.attributeCheck instanceof Function&&eH.attributeCheck(t,e);if(eG&&!ez[t]&&x(Q,t));else if(eB&&x(ee,t));else if(!r||ez[t]){if(!(tP(e)&&(eU.tagNameCheck instanceof RegExp&&x(eU.tagNameCheck,e)||eU.tagNameCheck instanceof Function&&eU.tagNameCheck(e))&&(eU.attributeNameCheck instanceof RegExp&&x(eU.attributeNameCheck,t)||eU.attributeNameCheck instanceof Function&&eU.attributeNameCheck(t,e))||"is"===t&&eU.allowCustomizedBuiltInElements&&(eU.tagNameCheck instanceof RegExp&&x(eU.tagNameCheck,n)||eU.tagNameCheck instanceof Function&&eU.tagNameCheck(n))))return!1}else if(e5[t]);else if(x(ek,N(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===O(n,"data:")&&e7[e]);else if(ej&&!x(en,N(n,er,"")));else if(n)return!1;return!0},tM=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tP=function(e){return!tM[_(e)]&&x(ei,e)},tU=function(e){tk(eC.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||tv(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eM,forceKeepAttr:void 0},o=n.length;for(;o--;){let a=n[o],l=a.name,c=a.namespaceURI,u=a.value,s=tm(l),p="value"===l?u:D(u);if(r.attrName=s,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,tk(eC.uponSanitizeAttribute,e,r),p=r.attrValue,e0&&("id"===s||"name"===s)&&0!==O(p,e1)&&(tS(l,e),p=e1+p),eq&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===s&&S(p,"href")){tS(l,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr||!eW&&x(/\/>/i,p)){tS(l,e);continue}eY&&h([V,Z,J],e=>{p=N(p,e," ")});let f=tm(e.nodeName);if(!tL(f,s,p)){tS(l,e);continue}if(t&&"object"==typeof ec&&"function"==typeof ec.getAttributeType)if(c);else switch(ec.getAttributeType(f,s)){case"TrustedHTML":p=eS(p);break;case"TrustedScriptURL":p=eN(p)}if(p!==u)try{c?e.setAttributeNS(c,l,p):e.setAttribute(l,p),tv(e)?t_(e):y(i.removed)}catch(t){tS(l,e)}}tk(eC.afterSanitizeAttributes,e,null)},tF=function(e){let t=null,n=tw(e);for(tk(eC.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tk(eC.uponSanitizeShadowNode,t,null),tx(t),tU(t),tI(t.content)&&tF(t.content),(ey?ey(t):t.nodeType)===1){let e=eh?eh(t):t.shadowRoot;tI(e)&&(tz(e),tF(e))}tk(eC.afterSanitizeShadowDOM,e,null)},tz=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){tF(e.shadow);continue}let n=e.node,r=(ey?ey(n):n.nodeType)===1,o=em?em(n):n.childNodes;if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){let e=eT?eT(n):null;if("string"==typeof e&&"template"===tm(e)){let e=n.content;tI(e)&&t.push({node:e,shadow:null})}}if(r){let e=eh?eh(n):n.shadowRoot;tI(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,c=null;if((ti=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tC(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return w(e);case"boolean":return R(e);case"bigint":return v?v(e):"0";case"symbol":return I?I(e):"Symbol()";case"undefined":default:return k(e);case"function":case"object":{if(null===e)return k(e);let t=F(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:k(n)}return k(e)}}}(e)))throw L("dirty is not a string, aborting");if(!i.isSupported)return e;e$||ty(n),i.removed=[];let u=e9&&"string"!=typeof e&&tC(e);if(u){let t=eT?eT(e):e.nodeName;if("string"==typeof t){let e=tm(t);if(!ex[e]||eF[e])throw L("root node is forbidden and cannot be sanitized in-place")}if(tv(e))throw L("root node is clobbered and cannot be sanitized in-place");try{tz(e)}catch(t){throw tE(e),t}}else if(tC(e))1===(o=(r=tD("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),tz(o);else{if(!eV&&!eY&&!eX&&-1===e.indexOf("<"))return t&&eJ?eS(e):e;if(!(r=tD(e)))return eV?null:eJ?eb:""}r&&eK&&t_(r.firstChild);let s=tw(u?e:r);try{for(;a=s.nextNode();)tx(a),tU(a),tI(a.content)&&tF(a.content)}catch(t){throw u&&tE(e),t}if(u)return h(i.removed,e=>{e.element&&tO(e.element)}),eY&&tR(e),e;if(eV){if(eY&&tR(r),eZ)for(c=eR.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(eM.shadowroot||eM.shadowrootmode)&&(c=eI.call(l,c,!0)),c}let p=eX?r.outerHTML:r.innerHTML;return eX&&ex["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&x(eo,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),eY&&h([V,Z,J],e=>{p=N(p,e," ")}),t&&eJ?eS(p):p},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ty(e),e$=!0},i.clearConfig=function(){td=null,e$=!1,t=n,eb=""},i.isValidAttribute=function(e,t,n){return td||ty({}),tL(tm(e),tm(t),n)},i.addHook=function(e,t){"function"==typeof t&&T(eC[e],t)},i.removeHook=function(e,t){if(void 0!==t){let n=g(eC[e],t);return -1===n?void 0:b(eC[e],n,1)[0]}return y(eC[e])},i.removeHooks=function(e){eC[e]=[]},i.removeAllHooks=function(){eC=el()},i}()}}]); |