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