Files
calligraphy/docs/js/chunk-2d216214.e238e43d.js

4 lines
17 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216214"],{c0c4:function(e,t,n){
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.keys,i=Object.freeze,a=Object.seal,l="undefined"!==typeof Reflect&&Reflect,c=l.apply,s=l.construct;c||(c=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var u=k(Array.prototype.forEach),d=k(Array.prototype.indexOf),p=k(Array.prototype.join),f=k(Array.prototype.pop),m=k(Array.prototype.push),y=k(Array.prototype.slice),h=k(String.prototype.toLowerCase),g=k(String.prototype.match),v=k(String.prototype.replace),b=k(String.prototype.indexOf),T=k(String.prototype.trim),A=k(RegExp.prototype.test),x=w(RegExp),S=w(TypeError);function k(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return c(e,t,r)}}function w(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,n)}}function L(e,t){n&&n(e,null);var o=t.length;while(o--){var i=t[o];if("string"===typeof i){var a=h(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function _(e){var n={},r=void 0;for(r in e)c(t,e,[r])&&(n[r]=e[r]);return n}var E=i(["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","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"]),M=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","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","video","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=i(["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"]),N=i(["#text"]),O=i(["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","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"]),H=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","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"]),C=i(["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"]),F=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),I=a(/<%[\s\S]*|[\s\S]*%>/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),j=a(/^aria-[\-\w]+$/),P=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),B="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 q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function(){return"undefined"===typeof window?null:window},V=function(e,t){if("object"!==("undefined"===typeof e?"undefined":B(e))||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),t=function(e){return Y(e)};if(t.version="2.0.12",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=!1,a=e.document,l=e.DocumentFragment,c=e.HTMLTemplateElement,s=e.Node,k=e.NodeFilter,w=e.NamedNodeMap,J=void 0===w?e.NamedNodeMap||e.MozNamedAttrMap:w,X=e.Text,$=e.Comment,Q=e.DOMParser,Z=e.trustedTypes;if("function"===typeof c){var ee=a.createElement("template");ee.content&&ee.content.ownerDocument&&(a=ee.content.ownerDocument)}var te=V(Z,n),ne=te&&He?te.createHTML(""):"",re=a,oe=re.implementation,ie=re.createNodeIterator,ae=re.getElementsByTagName,le=re.createDocumentFragment,ce=n.importNode,se={};t.isSupported=oe&&"undefined"!==typeof oe.createHTMLDocument&&9!==a.documentMode;var ue=z,de=I,pe=U,fe=j,me=G,ye=W,he=P,ge=null,ve=L({},[].concat(q(E),q(M),q(D),q(R),q(N))),be=null,Te=L({},[].concat(q(O),q(H),q(C),q(F))),Ae=null,xe=null,Se=!0,ke=!0,we=!1,Le=!1,_e=!1,Ee=!1,Me=!1,De=!1,Re=!1,Ne=!1,Oe=!1,He=!1,Ce=!0,Fe=!0,ze=!1,Ie={},Ue=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),je=null,Pe=L({},["audio","video","img","source","image","track"]),Ge=null,We=L({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Be=null,qe=a.createElement("form"),Ke=function(e){Be&&Be===e||(e&&"object"===("undefined"===typeof e?"undefined":B(e))||(e={}),ge="ALLOWED_TAGS"in e?L({},e.ALLOWED_TAGS):ve,be="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR):Te,Ge="ADD_URI_SAFE_ATTR"in e?L(_(We),e.ADD_URI_SAFE_ATTR):We,je="ADD_DATA_URI_TAGS"in e?L(_(Pe),e.ADD_DATA_URI_TAGS):Pe,Ae="FORBID_TAGS"in e?L({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?L({},e.FORBID_ATTR):{},Ie="USE_PROFILES"in e&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=e.SAFE_FOR_JQUERY||!1,_e=e.SAFE_FOR_TEMPLATES||!1,Ee=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_DOM_IMPORT||!1,He=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||he,_e&&(ke=!1),Ne&&(Re=!0),Ie&&(ge=L({},[].concat(q(N))),be=[],!0===Ie.html&&(L(ge,E),L(be,O)),!0===Ie.svg&&(L(ge,M),L(be,H),L(be,F)),!0===Ie.svgFilters&&(L(ge,D),L(be,H),L(be,F)),!0===Ie.mathMl&&(L(ge,R),L(be,C),L(be,F))),e.ADD_TAGS&&(ge===ve&&(ge=_(ge)),L(ge,e.ADD_TAGS)),e.ADD_ATTR&&(be===Te&&(be=_(be)),L(be,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&L(Ge,e.ADD_URI_SAFE_ATTR),Fe&&(ge["#text"]=!0),Ee&&L(ge,["html","head","body"]),ge.table&&(L(ge,["tbody"]),delete Ae.tbody),i&&i(e),Be=e)},Ve=function(e){m(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(n){e.outerHTML=ne}},Ye=function(e,n){try{m(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(r){m(t.removed,{attribute:null,from:n})}n.removeAttribute(e)},Je=function(e){var t=void 0,n=void 0;if(De)e="<remove></remove>"+e;else{var o=g(e,/^[\r\n\t ]+/);n=o&&o[0]}var i=te?te.createHTML(e):e;try{t=(new Q).parseFromString(i,"text/html")}catch(s){}if(r&&L(Ae,["title"]),!t||!t.documentElement){t=oe.createHTMLDocument("");var l=t,c=l.body;c.parentNode.removeChild(c.parentNode.firstElementChild),c.outerHTML=i}return e&&n&&t.body.insertBefore(a.createTextNode(n),t.body.childNodes[0]||null),ae.call(t,Ee?"html":"body")[0]};t.isSupported&&function(){try{var e=Je("<x/><title>&lt;/title&gt;&lt;img&gt;");A(/<\/title/,e.querySelector("title").innerHTML)&&(r=!0)}catch(t){}}();var Xe=function(e){return ie.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT,(function(){return k.FILTER_ACCEPT}),!1)},$e=function(e){return!(e instanceof X||e instanceof $)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof J&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI)},Qe=function(e){return"object"===("undefined"===typeof s?"undefined":B(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":B(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Ze=function(e,n,r){se[e]&&u(se[e],(function(e){e.call(t,n,r,Be)}))},et=function(e){var n=void 0;if(Ze("beforeSanitizeElements",e,null),$e(e))return Ve(e),!0;var r=h(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:r,allowedTags:ge}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ve(e),!0;if(!ge[r]||Ae[r]){if(Fe&&!Ue[r]&&"function"===typeof e.insertAdjacentHTML)try{var o=e.innerHTML;e.insertAdjacentHTML("AfterEnd",te?te.createHTML(o):o)}catch(i){}return Ve(e),!0}return"noscript"===r&&A(/<\/noscript/i,e.innerHTML)||"noembed"===r&&A(/<\/noembed/i,e.innerHTML)?(Ve(e),!0):(!Le||e.firstElementChild||e.content&&e.content.firstElementChild||!A(/</g,e.textContent)||(m(t.removed,{element:e.cloneNode()}),e.innerHTML?e.innerHTML=v(e.innerHTML,/</g,"&lt;"):e.innerHTML=v(e.textContent,/</g,"&lt;")),_e&&3===e.nodeType&&(n=e.textContent,n=v(n,ue," "),n=v(n,de," "),e.textContent!==n&&(m(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ze("afterSanitizeElements",e,null),!1)},tt=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in a||n in qe))return!1;if(ke&&A(pe,t));else if(Se&&A(fe,t));else{if(!be[t]||xe[t])return!1;if(Ge[t]);else if(A(he,v(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!je[e]){if(we&&!A(me,v(n,ye,"")));else if(n)return!1}else;}return!0},nt=function(e){var n=void 0,r=void 0,i=void 0,a=void 0,l=void 0;Ze("beforeSanitizeAttributes",e,null);var c=e.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};l=c.length;while(l--){n=c[l];var u=n,m=u.name,g=u.namespaceURI;if(r=T(n.value),i=h(m),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr){if("name"===i&&"IMG"===e.nodeName&&c.id)a=c.id,c=y(c,[]),Ye("id",e),Ye(m,e),d(c,a)>l&&e.setAttribute("id",a.value);else{if("INPUT"===e.nodeName&&"type"===i&&"file"===r&&s.keepAttr&&(be[i]||!xe[i]))continue;"id"===m&&e.setAttribute(m,""),Ye(m,e)}if(s.keepAttr)if(Le&&A(/\/>/i,r))Ye(m,e);else if(A(/svg|math/i,e.namespaceURI)&&A(x("</("+p(o(Ue),"|")+")","i"),r))Ye(m,e);else{_e&&(r=v(r,ue," "),r=v(r,de," "));var b=e.nodeName.toLowerCase();if(tt(b,i,r))try{g?e.setAttributeNS(g,m,r):e.setAttribute(m,r),f(t.removed)}catch(S){}}}}Ze("afterSanitizeAttributes",e,null)}},rt=function e(t){var n=void 0,r=Xe(t);Ze("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Ze("uponSanitizeShadowNode",n,null),et(n)||(n.content instanceof l&&e(n.content),nt(n));Ze("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var i=void 0,a=void 0,c=void 0,u=void 0,d=void 0;if(r||(r="\x3c!--\x3e"),"string"!==typeof r&&!Qe(r)){if("function"!==typeof r.toString)throw S("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw S("dirty is not a string, aborting")}if(!t.isSupported){if("object"===B(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(Qe(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||Ke(o),t.removed=[],"string"===typeof r&&(ze=!1),ze);else if(r instanceof s)i=Je("\x3c!--\x3e"),a=i.ownerDocument.importNode(r,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Re&&!_e&&!Ee&&-1===r.indexOf("<"))return te&&He?te.createHTML(r):r;if(i=Je(r),!i)return Re?null:ne}i&&De&&Ve(i.firstChild);var p=Xe(ze?r:i);while(c=p.nextNode())3===c.nodeType&&c===u||et(c)||(c.content instanceof l&&rt(c.content),nt(c),u=c);if(u=null,ze)return r;if(Re){if(Ne){d=le.call(i.ownerDocument);while(i.firstChild)d.appendChild(i.firstChild)}else d=i;return Oe&&(d=ce.call(n,d,!0)),d}var f=Ee?i.outerHTML:i.innerHTML;return _e&&(f=v(f,ue," "),f=v(f,de," ")),te&&He?te.createHTML(f):f},t.setConfig=function(e){Ke(e),Me=!0},t.clearConfig=function(){Be=null,Me=!1},t.isValidAttribute=function(e,t,n){Be||Ke({});var r=h(e),o=h(t);return tt(r,o,n)},t.addHook=function(e,t){"function"===typeof t&&(se[e]=se[e]||[],m(se[e],t))},t.removeHook=function(e){se[e]&&f(se[e])},t.removeHooks=function(e){se[e]&&(se[e]=[])},t.removeAllHooks=function(){se={}},t}var J=Y();return J}))}}]);
//# sourceMappingURL=chunk-2d216214.e238e43d.js.map