/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ var yn=Object.create;var mt=Object.defineProperty;var Tn=Object.getOwnPropertyDescriptor;var Nn=Object.getOwnPropertyNames;var An=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty;var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_n=(e,t)=>{for(var i in t)mt(e,i,{get:t[i],enumerable:!0})},Ki=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nn(t))!En.call(e,o)&&o!==i&&mt(e,o,{get:()=>t[o],enumerable:!(r=Tn(t,o))||r.enumerable});return e};var He=(e,t,i)=>(i=e!=null?yn(An(e)):{},Ki(t||!e||!e.__esModule?mt(i,"default",{value:e,enumerable:!0}):i,e)),wn=e=>Ki(mt({},"__esModule",{value:!0}),e);var ir=we((er,tr)=>{(function(e){if(typeof er=="object")tr.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch(i){t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(p,g){return p+g&4294967295},i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(p,g,l,s,h,c){return g=t(t(g,p),t(s,c)),t(g<>>32-h,l)}function o(p,g){var l=p[0],s=p[1],h=p[2],c=p[3];l+=(s&h|~s&c)+g[0]-680876936|0,l=(l<<7|l>>>25)+s|0,c+=(l&s|~l&h)+g[1]-389564586|0,c=(c<<12|c>>>20)+l|0,h+=(c&l|~c&s)+g[2]+606105819|0,h=(h<<17|h>>>15)+c|0,s+=(h&c|~h&l)+g[3]-1044525330|0,s=(s<<22|s>>>10)+h|0,l+=(s&h|~s&c)+g[4]-176418897|0,l=(l<<7|l>>>25)+s|0,c+=(l&s|~l&h)+g[5]+1200080426|0,c=(c<<12|c>>>20)+l|0,h+=(c&l|~c&s)+g[6]-1473231341|0,h=(h<<17|h>>>15)+c|0,s+=(h&c|~h&l)+g[7]-45705983|0,s=(s<<22|s>>>10)+h|0,l+=(s&h|~s&c)+g[8]+1770035416|0,l=(l<<7|l>>>25)+s|0,c+=(l&s|~l&h)+g[9]-1958414417|0,c=(c<<12|c>>>20)+l|0,h+=(c&l|~c&s)+g[10]-42063|0,h=(h<<17|h>>>15)+c|0,s+=(h&c|~h&l)+g[11]-1990404162|0,s=(s<<22|s>>>10)+h|0,l+=(s&h|~s&c)+g[12]+1804603682|0,l=(l<<7|l>>>25)+s|0,c+=(l&s|~l&h)+g[13]-40341101|0,c=(c<<12|c>>>20)+l|0,h+=(c&l|~c&s)+g[14]-1502002290|0,h=(h<<17|h>>>15)+c|0,s+=(h&c|~h&l)+g[15]+1236535329|0,s=(s<<22|s>>>10)+h|0,l+=(s&c|h&~c)+g[1]-165796510|0,l=(l<<5|l>>>27)+s|0,c+=(l&h|s&~h)+g[6]-1069501632|0,c=(c<<9|c>>>23)+l|0,h+=(c&s|l&~s)+g[11]+643717713|0,h=(h<<14|h>>>18)+c|0,s+=(h&l|c&~l)+g[0]-373897302|0,s=(s<<20|s>>>12)+h|0,l+=(s&c|h&~c)+g[5]-701558691|0,l=(l<<5|l>>>27)+s|0,c+=(l&h|s&~h)+g[10]+38016083|0,c=(c<<9|c>>>23)+l|0,h+=(c&s|l&~s)+g[15]-660478335|0,h=(h<<14|h>>>18)+c|0,s+=(h&l|c&~l)+g[4]-405537848|0,s=(s<<20|s>>>12)+h|0,l+=(s&c|h&~c)+g[9]+568446438|0,l=(l<<5|l>>>27)+s|0,c+=(l&h|s&~h)+g[14]-1019803690|0,c=(c<<9|c>>>23)+l|0,h+=(c&s|l&~s)+g[3]-187363961|0,h=(h<<14|h>>>18)+c|0,s+=(h&l|c&~l)+g[8]+1163531501|0,s=(s<<20|s>>>12)+h|0,l+=(s&c|h&~c)+g[13]-1444681467|0,l=(l<<5|l>>>27)+s|0,c+=(l&h|s&~h)+g[2]-51403784|0,c=(c<<9|c>>>23)+l|0,h+=(c&s|l&~s)+g[7]+1735328473|0,h=(h<<14|h>>>18)+c|0,s+=(h&l|c&~l)+g[12]-1926607734|0,s=(s<<20|s>>>12)+h|0,l+=(s^h^c)+g[5]-378558|0,l=(l<<4|l>>>28)+s|0,c+=(l^s^h)+g[8]-2022574463|0,c=(c<<11|c>>>21)+l|0,h+=(c^l^s)+g[11]+1839030562|0,h=(h<<16|h>>>16)+c|0,s+=(h^c^l)+g[14]-35309556|0,s=(s<<23|s>>>9)+h|0,l+=(s^h^c)+g[1]-1530992060|0,l=(l<<4|l>>>28)+s|0,c+=(l^s^h)+g[4]+1272893353|0,c=(c<<11|c>>>21)+l|0,h+=(c^l^s)+g[7]-155497632|0,h=(h<<16|h>>>16)+c|0,s+=(h^c^l)+g[10]-1094730640|0,s=(s<<23|s>>>9)+h|0,l+=(s^h^c)+g[13]+681279174|0,l=(l<<4|l>>>28)+s|0,c+=(l^s^h)+g[0]-358537222|0,c=(c<<11|c>>>21)+l|0,h+=(c^l^s)+g[3]-722521979|0,h=(h<<16|h>>>16)+c|0,s+=(h^c^l)+g[6]+76029189|0,s=(s<<23|s>>>9)+h|0,l+=(s^h^c)+g[9]-640364487|0,l=(l<<4|l>>>28)+s|0,c+=(l^s^h)+g[12]-421815835|0,c=(c<<11|c>>>21)+l|0,h+=(c^l^s)+g[15]+530742520|0,h=(h<<16|h>>>16)+c|0,s+=(h^c^l)+g[2]-995338651|0,s=(s<<23|s>>>9)+h|0,l+=(h^(s|~c))+g[0]-198630844|0,l=(l<<6|l>>>26)+s|0,c+=(s^(l|~h))+g[7]+1126891415|0,c=(c<<10|c>>>22)+l|0,h+=(l^(c|~s))+g[14]-1416354905|0,h=(h<<15|h>>>17)+c|0,s+=(c^(h|~l))+g[5]-57434055|0,s=(s<<21|s>>>11)+h|0,l+=(h^(s|~c))+g[12]+1700485571|0,l=(l<<6|l>>>26)+s|0,c+=(s^(l|~h))+g[3]-1894986606|0,c=(c<<10|c>>>22)+l|0,h+=(l^(c|~s))+g[10]-1051523|0,h=(h<<15|h>>>17)+c|0,s+=(c^(h|~l))+g[1]-2054922799|0,s=(s<<21|s>>>11)+h|0,l+=(h^(s|~c))+g[8]+1873313359|0,l=(l<<6|l>>>26)+s|0,c+=(s^(l|~h))+g[15]-30611744|0,c=(c<<10|c>>>22)+l|0,h+=(l^(c|~s))+g[6]-1560198380|0,h=(h<<15|h>>>17)+c|0,s+=(c^(h|~l))+g[13]+1309151649|0,s=(s<<21|s>>>11)+h|0,l+=(h^(s|~c))+g[4]-145523070|0,l=(l<<6|l>>>26)+s|0,c+=(s^(l|~h))+g[11]-1120210379|0,c=(c<<10|c>>>22)+l|0,h+=(l^(c|~s))+g[2]+718787259|0,h=(h<<15|h>>>17)+c|0,s+=(c^(h|~l))+g[9]-343485551|0,s=(s<<21|s>>>11)+h|0,p[0]=l+p[0]|0,p[1]=s+p[1]|0,p[2]=h+p[2]|0,p[3]=c+p[3]|0}function n(p){var g=[],l;for(l=0;l<64;l+=4)g[l>>2]=p.charCodeAt(l)+(p.charCodeAt(l+1)<<8)+(p.charCodeAt(l+2)<<16)+(p.charCodeAt(l+3)<<24);return g}function a(p){var g=[],l;for(l=0;l<64;l+=4)g[l>>2]=p[l]+(p[l+1]<<8)+(p[l+2]<<16)+(p[l+3]<<24);return g}function m(p){var g=p.length,l=[1732584193,-271733879,-1732584194,271733878],s,h,c,P,W,K;for(s=64;s<=g;s+=64)o(l,n(p.substring(s-64,s)));for(p=p.substring(s-64),h=p.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s>2]|=p.charCodeAt(s)<<(s%4<<3);if(c[s>>2]|=128<<(s%4<<3),s>55)for(o(l,c),s=0;s<16;s+=1)c[s]=0;return P=g*8,P=P.toString(16).match(/(.*?)(.{0,8})$/),W=parseInt(P[2],16),K=parseInt(P[1],16)||0,c[14]=W,c[15]=K,o(l,c),l}function d(p){var g=p.length,l=[1732584193,-271733879,-1732584194,271733878],s,h,c,P,W,K;for(s=64;s<=g;s+=64)o(l,a(p.subarray(s-64,s)));for(p=s-64>2]|=p[s]<<(s%4<<3);if(c[s>>2]|=128<<(s%4<<3),s>55)for(o(l,c),s=0;s<16;s+=1)c[s]=0;return P=g*8,P=P.toString(16).match(/(.*?)(.{0,8})$/),W=parseInt(P[2],16),K=parseInt(P[1],16)||0,c[14]=W,c[15]=K,o(l,c),l}function f(p){var g="",l;for(l=0;l<4;l+=1)g+=i[p>>l*8+4&15]+i[p>>l*8&15];return g}function b(p){var g;for(g=0;g>16)+(g>>16)+(l>>16);return s<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function p(g,l){return g=g|0||0,g<0?Math.max(g+l,0):Math.min(g,l)}ArrayBuffer.prototype.slice=function(g,l){var s=this.byteLength,h=p(g,s),c=s,P,W,K,pe;return l!==e&&(c=p(l,s)),h>c?new ArrayBuffer(0):(P=c-h,W=new ArrayBuffer(P),K=new Uint8Array(W),pe=new Uint8Array(this,h,P),K.set(pe),W)}}();function S(p){return/[\u0080-\uFFFF]/.test(p)&&(p=unescape(encodeURIComponent(p))),p}function I(p,g){var l=p.length,s=new ArrayBuffer(l),h=new Uint8Array(s),c;for(c=0;c>2]|=g.charCodeAt(s)<<(s%4<<3);return this._finish(h,l),c=b(this._hash),p&&(c=L(c)),this.reset(),c},N.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},N.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},N.prototype.setState=function(p){return this._buff=p.buff,this._length=p.length,this._hash=p.hash,this},N.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},N.prototype._finish=function(p,g){var l=g,s,h,c;if(p[l>>2]|=128<<(l%4<<3),l>55)for(o(this._hash,p),l=0;l<16;l+=1)p[l]=0;s=this._length*8,s=s.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(s[2],16),c=parseInt(s[1],16)||0,p[14]=h,p[15]=c,o(this._hash,p)},N.hash=function(p,g){return N.hashBinary(S(p),g)},N.hashBinary=function(p,g){var l=m(p),s=b(l);return g?L(s):s},N.ArrayBuffer=function(){this.reset()},N.ArrayBuffer.prototype.append=function(p){var g=O(this._buff.buffer,p,!0),l=g.length,s;for(this._length+=p.byteLength,s=64;s<=l;s+=64)o(this._hash,a(g.subarray(s-64,s)));return this._buff=s-64>2]|=g[h]<<(h%4<<3);return this._finish(s,l),c=b(this._hash),p&&(c=L(c)),this.reset(),c},N.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},N.ArrayBuffer.prototype.getState=function(){var p=N.prototype.getState.call(this);return p.buff=x(p.buff),p},N.ArrayBuffer.prototype.setState=function(p){return p.buff=I(p.buff,!0),N.prototype.setState.call(this,p)},N.ArrayBuffer.prototype.destroy=N.prototype.destroy,N.ArrayBuffer.prototype._finish=N.prototype._finish,N.ArrayBuffer.hash=function(p,g){var l=d(new Uint8Array(p)),s=b(l);return g?L(s):s},N})});var or=we(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.toSeconds=X.end=X.parse=X.pattern=void 0;var Ge="\\d+",ei="".concat(Ge,"(?:[\\.,]").concat(Ge,")?"),Pn="(".concat(Ge,"Y)?(").concat(Ge,"M)?(").concat(Ge,"W)?(").concat(Ge,"D)?"),Mn="T(".concat(ei,"H)?(").concat(ei,"M)?(").concat(ei,"S)?"),On="P(?:".concat(Pn,"(?:").concat(Mn,")?)"),kn=["years","months","weeks","days","hours","minutes","seconds"],sr=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0});X.pattern=new RegExp(On);var Fn=function(e){var t=e.replace(/,/g,".").match(X.pattern);if(!t)throw new RangeError("invalid duration: ".concat(e));var i=t.slice(1);if(i.filter(function(r){return r!=null}).length===0)throw new RangeError("invalid duration: ".concat(e));if(i.filter(function(r){return/\./.test(r||"")}).length>1)throw new RangeError("only the smallest unit can be fractional");return i.reduce(function(r,o,n){return r[kn[n]]=parseFloat(o||"0")||0,r},{})};X.parse=Fn;var Un=function(e,t){t===void 0&&(t=new Date);var i=Object.assign({},sr,e),r=t.getTime(),o=new Date(r);o.setFullYear(o.getFullYear()+i.years),o.setMonth(o.getMonth()+i.months),o.setDate(o.getDate()+i.days);var n=i.hours*3600*1e3,a=i.minutes*60*1e3;return o.setMilliseconds(o.getMilliseconds()+i.seconds*1e3+n+a),o.setDate(o.getDate()+i.weeks*7),o};X.end=Un;var Bn=function(e,t){t===void 0&&(t=new Date);var i=Object.assign({},sr,e),r=t.getTime(),o=new Date(r),n=(0,X.end)(i,o),a=t.getTimezoneOffset(),m=n.getTimezoneOffset(),d=(a-m)*60,f=(n.getTime()-o.getTime())/1e3;return f+d};X.toSeconds=Bn;X.default={end:X.end,toSeconds:X.toSeconds,pattern:X.pattern,parse:X.parse}});var mi=we((gi,pi)=>{(function(e,t){typeof gi=="object"&&typeof pi!="undefined"?pi.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.DOMPurify=t())})(gi,function(){"use strict";function e(T){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(T)}function t(T,A){return t=Object.setPrototypeOf||function(C,G){return C.__proto__=G,C},t(T,A)}function i(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(T){return!1}}function r(T,A,D){return i()?r=Reflect.construct:r=function(G,ne,re){var ue=[null];ue.push.apply(ue,ne);var Ne=Function.bind.apply(G,ue),Ke=new Ne;return re&&t(Ke,re.prototype),Ke},r.apply(null,arguments)}function o(T){return n(T)||a(T)||m(T)||f()}function n(T){if(Array.isArray(T))return d(T)}function a(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function m(T,A){if(T){if(typeof T=="string")return d(T,A);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(T);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return d(T,A)}}function d(T,A){(A==null||A>T.length)&&(A=T.length);for(var D=0,C=new Array(A);D1?D-1:0),G=1;G/gm),Pe=N(/\${[\w\W]*}/gm),me=N(/^data-[\-\w.\u00B7-\uFFFF]/),Ye=N(/^aria-[\-\w]+$/),Xe=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wr=N(/^(?:\w+script|data):/i),$r=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zr=N(/^html$/i),qr=N(/^[a-z][.\w]*(-[.\w]+)+$/i),jr=function(){return typeof window=="undefined"?null:window},Yr=function(A,D){if(e(A)!=="object"||typeof A.createPolicy!="function")return null;var C=null,G="data-tt-policy-suffix";D.currentScript&&D.currentScript.hasAttribute(G)&&(C=D.currentScript.getAttribute(G));var ne="dompurify"+(C?"#"+C:"");try{return A.createPolicy(ne,{createHTML:function(ue){return ue},createScriptURL:function(ue){return ue}})}catch(re){return console.warn("TrustedTypes policy "+ne+" could not be created."),null}};function wi(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jr(),A=function(u){return wi(u)};if(A.version="2.5.6",A.removed=[],!T||!T.document||T.document.nodeType!==9)return A.isSupported=!1,A;var D=T.document,C=T.document,G=T.DocumentFragment,ne=T.HTMLTemplateElement,re=T.Node,ue=T.Element,Ne=T.NodeFilter,Ke=T.NamedNodeMap,Kr=Ke===void 0?T.NamedNodeMap||T.MozNamedAttrMap:Ke,Jr=T.HTMLFormElement,Zr=T.DOMParser,at=T.trustedTypes,st=ue.prototype,Qr=k(st,"cloneNode"),en=k(st,"nextSibling"),tn=k(st,"childNodes"),Lt=k(st,"parentNode");if(typeof ne=="function"){var It=C.createElement("template");It.content&&It.content.ownerDocument&&(C=It.content.ownerDocument)}var se=Yr(at,D),Ct=se?se.createHTML(""):"",ot=C,Pt=ot.implementation,rn=ot.createNodeIterator,nn=ot.createDocumentFragment,an=ot.getElementsByTagName,sn=D.importNode,Si={};try{Si=le(C).documentMode?C.documentMode:{}}catch(E){}var he={};A.isSupported=typeof Lt=="function"&&Pt&&Pt.createHTMLDocument!==void 0&&Si!==9;var Mt=ce,Ot=nt,kt=Pe,on=me,ln=Ye,cn=Wr,Di=$r,un=qr,Ft=Xe,z=null,Ri=R({},[].concat(o(be),o(xe),o(Le),o(Te),o(Ce))),q=null,xi=R({},[].concat(o(ye),o(qe),o(je),o(te))),F=Object.seal(Object.create(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}})),Je=null,Ut=null,Li=!0,Bt=!0,Ii=!1,Ci=!0,Me=!1,Ht=!0,Ae=!1,Gt=!1,Vt=!1,Oe=!1,lt=!1,ct=!1,Pi=!0,Mi=!1,hn="user-content-",Wt=!0,Ze=!1,ke={},Fe=null,Oi=R({},["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"]),ki=null,Fi=R({},["audio","video","img","source","image","track"]),$t=null,Ui=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ut="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml",Ue=fe,zt=!1,qt=null,gn=R({},[ut,ht,fe],K),Ee,pn=["application/xhtml+xml","text/html"],mn="text/html",j,Be=null,fn=C.createElement("form"),Bi=function(u){return u instanceof RegExp||u instanceof Function},jt=function(u){Be&&Be===u||((!u||e(u)!=="object")&&(u={}),u=le(u),Ee=pn.indexOf(u.PARSER_MEDIA_TYPE)===-1?Ee=mn:Ee=u.PARSER_MEDIA_TYPE,j=Ee==="application/xhtml+xml"?K:W,z="ALLOWED_TAGS"in u?R({},u.ALLOWED_TAGS,j):Ri,q="ALLOWED_ATTR"in u?R({},u.ALLOWED_ATTR,j):xi,qt="ALLOWED_NAMESPACES"in u?R({},u.ALLOWED_NAMESPACES,K):gn,$t="ADD_URI_SAFE_ATTR"in u?R(le(Ui),u.ADD_URI_SAFE_ATTR,j):Ui,ki="ADD_DATA_URI_TAGS"in u?R(le(Fi),u.ADD_DATA_URI_TAGS,j):Fi,Fe="FORBID_CONTENTS"in u?R({},u.FORBID_CONTENTS,j):Oi,Je="FORBID_TAGS"in u?R({},u.FORBID_TAGS,j):{},Ut="FORBID_ATTR"in u?R({},u.FORBID_ATTR,j):{},ke="USE_PROFILES"in u?u.USE_PROFILES:!1,Li=u.ALLOW_ARIA_ATTR!==!1,Bt=u.ALLOW_DATA_ATTR!==!1,Ii=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Ci=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=u.SAFE_FOR_TEMPLATES||!1,Ht=u.SAFE_FOR_XML!==!1,Ae=u.WHOLE_DOCUMENT||!1,Oe=u.RETURN_DOM||!1,lt=u.RETURN_DOM_FRAGMENT||!1,ct=u.RETURN_TRUSTED_TYPE||!1,Vt=u.FORCE_BODY||!1,Pi=u.SANITIZE_DOM!==!1,Mi=u.SANITIZE_NAMED_PROPS||!1,Wt=u.KEEP_CONTENT!==!1,Ze=u.IN_PLACE||!1,Ft=u.ALLOWED_URI_REGEXP||Ft,Ue=u.NAMESPACE||fe,F=u.CUSTOM_ELEMENT_HANDLING||{},u.CUSTOM_ELEMENT_HANDLING&&Bi(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=u.CUSTOM_ELEMENT_HANDLING.tagNameCheck),u.CUSTOM_ELEMENT_HANDLING&&Bi(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Bt=!1),lt&&(Oe=!0),ke&&(z=R({},o(Ce)),q=[],ke.html===!0&&(R(z,be),R(q,ye)),ke.svg===!0&&(R(z,xe),R(q,qe),R(q,te)),ke.svgFilters===!0&&(R(z,Le),R(q,qe),R(q,te)),ke.mathMl===!0&&(R(z,Te),R(q,je),R(q,te))),u.ADD_TAGS&&(z===Ri&&(z=le(z)),R(z,u.ADD_TAGS,j)),u.ADD_ATTR&&(q===xi&&(q=le(q)),R(q,u.ADD_ATTR,j)),u.ADD_URI_SAFE_ATTR&&R($t,u.ADD_URI_SAFE_ATTR,j),u.FORBID_CONTENTS&&(Fe===Oi&&(Fe=le(Fe)),R(Fe,u.FORBID_CONTENTS,j)),Wt&&(z["#text"]=!0),Ae&&R(z,["html","head","body"]),z.table&&(R(z,["tbody"]),delete Je.tbody),L&&L(u),Be=u)},Hi=R({},["mi","mo","mn","ms","mtext"]),Gi=R({},["foreignobject","annotation-xml"]),dn=R({},["title","style","font","a","script"]),gt=R({},xe);R(gt,Le),R(gt,rt);var Yt=R({},Te);R(Yt,Ie);var vn=function(u){var v=Lt(u);(!v||!v.tagName)&&(v={namespaceURI:Ue,tagName:"template"});var y=W(u.tagName),M=W(v.tagName);return qt[u.namespaceURI]?u.namespaceURI===ht?v.namespaceURI===fe?y==="svg":v.namespaceURI===ut?y==="svg"&&(M==="annotation-xml"||Hi[M]):!!gt[y]:u.namespaceURI===ut?v.namespaceURI===fe?y==="math":v.namespaceURI===ht?y==="math"&&Gi[M]:!!Yt[y]:u.namespaceURI===fe?v.namespaceURI===ht&&!Gi[M]||v.namespaceURI===ut&&!Hi[M]?!1:!Yt[y]&&(dn[y]||!gt[y]):!!(Ee==="application/xhtml+xml"&&qt[u.namespaceURI]):!1},ae=function(u){P(A.removed,{element:u});try{u.parentNode.removeChild(u)}catch(v){try{u.outerHTML=Ct}catch(y){u.remove()}}},pt=function(u,v){try{P(A.removed,{attribute:v.getAttributeNode(u),from:v})}catch(y){P(A.removed,{attribute:null,from:v})}if(v.removeAttribute(u),u==="is"&&!q[u])if(Oe||lt)try{ae(v)}catch(y){}else try{v.setAttribute(u,"")}catch(y){}},Vi=function(u){var v,y;if(Vt)u=""+u;else{var M=pe(u,/^[\r\n\t ]+/);y=M&&M[0]}Ee==="application/xhtml+xml"&&Ue===fe&&(u=''+u+"");var ie=se?se.createHTML(u):u;if(Ue===fe)try{v=new Zr().parseFromString(ie,Ee)}catch(Y){}if(!v||!v.documentElement){v=Pt.createDocument(Ue,"template",null);try{v.documentElement.innerHTML=zt?Ct:ie}catch(Y){}}var J=v.body||v.documentElement;return u&&y&&J.insertBefore(C.createTextNode(y),J.childNodes[0]||null),Ue===fe?an.call(v,Ae?"html":"body")[0]:Ae?v.documentElement:J},Wi=function(u){return rn.call(u.ownerDocument||u,u,Ne.SHOW_ELEMENT|Ne.SHOW_COMMENT|Ne.SHOW_TEXT|Ne.SHOW_PROCESSING_INSTRUCTION|Ne.SHOW_CDATA_SECTION,null,!1)},$i=function(u){return u instanceof Jr&&(typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||!(u.attributes instanceof Kr)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function")},Qe=function(u){return e(re)==="object"?u instanceof re:u&&e(u)==="object"&&typeof u.nodeType=="number"&&typeof u.nodeName=="string"},de=function(u,v,y){he[u]&&h(he[u],function(M){M.call(A,v,y,Be)})},zi=function(u){var v;if(de("beforeSanitizeElements",u,null),$i(u)||B(/[\u0080-\uFFFF]/,u.nodeName))return ae(u),!0;var y=j(u.nodeName);if(de("uponSanitizeElement",u,{tagName:y,allowedTags:z}),u.hasChildNodes()&&!Qe(u.firstElementChild)&&(!Qe(u.content)||!Qe(u.content.firstElementChild))&&B(/<[/\w]/g,u.innerHTML)&&B(/<[/\w]/g,u.textContent)||y==="select"&&B(/