/*! elementor - v3.24.0 - 15-10-2024 */
/*! For license information please see text-path.376669dc13ce66a83828.bundle.min.js.LICENSE.txt */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[48],{6468:(e,t,n)=>{"use strict";var o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6028),a=o(n(1699));class TextPathHandler extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{pathContainer:".e-text-path",svg:".e-text-path > svg"}}}getDefaultElements(){const{selectors:e}=this.getSettings(),t=this.$element[0];return{widgetWrapper:t,pathContainer:t.querySelector(e.pathContainer),svg:t.querySelector(e.svg),textPath:t.querySelector(e.textPath)}}onInit(){this.elements=this.getDefaultElements(),this.fetchSVG().then((()=>{this.pathId=`e-path-${this.elements.widgetWrapper.dataset.id}`,this.textPathId=`e-text-path-${this.elements.widgetWrapper.dataset.id}`,this.elements.svg&&this.initTextPath()}))}fetchSVG(){const{url:e}=this.elements.pathContainer.dataset;return e&&e.endsWith(".svg")?fetch(e).then((e=>e.text())).then((e=>{this.elements.pathContainer.innerHTML=a.default.sanitize(e),this.elements=this.getDefaultElements()})):Promise.reject(e)}setOffset(e){this.elements.textPath&&(this.isRTL()&&(e=100-parseInt(e)),this.elements.textPath.setAttribute("startOffset",e+"%"))}onElementChange(e){const{start_point:t,text:n}=this.getElementSettings();switch(e){case"start_point":this.setOffset(t.size);break;case"text":this.setText(n);break;case"text_path_direction":this.setOffset(t.size),this.setText(n)}}attachIdToPath(){(this.elements.svg.querySelector("[data-path-anchor]")||this.elements.svg.querySelector("path")).id=this.pathId}initTextPath(){const{start_point:e}=this.getElementSettings(),t=this.elements.pathContainer.dataset.text;this.attachIdToPath(),this.elements.svg.innerHTML+=`\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t`,this.elements.textPath=this.elements.svg.querySelector(`#${this.textPathId}`),this.setOffset(e.size),this.setText(t)}setText(e){const{is_external:t,nofollow:n}=this.getElementSettings().link,{linkUrl:o}=this.elements.pathContainer.dataset,i=t?"_blank":"",l=n?"nofollow":"";o&&(e=`${(0,r.escapeHTML)(e)}`,e=a.default.sanitize(e,{ADD_ATTR:["target"]})),this.elements.textPath.innerHTML=e;const s=this.elements.svg.querySelector(`#${this.textPathId}-clone`);if(s&&s.remove(),this.shouldReverseText()){const t=this.elements.textPath.cloneNode();t.id+="-clone",t.classList.add("elementor-hidden"),t.textContent=e,this.elements.textPath.parentNode.appendChild(t),this.reverseToRTL()}}isRTL(){const{text_path_direction:e}=this.getElementSettings();let t=elementorFrontend.config.is_rtl;return e&&(t="rtl"===e),t}shouldReverseText(){if(!this.isRTL())return!1;if(elementorFrontend.utils.environment.firefox)return!1;return!elementorFrontend.utils.environment.blink||!this.isFixedChromiumVersion()}isFixedChromiumVersion(){return parseInt(navigator.userAgent.match(/(?:Chrom(?:e|ium)|Edg)\/([0-9]+)\./)[1])>=96}reverseToRTL(){let e=this.elements.textPath;e=e.querySelector("a")||e;e.textContent=e.textContent.replace(/([\u0591-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC\s$&+,:;=?@#|'<>.^*()%!-]+)/gi,(e=>e.split("").reverse().join(""))),e.setAttribute("aria-hidden",!0)}}t.default=TextPathHandler},1699:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:a,seal:i,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;a||(a=function freeze(e){return e}),i||(i=function seal(e){return e}),s||(s=function apply(e,t,n){return e.apply(t,n)}),c||(c=function construct(e,t){return new e(...t)});const u=unapply(Array.prototype.forEach),d=unapply(Array.prototype.pop),m=unapply(Array.prototype.push),p=unapply(String.prototype.toLowerCase),f=unapply(String.prototype.toString),h=unapply(String.prototype.match),g=unapply(String.prototype.replace),T=unapply(String.prototype.indexOf),y=unapply(String.prototype.trim),S=unapply(Object.prototype.hasOwnProperty),E=unapply(RegExp.prototype.test),_=unconstruct(TypeError);function unapply(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let a=o.length;for(;a--;){let t=o[a];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[a]=e),t=e)}e[t]=!0}return e}function cleanArray(e){for(let t=0;t/gm),M=i(/\${[\w\W]*}/gm),P=i(/^data-[\-\w.\u00B7-\uFFFF]/),F=i(/^aria-[\-\w]+$/),U=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=i(/^(?:\w+script|data):/i),z=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=i(/^html$/i),B=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:O,ERB_EXPR:I,TMPLIT_EXPR:M,DATA_ATTR:P,ARIA_ATTR:F,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:z,DOCTYPE_NAME:G,CUSTOM_ELEMENT:B});const j={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Y=function getGlobal(){return"undefined"==typeof window?null:window},$=function _createTrustedTypesPolicy(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function createDOMPurify(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const DOMPurify=e=>createDOMPurify(e);if(DOMPurify.version="3.1.6",DOMPurify.removed=[],!t||!t.document||t.document.nodeType!==j.document)return DOMPurify.isSupported=!1,DOMPurify;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:O,NodeFilter:I,NamedNodeMap:M=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:P,DOMParser:F,trustedTypes:H}=t,z=O.prototype,B=lookupGetter(z,"cloneNode"),q=lookupGetter(z,"remove"),V=lookupGetter(z,"nextSibling"),X=lookupGetter(z,"childNodes"),K=lookupGetter(z,"parentNode");if("function"==typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Z,J="";const{implementation:Q,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=n,{importNode:oe}=o;let re={};DOMPurify.isSupported="function"==typeof e&&"function"==typeof K&&Q&&void 0!==Q.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:ie,TMPLIT_EXPR:le,DATA_ATTR:se,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:me}=W;let{IS_ALLOWED_URI:pe}=W,fe=null;const he=addToSet({},[...A,...b,...x,...v,...R]);let ge=null;const Te=addToSet({},[...w,...D,...k,...L]);let ye=Object.seal(l(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}})),Se=null,Ee=null,_e=!0,Ae=!0,be=!1,xe=!0,Ne=!1,ve=!0,Ce=!1,Re=!1,we=!1,De=!1,ke=!1,Le=!1,Oe=!0,Ie=!1;const Me="user-content-";let Pe=!0,Fe=!1,Ue={},He=null;const ze=addToSet({},["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"]);let Ge=null;const Be=addToSet({},["audio","video","img","source","image","track"]);let We=null;const je=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Ve=qe,Xe=!1,Ke=null;const Ze=addToSet({},[Ye,$e,qe],f);let Je=null;const Qe=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const ot=n.createElement("form"),rt=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function},at=function _parseConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=clone(e),Je=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?f:p,fe=S(e,"ALLOWED_TAGS")?addToSet({},e.ALLOWED_TAGS,tt):he,ge=S(e,"ALLOWED_ATTR")?addToSet({},e.ALLOWED_ATTR,tt):Te,Ke=S(e,"ALLOWED_NAMESPACES")?addToSet({},e.ALLOWED_NAMESPACES,f):Ze,We=S(e,"ADD_URI_SAFE_ATTR")?addToSet(clone(je),e.ADD_URI_SAFE_ATTR,tt):je,Ge=S(e,"ADD_DATA_URI_TAGS")?addToSet(clone(Be),e.ADD_DATA_URI_TAGS,tt):Be,He=S(e,"FORBID_CONTENTS")?addToSet({},e.FORBID_CONTENTS,tt):ze,Se=S(e,"FORBID_TAGS")?addToSet({},e.FORBID_TAGS,tt):{},Ee=S(e,"FORBID_ATTR")?addToSet({},e.FORBID_ATTR,tt):{},Ue=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,ve=!1!==e.SAFE_FOR_XML,Ce=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,Pe=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||U,Ve=e.NAMESPACE||qe,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ae=!1),ke&&(De=!0),Ue&&(fe=addToSet({},R),ge=[],!0===Ue.html&&(addToSet(fe,A),addToSet(ge,w)),!0===Ue.svg&&(addToSet(fe,b),addToSet(ge,D),addToSet(ge,L)),!0===Ue.svgFilters&&(addToSet(fe,x),addToSet(ge,D),addToSet(ge,L)),!0===Ue.mathMl&&(addToSet(fe,v),addToSet(ge,k),addToSet(ge,L))),e.ADD_TAGS&&(fe===he&&(fe=clone(fe)),addToSet(fe,e.ADD_TAGS,tt)),e.ADD_ATTR&&(ge===Te&&(ge=clone(ge)),addToSet(ge,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&addToSet(We,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(He===ze&&(He=clone(He)),addToSet(He,e.FORBID_CONTENTS,tt)),Pe&&(fe["#text"]=!0),Ce&&addToSet(fe,["html","head","body"]),fe.table&&(addToSet(fe,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,J=Z.createHTML("")}else void 0===Z&&(Z=$(H,r)),null!==Z&&"string"==typeof J&&(J=Z.createHTML(""));a&&a(e),nt=e}},it=addToSet({},["mi","mo","mn","ms","mtext"]),lt=addToSet({},["foreignobject","annotation-xml"]),st=addToSet({},["title","style","font","a","script"]),ct=addToSet({},[...b,...x,...N]),ut=addToSet({},[...v,...C]),dt=function _checkValidNamespace(e){let t=K(e);t&&t.tagName||(t={namespaceURI:Ve,tagName:"template"});const n=p(e.tagName),o=p(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===qe?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===o||it[o]):Boolean(ct[n]):e.namespaceURI===Ye?t.namespaceURI===qe?"math"===n:t.namespaceURI===$e?"math"===n&<[o]:Boolean(ut[n]):e.namespaceURI===qe?!(t.namespaceURI===$e&&!lt[o])&&!(t.namespaceURI===Ye&&!it[o])&&!ut[n]&&(st[n]||!ct[n]):!("application/xhtml+xml"!==Je||!Ke[e.namespaceURI]))},mt=function _forceRemove(e){m(DOMPurify.removed,{element:e});try{K(e).removeChild(e)}catch(t){q(e)}},pt=function _removeAttribute(e,t){try{m(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(DOMPurify.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ge[e])if(De||ke)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function _initDocument(e){let t=null,o=null;if(we)e=""+e;else{const t=h(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===Je&&Ve===qe&&(e=''+e+"");const r=Z?Z.createHTML(e):e;if(Ve===qe)try{t=(new F).parseFromString(r,Je)}catch(e){}if(!t||!t.documentElement){t=Q.createDocument(Ve,"template",null);try{t.documentElement.innerHTML=Xe?J:r}catch(e){}}const a=t.body||t.documentElement;return e&&o&&a.insertBefore(n.createTextNode(o),a.childNodes[0]||null),Ve===qe?ne.call(t,Ce?"html":"body")[0]:Ce?t.documentElement:a},ht=function _createNodeIterator(e){return ee.call(e.ownerDocument||e,e,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},gt=function _isClobbered(e){return e instanceof P&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof M)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Tt=function _isNode(e){return"function"==typeof c&&e instanceof c},yt=function _executeHook(e,t,n){re[e]&&u(re[e],(e=>{e.call(DOMPurify,t,n,nt)}))},St=function _sanitizeElements(e){let t=null;if(yt("beforeSanitizeElements",e,null),gt(e))return mt(e),!0;const n=tt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:n,allowedTags:fe}),e.hasChildNodes()&&!Tt(e.firstElementChild)&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return mt(e),!0;if(e.nodeType===j.progressingInstruction)return mt(e),!0;if(ve&&e.nodeType===j.comment&&E(/<[/\w]/g,e.data))return mt(e),!0;if(!fe[n]||Se[n]){if(!Se[n]&&_t(n)){if(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,n))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))return!1}if(Pe&&!He[n]){const t=K(e)||e.parentNode,n=X(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=B(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,V(e))}}return mt(e),!0}return e instanceof O&&!dt(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&e.nodeType===j.text&&(t=e.textContent,u([ae,ie,le],(e=>{t=g(t,e," ")})),e.textContent!==t&&(m(DOMPurify.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Et=function _isValidAttribute(e,t,o){if(Oe&&("id"===t||"name"===t)&&(o in n||o in ot))return!1;if(Ae&&!Ee[t]&&E(se,t));else if(_e&&E(ce,t));else if(!ge[t]||Ee[t]){if(!(_t(e)&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&E(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&E(ye.tagNameCheck,o)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(o))))return!1}else if(We[t]);else if(E(pe,g(o,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(o,"data:")||!Ge[e])if(be&&!E(ue,g(o,de,"")));else if(o)return!1;return!0},_t=function _isBasicCustomElement(e){return"annotation-xml"!==e&&h(e,me)},At=function _sanitizeAttributes(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:i,value:l}=r,s=tt(a);let c="value"===a?l:y(l);if(n.attrName=s,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,n),c=n.attrValue,ve&&E(/((--!?|])>)|<\/(style|title)/i,c)){pt(a,e);continue}if(n.forceKeepAttr)continue;if(pt(a,e),!n.keepAttr)continue;if(!xe&&E(/\/>/i,c)){pt(a,e);continue}Ne&&u([ae,ie,le],(e=>{c=g(c,e," ")}));const m=tt(e.nodeName);if(Et(m,s,c)){if(!Ie||"id"!==s&&"name"!==s||(pt(a,e),c=Me+c),Z&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(i);else switch(H.getAttributeType(m,s)){case"TrustedHTML":c=Z.createHTML(c);break;case"TrustedScriptURL":c=Z.createScriptURL(c)}try{i?e.setAttributeNS(i,a,c):e.setAttribute(a,c),gt(e)?mt(e):d(DOMPurify.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)},bt=function _sanitizeShadowDOM(e){let t=null;const n=ht(e);for(yt("beforeSanitizeShadowDOM",e,null);t=n.nextNode();)yt("uponSanitizeShadowNode",t,null),St(t)||(t.content instanceof i&&_sanitizeShadowDOM(t.content),At(t));yt("afterSanitizeShadowDOM",e,null)};return DOMPurify.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,l=null;if(Xe=!e,Xe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Tt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!DOMPurify.isSupported)return e;if(Re||at(t),DOMPurify.removed=[],"string"==typeof e&&(Fe=!1),Fe){if(e.nodeName){const t=tt(e.nodeName);if(!fe[t]||Se[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)n=ft("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===j.element&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!De&&!Ne&&!Ce&&-1===e.indexOf("<"))return Z&&Le?Z.createHTML(e):e;if(n=ft(e),!n)return De?null:Le?J:""}n&&we&&mt(n.firstChild);const s=ht(Fe?e:n);for(;a=s.nextNode();)St(a)||(a.content instanceof i&&bt(a.content),At(a));if(Fe)return e;if(De){if(ke)for(l=te.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(ge.shadowroot||ge.shadowrootmode)&&(l=oe.call(o,l,!0)),l}let d=Ce?n.outerHTML:n.innerHTML;return Ce&&fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&E(G,n.ownerDocument.doctype.name)&&(d="\n"+d),Ne&&u([ae,ie,le],(e=>{d=g(d,e," ")})),Z&&Le?Z.createHTML(d):d},DOMPurify.setConfig=function(){at(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Re=!0},DOMPurify.clearConfig=function(){nt=null,Re=!1},DOMPurify.isValidAttribute=function(e,t,n){nt||at({});const o=tt(e),r=tt(t);return Et(o,r,n)},DOMPurify.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],m(re[e],t))},DOMPurify.removeHook=function(e){if(re[e])return d(re[e])},DOMPurify.removeHooks=function(e){re[e]&&(re[e]=[])},DOMPurify.removeAllHooks=function(){re={}},DOMPurify}return createDOMPurify()}()}}]);