/*! For license information please see 5.64eb6f60.chunk.js.LICENSE.txt */ (this["webpackJsonptopola-viewer"]=this["webpackJsonptopola-viewer"]||[]).push([[5],{611:function(e,t,n){e.exports=function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o/gm),j=l(/^data-[\-\w.\u00B7-\uFFFF]/),P=l(/^aria-[\-\w]+$/),B=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=l(/^(?:\w+script|data):/i),G=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function K(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:V(),t=function(e){return J(e)};if(t.version="2.2.7",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter,u=e.NamedNodeMap,f=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,w=e.Text,x=e.Comment,X=e.DOMParser,$=e.trustedTypes,Z=c.prototype,Q=R(Z,"cloneNode"),ee=R(Z,"nextSibling"),te=R(Z,"childNodes"),ne=R(Z,"parentNode");if("function"===typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=Y($,n),ie=oe&&ze?oe.createHTML(""):"",ae=r,le=ae.implementation,ce=ae.createNodeIterator,se=ae.getElementsByTagName,ue=ae.createDocumentFragment,fe=n.importNode,pe={};try{pe=k(r).documentMode?r.documentMode:{}}catch(ht){}var me={};t.isSupported="function"===typeof ne&&le&&"undefined"!==typeof le.createHTMLDocument&&9!==pe;var de=H,he=U,ge=j,ye=P,ve=W,be=G,Te=B,Ae=null,we=S({},[].concat(K(_),K(D),K(E),K(L),K(M))),xe=null,Se=S({},[].concat(K(F),K(C),K(I),K(z))),ke=null,Re=null,_e=!0,De=!0,Ee=!1,Ne=!1,Le=!1,Oe=!1,Me=!1,Fe=!1,Ce=!1,Ie=!0,ze=!1,He=!0,Ue=!0,je=!1,Pe={},Be=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"]),We=null,Ge=S({},["audio","video","img","source","image","track"]),qe=null,Ke=S({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ve=null,Ye=r.createElement("form"),Je=function(e){Ve&&Ve===e||(e&&"object"===("undefined"===typeof e?"undefined":q(e))||(e={}),e=k(e),Ae="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):we,xe="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Se,qe="ADD_URI_SAFE_ATTR"in e?S(k(Ke),e.ADD_URI_SAFE_ATTR):Ke,We="ADD_DATA_URI_TAGS"in e?S(k(Ge),e.ADD_DATA_URI_TAGS):Ge,ke="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},Re="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},Pe="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Le=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ce=e.RETURN_DOM_FRAGMENT||!1,Ie=!1!==e.RETURN_DOM_IMPORT,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ue=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Te,Ne&&(De=!1),Ce&&(Fe=!0),Pe&&(Ae=S({},[].concat(K(M))),xe=[],!0===Pe.html&&(S(Ae,_),S(xe,F)),!0===Pe.svg&&(S(Ae,D),S(xe,C),S(xe,z)),!0===Pe.svgFilters&&(S(Ae,E),S(xe,C),S(xe,z)),!0===Pe.mathMl&&(S(Ae,L),S(xe,I),S(xe,z))),e.ADD_TAGS&&(Ae===we&&(Ae=k(Ae)),S(Ae,e.ADD_TAGS)),e.ADD_ATTR&&(xe===Se&&(xe=k(xe)),S(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(qe,e.ADD_URI_SAFE_ATTR),Ue&&(Ae["#text"]=!0),Le&&S(Ae,["html","head","body"]),Ae.table&&(S(Ae,["tbody"]),delete ke.tbody),a&&a(e),Ve=e)},Xe=S({},["mi","mo","mn","ms","mtext"]),$e=S({},["foreignobject","desc","title","annotation-xml"]),Ze=S({},D);S(Ze,E),S(Ze,N);var Qe=S({},L);S(Qe,O);var et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});var n=h(e.tagName),r=h(t.tagName);if(e.namespaceURI===tt)return t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||Xe[r]):Boolean(Ze[n]);if(e.namespaceURI===et)return t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&$e[r]:Boolean(Qe[n]);if(e.namespaceURI===nt){if(t.namespaceURI===tt&&!$e[r])return!1;if(t.namespaceURI===et&&!Xe[r])return!1;var o=S({},["title","style","font","a","script"]);return!Qe[n]&&(o[n]||!Ze[n])}return!1},ot=function(e){d(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(ht){try{e.outerHTML=ie}catch(ht){e.remove()}}},it=function(e,n){try{d(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(ht){d(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!xe[e])if(Fe||Ce)try{ot(n)}catch(ht){}else try{n.setAttribute(e,"")}catch(ht){}},at=function(e){var t=void 0,n=void 0;if(Me)e=""+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}var i=oe?oe.createHTML(e):e;try{t=(new X).parseFromString(i,"text/html")}catch(ht){}if(!t||!t.documentElement){var a=(t=le.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return e&&n&&t.body.insertBefore(r.createTextNode(n),t.body.childNodes[0]||null),se.call(t,Le?"html":"body")[0]},lt=function(e){return ce.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},ct=function(e){return!(e instanceof w||e instanceof x)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof f&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},st=function(e){return"object"===("undefined"===typeof l?"undefined":q(l))?e instanceof l:e&&"object"===("undefined"===typeof e?"undefined":q(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},ut=function(e,n,r){me[e]&&p(me[e],(function(e){e.call(t,n,r,Ve)}))},ft=function(e){var n=void 0;if(ut("beforeSanitizeElements",e,null),ct(e))return ot(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return ot(e),!0;var r=h(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:r,allowedTags:Ae}),!st(e.firstElementChild)&&(!st(e.content)||!st(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return ot(e),!0;if(!Ae[r]||ke[r]){if(Ue&&!Be[r]){var o=ne(e),i=te(e);if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e))}return ot(e),!0}return e instanceof c&&!rt(e)?(ot(e),!0):"noscript"!==r&&"noembed"!==r||!T(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(n=e.textContent,n=y(n,de," "),n=y(n,he," "),e.textContent!==n&&(d(t.removed,{element:e.cloneNode()}),e.textContent=n)),ut("afterSanitizeElements",e,null),!1):(ot(e),!0)},pt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in r||n in Ye))return!1;if(De&&T(ge,t));else if(_e&&T(ye,t));else{if(!xe[t]||Re[t])return!1;if(qe[t]);else if(T(Te,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e])if(Ee&&!T(ve,y(n,be,"")));else if(n)return!1}return!0},mt=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;ut("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=a.length;i--;){var c=n=a[i],s=c.name,u=c.namespaceURI;if(r=b(n.value),o=h(s),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(it(s,e),l.keepAttr))if(T(/\/>/i,r))it(s,e);else{Ne&&(r=y(r,de," "),r=y(r,he," "));var f=e.nodeName.toLowerCase();if(pt(f,o,r))try{u?e.setAttributeNS(u,s,r):e.setAttribute(s,r),m(t.removed)}catch(ht){}}}ut("afterSanitizeAttributes",e,null)}},dt=function e(t){var n=void 0,r=lt(t);for(ut("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ut("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof o&&e(n.content),mt(n));ut("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,s=void 0,u=void 0,f=void 0;if(r||(r="\x3c!--\x3e"),"string"!==typeof r&&!st(r)){if("function"!==typeof r.toString)throw A("toString is not a function");if("string"!==typeof(r=r.toString()))throw A("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(st(r))return e.toStaticHTML(r.outerHTML)}return r}if(Oe||Je(i),t.removed=[],"string"===typeof r&&(je=!1),je);else if(r instanceof l)1===(c=(a=at("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Fe&&!Ne&&!Le&&-1===r.indexOf("<"))return oe&&ze?oe.createHTML(r):r;if(!(a=at(r)))return Fe?null:ie}a&&Me&&ot(a.firstChild);for(var p=lt(je?r:a);s=p.nextNode();)3===s.nodeType&&s===u||ft(s)||(s.content instanceof o&&dt(s.content),mt(s),u=s);if(u=null,je)return r;if(Fe){if(Ce)for(f=ue.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Ie&&(f=fe.call(n,f,!0)),f}var m=Le?a.outerHTML:a.innerHTML;return Ne&&(m=y(m,de," "),m=y(m,he," ")),oe&&ze?oe.createHTML(m):m},t.setConfig=function(e){Je(e),Oe=!0},t.clearConfig=function(){Ve=null,Oe=!1},t.isValidAttribute=function(e,t,n){Ve||Je({});var r=h(e),o=h(t);return pt(r,o,n)},t.addHook=function(e,t){"function"===typeof t&&(me[e]=me[e]||[],d(me[e],t))},t.removeHook=function(e){me[e]&&m(me[e])},t.removeHooks=function(e){me[e]&&(me[e]=[])},t.removeAllHooks=function(){me={}},t}return J()}()}}]); //# sourceMappingURL=5.64eb6f60.chunk.js.map