import{f as $t}from"./chunk-FMXN7DFR.js";var Vt=$t((be,Re)=>{(function(C,F){typeof be=="object"&&typeof Re<"u"?Re.exports=F():typeof define=="function"&&define.amd?define(F):(C=C||self,C.DOMPurify=F())})(be,function(){"use strict";function C(r){if(Array.isArray(r)){for(var a=0,o=Array(r.length);a<r.length;a++)o[a]=r[a];return o}else return Array.from(r)}var F=Object.hasOwnProperty,Se=Object.setPrototypeOf,nt=Object.isFrozen,it=Object.getPrototypeOf,ot=Object.getOwnPropertyDescriptor,h=Object.freeze,y=Object.seal,lt=Object.create,Oe=typeof Reflect<"u"&&Reflect,B=Oe.apply,J=Oe.construct;B||(B=function(a,o,s){return a.apply(o,s)}),h||(h=function(a){return a}),y||(y=function(a){return a}),J||(J=function(a,o){return new(Function.prototype.bind.apply(a,[null].concat(C(o))))});var st=T(Array.prototype.forEach),De=T(Array.prototype.pop),P=T(Array.prototype.push),D=T(String.prototype.toLowerCase),Me=T(String.prototype.match),b=T(String.prototype.replace),ft=T(String.prototype.indexOf),ut=T(String.prototype.trim),R=T(RegExp.prototype.test),Le=pt(TypeError);function T(r){return function(a){for(var o=arguments.length,s=Array(o>1?o-1:0),u=1;u<o;u++)s[u-1]=arguments[u];return B(r,a,s)}}function pt(r){return function(){for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];return J(r,o)}}function l(r,a){Se&&Se(r,null);for(var o=a.length;o--;){var s=a[o];if(typeof s=="string"){var u=D(s);u!==s&&(nt(a)||(a[o]=u),s=u)}r[s]=!0}return r}function L(r){var a=lt(null),o=void 0;for(o in r)B(F,r,[o])&&(a[o]=r[o]);return a}function $(r,a){for(;r!==null;){var o=ot(r,a);if(o){if(o.get)return T(o.get);if(typeof o.value=="function")return T(o.value)}r=it(r)}function s(u){return console.warn("fallback value for",u),null}return s}var we=h(["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"]),Q=h(["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"]),ee=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ct=h(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),te=h(["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"]),mt=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xe=h(["#text"]),Ie=h(["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","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","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","xmlns","slot"]),re=h(["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","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"]),ke=h(["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"]),V=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dt=y(/\{\{[\s\S]*|[\s\S]*\}\}/gm),vt=y(/<%[\s\S]*|[\s\S]*%>/gm),ht=y(/^data-[\-\w.\u00B7-\uFFFF]/),Tt=y(/^aria-[\-\w]+$/),At=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_t=y(/^(?:\w+script|data):/i),yt=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function A(r){if(Array.isArray(r)){for(var a=0,o=Array(r.length);a<r.length;a++)o[a]=r[a];return o}else return Array.from(r)}var gt=function(){return typeof window>"u"?null:window},Et=function(a,o){if((typeof a>"u"?"undefined":U(a))!=="object"||typeof a.createPolicy!="function")return null;var s=null,u="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(u)&&(s=o.currentScript.getAttribute(u));var j="dompurify"+(s?"#"+s:"");try{return a.createPolicy(j,{createHTML:function(q){return q}})}catch{return console.warn("TrustedTypes policy "+j+" could not be created."),null}};function Ne(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(),a=function(e){return Ne(e)};if(a.version="2.2.9",a.removed=[],!r||!r.document||r.document.nodeType!==9)return a.isSupported=!1,a;var o=r.document,s=r.document,u=r.DocumentFragment,j=r.HTMLTemplateElement,w=r.Node,q=r.Element,ae=r.NodeFilter,Ce=r.NamedNodeMap,Rt=Ce===void 0?r.NamedNodeMap||r.MozNamedAttrMap:Ce,St=r.Text,Ot=r.Comment,Dt=r.DOMParser,Mt=r.trustedTypes,X=q.prototype,Lt=$(X,"cloneNode"),wt=$(X,"nextSibling"),xt=$(X,"childNodes"),ne=$(X,"parentNode");if(typeof j=="function"){var ie=s.createElement("template");ie.content&&ie.content.ownerDocument&&(s=ie.content.ownerDocument)}var S=Et(Mt,o),Fe=S&&Y?S.createHTML(""):"",oe=s,le=oe.implementation,It=oe.createNodeIterator,kt=oe.createDocumentFragment,Nt=o.importNode,Pe={};try{Pe=L(s).documentMode?s.documentMode:{}}catch{}var _={};a.isSupported=typeof ne=="function"&&le&&typeof le.createHTMLDocument<"u"&&Pe!==9;var se=dt,fe=vt,Ct=ht,Ft=Tt,Pt=_t,Ue=yt,ue=At,p=null,He=l({},[].concat(A(we),A(Q),A(ee),A(te),A(xe))),c=null,ze=l({},[].concat(A(Ie),A(re),A(ke),A(V))),pe=null,Ge=null,We=!0,ce=!0,Be=!1,x=!1,H=!1,me=!1,de=!1,I=!1,K=!1,$e=!0,Y=!1,Ve=!0,ve=!0,z=!1,k={},Ut=l({},["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"]),je=null,qe=l({},["audio","video","img","source","image","track"]),he=null,Xe=l({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Te="http://www.w3.org/1998/Math/MathML",Ae="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml",_e=M,ye=!1,N=null,Ht=s.createElement("form"),ge=function(e){N&&N===e||((!e||(typeof e>"u"?"undefined":U(e))!=="object")&&(e={}),e=L(e),p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS):He,c="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR):ze,he="ADD_URI_SAFE_ATTR"in e?l(L(Xe),e.ADD_URI_SAFE_ATTR):Xe,je="ADD_DATA_URI_TAGS"in e?l(L(qe),e.ADD_DATA_URI_TAGS):qe,pe="FORBID_TAGS"in e?l({},e.FORBID_TAGS):{},Ge="FORBID_ATTR"in e?l({},e.FORBID_ATTR):{},k="USE_PROFILES"in e?e.USE_PROFILES:!1,We=e.ALLOW_ARIA_ATTR!==!1,ce=e.ALLOW_DATA_ATTR!==!1,Be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,x=e.SAFE_FOR_TEMPLATES||!1,H=e.WHOLE_DOCUMENT||!1,I=e.RETURN_DOM||!1,K=e.RETURN_DOM_FRAGMENT||!1,$e=e.RETURN_DOM_IMPORT!==!1,Y=e.RETURN_TRUSTED_TYPE||!1,de=e.FORCE_BODY||!1,Ve=e.SANITIZE_DOM!==!1,ve=e.KEEP_CONTENT!==!1,z=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,_e=e.NAMESPACE||M,x&&(ce=!1),K&&(I=!0),k&&(p=l({},[].concat(A(xe))),c=[],k.html===!0&&(l(p,we),l(c,Ie)),k.svg===!0&&(l(p,Q),l(c,re),l(c,V)),k.svgFilters===!0&&(l(p,ee),l(c,re),l(c,V)),k.mathMl===!0&&(l(p,te),l(c,ke),l(c,V))),e.ADD_TAGS&&(p===He&&(p=L(p)),l(p,e.ADD_TAGS)),e.ADD_ATTR&&(c===ze&&(c=L(c)),l(c,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&l(he,e.ADD_URI_SAFE_ATTR),ve&&(p["#text"]=!0),H&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete pe.tbody),h&&h(e),N=e)},Ke=l({},["mi","mo","mn","ms","mtext"]),Ye=l({},["foreignobject","desc","title","annotation-xml"]),Z=l({},Q);l(Z,ee),l(Z,ct);var Ee=l({},te);l(Ee,mt);var zt=function(e){var t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:M,tagName:"template"});var n=D(e.tagName),f=D(t.tagName);if(e.namespaceURI===Ae)return t.namespaceURI===M?n==="svg":t.namespaceURI===Te?n==="svg"&&(f==="annotation-xml"||Ke[f]):!!Z[n];if(e.namespaceURI===Te)return t.namespaceURI===M?n==="math":t.namespaceURI===Ae?n==="math"&&Ye[f]:!!Ee[n];if(e.namespaceURI===M){if(t.namespaceURI===Ae&&!Ye[f]||t.namespaceURI===Te&&!Ke[f])return!1;var m=l({},["title","style","font","a","script"]);return!Ee[n]&&(m[n]||!Z[n])}return!1},O=function(e){P(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=Fe}catch{e.remove()}}},Ze=function(e,t){try{P(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch{P(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!c[e])if(I||K)try{O(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Je=function(e){var t=void 0,n=void 0;if(de)e="<remove></remove>"+e;else{var f=Me(e,/^[\r\n\t ]+/);n=f&&f[0]}var m=S?S.createHTML(e):e;if(_e===M)try{t=new Dt().parseFromString(m,"text/html")}catch{}if(!t||!t.documentElement){t=le.createDocument(_e,"template",null);try{t.documentElement.innerHTML=ye?"":m}catch{}}var d=t.body||t.documentElement;return e&&n&&d.insertBefore(s.createTextNode(n),d.childNodes[0]||null),H?t.documentElement:d},Qe=function(e){return It.call(e.ownerDocument||e,e,ae.SHOW_ELEMENT|ae.SHOW_COMMENT|ae.SHOW_TEXT,null,!1)},Gt=function(e){return e instanceof St||e instanceof Ot?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Rt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"},G=function(e){return(typeof w>"u"?"undefined":U(w))==="object"?e instanceof w:e&&(typeof e>"u"?"undefined":U(e))==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},g=function(e,t,n){_[e]&&st(_[e],function(f){f.call(a,t,n,N)})},et=function(e){var t=void 0;if(g("beforeSanitizeElements",e,null),Gt(e)||Me(e.nodeName,/[\u0080-\uFFFF]/))return O(e),!0;var n=D(e.nodeName);if(g("uponSanitizeElement",e,{tagName:n,allowedTags:p}),!G(e.firstElementChild)&&(!G(e.content)||!G(e.content.firstElementChild))&&R(/<[/\w]/g,e.innerHTML)&&R(/<[/\w]/g,e.textContent))return O(e),!0;if(!p[n]||pe[n]){if(ve&&!Ut[n]){var f=ne(e)||e.parentNode,m=xt(e)||e.childNodes;if(m&&f)for(var d=m.length,v=d-1;v>=0;--v)f.insertBefore(Lt(m[v],!0),wt(e))}return O(e),!0}return e instanceof q&&!zt(e)||(n==="noscript"||n==="noembed")&&R(/<\/no(script|embed)/i,e.innerHTML)?(O(e),!0):(x&&e.nodeType===3&&(t=e.textContent,t=b(t,se," "),t=b(t,fe," "),e.textContent!==t&&(P(a.removed,{element:e.cloneNode()}),e.textContent=t)),g("afterSanitizeElements",e,null),!1)},tt=function(e,t,n){if(Ve&&(t==="id"||t==="name")&&(n in s||n in Ht))return!1;if(!(ce&&R(Ct,t))){if(!(We&&R(Ft,t))){if(!c[t]||Ge[t])return!1;if(!he[t]){if(!R(ue,b(n,Ue,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&ft(n,"data:")===0&&je[e])){if(!(Be&&!R(Pt,b(n,Ue,"")))){if(n)return!1}}}}}}return!0},rt=function(e){var t=void 0,n=void 0,f=void 0,m=void 0;g("beforeSanitizeAttributes",e,null);var d=e.attributes;if(d){var v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:c};for(m=d.length;m--;){t=d[m];var E=t,W=E.name,at=E.namespaceURI;if(n=ut(t.value),f=D(W),v.attrName=f,v.attrValue=n,v.keepAttr=!0,v.forceKeepAttr=void 0,g("uponSanitizeAttribute",e,v),n=v.attrValue,!v.forceKeepAttr&&(Ze(W,e),!!v.keepAttr)){if(R(/\/>/i,n)){Ze(W,e);continue}x&&(n=b(n,se," "),n=b(n,fe," "));var Bt=e.nodeName.toLowerCase();if(tt(Bt,f,n))try{at?e.setAttributeNS(at,W,n):e.setAttribute(W,n),De(a.removed)}catch{}}}g("afterSanitizeAttributes",e,null)}},Wt=function i(e){var t=void 0,n=Qe(e);for(g("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)g("uponSanitizeShadowNode",t,null),!et(t)&&(t.content instanceof u&&i(t.content),rt(t));g("afterSanitizeShadowDOM",e,null)};return a.sanitize=function(i,e){var t=void 0,n=void 0,f=void 0,m=void 0,d=void 0;if(ye=!i,ye&&(i="<!-->"),typeof i!="string"&&!G(i)){if(typeof i.toString!="function")throw Le("toString is not a function");if(i=i.toString(),typeof i!="string")throw Le("dirty is not a string, aborting")}if(!a.isSupported){if(U(r.toStaticHTML)==="object"||typeof r.toStaticHTML=="function"){if(typeof i=="string")return r.toStaticHTML(i);if(G(i))return r.toStaticHTML(i.outerHTML)}return i}if(me||ge(e),a.removed=[],typeof i=="string"&&(z=!1),!z)if(i instanceof w)t=Je("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===1&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!I&&!x&&!H&&i.indexOf("<")===-1)return S&&Y?S.createHTML(i):i;if(t=Je(i),!t)return I?null:Fe}t&&de&&O(t.firstChild);for(var v=Qe(z?i:t);f=v.nextNode();)f.nodeType===3&&f===m||et(f)||(f.content instanceof u&&Wt(f.content),rt(f),m=f);if(m=null,z)return i;if(I){if(K)for(d=kt.call(t.ownerDocument);t.firstChild;)d.appendChild(t.firstChild);else d=t;return $e&&(d=Nt.call(o,d,!0)),d}var E=H?t.outerHTML:t.innerHTML;return x&&(E=b(E,se," "),E=b(E,fe," ")),S&&Y?S.createHTML(E):E},a.setConfig=function(i){ge(i),me=!0},a.clearConfig=function(){N=null,me=!1},a.isValidAttribute=function(i,e,t){N||ge({});var n=D(i),f=D(e);return tt(n,f,t)},a.addHook=function(i,e){typeof e=="function"&&(_[i]=_[i]||[],P(_[i],e))},a.removeHook=function(i){_[i]&&De(_[i])},a.removeHooks=function(i){_[i]&&(_[i]=[])},a.removeAllHooks=function(){_={}},a}var bt=Ne();return bt})});export{Vt as a};
