face-age 2.4.2 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 418.faceage.js.LICENSE.txt */
2
- "use strict";(this.webpackChunkFaceAge=this.webpackChunkFaceAge||[]).push([[418],{9418:(e,t,n)=>{function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.r(t),n.d(t,{default:()=>de});const r=Object.entries,i=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor;let s=Object.freeze,u=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,m=p.apply,d=p.construct;s||(s=function(e){return e}),u||(u=function(e){return e}),m||(m=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),d||(d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const h=z(Array.prototype.forEach),g=z(Array.prototype.lastIndexOf),y=z(Array.prototype.pop),b=z(Array.prototype.push),T=z(Array.prototype.splice),S=Array.isArray,A=z(String.prototype.toLowerCase),E=z(String.prototype.toString),N=z(String.prototype.match),_=z(String.prototype.replace),w=z(String.prototype.indexOf),O=z(String.prototype.trim),v=z(Number.prototype.toString),D=z(Boolean.prototype.toString),R="undefined"==typeof BigInt?null:z(BigInt.prototype.toString),C="undefined"==typeof Symbol?null:z(Symbol.prototype.toString),k=z(Object.prototype.hasOwnProperty),I=z(Object.prototype.toString),x=z(RegExp.prototype.test),L=(M=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(M,t)});var M;function z(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return m(e,t,o)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;if(i&&i(e,null),!S(t))return e;let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(a(t)||(t[o]=e),r=e)}e[r]=!0}return e}function U(e){for(let t=0;t<e.length;t++)k(e,t)||(e[t]=null);return e}function F(e){const t=f(null);for(const l of r(e)){var n=(a=2,function(e){if(Array.isArray(e))return e}(i=l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(i,a)||function(e,t){if(e){if("string"==typeof e)return o(e,t);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)?o(e,t):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());const r=n[0],c=n[1];k(e,r)&&(S(c)?t[r]=U(c):c&&"object"==typeof c&&c.constructor===Object?t[r]=F(c):t[r]=c)}var i,a;return t}function H(e,t){for(;null!==e;){const n=c(e,t);if(n){if(n.get)return z(n.get);if("function"==typeof n.value)return z(n.value)}e=l(e)}return function(){return null}}const j=s(["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"]),B=s(["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"]),G=s(["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"]),W=s(["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"]),Y=s(["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"]),q=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),X=s(["#text"]),$=s(["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"]),K=s(["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","dominant-baseline","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-orientation","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"]),V=s(["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"]),Z=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=u(/{{[\w\W]*|^[\w\W]*}}/g),Q=u(/<%[\w\W]*|^[\w\W]*%>/g),ee=u(/\${[\w\W]*/g),te=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),ne=u(/^aria-[\-\w]+$/),oe=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),re=u(/^(?:\w+script|data):/i),ie=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae=u(/^html$/i),le=u(/^[a-z][.\w]*(-[.\w]+)+$/i),ce=u(/<[/\w!]/g),se=u(/<[/\w]/g),ue=u(/<\/no(script|embed|frames)/i),fe=u(/\/>/i),pe=function(){return"undefined"==typeof window?null:window},me=function(e,t,n,o){return k(e,t)&&S(e[t])?P(o.base?F(o.base):{},e[t],o.transform):n};var de=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe();const n=t=>e(t);if(n.version="3.4.13",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let o=t.document;const i=o,a=i.currentScript;t.DocumentFragment;const l=t.HTMLTemplateElement,c=t.Node,p=t.Element,m=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,M=t.trustedTypes,z=p.prototype,U=H(z,"cloneNode"),de=H(z,"remove"),he=H(z,"nextSibling"),ge=H(z,"childNodes"),ye=H(z,"parentNode"),be=H(z,"shadowRoot"),Te=H(z,"attributes"),Se=c&&c.prototype?H(c.prototype,"nodeType"):null,Ae=c&&c.prototype?H(c.prototype,"nodeName"):null,Ee=c&&c.prototype?H(c.prototype,"ownerDocument"):null;if("function"==typeof l){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Ne,_e,we="",Oe=!1,ve=0;const De=function(){if(ve>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.')},Re=function(e){De(),ve++;try{return Ne.createHTML(e)}finally{ve--}},Ce=o,ke=Ce.implementation,Ie=Ce.createNodeIterator,xe=Ce.createDocumentFragment,Le=Ce.getElementsByTagName,Me=i.importNode;let ze={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof ye&&ke&&void 0!==ke.createHTMLDocument;const Pe=J,Ue=Q,Fe=ee,He=te,je=ne,Be=re,Ge=ie,We=le;let Ye=oe,qe=null;const Xe=P({},[...j,...B,...G,...Y,...X]);let $e=null;const Ke=P({},[...$,...K,...V,...Z]);let Ve=Object.seal(f(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}})),Ze=null,Je=null;const Qe=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let et=!0,tt=!0,nt=!1,ot=!0,rt=!1,it=!0,at=!1,lt=!1,ct=null,st=null,ut=!1,ft=!1,pt=!1,mt=!1,dt=!0,ht=!1;const gt="user-content-";let yt=!0,bt=!1,Tt={},St=null;const At=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"]);let Et=null;const Nt=P({},["audio","video","img","source","image","track"]);let _t=null;const wt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ot="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let Rt=Dt,Ct=!1,kt=null;const It=P({},[Ot,vt,Dt],E),xt=s(["mi","mo","mn","ms","mtext"]);let Lt=P({},xt);const Mt=s(["annotation-xml"]);let zt=P({},Mt);const Pt=P({},["title","style","font","a","script"]);let Ut=null;const Ft=["application/xhtml+xml","text/html"];let Ht=null,jt=null;const Bt=o.createElement("form"),Gt=function(e){return e instanceof RegExp||e instanceof Function},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(jt&&jt===e)return;e&&"object"==typeof e||(e={}),e=F(e),Ut=-1===Ft.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ht="application/xhtml+xml"===Ut?E:A,qe=me(e,"ALLOWED_TAGS",Xe,{transform:Ht}),$e=me(e,"ALLOWED_ATTR",Ke,{transform:Ht}),kt=me(e,"ALLOWED_NAMESPACES",It,{transform:E}),_t=me(e,"ADD_URI_SAFE_ATTR",wt,{transform:Ht,base:wt}),Et=me(e,"ADD_DATA_URI_TAGS",Nt,{transform:Ht,base:Nt}),St=me(e,"FORBID_CONTENTS",At,{transform:Ht}),Ze=me(e,"FORBID_TAGS",F({}),{transform:Ht}),Je=me(e,"FORBID_ATTR",F({}),{transform:Ht}),Tt=!!k(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?F(e.USE_PROFILES):e.USE_PROFILES),et=!1!==e.ALLOW_ARIA_ATTR,tt=!1!==e.ALLOW_DATA_ATTR,nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ot=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,rt=e.SAFE_FOR_TEMPLATES||!1,it=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ft=e.RETURN_DOM||!1,pt=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,ut=e.FORCE_BODY||!1,dt=!1!==e.SANITIZE_DOM,ht=e.SANITIZE_NAMED_PROPS||!1,yt=!1!==e.KEEP_CONTENT,bt=e.IN_PLACE||!1,Ye=function(e){try{return x(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:oe,Rt="string"==typeof e.NAMESPACE?e.NAMESPACE:Dt,Lt=k(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?F(e.MATHML_TEXT_INTEGRATION_POINTS):P({},xt),zt=k(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?F(e.HTML_INTEGRATION_POINTS):P({},Mt);const t=k(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?F(e.CUSTOM_ELEMENT_HANDLING):f(null);if(Ve=f(null),k(t,"tagNameCheck")&&Gt(t.tagNameCheck)&&(Ve.tagNameCheck=t.tagNameCheck),k(t,"attributeNameCheck")&&Gt(t.attributeNameCheck)&&(Ve.attributeNameCheck=t.attributeNameCheck),k(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),u(Ve),rt&&(tt=!1),pt&&(ft=!0),Tt&&(qe=P({},X),$e=f(null),!0===Tt.html&&(P(qe,j),P($e,$)),!0===Tt.svg&&(P(qe,B),P($e,K),P($e,Z)),!0===Tt.svgFilters&&(P(qe,G),P($e,K),P($e,Z)),!0===Tt.mathMl&&(P(qe,Y),P($e,V),P($e,Z))),Qe.tagCheck=null,Qe.attributeCheck=null,k(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Qe.tagCheck=e.ADD_TAGS:S(e.ADD_TAGS)&&(qe===Xe&&(qe=F(qe)),P(qe,e.ADD_TAGS,Ht))),k(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Qe.attributeCheck=e.ADD_ATTR:S(e.ADD_ATTR)&&($e===Ke&&($e=F($e)),P($e,e.ADD_ATTR,Ht))),k(e,"ADD_URI_SAFE_ATTR")&&S(e.ADD_URI_SAFE_ATTR)&&P(_t,e.ADD_URI_SAFE_ATTR,Ht),k(e,"FORBID_CONTENTS")&&S(e.FORBID_CONTENTS)&&(St===At&&(St=F(St)),P(St,e.FORBID_CONTENTS,Ht)),k(e,"ADD_FORBID_CONTENTS")&&S(e.ADD_FORBID_CONTENTS)&&(St===At&&(St=F(St)),P(St,e.ADD_FORBID_CONTENTS,Ht)),yt&&(qe["#text"]=!0),at&&P(qe,["html","head","body"]),qe.table&&(P(qe,["tbody"]),delete Ze.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.');const t=Ne;Ne=e.TRUSTED_TYPES_POLICY;try{we=Re("")}catch(e){throw Ne=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ne=void 0,we=""):(void 0===Ne&&(Oe||(_e=function(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}}(M,a),Oe=!0),Ne=_e),Ne&&"string"==typeof we&&(we=Re("")));s&&s(e),jt=e},Yt=P({},[...B,...G,...W]),qt=P({},[...Y,...q]),Xt=function(e){b(n.removed,{element:e});try{ye(e).removeChild(e)}catch(t){if(de(e),!ye(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")}},$t=function(e){Zt(e);const t=ge(e);if(t){const e=[];h(t,(t=>{b(e,t)})),h(e,(e=>{try{de(e)}catch(e){}}))}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const o=n[t],r=o&&o.name;if("string"==typeof r)try{e.removeAttribute(r)}catch(e){}}},Kt=function(e,t){try{b(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ft||pt)try{Xt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Vt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const o=t[n],r=o&&o.name;if("string"==typeof r&&!$e[Ht(r)])try{e.removeAttribute(r)}catch(e){}}},Zt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Vt(e);const n=ge(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Jt=function(e){let t=null,n=null;if(ut)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ut&&Rt===Dt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Ne?Re(e):e;if(Rt===Dt)try{t=(new d).parseFromString(r,Ut)}catch(e){}if(!t||!t.documentElement){t=ke.createDocument(Rt,"template",null);try{t.documentElement.innerHTML=Ct?we:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Rt===Dt?Le.call(t,at?"html":"body")[0]:at?t.documentElement:i},Qt=function(e){const t=Ee?Ee(e):e.ownerDocument;return Ie.call(t||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},en=function(e){return e=_(e,Pe," "),e=_(e,Ue," "),_(e,Fe," ")},tn=function(e){var t;e.normalize();const n=Ee?Ee(e):e.ownerDocument,o=Ie.call(n||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=en(r.data),r=o.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&h(i,(e=>{on(e.content)&&tn(e.content)}))},nn=function(e){const t=Ae?Ae(e):null;return"string"==typeof t&&"form"===Ht(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Te(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Se(e)||e.childNodes!==ge(e))},on=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},rn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function an(e,t,o){0!==e.length&&h(e,(e=>{e.call(n,t,o,jt)}))}const ln=function(e,t,n,o){return 0===e.length?t:t===n||t===o?F(t):t},cn=function(e,t){if(an(ze.beforeSanitizeElements,e,null),e!==t&&null===ye(e))return bt&&Zt(e),!0;if(nn(e))return Xt(e),!0;const o=Ht(Ae?Ae(e):e.nodeName);if(qe=ln(ze.uponSanitizeElement,qe,Xe,ct),an(ze.uponSanitizeElement,e,{tagName:o,allowedTags:qe}),e!==t&&null===ye(e))return bt&&Zt(e),!0;if(function(e,t){return!!(it&&e.hasChildNodes()&&!rn(e.firstElementChild)&&x(ce,e.textContent)&&x(ce,e.innerHTML))||!(!it||e.namespaceURI!==Dt||"style"!==t||!rn(e.firstElementChild))||7===e.nodeType||!(!it||8!==e.nodeType||!x(se,e.data))}(e,o))return Xt(e),!0;if(Ze[o]||!(Qe.tagCheck instanceof Function&&Qe.tagCheck(o))&&!qe[o]){const n=function(e,t,n){if(!Ze[t]&&fn(t)){if(Ve.tagNameCheck instanceof RegExp&&x(Ve.tagNameCheck,t))return!1;if(Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(t))return!1}if(yt&&!St[t]){const t=ye(e),o=ge(e);if(o&&t)for(let r=o.length-1;r>=0;--r){const i=e===n?U(o[r],!0):o[r];t.insertBefore(i,he(e))}}return Xt(e),!0}(e,o,t);return!1===n&&an(ze.afterSanitizeElements,e,null),n}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=ye(e);t&&t.tagName||(t={namespaceURI:Rt,tagName:"template"});const n=A(e.tagName),o=A(t.tagName);return!!kt[e.namespaceURI]&&(e.namespaceURI===vt?function(e,t,n){return t.namespaceURI===Dt?"svg"===e:t.namespaceURI===Ot?"svg"===e&&("annotation-xml"===n||Lt[n]):Boolean(Yt[e])}(n,t,o):e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===Dt?"math"===e:t.namespaceURI===vt?"math"===e&&zt[n]:Boolean(qt[e])}(n,t,o):e.namespaceURI===Dt?function(e,t,n){return!(t.namespaceURI===vt&&!zt[n])&&!(t.namespaceURI===Ot&&!Lt[n])&&!qt[e]&&(Pt[e]||!Yt[e])}(n,t,o):!("application/xhtml+xml"!==Ut||!kt[e.namespaceURI]))}(e))return Xt(e),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&x(ue,e.innerHTML))return Xt(e),!0;if(rt&&3===e.nodeType){const t=en(e.textContent);e.textContent!==t&&(b(n.removed,{element:e.cloneNode()}),e.textContent=t)}return an(ze.afterSanitizeElements,e,null),!1},sn=function(e,t,n){if(Je[t])return!1;if(it&&"patchsrc"===t)return!1;if(it&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(dt&&("id"===t||"name"===t)&&(n in o||n in Bt))return!1;const r=$e[t]||Qe.attributeCheck instanceof Function&&Qe.attributeCheck(t,e);if(tt&&x(He,t));else if(et&&x(je,t));else if(r){if(_t[t]);else if(x(Ye,_(n,Ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!Et[e])if(nt&&!x(Be,_(n,Ge,"")));else if(n)return!1}else if(!(fn(e)&&(Ve.tagNameCheck instanceof RegExp&&x(Ve.tagNameCheck,e)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(e))&&(Ve.attributeNameCheck instanceof RegExp&&x(Ve.attributeNameCheck,t)||Ve.attributeNameCheck instanceof Function&&Ve.attributeNameCheck(t,e))||"is"===t&&Ve.allowCustomizedBuiltInElements&&(Ve.tagNameCheck instanceof RegExp&&x(Ve.tagNameCheck,n)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(n))))return!1;return!0},un=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),fn=function(e){return!un[A(e)]&&x(We,e)},pn=function(e,t,n,o){if(Ne&&"object"==typeof M&&"function"==typeof M.getAttributeType&&!n)switch(M.getAttributeType(e,t)){case"TrustedHTML":return Re(o);case"TrustedScriptURL":return function(e){De(),ve++;try{return Ne.createScriptURL(e)}finally{ve--}}(o)}return o},mn=function(e,t,o,r){try{o?e.setAttributeNS(o,t,r):e.setAttribute(t,r),nn(e)?Xt(e):y(n.removed)}catch(n){Kt(t,e)}},dn=function(e){an(ze.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||nn(e))return;$e=ln(ze.uponSanitizeAttribute,$e,Ke,st);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$e,forceKeepAttr:void 0};let o=t.length;const r=Ht(e.nodeName);for(;o--;){const i=t[o],a=i.name,l=i.namespaceURI,c=i.value,s=Ht(a),u=c;let f="value"===a?u:O(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,an(ze.uponSanitizeAttribute,e,n),f=n.attrValue,!ht||"id"!==s&&"name"!==s||0===w(f,gt)||(Kt(a,e),f=gt+f),it&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&N(f,"href")?Kt(a,e):n.forceKeepAttr||(!n.keepAttr||!ot&&x(fe,f)?Kt(a,e):(rt&&(f=en(f)),sn(r,s,f)?(f=pn(r,s,l,f),f!==u&&mn(e,a,l,f)):Kt(a,e)))}an(ze.afterSanitizeAttributes,e,null)},hn=function(e){let t=null;const n=Qt(e);for(an(ze.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(an(ze.uponSanitizeShadowNode,t,null),cn(t,e),dn(t),on(t.content)&&hn(t.content),1===(Se?Se(t):t.nodeType)){const e=be(t);on(e)&&(gn(e),hn(e))}an(ze.afterSanitizeShadowDOM,e,null)},gn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){hn(e.shadow);continue}const n=e.node,o=1===(Se?Se(n):n.nodeType),r=ge(n);if(r)for(let e=r.length-1;e>=0;--e)t.push({node:r[e],shadow:null});if(o){const e=Ae?Ae(n):null;if("string"==typeof e&&"template"===Ht(e)){const e=n.content;on(e)&&t.push({node:e,shadow:null})}}if(o){const e=be(n);on(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,r=null,a=null,l=null;if(Ct=!e,Ct&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return v(e);case"boolean":return D(e);case"bigint":return R?R(e):"0";case"symbol":return C?C(e):"Symbol()";case"undefined":default:return I(e);case"function":case"object":{if(null===e)return I(e);const t=e,n=H(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:I(e)}return I(e)}}}(e)))throw L("dirty is not a string, aborting");if(!n.isSupported)return e;lt?(qe=ct,$e=st):Wt(t),(ze.uponSanitizeElement.length>0||ze.uponSanitizeAttribute.length>0)&&(qe=F(qe)),ze.uponSanitizeAttribute.length>0&&($e=F($e)),n.removed=[];const c=bt&&"string"!=typeof e&&rn(e);if(c){!function(e){if(!it)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&x(se,e.data)){try{de(e)}catch(e){}continue}if(1===n){const t=e,n=Ht(Ae?Ae(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const o=ge(e);if(o)for(let e=o.length-1;e>=0;--e)t.push(o[e])}}(e);const t=Ae?Ae(e):e.nodeName;if("string"==typeof t){const n=Ht(t);if(!qe[n]||Ze[n])throw $t(e),L("root node is forbidden and cannot be sanitized in-place")}if(nn(e))throw $t(e),L("root node is clobbered and cannot be sanitized in-place");try{gn(e)}catch(t){throw $t(e),t}}else if(rn(e))o=Jt("\x3c!----\x3e"),r=o.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r),gn(r);else{if(!ft&&!rt&&!at&&-1===e.indexOf("<"))return Ne&&mt?Re(e):e;if(o=Jt(e),!o)return ft?null:mt?we:""}o&&ut&&Xt(o.firstChild);const s=c?e:o;try{const e=Qt(s);for(;a=e.nextNode();)cn(a,s),dn(a),on(a.content)&&hn(a.content)}catch(t){throw c&&($t(e),h(n.removed,(e=>{e.element&&Zt(e.element)}))),t}if(c)return h(n.removed,(e=>{e.element&&Zt(e.element)})),rt&&tn(e),e;if(ft){if(rt&&tn(o),pt)for(l=xe.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return($e.shadowroot||$e.shadowrootmode)&&(l=Me.call(i,l,!0)),l}let u=at?o.outerHTML:o.innerHTML;return at&&qe["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&x(ae,o.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u),rt&&(u=en(u)),Ne&&mt?Re(u):u},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lt=!0,ct=qe,st=$e},n.clearConfig=function(){jt=null,lt=!1,ct=null,st=null,Ne=_e,we=""},n.isValidAttribute=function(e,t,n){jt||Wt({});const o=Ht(e),r=Ht(t);return sn(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&k(ze,e)&&b(ze[e],t)},n.removeHook=function(e,t){if(k(ze,e)){if(void 0!==t){const n=g(ze[e],t);return-1===n?void 0:T(ze[e],n,1)[0]}return y(ze[e])}},n.removeHooks=function(e){k(ze,e)&&(ze[e]=[])},n.removeAllHooks=function(){ze={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}}]);
2
+ "use strict";(this.webpackChunkFaceAge=this.webpackChunkFaceAge||[]).push([[418],{418(t,e,n){function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),n.d(e,{default:()=>St});const i=Object.entries,a=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor;let u=Object.freeze,f=Object.seal,p=Object.create,m="undefined"!=typeof Reflect&&Reflect,d=m.apply,h=m.construct;u||(u=function(t){return t}),f||(f=function(t){return t}),d||(d=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)}),h||(h=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const g=P(Array.prototype.forEach),y=P(Array.prototype.lastIndexOf),b=P(Array.prototype.pop),S=P(Array.prototype.push),T=P(Array.prototype.splice),A=Array.isArray,w=P(String.prototype.toLowerCase),E=P(String.prototype.toString),v=P(String.prototype.match),N=P(String.prototype.replace),O=P(String.prototype.indexOf),_=P(String.prototype.trim),x=P(Number.prototype.toString),D=P(Boolean.prototype.toString),k="undefined"==typeof BigInt?null:P(BigInt.prototype.toString),C="undefined"==typeof Symbol?null:P(Symbol.prototype.toString),R=P(Object.prototype.hasOwnProperty),I=P(Object.prototype.toString),L=P(RegExp.prototype.test),z=(M=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return h(M,e)});var M;function P(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return d(t,e,o)}}function U(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(a&&a(t,null),!A(e))return t;let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){const t=n(r);t!==r&&(l(e)||(e[o]=t),r=t)}t[r]=!0}return t}function F(t){for(let e=0;e<t.length;e++)R(t,e)||(t[e]=null);return t}function H(t){const e=p(null);for(const o of i(t)){var n=r(o,2);const i=n[0],a=n[1];R(t,i)&&(A(a)?e[i]=F(a):a&&"object"==typeof a&&a.constructor===Object?e[i]=H(a):e[i]=a)}return e}function j(t,e){for(;null!==t;){const n=s(t,e);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}t=c(t)}return function(){return null}}const B=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"]),W=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"]),Y=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"]),q=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"]),$=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),X=u(["#text"]),K=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"]),V=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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Z=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"]),J=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=f(/{{[\w\W]*|^[\w\W]*}}/g),tt=f(/<%[\w\W]*|^[\w\W]*%>/g),et=f(/\${[\w\W]*/g),nt=f(/^data-[\-\w.\u00B7-\uFFFF]+$/),ot=f(/^aria-[\-\w]+$/),rt=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),it=f(/^(?:\w+script|data):/i),at=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lt=f(/^html$/i),ct=f(/^[a-z][.\w]*(-[.\w]+)+$/i),st=f(/<[/\w!]/g),ut=f(/<[/\w]/g),ft=f(/<\/no(script|embed|frames)/i),pt=f(/\/>/i),mt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],dt=u(U({},mt)),ht=function(){const t={};return g(mt,e=>{t[e]=f(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),u(t)}(),gt=function(){return"undefined"==typeof window?null:window},yt=function(t,e,n,o){return R(t,e)&&A(t[e])?U(o.base?H(o.base):{},t[e],o.transform):n},bt=function(t,e,n){const o=R(t,e)?t[e]:void 0;return o&&"object"==typeof o?H(o):n()};var St=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt();const n=e=>t(e);if(n.version="3.4.15",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let o=e.document;const r=o,a=r.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,c=e.Node,s=e.Element,m=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,h=e.trustedTypes,M=s.prototype,P=j(M,"cloneNode"),F=j(M,"remove"),mt=j(M,"removeAttributeNode"),St=j(M,"nextSibling"),Tt=j(M,"childNodes"),At=j(M,"parentNode"),wt=j(M,"shadowRoot"),Et=j(M,"attributes"),vt=c&&c.prototype?j(c.prototype,"nodeType"):null,Nt=c&&c.prototype?j(c.prototype,"nodeName"):null,Ot=c&&c.prototype?j(c.prototype,"ownerDocument"):null,_t=function(t){return vt?vt(t):t.nodeType},xt=function(t){return Nt?Nt(t):t.nodeName};if("function"==typeof l){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let Dt,kt,Ct="",Rt=!1,It=0;const Lt=function(){if(It>0)throw z('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.')},zt=function(t){Lt(),It++;try{return Dt.createHTML(t)}finally{It--}},Mt=o,Pt=Mt.implementation,Ut=Mt.createNodeIterator,Ft=Mt.createDocumentFragment,Ht=Mt.getElementsByTagName,jt=r.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof At&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=Q,Yt=tt,Gt=et,qt=nt,$t=ot,Xt=it,Kt=at,Vt=ct;let Zt=rt,Jt=null;const Qt=U({},[...B,...W,...Y,...q,...X]);let te=null;const ee=U({},[...K,...V,...Z,...J]);let ne=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}})),oe=null,re=null;const ie=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ge=!1,ye=!1,be=!1,Se=!1,Te=!0,Ae=!1;const we="user-content-";let Ee=!0,ve=!1,Ne={},Oe=null;const _e=U({},["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"]);let xe=null;const De=U({},["audio","video","img","source","image","track"]);let ke=null;const Ce=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let ze=Le,Me=!1,Pe=null;const Ue=U({},[Re,Ie,Le],E),Fe=u(["mi","mo","mn","ms","mtext"]);let He=U({},Fe);const je=u(["annotation-xml"]);let Be=U({},je);const We=U({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"];let qe=null,$e=null;const Xe=o.createElement("form"),Ke=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===t)return;t&&"object"==typeof t||(t={}),t=H(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ye?E:w,Jt=yt(t,"ALLOWED_TAGS",Qt,{transform:qe}),te=yt(t,"ALLOWED_ATTR",ee,{transform:qe}),Pe=yt(t,"ALLOWED_NAMESPACES",Ue,{transform:E}),ke=yt(t,"ADD_URI_SAFE_ATTR",Ce,{transform:qe,base:Ce}),xe=yt(t,"ADD_DATA_URI_TAGS",De,{transform:qe,base:De}),Oe=yt(t,"FORBID_CONTENTS",_e,{transform:qe}),oe=yt(t,"FORBID_TAGS",H({}),{transform:qe}),re=yt(t,"FORBID_ATTR",H({}),{transform:qe}),Ne=!!R(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?H(t.USE_PROFILES):t.USE_PROFILES),ae=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Se=t.RETURN_TRUSTED_TYPE||!1,ge=t.FORCE_BODY||!1,Te=!1!==t.SANITIZE_DOM,Ae=t.SANITIZE_NAMED_PROPS||!1,Ee=!1!==t.KEEP_CONTENT,ve=t.IN_PLACE||!1,Zt=function(t){try{return L(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,ze="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,He=bt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>U({},Fe)),Be=bt(t,"HTML_INTEGRATION_POINTS",()=>U({},je));const e=bt(t,"CUSTOM_ELEMENT_HANDLING",()=>p(null));if(ne=p(null),R(e,"tagNameCheck")&&Ke(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),R(e,"attributeNameCheck")&&Ke(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),R(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),f(ne),ue&&(le=!1),be&&(ye=!0),Ne&&(Jt=U({},X),te=p(null),!0===Ne.html&&(U(Jt,B),U(te,K)),!0===Ne.svg&&(U(Jt,W),U(te,V),U(te,J)),!0===Ne.svgFilters&&(U(Jt,Y),U(te,V),U(te,J)),!0===Ne.mathMl&&(U(Jt,q),U(te,Z),U(te,J))),ie.tagCheck=null,ie.attributeCheck=null,R(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:A(t.ADD_TAGS)&&(Jt===Qt&&(Jt=H(Jt)),U(Jt,t.ADD_TAGS,qe))),R(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:A(t.ADD_ATTR)&&(te===ee&&(te=H(te)),U(te,t.ADD_ATTR,qe))),R(t,"ADD_FORBID_CONTENTS")&&A(t.ADD_FORBID_CONTENTS)&&(Oe===_e&&(Oe=H(Oe)),U(Oe,t.ADD_FORBID_CONTENTS,qe)),Ee&&(Jt["#text"]=!0),pe&&U(Jt,["html","head","body"]),Jt.table&&(U(Jt,["tbody"]),delete oe.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Dt;Dt=t.TRUSTED_TYPES_POLICY;try{Ct=zt("")}catch(t){throw Dt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Dt=void 0,Ct=""):(void 0===Dt&&(Rt||(kt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(h,a),Rt=!0),Dt=kt),Dt&&"string"==typeof Ct&&(Ct=zt("")));u&&u(t),$e=t},Ze=U({},[...W,...Y,...G]),Je=U({},[...q,...$]),Qe=function(t){S(n.removed,{element:t});try{At(t).removeChild(t)}catch(e){if(F(t),!At(t))throw z("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{mt(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){rn(t);const e=Tt(t);if(e){const t=[];g(e,e=>{S(t,e)}),g(t,t=>{try{F(t)}catch(t){}})}const n=Et(t);if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;"string"==typeof r&&tn(t,o,r)}},nn=function(t,e,o){if(!o)try{o=e.getAttributeNode(t)}catch(t){o=null}S(n.removed,{attribute:o||null,from:e});try{o?mt(e,o):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ye||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},on=function(t){const e=Et(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||te[qe(r)]||tn(t,o,r)}},rn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===_t(t)&&on(t);const n=Tt(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ge)t="<remove></remove>"+t;else{const e=v(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&ze===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=Dt?zt(t):t;if(ze===Le)try{e=(new d).parseFromString(r,Ye)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(ze,"template",null);try{e.documentElement.innerHTML=Me?Ct:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),ze===Le?Ht.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=Ot?Ot(t):t.ownerDocument;return Ut.call(e||t,t,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},sn=function(t){return t=N(t,Wt," "),t=N(t,Yt," "),N(t,Gt," ")},un=function(t){var e;t.normalize();const n=Ot?Ot(t):t.ownerDocument,o=Ut.call(n||t,t,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=sn(r.data),r=o.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&g(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=Nt?Nt(t):null;return"string"==typeof e&&"form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Et(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==vt(t)||t.childNodes!==Tt(t))},pn=function(t){if(!vt||"object"!=typeof t||null===t)return!1;try{return 11===vt(t)}catch(t){return!1}},mn=function(t){if(!vt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof vt(t)}catch(t){return!1}};function dn(t,e,o){0!==t.length&&g(t,t=>{t.call(n,e,o,$e)})}const hn=function(t,e){if(t instanceof RegExp)return L(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(t(e,...o))}return!1},gn=function(t,e,n,o){return 0===t.length?e:e===n||e===o?H(e):e},yn=function(t,e){return t!==e&&null===At(t)&&(ve&&rn(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),yn(t,e))return!0;if(fn(t))return Qe(t),!0;const o=qe(xt(t));if(Jt=gn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:o,allowedTags:Jt}),yn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&L(st,t.textContent)&&L(st,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&dt[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&L(ht[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!L(ut,t.data))}(t,o))return Qe(t),!0;if(oe[o]||!(ie.tagCheck instanceof Function&&ie.tagCheck(o))&&!Jt[o]){const n=function(t,e,n){if(!oe[e]&&An(e)&&hn(ne.tagNameCheck,e))return!1;if(Ee&&!Oe[e]){const e=At(t),o=Tt(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?P(o[r],!0):o[r];e.insertBefore(i,St(t))}}return Qe(t),!0}(t,o,e);return!1===n&&dn(Bt.afterSanitizeElements,t,null),n}if(1===_t(t)&&!function(t){let e=At(t);e&&e.tagName||(e={namespaceURI:ze,tagName:"template"});const n=w(t.tagName),o=w(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||He[n]):Boolean(Ze[t])}(n,e,o):t.namespaceURI===Re?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,o):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Re&&!He[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,o):!("application/xhtml+xml"!==Ye||!Pe[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&L(ft,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(S(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),!1},Sn=function(t,e,n){if(re[e])return!1;if(an(e,t))return!1;if(Te&&("id"===e||"name"===e)&&(n in o||n in Xe))return!1;const r=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!L(qt,e))||!(!ae||!L($t,e))||(r?!(!ke[e]&&!L(Zt,N(n,Kt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==O(n,"data:")||!xe[t])&&(!ce||L(Xt,N(n,Kt,"")))&&n):An(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Tn=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),An=function(t){return!Tn[w(t)]&&L(Vt,t)},wn=function(t,e,n,o){if(Dt&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!n)switch(h.getAttributeType(t,e)){case"TrustedHTML":return zt(o);case"TrustedScriptURL":return function(t){Lt(),It++;try{return Dt.createScriptURL(t)}finally{It--}}(o)}return o},En=function(t,e,n,o){try{return n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},vn=function(t){dn(Bt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||fn(t))return;te=gn(Bt.uponSanitizeAttribute,te,ee,he);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let r=e.length;const i=qe(t.nodeName);for(;r--;){const a=e[r],l=a.name,c=a.namespaceURI,s=a.value,u=qe(l),f=s;let p="value"===l?f:_(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!Ae||"id"!==u&&"name"!==u||0===O(p,we)||(nn(l,t,a),p=we+p,m=!0),fe&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&v(p,"href")?nn(l,t,a):o.forceKeepAttr||(o.keepAttr&&(se||!L(pt,p))?(ue&&(p=sn(p)),Sn(i,u,p)?(p=wn(i,u,c,p),p!==f&&En(t,l,c,p)&&m&&b(n.removed)):nn(l,t,a)):nn(l,t,a))}dn(Bt.afterSanitizeAttributes,t,null)},Nn=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),vn(e),pn(e.content)&&Nn(e.content),1===_t(e)){const t=wt(e);pn(t)&&(On(t),Nn(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},On=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Nn(t.shadow);continue}const n=t.node,o=1===_t(n),r=Tt(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=Nt?Nt(n):null;if("string"==typeof t&&"template"===qe(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(o){const t=wt(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(Me=!t,Me&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return x(t);case"boolean":return D(t);case"bigint":return k?k(t):"0";case"symbol":return C?C(t):"Symbol()";case"undefined":default:return I(t);case"function":case"object":{if(null===t)return I(t);const e=t,n=j(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:I(t)}return I(t)}}}(t)))throw z("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ve(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=H(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=H(te)),n.removed=[];const c=ve&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=_t(t);if(7===n||8===n&&L(ut,t.data)){try{F(t)}catch(t){}continue}if(1===n){const e=t,n=qe(xt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const o=Tt(t);if(o)for(let t=o.length-1;t>=0;--t)e.push(o[t])}}(t);const e=xt(t);if("string"==typeof e){const n=qe(e);if(!Jt[n]||oe[n])throw en(t),z("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),z("root node is clobbered and cannot be sanitized in-place");try{On(t)}catch(e){throw en(t),e}}else if(mn(t))o=ln("\x3c!----\x3e"),i=o.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),On(o);else{if(!ye&&!ue&&!pe&&-1===t.indexOf("<"))return Dt&&Se?zt(t):t;if(o=ln(t),!o)return ye?null:Se?Ct:""}o&&ge&&Qe(o.firstChild);const s=c?t:o;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),vn(a),pn(a.content)&&Nn(a.content)}catch(e){throw c&&(en(t),g(n.removed,t=>{t.element&&rn(t.element)})),e}if(c)return g(n.removed,t=>{t.element&&rn(t.element)}),ue&&un(t),t;if(ye){if(ue&&un(o),be)for(l=Ft.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(te.shadowroot||te.shadowrootmode)&&(l=jt.call(r,l,!0)),l}let u=pe?o.outerHTML:o.innerHTML;return pe&&Jt["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&L(lt,o.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),Dt&&Se?zt(u):u},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){$e=null,me=!1,de=null,he=null,Dt=kt,Ct=""},n.isValidAttribute=function(t,e,n){$e||Ve({});const o=qe(t),r=qe(e);return Sn(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&R(Bt,t)&&S(Bt[t],e)},n.removeHook=function(t,e){if(R(Bt,t)){if(void 0!==e){const n=y(Bt[t],e);return-1===n?void 0:T(Bt[t],n,1)[0]}return b(Bt[t])}},n.removeHooks=function(t){R(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}}]);