You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/216.abc85dac.async.js

2 lines
20 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{qZ2Q:function(lt,Xt,Jt){/*! @license DOMPurify 2.3.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.4/LICENSE */(function(Oe,ne){lt.exports=ne()})(this,function(){"use strict";function Oe(n){if(Array.isArray(n)){for(var r=0,o=Array(n.length);r<n.length;r++)o[r]=n[r];return o}else return Array.from(n)}var ne=Object.hasOwnProperty,ke=Object.setPrototypeOf,ut=Object.isFrozen,ct=Object.getPrototypeOf,mt=Object.getOwnPropertyDescriptor,g=Object.freeze,A=Object.seal,ft=Object.create,Se=typeof Reflect!="undefined"&&Reflect,j=Se.apply,re=Se.construct;j||(j=function(r,o,l){return r.apply(o,l)}),g||(g=function(r){return r}),A||(A=function(r){return r}),re||(re=function(r,o){return new(Function.prototype.bind.apply(r,[null].concat(Oe(o))))});var dt=y(Array.prototype.forEach),Ne=y(Array.prototype.pop),U=y(Array.prototype.push),V=y(String.prototype.toLowerCase),Le=y(String.prototype.match),D=y(String.prototype.replace),pt=y(String.prototype.indexOf),ht=y(String.prototype.trim),b=y(RegExp.prototype.test),Re=vt(TypeError);function y(n){return function(r){for(var o=arguments.length,l=Array(o>1?o-1:0),f=1;f<o;f++)l[f-1]=arguments[f];return j(n,r,l)}}function vt(n){return function(){for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];return re(n,o)}}function s(n,r){ke&&ke(n,null);for(var o=r.length;o--;){var l=r[o];if(typeof l=="string"){var f=V(l);f!==l&&(ut(r)||(r[o]=f),l=f)}n[l]=!0}return n}function S(n){var r=ft(null),o=void 0;for(o in n)j(ne,n,[o])&&(r[o]=n[o]);return r}function $(n,r){for(;n!==null;){var o=mt(n,r);if(o){if(o.get)return y(o.get);if(typeof o.value=="function")return y(o.value)}n=ct(n)}function l(f){return console.warn("fallback value for",f),null}return l}var xe=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ie=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),oe=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gt=g(["animate","color-profile","cursor","discard","fedropshadow","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"]),se=g(["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"]),bt=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ce=g(["#text"]),Ie=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),le=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pe=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yt=A(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Tt=A(/<%[\s\S]*|[\s\S]*%>/gm),_t=A(/^data-[\-\w.\u00B7-\uFFFF]/),At=A(/^aria-[\-\w]+$/),Et=A(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wt=A(/^(?:\w+script|data):/i),Mt=A(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function T(n){if(Array.isArray(n)){for(var r=0,o=Array(n.length);r<n.length;r++)o[r]=n[r];return o}else return Array.from(n)}var Dt=function(){return typeof window=="undefined"?null:window},Ot=function(r,o){if((typeof r=="undefined"?"undefined":z(r))!=="object"||typeof r.createPolicy!="function")return null;var l=null,f="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(f)&&(l=o.currentScript.getAttribute(f));var Y="dompurify"+(l?"#"+l:"");try{return r.createPolicy(Y,{createHTML:function(q){return q}})}catch(N){return console.warn("TrustedTypes policy "+Y+" could not be created."),null}};function He(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dt(),r=function(e){return He(e)};if(r.version="2.3.4",r.removed=[],!n||!n.document||n.document.nodeType!==9)return r.isSupported=!1,r;var o=n.document,l=n.document,f=n.DocumentFragment,Y=n.HTMLTemplateElement,N=n.Node,q=n.Element,ue=n.NodeFilter,Fe=n.NamedNodeMap,St=Fe===void 0?n.NamedNodeMap||n.MozNamedAttrMap:Fe,Nt=n.HTMLFormElement,Lt=n.DOMParser,Rt=n.trustedTypes,X=q.prototype,xt=$(X,"cloneNode"),Ct=$(X,"nextSibling"),It=$(X,"childNodes"),ce=$(X,"parentNode");if(typeof Y=="function"){var me=l.createElement("template");me.content&&me.content.ownerDocument&&(l=me.content.ownerDocument)}var O=Ot(Rt,o),Ue=O&&ee?O.createHTML(""):"",J=l,fe=J.implementation,Pt=J.createNodeIterator,Ht=J.createDocumentFragment,Ft=J.getElementsByTagName,Ut=o.importNode,ze={};try{ze=S(l).documentMode?l.documentMode:{}}catch(i){}var _={};r.isSupported=typeof ce=="function"&&fe&&typeof fe.createHTMLDocument!="undefined"&&ze!==9;var de=yt,pe=Tt,zt=_t,Gt=At,Bt=wt,Ge=Mt,he=Et,d=null,Be=s({},[].concat(T(xe),T(ie),T(oe),T(se),T(Ce))),m=null,We=s({},[].concat(T(Ie),T(le),T(Pe),T(K))),c=Object.seal(Object.create(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}})),Z=null,ve=null,je=!0,ge=!0,Ve=!1,L=!1,R=!1,be=!1,ye=!1,x=!1,Q=!1,ee=!1,$e=!0,Te=!0,G=!1,C={},I=null,Ke=s({},["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"]),Ye=null,qe=s({},["audio","video","img","source","image","track"]),_e=null,Xe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ae="http://www.w3.org/1998/Math/MathML",Ee="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml",te=k,we=!1,P=void 0,Wt=["application/xhtml+xml","text/html"],jt="text/html",H=void 0,F=null,Vt=l.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){if(F&&F===e)return;(!e||(typeof e=="undefined"?"undefined":z(e))!=="object")&&(e={}),e=S(e),d="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS):Be,m="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR):We,_e="ADD_URI_SAFE_ATTR"in e?s(S(Xe),e.ADD_URI_SAFE_ATTR):Xe,Ye="ADD_DATA_URI_TAGS"in e?s(S(qe),e.ADD_DATA_URI_TAGS):qe,I="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS):Ke,Z="FORBID_TAGS"in e?s({},e.FORBID_TAGS):{},ve="FORBID_ATTR"in e?s({},e.FORBID_ATTR):{},C="USE_PROFILES"in e?e.USE_PROFILES:!1,je=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,L=e.SAFE_FOR_TEMPLATES||!1,R=e.WHOLE_DOCUMENT||!1,x=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,Te=e.KEEP_CONTENT!==!1,G=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||he,te=e.NAMESPACE||k,e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(c.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(c.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(c.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P=Wt.indexOf(e.PARSER_MEDIA_TYPE)===-1?P=jt:P=e.PARSER_MEDIA_TYPE,H=P==="application/xhtml+xml"?function(t){return t}:V,L&&(ge=!1),Q&&(x=!0),C&&(d=s({},[].concat(T(Ce))),m=[],C.html===!0&&(s(d,xe),s(m,Ie)),C.svg===!0&&(s(d,ie),s(m,le),s(m,K)),C.svgFilters===!0&&(s(d,oe),s(m,le),s(m,K)),C.mathMl===!0&&(s(d,se),s(m,Pe),s(m,K))),e.ADD_TAGS&&(d===Be&&(d=S(d)),s(d,e.ADD_TAGS)),e.ADD_ATTR&&(m===We&&(m=S(m)),s(m,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&s(_e,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(I===Ke&&(I=S(I)),s(I,e.FORBID_CONTENTS)),Te&&(d["#text"]=!0),R&&s(d,["html","head","body"]),d.table&&(s(d,["tbody"]),delete Z.tbody),g&&g(e),F=e},Ze=s({},["mi","mo","mn","ms","mtext"]),Qe=s({},["foreignobject","desc","title","annotation-xml"]),ae=s({},ie);s(ae,oe),s(ae,gt);var De=s({},se);s(De,bt);var $t=function(e){var t=ce(e);(!t||!t.tagName)&&(t={namespaceURI:k,tagName:"template"});var a=V(e.tagName),u=V(t.tagName);if(e.namespaceURI===Ee)return t.namespaceURI===k?a==="svg":t.namespaceURI===Ae?a==="svg"&&(u==="annotation-xml"||Ze[u]):Boolean(ae[a]);if(e.namespaceURI===Ae)return t.namespaceURI===k?a==="math":t.namespaceURI===Ee?a==="math"&&Qe[u]:Boolean(De[a]);if(e.namespaceURI===k){if(t.namespaceURI===Ee&&!Qe[u])return!1;if(t.namespaceURI===Ae&&!Ze[u])return!1;var p=s({},["title","style","font","a","script"]);return!De[a]&&(p[a]||!ae[a])}return!1},E=function(e){U(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Ue}catch(a){e.remove()}}},et=function(e,t){try{U(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(a){U(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!m[e])if(x||Q)try{E(t)}catch(a){}else try{t.setAttribute(e,"")}catch(a){}},tt=function(e){var t=void 0,a=void 0;if(ye)e="<remove></remove>"+e;else{var u=Le(e,/^[\r\n\t ]+/);a=u&&u[0]}P==="application/xhtml+xml"&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var p=O?O.createHTML(e):e;if(te===k)try{t=new Lt().parseFromString(p,P)}catch(v){}if(!t||!t.documentElement){t=fe.createDocument(te,"template",null);try{t.documentElement.innerHTML=we?"":p}catch(v){}}var h=t.body||t.documentElement;return e&&a&&h.insertBefore(l.createTextNode(a),h.childNodes[0]||null),te===k?Ft.call(t,R?"html":"body")[0]:R?t.documentElement:h},at=function(e){return Pt.call(e.ownerDocument||e,e,ue.SHOW_ELEMENT|ue.SHOW_COMMENT|ue.SHOW_TEXT,null,!1)},Kt=function(e){return e instanceof Nt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},B=function(e){return(typeof N=="undefined"?"undefined":z(N))==="object"?e instanceof N:e&&(typeof e=="undefined"?"undefined":z(e))==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},w=function(e,t,a){if(!_[e])return;dt(_[e],function(u){u.call(r,t,a,F)})},nt=function(e){var t=void 0;if(w("beforeSanitizeElements",e,null),Kt(e))return E(e),!0;if(Le(e.nodeName,/[\u0080-\uFFFF]/))return E(e),!0;var a=H(e.nodeName);if(w("uponSanitizeElement",e,{tagName:a,allowedTags:d}),!B(e.firstElementChild)&&(!B(e.content)||!B(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return E(e),!0;if(a==="select"&&b(/<template/i,e.innerHTML))return E(e),!0;if(!d[a]||Z[a]){if(Te&&!I[a]){var u=ce(e)||e.parentNode,p=It(e)||e.childNodes;if(p&&u)for(var h=p.length,v=h-1;v>=0;--v)u.insertBefore(xt(p[v],!0),Ct(e))}if(!Z[a]&&it(a)){if(c.tagNameCheck instanceof RegExp&&b(c.tagNameCheck,a))return!1;if(c.tagNameCheck instanceof Function&&c.tagNameCheck(a))return!1}return E(e),!0}return e instanceof q&&!$t(e)||(a==="noscript"||a==="noembed")&&b(/<\/no(script|embed)/i,e.innerHTML)?(E(e),!0):(L&&e.nodeType===3&&(t=e.textContent,t=D(t,de," "),t=D(t,pe," "),e.textContent!==t&&(U(r.removed,{element:e.cloneNode()}),e.textContent=t)),w("afterSanitizeElements",e,null),!1)},rt=function(e,t,a){if($e&&(t==="id"||t==="name")&&(a in l||a in Vt))return!1;if(!(ge&&!ve[t]&&b(zt,t))){if(!(je&&b(Gt,t))){if(!m[t]||ve[t]){if(!(it(e)&&(c.tagNameCheck instanceof RegExp&&b(c.tagNameCheck,e)||c.tagNameCheck instanceof Function&&c.tagNameCheck(e))&&(c.attributeNameCheck instanceof RegExp&&b(c.attributeNameCheck,t)||c.attributeNameCheck instanceof Function&&c.attributeNameCheck(t))||t==="is"&&c.allowCustomizedBuiltInElements&&(c.tagNameCheck instanceof RegExp&&b(c.tagNameCheck,a)||c.tagNameCheck instanceof Function&&c.tagNameCheck(a))))return!1}else if(!_e[t]){if(!b(he,D(a,Ge,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&pt(a,"data:")===0&&Ye[e])){if(!(Ve&&!b(Bt,D(a,Ge,"")))){if(a)return!1}}}}}}return!0},it=function(e){return e.indexOf("-")>0},ot=function(e){var t=void 0,a=void 0,u=void 0,p=void 0;w("beforeSanitizeAttributes",e,null);var h=e.attributes;if(!h)return;var v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:m};for(p=h.length;p--;){t=h[p];var M=t,W=M.name,st=M.namespaceURI;if(a=ht(t.value),u=H(W),v.attrName=u,v.attrValue=a,v.keepAttr=!0,v.forceKeepAttr=void 0,w("uponSanitizeAttribute",e,v),a=v.attrValue,v.forceKeepAttr)continue;if(et(W,e),!v.keepAttr)continue;if(b(/\/>/i,a)){et(W,e);continue}L&&(a=D(a,de," "),a=D(a,pe," "));var qt=H(e.nodeName);if(!rt(qt,u,a))continue;try{st?e.setAttributeNS(st,W,a):e.setAttribute(W,a),Ne(r.removed)}catch(Zt){}}w("afterSanitizeAttributes",e,null)},Yt=function i(e){var t=void 0,a=at(e);for(w("beforeSanitizeShadowDOM",e,null);t=a.nextNode();){if(w("uponSanitizeShadowNode",t,null),nt(t))continue;t.content instanceof f&&i(t.content),ot(t)}w("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(i,e){var t=void 0,a=void 0,u=void 0,p=void 0,h=void 0;if(we=!i,we&&(i="<!-->"),typeof i!="string"&&!B(i)){if(typeof i.toString!="function")throw Re("toString is not a function");if(i=i.toString(),typeof i!="string")throw Re("dirty is not a string, aborting")}if(!r.isSupported){if(z(n.toStaticHTML)==="object"||typeof n.toStaticHTML=="function"){if(typeof i=="string")return n.toStaticHTML(i);if(B(i))return n.toStaticHTML(i.outerHTML)}return i}if(be||Me(e),r.removed=[],typeof i=="string"&&(G=!1),!G)if(i instanceof N)t=tt("<!---->"),a=t.ownerDocument.importNode(i,!0),a.nodeType===1&&a.nodeName==="BODY"||a.nodeName==="HTML"?t=a:t.appendChild(a);else{if(!x&&!L&&!R&&i.indexOf("<")===-1)return O&&ee?O.createHTML(i):i;if(t=tt(i),!t)return x?null:Ue}t&&ye&&E(t.firstChild);for(var v=at(G?i:t);u=v.nextNode();){if(u.nodeType===3&&u===p)continue;if(nt(u))continue;u.content instanceof f&&Yt(u.content),ot(u),p=u}if(p=null,G)return i;if(x){if(Q)for(h=Ht.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return m.shadowroot&&(h=Ut.call(o,h,!0)),h}var M=R?t.outerHTML:t.innerHTML;return L&&(M=D(M,de," "),M=D(M,pe," ")),O&&ee?O.createHTML(M):M},r.setConfig=function(i){Me(i),be=!0},r.clearConfig=function(){F=null,be=!1},r.isValidAttribute=function(i,e,t){F||Me({});var a=H(i),u=H(e);return rt(a,u,t)},r.addHook=function(i,e){if(typeof e!="function")return;_[i]=_[i]||[],U(_[i],e)},r.removeHook=function(i){_[i]&&Ne(_[i])},r.removeHooks=function(i){_[i]&&(_[i]=[])},r.removeAllHooks=function(){_={}},r}var kt=He();return kt})}}]);