vendor: 6,703 bytes, lines 1-2
1/*! For license information please see dompurify.build.js.LICENSE.txt */ 2"use strict";(self.webpackChunksogeti=self.webpackChunksogeti||[]).push([[948],{519(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}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||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}}(e,t)||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}}(e,t)||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.d(t,{default:()=>he});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(e){return e}),f||(f=function(e){return e}),d||(d=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)}),h||(h=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 g=P(Array.prototype.forEach),y=P(Array.prototype.lastIndexOf),b=P(Array.prototype.pop),T=P(Array.prototype.push),S=P(Array.prototype.splice),E=Array.isArray,A=P(String.prototype.toLowerCase),N=P(String.prototype.toString),_=P(String.prototype.match),w=P(String.prototype.replace),O=P(String.prototype.indexOf),v=P(String.prototype.trim),D=P(Number.prototype.toString),R=P(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:P(BigInt.prototype.toString),k="undefined"==typeof Symbol?null:P(Symbol.prototype.toString),I=P(Object.prototype.hasOwnProperty),x=P(Object.prototype.toString),L=P(RegExp.prototype.test),M=(z=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(z,t)});var z;function P(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 d(e,t,o)}}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;if(a&&a(e,null),!E(t))return e;let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(l(t)||(t[o]=e),r=e)}e[r]=!0}return e}function F(e){for(let t=0;t<e.length;t++)I(e,t)||(e[t]=null);return e}function H(e){const t=p(null);for(const o of i(e)){var n=r(o,2);const i=n[0],a=n[1];I(e,i)&&(E(a)?t[i]=F(a):a&&"object"==typeof a&&a.constructor===Object?t[i]=H(a):t[i]=a)}return t}function j(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=c(e)}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"]),G=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"]),W=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"]),Y=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"]),X=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=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","
2spellcheck","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","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"]),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),ee=f(/<%[\w\W]*|^[\w\W]*%>/g),te=f(/\${[\w\W]*/g),ne=f(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=f(/^aria-[\-\w]+$/),re=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ie=f(/^(?:\w+script|data):/i),ae=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=f(/^html$/i),ce=f(/^[a-z][.\w]*(-[.\w]+)+$/i),se=f(/<[/\w!]/g),ue=f(/<[/\w]/g),fe=f(/<\/no(script|embed|frames)/i),pe=f(/\/>/i),me=function(){return"undefined"==typeof window?null:window},de=function(e,t,n,o){return I(e,t)&&E(e[t])?U(o.base?H(o.base):{},e[t],o.transform):n};var he=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me();const n=t=>e(t);if(n.version="3.4.12",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let o=t.document;const r=o,a=r.currentScript;t.DocumentFragment;const l=t.HTMLTemplateElement,c=t.Node,s=t.Element,m=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,h=t.trustedTypes,z=s.prototype,P=j(z,"cloneNode"),F=j(z,"remove"),he=j(z,"nextSibling"),ge=j(z,"childNodes"),ye=j(z,"parentNode"),be=j(z,"shadowRoot"),Te=j(z,"attributes"),Se=c&&c.prototype?j(c.prototype,"nodeType"):null,Ee=c&&c.prototype?j(c.prototype,"nodeName"):null;if("function"==typeof l){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Ae,Ne,_e="",we=!1,Oe=0;const ve=function(){if(Oe>0)throw M('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.')},De=function(e){ve(),Oe++;try{return Ae.createHTML(e)}finally{Oe--}},Re=o,Ce=Re.implementation,ke=Re.createNodeIterator,Ie=Re.createDocumentFragment,xe=Re.getElementsByTagName,Le=r.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof ye&&Ce&&void 0!==Ce.createHTMLDocument;const ze=Q,Pe=ee,Ue=te,Fe=ne,He=oe,je=ie,Be=ae,Ge=ce;let We=re,Ye=null;const qe=U({},[...B,...G,...W,...q,...$]);let Xe=null;const $e=U({},[...K,...V,...Z,...J]);let Ke=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}})),Ve=null,Ze=null;const Je=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,ot=!1,rt=!0,it=!1,at=!1,lt=null,ct=null,st=!1,ut=!1,ft=!1,pt=!1,mt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const St=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 Et=null;const At=U({},["audio","video","img","source","image","track"]);let Nt=null;const _t=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let Dt=vt,Rt=!1,Ct=null;
vendor: 4,615 bytes, line 2
2const kt=U({},[wt,Ot,vt],N),It=u(["mi","mo","mn","ms","mtext"]);let xt=U({},It);const Lt=u(["annotation-xml"]);let Mt=U({},Lt);const zt=U({},["title","style","font","a","script"]);let Pt=null;const Ut=["application/xhtml+xml","text/html"];let Ft=null,Ht=null;const jt=o.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},Gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ht&&Ht===e)return;e&&"object"==typeof e||(e={}),e=H(e),Pt=-1===Ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ft="application/xhtml+xml"===Pt?N:A,Ye=de(e,"ALLOWED_TAGS",qe,{transform:Ft}),Xe=de(e,"ALLOWED_ATTR",$e,{transform:Ft}),Ct=de(e,"ALLOWED_NAMESPACES",kt,{transform:N}),Nt=de(e,"ADD_URI_SAFE_ATTR",_t,{transform:Ft,base:_t}),Et=de(e,"ADD_DATA_URI_TAGS",At,{transform:Ft,base:At}),Tt=de(e,"FORBID_CONTENTS",St,{transform:Ft}),Ve=de(e,"FORBID_TAGS",H({}),{transform:Ft}),Ze=de(e,"FORBID_ATTR",H({}),{transform:Ft}),bt=!!I(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ot=e.SAFE_FOR_TEMPLATES||!1,rt=!1!==e.SAFE_FOR_XML,it=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,pt=e.RETURN_TRUSTED_TYPE||!1,st=e.FORCE_BODY||!1,mt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,We=function(e){try{return L(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:re,Dt="string"==typeof e.NAMESPACE?e.NAMESPACE:vt,xt=I(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?H(e.MATHML_TEXT_INTEGRATION_POINTS):U({},It),Mt=I(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?H(e.HTML_INTEGRATION_POINTS):U({},Lt);const t=I(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?H(e.CUSTOM_ELEMENT_HANDLING):p(null);if(Ke=p(null),I(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ke.tagNameCheck=t.tagNameCheck),I(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ke.attributeNameCheck=t.attributeNameCheck),I(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),f(Ke),ot&&(et=!1),ft&&(ut=!0),bt&&(Ye=U({},$),Xe=p(null),!0===bt.html&&(U(Ye,B),U(Xe,K)),!0===bt.svg&&(U(Ye,G),U(Xe,V),U(Xe,J)),!0===bt.svgFilters&&(U(Ye,W),U(Xe,V),U(Xe,J)),!0===bt.mathMl&&(U(Ye,q),U(Xe,Z),U(Xe,J))),Je.tagCheck=null,Je.attributeCheck=null,I(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:E(e.ADD_TAGS)&&(Ye===qe&&(Ye=H(Ye)),U(Ye,e.ADD_TAGS,Ft))),I(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:E(e.ADD_ATTR)&&(Xe===$e&&(Xe=H(Xe)),U(Xe,e.ADD_ATTR,Ft))),I(e,"ADD_URI_SAFE_ATTR")&&E(e.ADD_URI_SAFE_ATTR)&&U(Nt,e.ADD_URI_SAFE_ATTR,Ft),I(e,"FORBID_CONTENTS")&&E(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=H(Tt)),U(Tt,e.FORBID_CONTENTS,Ft)),I(e,"ADD_FORBID_CONTENTS")&&E(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=H(Tt)),U(Tt,e.ADD_FORBID_CONTENTS,Ft)),gt&&(Ye["#text"]=!0),it&&U(Ye,["html","head","body"]),Ye.table&&(U(Ye,["tbody"]),delete Ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ae;Ae=e.TRUSTED_TYPES_POLICY;try{_e=De("")}catch(e){throw Ae=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ae=void 0,_e=""):(void 0===Ae&&(we||(Ne=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}}(h,a),we=!0),Ae=Ne),Ae&&"string"==typeof _e&&(_e=De("")));u&&u(e),Ht=e},Wt=U({},[...G,...W,...Y]),Yt=U({},[...q,...X]),qt=function(e){T(n.removed,{element:e});try{ye(e).removeChild(e)}catch(t){if(F(e),!ye(e))throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Xt=function(e){Vt(e);const t=ge(e);if(t){const e=[];g(t,t=>{T(e,t)}),g(e,e=>{try{F(e)}catch(e){}})}const n=Te(e);
vendor: 4,216 bytes, line 2
2if(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){}}},$t=function(e,t){try{T(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||ft)try{qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Kt=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&&!Xe[Ft(r)])try{e.removeAttribute(r)}catch(e){}}},Vt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Kt(e);const n=ge(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(st)e="<remove></remove>"+e;else{const t=_(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Pt&&Dt===vt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Ae?De(e):e;if(Dt===vt)try{t=(new d).parseFromString(r,Pt)}catch(e){}if(!t||!t.documentElement){t=Ce.createDocument(Dt,"template",null);try{t.documentElement.innerHTML=Rt?_e:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Dt===vt?xe.call(t,it?"html":"body")[0]:it?t.documentElement:i},Jt=function(e){return ke.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Qt=function(e){return e=w(e,ze," "),e=w(e,Pe," "),w(e,Ue," ")},en=function(e){var t;e.normalize();const n=ke.call(e.ownerDocument||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let o=n.nextNode();for(;o;)o.data=Qt(o.data),o=n.nextNode();const r=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");r&&g(r,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=Ee?Ee(e):null;return"string"==typeof t&&"form"===Ft(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))},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},on=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function rn(e,t,o){0!==e.length&&g(e,e=>{e.call(n,t,o,Ht)})}const an=function(e,t){if(rn(Me.beforeSanitizeElements,e,null),e!==t&&null===ye(e))return!0;if(tn(e))return qt(e),!0;const o=Ft(Ee?Ee(e):e.nodeName);if(rn(Me.uponSanitizeElement,e,{tagName:o,allowedTags:Ye}),e!==t&&null===ye(e))return!0;if(function(e,t){return!!(rt&&e.hasChildNodes()&&!on(e.firstElementChild)&&L(se,e.textContent)&&L(se,e.innerHTML))||!(!rt||e.namespaceURI!==vt||"style"!==t||!on(e.firstElementChild))||7===e.nodeType||!(!rt||8!==e.nodeType||!L(ue,e.data))}(e,o))return qt(e),!0;if(Ve[o]||!(Je.tagCheck instanceof Function&&Je.tagCheck(o))&&!Ye[o]){const t=function(e,t){if(!Ve[t]&&sn(t)){if(Ke.tagNameCheck instanceof RegExp&&L(Ke.tagNameCheck,t))return!1;if(Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=ye(e),n=ge(e);if(n&&t)for(let o=n.length-1;o>=0;--o){const r=yt?n[o]:P(n[o],!0);t.insertBefore(r,he(e))}}return qt(e),!0}(e,o);return!1===t&&rn(Me.afterSanitizeElements,e,null),t}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=ye(e);t&&t.tagName||(t={namespaceURI:Dt,tagName:"template"});const n=A(e.tagName),o=A(t.tagName);return!!Ct[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===vt?"svg"===e:t.namespaceURI===wt?"svg"===e&&("annotation-xml"===n||xt[n]):Boolean(Wt[e])}(n,t,o):e.namespaceURI===wt?function(e,t,n){return t.namespaceURI===vt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,o):e.namespaceURI===vt?function(e,t,n){return!(t.namespaceURI===Ot&&!Mt[n])&&!(t.namespaceURI===wt&&!xt[n])&&!Yt[e]&&(zt[e]||!Wt[e])}(n,t,o):!("application/xhtml+xml"!==Pt||!Ct[e.namespaceURI]))}(e))return qt(e),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&L(fe,e.innerHTML))return qt(e),!0;
vendor: 5,448 bytes, line 2
2if(ot&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(T(n.removed,{element:e.cloneNode()}),e.textContent=t)}return rn(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(rt&&"patchsrc"===t)return!1;if(rt&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(mt&&("id"===t||"name"===t)&&(n in o||n in jt))return!1;const r=Xe[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&L(Fe,t));else if(Qe&&L(He,t));else if(r){if(Nt[t]);else if(L(We,w(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Et[e])if(tt&&!L(je,w(n,Be,"")));else if(n)return!1}else if(!(sn(e)&&(Ke.tagNameCheck instanceof RegExp&&L(Ke.tagNameCheck,e)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(e))&&(Ke.attributeNameCheck instanceof RegExp&&L(Ke.attributeNameCheck,t)||Ke.attributeNameCheck instanceof Function&&Ke.attributeNameCheck(t,e))||"is"===t&&Ke.allowCustomizedBuiltInElements&&(Ke.tagNameCheck instanceof RegExp&&L(Ke.tagNameCheck,n)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(n))))return!1;return!0},cn=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(e){return!cn[A(e)]&&L(Ge,e)},un=function(e,t,n,o){if(Ae&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!n)switch(h.getAttributeType(e,t)){case"TrustedHTML":return De(o);case"TrustedScriptURL":return function(e){ve(),Oe++;try{return Ae.createScriptURL(e)}finally{Oe--}}(o)}return o},fn=function(e,t,o,r){try{o?e.setAttributeNS(o,t,r):e.setAttribute(t,r),tn(e)?qt(e):b(n.removed)}catch(n){$t(t,e)}},pn=function(e){rn(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Xe,forceKeepAttr:void 0};let o=t.length;const r=Ft(e.nodeName);for(;o--;){const i=t[o],a=i.name,l=i.namespaceURI,c=i.value,s=Ft(a),u=c;let f="value"===a?u:v(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,rn(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==s&&"name"!==s||0===O(f,ht)||($t(a,e),f=ht+f),rt&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&_(f,"href")?$t(a,e):n.forceKeepAttr||(!n.keepAttr||!nt&&L(pe,f)?$t(a,e):(ot&&(f=Qt(f)),ln(r,s,f)?(f=un(r,s,l,f),f!==u&&fn(e,a,l,f)):$t(a,e)))}rn(Me.afterSanitizeAttributes,e,null)},mn=function(e){let t=null;const n=Jt(e);for(rn(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(rn(Me.uponSanitizeShadowNode,t,null),an(t,e),pn(t),nn(t.content)&&mn(t.content),1===(Se?Se(t):t.nodeType)){const e=be(t);nn(e)&&(dn(e),mn(e))}rn(Me.afterSanitizeShadowDOM,e,null)},dn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){mn(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=Ee?Ee(n):null;if("string"==typeof e&&"template"===Ft(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(o){const e=be(n);nn(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,i=null,a=null,l=null;if(Rt=!e,Rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!on(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return D(e);case"boolean":return R(e);case"bigint":return C?C(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return x(e);case"function":case"object":{if(null===e)return x(e);const t=e,n=j(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:x(e)}return x(e)}}}(e)))throw M("dirty is not a string, aborting");if(!n.isSupported)return e;at?(Ye=lt,Xe=ct):Gt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=H(Ye)),Me.uponSanitizeAttribute.length>0&&(Xe=H(Xe)),n.removed=[];const c=yt&&"string"!=typeof e&&on(e);if(c){!function(e){if(!rt)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&L(ue,e.data)){try{F(e)}catch(e){}continue}if(1===n){const t=e,n=Ft(Ee?Ee(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=Ee?Ee(e):e.nodeName;if("string"==typeof t){const n=Ft(t);if(!Ye[n]||Ve[n])throw Xt(e),M("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw Xt(e),M("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw Xt(e),t}}else if(on(e))o=Zt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),dn(i);else{if(!ut&&!ot&&!it&&-1===e.indexOf("<"))return Ae&&pt?De(e):e;if(o=Zt(e),!o)return ut?null:pt?_e:""}o&&st&&qt(o.firstChild);const s=c?e:o,u=Jt(s);try{for(;a=u.nextNode();)an(a,s),pn(a),nn(a.content)&&mn(a.content)}catch(t){throw c&&(Xt(e),g(n.removed,e=>{e.element&&Vt(e.element)})),t}if(c)return g(n.removed,e=>{e.element&&Vt(e.element)}),ot&&en(e),e;if(ut){if(ot&&en(o),ft)for(l=Ie.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Xe.shadowroot||Xe.shadowrootmode)&&(l=Le.call(r,l,!0)),l}let f=it?o.outerHTML:o.innerHTML;
vendor: 1,038 bytes, lines 2-3
2return it&&Ye["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&L(le,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),ot&&(f=Qt(f)),Ae&&pt?De(f):f},n.setConfig=function(){Gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),at=!0,lt=Ye,ct=Xe},n.clearConfig=function(){Ht=null,at=!1,lt=null,ct=null,Ae=Ne,_e=""},n.isValidAttribute=function(e,t,n){Ht||Gt({});const o=Ft(e),r=Ft(t);return ln(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&I(Me,e)&&T(Me[e],t)},n.removeHook=function(e,t){if(I(Me,e)){if(void 0!==t){const n=y(Me[e],t);return-1===n?void 0:S(Me[e],n,1)[0]}return b(Me[e])}},n.removeHooks=function(e){I(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}}]); 3//# sourceMappingURL=dompurify.build.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.